aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-09-16 09:24:29 +0200
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-09-17 11:36:11 +0200
commit0eb9c541726104ae3775920497548250cb91bbb2 (patch)
tree3312eed126c19675dc83c8487f14e3c684630846 /sonar-ws
parent15005289f592f7a574f8947d09ab4cc6f6f2bd2e (diff)
downloadsonarqube-0eb9c541726104ae3775920497548250cb91bbb2.tar.gz
sonarqube-0eb9c541726104ae3775920497548250cb91bbb2.zip
Add missing file
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/gen-java/org/sonarqube/ws/WsPermissions.java12587
1 files changed, 12587 insertions, 0 deletions
diff --git a/sonar-ws/src/main/gen-java/org/sonarqube/ws/WsPermissions.java b/sonar-ws/src/main/gen-java/org/sonarqube/ws/WsPermissions.java
new file mode 100644
index 00000000000..ba4e235d55f
--- /dev/null
+++ b/sonar-ws/src/main/gen-java/org/sonarqube/ws/WsPermissions.java
@@ -0,0 +1,12587 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: ws-permissions.proto
+
+package org.sonarqube.ws;
+
+public final class WsPermissions {
+ private WsPermissions() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ }
+ public interface WsUsersResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsUsersResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <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.WsPermissions.WsUsersResponse.User>
+ getUsersList();
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ */
+ org.sonarqube.ws.WsPermissions.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.WsPermissions.WsUsersResponse.UserOrBuilder>
+ getUsersOrBuilderList();
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ */
+ org.sonarqube.ws.WsPermissions.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.WsPermissions.WsUsersResponse.User>();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ users_.add(input.readMessage(org.sonarqube.ws.WsPermissions.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.WsPermissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.WsUsersResponse.class, org.sonarqube.ws.WsPermissions.WsUsersResponse.Builder.class);
+ }
+
+ 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.WsPermissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_User_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_User_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.WsUsersResponse.User.class, org.sonarqube.ws.WsPermissions.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.WsPermissions.WsUsersResponse.User parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.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.WsPermissions.WsUsersResponse.User parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.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.WsPermissions.WsUsersResponse.User parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.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.WsPermissions.WsUsersResponse.User parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.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.WsPermissions.WsUsersResponse.User parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.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.WsPermissions.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.WsPermissions.WsUsersResponse.UserOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_User_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_User_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.WsUsersResponse.User.class, org.sonarqube.ws.WsPermissions.WsUsersResponse.User.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.WsPermissions.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.WsPermissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_User_descriptor;
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsUsersResponse.User getDefaultInstanceForType() {
+ return org.sonarqube.ws.WsPermissions.WsUsersResponse.User.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsUsersResponse.User build() {
+ org.sonarqube.ws.WsPermissions.WsUsersResponse.User result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsUsersResponse.User buildPartial() {
+ org.sonarqube.ws.WsPermissions.WsUsersResponse.User result = new org.sonarqube.ws.WsPermissions.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.WsPermissions.WsUsersResponse.User) {
+ return mergeFrom((org.sonarqube.ws.WsPermissions.WsUsersResponse.User)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.WsPermissions.WsUsersResponse.User other) {
+ if (other == org.sonarqube.ws.WsPermissions.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.WsPermissions.WsUsersResponse.User parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.WsPermissions.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.WsPermissions.WsUsersResponse.User DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.WsUsersResponse.User();
+ }
+
+ public static org.sonarqube.ws.WsPermissions.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.WsPermissions.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.WsPermissions.WsUsersResponse.User> users_;
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.WsUsersResponse.User> getUsersList() {
+ return users_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.WsPermissions.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.WsPermissions.WsUsersResponse.User getUsers(int index) {
+ return users_.get(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.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.WsPermissions.WsUsersResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsUsersResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsUsersResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsUsersResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsUsersResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsUsersResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsUsersResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsUsersResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsUsersResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsUsersResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.WsPermissions.WsUsersResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.permissions.WsUsersResponse}
+ *
+ * <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.WsPermissions.WsUsersResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.WsUsersResponse.class, org.sonarqube.ws.WsPermissions.WsUsersResponse.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.WsPermissions.WsUsersResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getPagingFieldBuilder();
+ getUsersFieldBuilder();
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ if (pagingBuilder_ == null) {
+ paging_ = null;
+ } else {
+ pagingBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ if (usersBuilder_ == null) {
+ users_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ usersBuilder_.clear();
+ }
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor;
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsUsersResponse getDefaultInstanceForType() {
+ return org.sonarqube.ws.WsPermissions.WsUsersResponse.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsUsersResponse build() {
+ org.sonarqube.ws.WsPermissions.WsUsersResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsUsersResponse buildPartial() {
+ org.sonarqube.ws.WsPermissions.WsUsersResponse result = new org.sonarqube.ws.WsPermissions.WsUsersResponse(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ if (pagingBuilder_ == null) {
+ result.paging_ = paging_;
+ } else {
+ result.paging_ = pagingBuilder_.build();
+ }
+ if (usersBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ users_ = java.util.Collections.unmodifiableList(users_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.users_ = users_;
+ } else {
+ result.users_ = usersBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.WsPermissions.WsUsersResponse) {
+ return mergeFrom((org.sonarqube.ws.WsPermissions.WsUsersResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.WsPermissions.WsUsersResponse other) {
+ if (other == org.sonarqube.ws.WsPermissions.WsUsersResponse.getDefaultInstance()) return this;
+ if (other.hasPaging()) {
+ mergePaging(other.getPaging());
+ }
+ if (usersBuilder_ == null) {
+ if (!other.users_.isEmpty()) {
+ if (users_.isEmpty()) {
+ users_ = other.users_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureUsersIsMutable();
+ users_.addAll(other.users_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.users_.isEmpty()) {
+ if (usersBuilder_.isEmpty()) {
+ usersBuilder_.dispose();
+ usersBuilder_ = null;
+ users_ = other.users_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ usersBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getUsersFieldBuilder() : null;
+ } else {
+ usersBuilder_.addAllMessages(other.users_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.WsPermissions.WsUsersResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.WsPermissions.WsUsersResponse) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private org.sonarqube.ws.Common.Paging paging_ = null;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_;
+ /**
+ * <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.WsPermissions.WsUsersResponse.User> users_ =
+ java.util.Collections.emptyList();
+ private void ensureUsersIsMutable() {
+ if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ users_ = new java.util.ArrayList<org.sonarqube.ws.WsPermissions.WsUsersResponse.User>(users_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.WsUsersResponse.User, org.sonarqube.ws.WsPermissions.WsUsersResponse.User.Builder, org.sonarqube.ws.WsPermissions.WsUsersResponse.UserOrBuilder> usersBuilder_;
+
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.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.WsPermissions.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.WsPermissions.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.WsPermissions.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.WsPermissions.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.WsPermissions.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.WsPermissions.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.WsPermissions.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.WsPermissions.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.WsPermissions.WsUsersResponse.User.Builder getUsersBuilder(
+ int index) {
+ return getUsersFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.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.WsPermissions.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.WsPermissions.WsUsersResponse.User.Builder addUsersBuilder() {
+ return getUsersFieldBuilder().addBuilder(
+ org.sonarqube.ws.WsPermissions.WsUsersResponse.User.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.WsUsersResponse.User.Builder addUsersBuilder(
+ int index) {
+ return getUsersFieldBuilder().addBuilder(
+ index, org.sonarqube.ws.WsPermissions.WsUsersResponse.User.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.WsUsersResponse.User.Builder>
+ getUsersBuilderList() {
+ return getUsersFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.WsUsersResponse.User, org.sonarqube.ws.WsPermissions.WsUsersResponse.User.Builder, org.sonarqube.ws.WsPermissions.WsUsersResponse.UserOrBuilder>
+ getUsersFieldBuilder() {
+ if (usersBuilder_ == null) {
+ usersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.WsUsersResponse.User, org.sonarqube.ws.WsPermissions.WsUsersResponse.User.Builder, org.sonarqube.ws.WsPermissions.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.WsPermissions.WsUsersResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.WsUsersResponse();
+ }
+
+ public static org.sonarqube.ws.WsPermissions.WsUsersResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<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.WsPermissions.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.WsPermissions.WsGroupsResponse.Group>
+ getGroupsList();
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ */
+ org.sonarqube.ws.WsPermissions.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.WsPermissions.WsGroupsResponse.GroupOrBuilder>
+ getGroupsOrBuilderList();
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ */
+ org.sonarqube.ws.WsPermissions.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.WsPermissions.WsGroupsResponse.Group>();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ groups_.add(input.readMessage(org.sonarqube.ws.WsPermissions.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.WsPermissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.WsGroupsResponse.class, org.sonarqube.ws.WsPermissions.WsGroupsResponse.Builder.class);
+ }
+
+ 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.WsPermissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group.class, org.sonarqube.ws.WsPermissions.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.WsPermissions.WsGroupsResponse.Group parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.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.WsPermissions.WsGroupsResponse.Group parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.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.WsPermissions.WsGroupsResponse.Group parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.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.WsPermissions.WsGroupsResponse.Group parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.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.WsPermissions.WsGroupsResponse.Group parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.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.WsPermissions.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.WsPermissions.WsGroupsResponse.GroupOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group.class, org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.WsPermissions.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.WsPermissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_descriptor;
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group getDefaultInstanceForType() {
+ return org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group build() {
+ org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group buildPartial() {
+ org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group result = new org.sonarqube.ws.WsPermissions.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.WsPermissions.WsGroupsResponse.Group) {
+ return mergeFrom((org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group other) {
+ if (other == org.sonarqube.ws.WsPermissions.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.WsPermissions.WsGroupsResponse.Group parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.WsPermissions.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.WsPermissions.WsGroupsResponse.Group DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group();
+ }
+
+ public static org.sonarqube.ws.WsPermissions.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.WsPermissions.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.WsPermissions.WsGroupsResponse.Group> groups_;
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group> getGroupsList() {
+ return groups_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.WsPermissions.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.WsPermissions.WsGroupsResponse.Group getGroups(int index) {
+ return groups_.get(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.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.WsPermissions.WsGroupsResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.WsPermissions.WsGroupsResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.permissions.WsGroupsResponse}
+ *
+ * <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.WsPermissions.WsGroupsResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.WsGroupsResponse.class, org.sonarqube.ws.WsPermissions.WsGroupsResponse.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.WsPermissions.WsGroupsResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getPagingFieldBuilder();
+ getGroupsFieldBuilder();
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ if (pagingBuilder_ == null) {
+ paging_ = null;
+ } else {
+ pagingBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ if (groupsBuilder_ == null) {
+ groups_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ groupsBuilder_.clear();
+ }
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor;
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsGroupsResponse getDefaultInstanceForType() {
+ return org.sonarqube.ws.WsPermissions.WsGroupsResponse.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsGroupsResponse build() {
+ org.sonarqube.ws.WsPermissions.WsGroupsResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsGroupsResponse buildPartial() {
+ org.sonarqube.ws.WsPermissions.WsGroupsResponse result = new org.sonarqube.ws.WsPermissions.WsGroupsResponse(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ if (pagingBuilder_ == null) {
+ result.paging_ = paging_;
+ } else {
+ result.paging_ = pagingBuilder_.build();
+ }
+ if (groupsBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ groups_ = java.util.Collections.unmodifiableList(groups_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.groups_ = groups_;
+ } else {
+ result.groups_ = groupsBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.WsPermissions.WsGroupsResponse) {
+ return mergeFrom((org.sonarqube.ws.WsPermissions.WsGroupsResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.WsPermissions.WsGroupsResponse other) {
+ if (other == org.sonarqube.ws.WsPermissions.WsGroupsResponse.getDefaultInstance()) return this;
+ if (other.hasPaging()) {
+ mergePaging(other.getPaging());
+ }
+ if (groupsBuilder_ == null) {
+ if (!other.groups_.isEmpty()) {
+ if (groups_.isEmpty()) {
+ groups_ = other.groups_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureGroupsIsMutable();
+ groups_.addAll(other.groups_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.groups_.isEmpty()) {
+ if (groupsBuilder_.isEmpty()) {
+ groupsBuilder_.dispose();
+ groupsBuilder_ = null;
+ groups_ = other.groups_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ groupsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getGroupsFieldBuilder() : null;
+ } else {
+ groupsBuilder_.addAllMessages(other.groups_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.WsPermissions.WsGroupsResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.WsPermissions.WsGroupsResponse) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private org.sonarqube.ws.Common.Paging paging_ = null;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_;
+ /**
+ * <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.WsPermissions.WsGroupsResponse.Group> groups_ =
+ java.util.Collections.emptyList();
+ private void ensureGroupsIsMutable() {
+ if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ groups_ = new java.util.ArrayList<org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group>(groups_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group, org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group.Builder, org.sonarqube.ws.WsPermissions.WsGroupsResponse.GroupOrBuilder> groupsBuilder_;
+
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.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.WsPermissions.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.WsPermissions.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.WsPermissions.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.WsPermissions.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.WsPermissions.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.WsPermissions.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.WsPermissions.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.WsPermissions.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.WsPermissions.WsGroupsResponse.Group.Builder getGroupsBuilder(
+ int index) {
+ return getGroupsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.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.WsPermissions.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.WsPermissions.WsGroupsResponse.Group.Builder addGroupsBuilder() {
+ return getGroupsFieldBuilder().addBuilder(
+ org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group.Builder addGroupsBuilder(
+ int index) {
+ return getGroupsFieldBuilder().addBuilder(
+ index, org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group.Builder>
+ getGroupsBuilderList() {
+ return getGroupsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group, org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group.Builder, org.sonarqube.ws.WsPermissions.WsGroupsResponse.GroupOrBuilder>
+ getGroupsFieldBuilder() {
+ if (groupsBuilder_ == null) {
+ groupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group, org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group.Builder, org.sonarqube.ws.WsPermissions.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.WsPermissions.WsGroupsResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.WsGroupsResponse();
+ }
+
+ public static org.sonarqube.ws.WsPermissions.WsGroupsResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<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.WsPermissions.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.WsPermissions.internal_static_sonarqube_ws_permissions_Permission_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Permission_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.Permission.class, org.sonarqube.ws.WsPermissions.Permission.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int KEY_FIELD_NUMBER = 1;
+ private volatile java.lang.Object key_;
+ /**
+ * <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.WsPermissions.Permission parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.Permission parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.Permission parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.Permission parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.Permission parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.Permission parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.Permission parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.Permission parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.Permission parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.Permission parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.WsPermissions.Permission prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.permissions.Permission}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.Permission)
+ org.sonarqube.ws.WsPermissions.PermissionOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Permission_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Permission_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.Permission.class, org.sonarqube.ws.WsPermissions.Permission.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.WsPermissions.Permission.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ key_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ name_ = "";
+ bitField0_ = (bitField0_ & ~0x00000002);
+ description_ = "";
+ bitField0_ = (bitField0_ & ~0x00000004);
+ usersCount_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ groupsCount_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Permission_descriptor;
+ }
+
+ public org.sonarqube.ws.WsPermissions.Permission getDefaultInstanceForType() {
+ return org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.WsPermissions.Permission build() {
+ org.sonarqube.ws.WsPermissions.Permission result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.WsPermissions.Permission buildPartial() {
+ org.sonarqube.ws.WsPermissions.Permission result = new org.sonarqube.ws.WsPermissions.Permission(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.key_ = key_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.name_ = name_;
+ if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ to_bitField0_ |= 0x00000004;
+ }
+ result.description_ = description_;
+ if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ to_bitField0_ |= 0x00000008;
+ }
+ result.usersCount_ = usersCount_;
+ if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
+ to_bitField0_ |= 0x00000010;
+ }
+ result.groupsCount_ = groupsCount_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.WsPermissions.Permission) {
+ return mergeFrom((org.sonarqube.ws.WsPermissions.Permission)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.WsPermissions.Permission other) {
+ if (other == org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance()) return this;
+ if (other.hasKey()) {
+ bitField0_ |= 0x00000001;
+ key_ = other.key_;
+ onChanged();
+ }
+ if (other.hasName()) {
+ bitField0_ |= 0x00000002;
+ name_ = other.name_;
+ onChanged();
+ }
+ if (other.hasDescription()) {
+ bitField0_ |= 0x00000004;
+ description_ = other.description_;
+ onChanged();
+ }
+ if (other.hasUsersCount()) {
+ setUsersCount(other.getUsersCount());
+ }
+ if (other.hasGroupsCount()) {
+ setGroupsCount(other.getGroupsCount());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.WsPermissions.Permission parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.WsPermissions.Permission) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object key_ = "";
+ /**
+ * <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.WsPermissions.Permission DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.Permission();
+ }
+
+ public static org.sonarqube.ws.WsPermissions.Permission getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<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.WsPermissions.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.WsPermissions.Permission>
+ getPermissionsList();
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
+ */
+ org.sonarqube.ws.WsPermissions.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.WsPermissions.PermissionOrBuilder>
+ getPermissionsOrBuilderList();
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
+ */
+ org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse}
+ */
+ public static final class WsSearchGlobalPermissionsResponse extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse)
+ WsSearchGlobalPermissionsResponseOrBuilder {
+ // Use WsSearchGlobalPermissionsResponse.newBuilder() to construct.
+ private WsSearchGlobalPermissionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private WsSearchGlobalPermissionsResponse() {
+ permissions_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private WsSearchGlobalPermissionsResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ permissions_ = new java.util.ArrayList<org.sonarqube.ws.WsPermissions.Permission>();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ permissions_.add(input.readMessage(org.sonarqube.ws.WsPermissions.Permission.PARSER, extensionRegistry));
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ permissions_ = java.util.Collections.unmodifiableList(permissions_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse.class, org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse.Builder.class);
+ }
+
+ public static final int PERMISSIONS_FIELD_NUMBER = 1;
+ private java.util.List<org.sonarqube.ws.WsPermissions.Permission> permissions_;
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.Permission> getPermissionsList() {
+ return permissions_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.WsPermissions.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.WsPermissions.Permission getPermissions(int index) {
+ return permissions_.get(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder(
+ int index) {
+ return permissions_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < permissions_.size(); i++) {
+ output.writeMessage(1, permissions_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < permissions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, permissions_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse)
+ org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse.class, org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getPermissionsFieldBuilder();
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ if (permissionsBuilder_ == null) {
+ permissions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ permissionsBuilder_.clear();
+ }
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor;
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse getDefaultInstanceForType() {
+ return org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse build() {
+ org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse buildPartial() {
+ org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse result = new org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse(this);
+ int from_bitField0_ = bitField0_;
+ if (permissionsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ permissions_ = java.util.Collections.unmodifiableList(permissions_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.permissions_ = permissions_;
+ } else {
+ result.permissions_ = permissionsBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse) {
+ return mergeFrom((org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse other) {
+ if (other == org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse.getDefaultInstance()) return this;
+ if (permissionsBuilder_ == null) {
+ if (!other.permissions_.isEmpty()) {
+ if (permissions_.isEmpty()) {
+ permissions_ = other.permissions_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensurePermissionsIsMutable();
+ permissions_.addAll(other.permissions_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.permissions_.isEmpty()) {
+ if (permissionsBuilder_.isEmpty()) {
+ permissionsBuilder_.dispose();
+ permissionsBuilder_ = null;
+ permissions_ = other.permissions_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ permissionsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getPermissionsFieldBuilder() : null;
+ } else {
+ permissionsBuilder_.addAllMessages(other.permissions_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List<org.sonarqube.ws.WsPermissions.Permission> permissions_ =
+ java.util.Collections.emptyList();
+ private void ensurePermissionsIsMutable() {
+ if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ permissions_ = new java.util.ArrayList<org.sonarqube.ws.WsPermissions.Permission>(permissions_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder> permissionsBuilder_;
+
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.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.WsPermissions.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.WsPermissions.Permission value) {
+ if (permissionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePermissionsIsMutable();
+ permissions_.set(index, value);
+ onChanged();
+ } else {
+ permissionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
+ */
+ public Builder setPermissions(
+ int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) {
+ if (permissionsBuilder_ == null) {
+ ensurePermissionsIsMutable();
+ permissions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ permissionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
+ */
+ public Builder addPermissions(org.sonarqube.ws.WsPermissions.Permission value) {
+ if (permissionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePermissionsIsMutable();
+ permissions_.add(value);
+ onChanged();
+ } else {
+ permissionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
+ */
+ public Builder addPermissions(
+ int index, org.sonarqube.ws.WsPermissions.Permission value) {
+ if (permissionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePermissionsIsMutable();
+ permissions_.add(index, value);
+ onChanged();
+ } else {
+ permissionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
+ */
+ public Builder addPermissions(
+ org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) {
+ if (permissionsBuilder_ == null) {
+ ensurePermissionsIsMutable();
+ permissions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ permissionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
+ */
+ public Builder addPermissions(
+ int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) {
+ if (permissionsBuilder_ == null) {
+ ensurePermissionsIsMutable();
+ permissions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ permissionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
+ */
+ public Builder addAllPermissions(
+ java.lang.Iterable<? extends org.sonarqube.ws.WsPermissions.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.WsPermissions.Permission.Builder getPermissionsBuilder(
+ int index) {
+ return getPermissionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.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.WsPermissions.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.WsPermissions.Permission.Builder addPermissionsBuilder() {
+ return getPermissionsFieldBuilder().addBuilder(
+ org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder(
+ int index) {
+ return getPermissionsFieldBuilder().addBuilder(
+ index, org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.Permission.Builder>
+ getPermissionsBuilderList() {
+ return getPermissionsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder>
+ getPermissionsFieldBuilder() {
+ if (permissionsBuilder_ == null) {
+ permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder>(
+ permissions_,
+ ((bitField0_ & 0x00000001) == 0x00000001),
+ getParentForChildren(),
+ isClean());
+ permissions_ = null;
+ }
+ return permissionsBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse)
+ private static final org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse();
+ }
+
+ public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<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.WsPermissions.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.WsPermissions.WsSearchProjectPermissionsResponse.Project>
+ getProjectsList();
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
+ */
+ org.sonarqube.ws.WsPermissions.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.WsPermissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder>
+ getProjectsOrBuilderList();
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
+ */
+ org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder getProjectsOrBuilder(
+ int index);
+
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ java.util.List<org.sonarqube.ws.WsPermissions.Permission>
+ getPermissionsList();
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ org.sonarqube.ws.WsPermissions.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.WsPermissions.PermissionOrBuilder>
+ getPermissionsOrBuilderList();
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.permissions.WsSearchProjectPermissionsResponse}
+ */
+ public static final class WsSearchProjectPermissionsResponse extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse)
+ WsSearchProjectPermissionsResponseOrBuilder {
+ // Use WsSearchProjectPermissionsResponse.newBuilder() to construct.
+ private WsSearchProjectPermissionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private WsSearchProjectPermissionsResponse() {
+ projects_ = java.util.Collections.emptyList();
+ permissions_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private WsSearchProjectPermissionsResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ org.sonarqube.ws.Common.Paging.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ subBuilder = paging_.toBuilder();
+ }
+ paging_ = input.readMessage(org.sonarqube.ws.Common.Paging.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(paging_);
+ paging_ = subBuilder.buildPartial();
+ }
+ bitField0_ |= 0x00000001;
+ break;
+ }
+ case 18: {
+ if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ projects_ = new java.util.ArrayList<org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project>();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ projects_.add(input.readMessage(org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.PARSER, extensionRegistry));
+ break;
+ }
+ case 26: {
+ if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
+ permissions_ = new java.util.ArrayList<org.sonarqube.ws.WsPermissions.Permission>();
+ mutable_bitField0_ |= 0x00000004;
+ }
+ permissions_.add(input.readMessage(org.sonarqube.ws.WsPermissions.Permission.PARSER, extensionRegistry));
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ projects_ = java.util.Collections.unmodifiableList(projects_);
+ }
+ if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
+ permissions_ = java.util.Collections.unmodifiableList(permissions_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.class, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Builder.class);
+ }
+
+ public interface ProjectOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <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.WsPermissions.Permission>
+ getPermissionsList();
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
+ */
+ org.sonarqube.ws.WsPermissions.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.WsPermissions.PermissionOrBuilder>
+ getPermissionsOrBuilderList();
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
+ */
+ org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project}
+ */
+ public static final class Project extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project)
+ ProjectOrBuilder {
+ // Use Project.newBuilder() to construct.
+ private Project(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private Project() {
+ id_ = "";
+ key_ = "";
+ qualifier_ = "";
+ name_ = "";
+ permissions_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Project(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000001;
+ id_ = bs;
+ break;
+ }
+ case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000002;
+ key_ = bs;
+ break;
+ }
+ case 26: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000004;
+ qualifier_ = bs;
+ break;
+ }
+ case 34: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000008;
+ name_ = bs;
+ break;
+ }
+ case 42: {
+ if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
+ permissions_ = new java.util.ArrayList<org.sonarqube.ws.WsPermissions.Permission>();
+ mutable_bitField0_ |= 0x00000010;
+ }
+ permissions_.add(input.readMessage(org.sonarqube.ws.WsPermissions.Permission.PARSER, extensionRegistry));
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
+ permissions_ = java.util.Collections.unmodifiableList(permissions_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.class, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int ID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object id_;
+ /**
+ * <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.WsPermissions.Permission> permissions_;
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.Permission> getPermissionsList() {
+ return permissions_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.WsPermissions.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.WsPermissions.Permission getPermissions(int index) {
+ return permissions_.get(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder(
+ int index) {
+ return permissions_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getIdBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeBytes(2, getKeyBytes());
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeBytes(3, getQualifierBytes());
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ output.writeBytes(4, getNameBytes());
+ }
+ for (int i = 0; i < permissions_.size(); i++) {
+ output.writeMessage(5, permissions_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(1, getIdBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(2, getKeyBytes());
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(3, getQualifierBytes());
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(4, getNameBytes());
+ }
+ for (int i = 0; i < permissions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(5, permissions_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project)
+ org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.class, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getPermissionsFieldBuilder();
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ id_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ key_ = "";
+ bitField0_ = (bitField0_ & ~0x00000002);
+ qualifier_ = "";
+ bitField0_ = (bitField0_ & ~0x00000004);
+ name_ = "";
+ bitField0_ = (bitField0_ & ~0x00000008);
+ if (permissionsBuilder_ == null) {
+ permissions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ } else {
+ permissionsBuilder_.clear();
+ }
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_descriptor;
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project getDefaultInstanceForType() {
+ return org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project build() {
+ org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project buildPartial() {
+ org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project result = new org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.id_ = id_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.key_ = key_;
+ if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ to_bitField0_ |= 0x00000004;
+ }
+ result.qualifier_ = qualifier_;
+ if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ to_bitField0_ |= 0x00000008;
+ }
+ result.name_ = name_;
+ if (permissionsBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ permissions_ = java.util.Collections.unmodifiableList(permissions_);
+ bitField0_ = (bitField0_ & ~0x00000010);
+ }
+ result.permissions_ = permissions_;
+ } else {
+ result.permissions_ = permissionsBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project) {
+ return mergeFrom((org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project other) {
+ if (other == org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.getDefaultInstance()) return this;
+ if (other.hasId()) {
+ bitField0_ |= 0x00000001;
+ id_ = other.id_;
+ onChanged();
+ }
+ if (other.hasKey()) {
+ bitField0_ |= 0x00000002;
+ key_ = other.key_;
+ onChanged();
+ }
+ if (other.hasQualifier()) {
+ bitField0_ |= 0x00000004;
+ qualifier_ = other.qualifier_;
+ onChanged();
+ }
+ if (other.hasName()) {
+ bitField0_ |= 0x00000008;
+ name_ = other.name_;
+ onChanged();
+ }
+ if (permissionsBuilder_ == null) {
+ if (!other.permissions_.isEmpty()) {
+ if (permissions_.isEmpty()) {
+ permissions_ = other.permissions_;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ } else {
+ ensurePermissionsIsMutable();
+ permissions_.addAll(other.permissions_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.permissions_.isEmpty()) {
+ if (permissionsBuilder_.isEmpty()) {
+ permissionsBuilder_.dispose();
+ permissionsBuilder_ = null;
+ permissions_ = other.permissions_;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ permissionsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getPermissionsFieldBuilder() : null;
+ } else {
+ permissionsBuilder_.addAllMessages(other.permissions_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object id_ = "";
+ /**
+ * <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.WsPermissions.Permission> permissions_ =
+ java.util.Collections.emptyList();
+ private void ensurePermissionsIsMutable() {
+ if (!((bitField0_ & 0x00000010) == 0x00000010)) {
+ permissions_ = new java.util.ArrayList<org.sonarqube.ws.WsPermissions.Permission>(permissions_);
+ bitField0_ |= 0x00000010;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder> permissionsBuilder_;
+
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.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.WsPermissions.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.WsPermissions.Permission value) {
+ if (permissionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePermissionsIsMutable();
+ permissions_.set(index, value);
+ onChanged();
+ } else {
+ permissionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
+ */
+ public Builder setPermissions(
+ int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) {
+ if (permissionsBuilder_ == null) {
+ ensurePermissionsIsMutable();
+ permissions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ permissionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
+ */
+ public Builder addPermissions(org.sonarqube.ws.WsPermissions.Permission value) {
+ if (permissionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePermissionsIsMutable();
+ permissions_.add(value);
+ onChanged();
+ } else {
+ permissionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
+ */
+ public Builder addPermissions(
+ int index, org.sonarqube.ws.WsPermissions.Permission value) {
+ if (permissionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePermissionsIsMutable();
+ permissions_.add(index, value);
+ onChanged();
+ } else {
+ permissionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
+ */
+ public Builder addPermissions(
+ org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) {
+ if (permissionsBuilder_ == null) {
+ ensurePermissionsIsMutable();
+ permissions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ permissionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
+ */
+ public Builder addPermissions(
+ int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) {
+ if (permissionsBuilder_ == null) {
+ ensurePermissionsIsMutable();
+ permissions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ permissionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
+ */
+ public Builder addAllPermissions(
+ java.lang.Iterable<? extends org.sonarqube.ws.WsPermissions.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.WsPermissions.Permission.Builder getPermissionsBuilder(
+ int index) {
+ return getPermissionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.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.WsPermissions.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.WsPermissions.Permission.Builder addPermissionsBuilder() {
+ return getPermissionsFieldBuilder().addBuilder(
+ org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder(
+ int index) {
+ return getPermissionsFieldBuilder().addBuilder(
+ index, org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.Permission.Builder>
+ getPermissionsBuilderList() {
+ return getPermissionsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder>
+ getPermissionsFieldBuilder() {
+ if (permissionsBuilder_ == null) {
+ permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder>(
+ permissions_,
+ ((bitField0_ & 0x00000010) == 0x00000010),
+ getParentForChildren(),
+ isClean());
+ permissions_ = null;
+ }
+ return permissionsBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project)
+ }
+
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project)
+ private static final org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project();
+ }
+
+ public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<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.WsPermissions.WsSearchProjectPermissionsResponse.Project getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private int bitField0_;
+ public static final int PAGING_FIELD_NUMBER = 1;
+ private org.sonarqube.ws.Common.Paging paging_;
+ /**
+ * <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.WsPermissions.WsSearchProjectPermissionsResponse.Project> projects_;
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project> getProjectsList() {
+ return projects_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.WsPermissions.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.WsPermissions.WsSearchProjectPermissionsResponse.Project getProjects(int index) {
+ return projects_.get(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder getProjectsOrBuilder(
+ int index) {
+ return projects_.get(index);
+ }
+
+ public static final int PERMISSIONS_FIELD_NUMBER = 3;
+ private java.util.List<org.sonarqube.ws.WsPermissions.Permission> permissions_;
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.Permission> getPermissionsList() {
+ return permissions_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.WsPermissions.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.WsPermissions.Permission getPermissions(int index) {
+ return permissions_.get(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder(
+ int index) {
+ return permissions_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeMessage(1, getPaging());
+ }
+ for (int i = 0; i < projects_.size(); i++) {
+ output.writeMessage(2, projects_.get(i));
+ }
+ for (int i = 0; i < permissions_.size(); i++) {
+ output.writeMessage(3, permissions_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getPaging());
+ }
+ for (int i = 0; i < projects_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, projects_.get(i));
+ }
+ for (int i = 0; i < permissions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, permissions_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.permissions.WsSearchProjectPermissionsResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse)
+ org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.class, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getPagingFieldBuilder();
+ getProjectsFieldBuilder();
+ getPermissionsFieldBuilder();
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ if (pagingBuilder_ == null) {
+ paging_ = null;
+ } else {
+ pagingBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ if (projectsBuilder_ == null) {
+ projects_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ projectsBuilder_.clear();
+ }
+ if (permissionsBuilder_ == null) {
+ permissions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ permissionsBuilder_.clear();
+ }
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor;
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse getDefaultInstanceForType() {
+ return org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse build() {
+ org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse buildPartial() {
+ org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse result = new org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ if (pagingBuilder_ == null) {
+ result.paging_ = paging_;
+ } else {
+ result.paging_ = pagingBuilder_.build();
+ }
+ if (projectsBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ projects_ = java.util.Collections.unmodifiableList(projects_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.projects_ = projects_;
+ } else {
+ result.projects_ = projectsBuilder_.build();
+ }
+ if (permissionsBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ permissions_ = java.util.Collections.unmodifiableList(permissions_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.permissions_ = permissions_;
+ } else {
+ result.permissions_ = permissionsBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse) {
+ return mergeFrom((org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse other) {
+ if (other == org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.getDefaultInstance()) return this;
+ if (other.hasPaging()) {
+ mergePaging(other.getPaging());
+ }
+ if (projectsBuilder_ == null) {
+ if (!other.projects_.isEmpty()) {
+ if (projects_.isEmpty()) {
+ projects_ = other.projects_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureProjectsIsMutable();
+ projects_.addAll(other.projects_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.projects_.isEmpty()) {
+ if (projectsBuilder_.isEmpty()) {
+ projectsBuilder_.dispose();
+ projectsBuilder_ = null;
+ projects_ = other.projects_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ projectsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getProjectsFieldBuilder() : null;
+ } else {
+ projectsBuilder_.addAllMessages(other.projects_);
+ }
+ }
+ }
+ if (permissionsBuilder_ == null) {
+ if (!other.permissions_.isEmpty()) {
+ if (permissions_.isEmpty()) {
+ permissions_ = other.permissions_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensurePermissionsIsMutable();
+ permissions_.addAll(other.permissions_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.permissions_.isEmpty()) {
+ if (permissionsBuilder_.isEmpty()) {
+ permissionsBuilder_.dispose();
+ permissionsBuilder_ = null;
+ permissions_ = other.permissions_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ permissionsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getPermissionsFieldBuilder() : null;
+ } else {
+ permissionsBuilder_.addAllMessages(other.permissions_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private org.sonarqube.ws.Common.Paging paging_ = null;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_;
+ /**
+ * <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.WsPermissions.WsSearchProjectPermissionsResponse.Project> projects_ =
+ java.util.Collections.emptyList();
+ private void ensureProjectsIsMutable() {
+ if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ projects_ = new java.util.ArrayList<org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project>(projects_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.Builder, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder> projectsBuilder_;
+
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.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.WsPermissions.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.WsPermissions.WsSearchProjectPermissionsResponse.Project value) {
+ if (projectsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureProjectsIsMutable();
+ projects_.set(index, value);
+ onChanged();
+ } else {
+ projectsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
+ */
+ public Builder setProjects(
+ int index, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.Builder builderForValue) {
+ if (projectsBuilder_ == null) {
+ ensureProjectsIsMutable();
+ projects_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ projectsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
+ */
+ public Builder addProjects(org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project value) {
+ if (projectsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureProjectsIsMutable();
+ projects_.add(value);
+ onChanged();
+ } else {
+ projectsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
+ */
+ public Builder addProjects(
+ int index, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project value) {
+ if (projectsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureProjectsIsMutable();
+ projects_.add(index, value);
+ onChanged();
+ } else {
+ projectsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
+ */
+ public Builder addProjects(
+ org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.Builder builderForValue) {
+ if (projectsBuilder_ == null) {
+ ensureProjectsIsMutable();
+ projects_.add(builderForValue.build());
+ onChanged();
+ } else {
+ projectsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
+ */
+ public Builder addProjects(
+ int index, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.Builder builderForValue) {
+ if (projectsBuilder_ == null) {
+ ensureProjectsIsMutable();
+ projects_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ projectsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
+ */
+ public Builder addAllProjects(
+ java.lang.Iterable<? extends org.sonarqube.ws.WsPermissions.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.WsPermissions.WsSearchProjectPermissionsResponse.Project.Builder getProjectsBuilder(
+ int index) {
+ return getProjectsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.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.WsPermissions.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.WsPermissions.WsSearchProjectPermissionsResponse.Project.Builder addProjectsBuilder() {
+ return getProjectsFieldBuilder().addBuilder(
+ org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.Builder addProjectsBuilder(
+ int index) {
+ return getProjectsFieldBuilder().addBuilder(
+ index, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.Builder>
+ getProjectsBuilderList() {
+ return getProjectsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.Builder, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder>
+ getProjectsFieldBuilder() {
+ if (projectsBuilder_ == null) {
+ projectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.Builder, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder>(
+ projects_,
+ ((bitField0_ & 0x00000002) == 0x00000002),
+ getParentForChildren(),
+ isClean());
+ projects_ = null;
+ }
+ return projectsBuilder_;
+ }
+
+ private java.util.List<org.sonarqube.ws.WsPermissions.Permission> permissions_ =
+ java.util.Collections.emptyList();
+ private void ensurePermissionsIsMutable() {
+ if (!((bitField0_ & 0x00000004) == 0x00000004)) {
+ permissions_ = new java.util.ArrayList<org.sonarqube.ws.WsPermissions.Permission>(permissions_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder> permissionsBuilder_;
+
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.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.WsPermissions.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.WsPermissions.Permission value) {
+ if (permissionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePermissionsIsMutable();
+ permissions_.set(index, value);
+ onChanged();
+ } else {
+ permissionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public Builder setPermissions(
+ int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) {
+ if (permissionsBuilder_ == null) {
+ ensurePermissionsIsMutable();
+ permissions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ permissionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public Builder addPermissions(org.sonarqube.ws.WsPermissions.Permission value) {
+ if (permissionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePermissionsIsMutable();
+ permissions_.add(value);
+ onChanged();
+ } else {
+ permissionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public Builder addPermissions(
+ int index, org.sonarqube.ws.WsPermissions.Permission value) {
+ if (permissionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePermissionsIsMutable();
+ permissions_.add(index, value);
+ onChanged();
+ } else {
+ permissionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public Builder addPermissions(
+ org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) {
+ if (permissionsBuilder_ == null) {
+ ensurePermissionsIsMutable();
+ permissions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ permissionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public Builder addPermissions(
+ int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) {
+ if (permissionsBuilder_ == null) {
+ ensurePermissionsIsMutable();
+ permissions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ permissionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public Builder addAllPermissions(
+ java.lang.Iterable<? extends org.sonarqube.ws.WsPermissions.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.WsPermissions.Permission.Builder getPermissionsBuilder(
+ int index) {
+ return getPermissionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.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.WsPermissions.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.WsPermissions.Permission.Builder addPermissionsBuilder() {
+ return getPermissionsFieldBuilder().addBuilder(
+ org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder(
+ int index) {
+ return getPermissionsFieldBuilder().addBuilder(
+ index, org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.Permission.Builder>
+ getPermissionsBuilderList() {
+ return getPermissionsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder>
+ getPermissionsFieldBuilder() {
+ if (permissionsBuilder_ == null) {
+ permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder>(
+ permissions_,
+ ((bitField0_ & 0x00000004) == 0x00000004),
+ getParentForChildren(),
+ isClean());
+ permissions_ = null;
+ }
+ return permissionsBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse)
+ private static final org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse();
+ }
+
+ public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<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.WsPermissions.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>repeated .sonarqube.ws.permissions.Permission permissions = 7;</code>
+ */
+ java.util.List<org.sonarqube.ws.WsPermissions.Permission>
+ getPermissionsList();
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 7;</code>
+ */
+ org.sonarqube.ws.WsPermissions.Permission getPermissions(int index);
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 7;</code>
+ */
+ int getPermissionsCount();
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 7;</code>
+ */
+ java.util.List<? extends org.sonarqube.ws.WsPermissions.PermissionOrBuilder>
+ getPermissionsOrBuilderList();
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 7;</code>
+ */
+ org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.permissions.PermissionTemplate}
+ */
+ public static final class PermissionTemplate extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.PermissionTemplate)
+ PermissionTemplateOrBuilder {
+ // Use PermissionTemplate.newBuilder() to construct.
+ private PermissionTemplate(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private PermissionTemplate() {
+ id_ = "";
+ name_ = "";
+ description_ = "";
+ projectKeyPattern_ = "";
+ createdAt_ = "";
+ updatedAt_ = "";
+ permissions_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private PermissionTemplate(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000001;
+ id_ = bs;
+ break;
+ }
+ case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000002;
+ name_ = bs;
+ break;
+ }
+ case 26: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000004;
+ description_ = bs;
+ break;
+ }
+ case 34: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000008;
+ projectKeyPattern_ = bs;
+ break;
+ }
+ case 42: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000010;
+ createdAt_ = bs;
+ break;
+ }
+ case 50: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000020;
+ updatedAt_ = bs;
+ break;
+ }
+ case 58: {
+ if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
+ permissions_ = new java.util.ArrayList<org.sonarqube.ws.WsPermissions.Permission>();
+ mutable_bitField0_ |= 0x00000040;
+ }
+ permissions_.add(input.readMessage(org.sonarqube.ws.WsPermissions.Permission.PARSER, extensionRegistry));
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
+ permissions_ = java.util.Collections.unmodifiableList(permissions_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.PermissionTemplate.class, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int ID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object id_;
+ /**
+ * <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 PERMISSIONS_FIELD_NUMBER = 7;
+ private java.util.List<org.sonarqube.ws.WsPermissions.Permission> permissions_;
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 7;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.Permission> getPermissionsList() {
+ return permissions_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 7;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.WsPermissions.PermissionOrBuilder>
+ getPermissionsOrBuilderList() {
+ return permissions_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 7;</code>
+ */
+ public int getPermissionsCount() {
+ return permissions_.size();
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 7;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.Permission getPermissions(int index) {
+ return permissions_.get(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 7;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder(
+ int index) {
+ return permissions_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getIdBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeBytes(2, getNameBytes());
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeBytes(3, getDescriptionBytes());
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ output.writeBytes(4, getProjectKeyPatternBytes());
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ output.writeBytes(5, getCreatedAtBytes());
+ }
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ output.writeBytes(6, getUpdatedAtBytes());
+ }
+ for (int i = 0; i < permissions_.size(); i++) {
+ output.writeMessage(7, permissions_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(1, getIdBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(2, getNameBytes());
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(3, getDescriptionBytes());
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(4, getProjectKeyPatternBytes());
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(5, getCreatedAtBytes());
+ }
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(6, getUpdatedAtBytes());
+ }
+ for (int i = 0; i < permissions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(7, permissions_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.WsPermissions.PermissionTemplate prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.permissions.PermissionTemplate}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.PermissionTemplate)
+ org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.PermissionTemplate.class, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.WsPermissions.PermissionTemplate.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getPermissionsFieldBuilder();
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ id_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ name_ = "";
+ bitField0_ = (bitField0_ & ~0x00000002);
+ description_ = "";
+ bitField0_ = (bitField0_ & ~0x00000004);
+ projectKeyPattern_ = "";
+ bitField0_ = (bitField0_ & ~0x00000008);
+ createdAt_ = "";
+ bitField0_ = (bitField0_ & ~0x00000010);
+ updatedAt_ = "";
+ bitField0_ = (bitField0_ & ~0x00000020);
+ if (permissionsBuilder_ == null) {
+ permissions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ } else {
+ permissionsBuilder_.clear();
+ }
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor;
+ }
+
+ public org.sonarqube.ws.WsPermissions.PermissionTemplate getDefaultInstanceForType() {
+ return org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.WsPermissions.PermissionTemplate build() {
+ org.sonarqube.ws.WsPermissions.PermissionTemplate result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.WsPermissions.PermissionTemplate buildPartial() {
+ org.sonarqube.ws.WsPermissions.PermissionTemplate result = new org.sonarqube.ws.WsPermissions.PermissionTemplate(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.id_ = id_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.name_ = name_;
+ if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ to_bitField0_ |= 0x00000004;
+ }
+ result.description_ = description_;
+ if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ to_bitField0_ |= 0x00000008;
+ }
+ result.projectKeyPattern_ = projectKeyPattern_;
+ if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
+ to_bitField0_ |= 0x00000010;
+ }
+ result.createdAt_ = createdAt_;
+ if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
+ to_bitField0_ |= 0x00000020;
+ }
+ result.updatedAt_ = updatedAt_;
+ if (permissionsBuilder_ == null) {
+ if (((bitField0_ & 0x00000040) == 0x00000040)) {
+ permissions_ = java.util.Collections.unmodifiableList(permissions_);
+ bitField0_ = (bitField0_ & ~0x00000040);
+ }
+ result.permissions_ = permissions_;
+ } else {
+ result.permissions_ = permissionsBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.WsPermissions.PermissionTemplate) {
+ return mergeFrom((org.sonarqube.ws.WsPermissions.PermissionTemplate)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.WsPermissions.PermissionTemplate other) {
+ if (other == org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance()) return this;
+ if (other.hasId()) {
+ bitField0_ |= 0x00000001;
+ id_ = other.id_;
+ onChanged();
+ }
+ if (other.hasName()) {
+ bitField0_ |= 0x00000002;
+ name_ = other.name_;
+ onChanged();
+ }
+ if (other.hasDescription()) {
+ bitField0_ |= 0x00000004;
+ description_ = other.description_;
+ onChanged();
+ }
+ if (other.hasProjectKeyPattern()) {
+ bitField0_ |= 0x00000008;
+ projectKeyPattern_ = other.projectKeyPattern_;
+ onChanged();
+ }
+ if (other.hasCreatedAt()) {
+ bitField0_ |= 0x00000010;
+ createdAt_ = other.createdAt_;
+ onChanged();
+ }
+ if (other.hasUpdatedAt()) {
+ bitField0_ |= 0x00000020;
+ updatedAt_ = other.updatedAt_;
+ onChanged();
+ }
+ if (permissionsBuilder_ == null) {
+ if (!other.permissions_.isEmpty()) {
+ if (permissions_.isEmpty()) {
+ permissions_ = other.permissions_;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ } else {
+ ensurePermissionsIsMutable();
+ permissions_.addAll(other.permissions_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.permissions_.isEmpty()) {
+ if (permissionsBuilder_.isEmpty()) {
+ permissionsBuilder_.dispose();
+ permissionsBuilder_ = null;
+ permissions_ = other.permissions_;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ permissionsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getPermissionsFieldBuilder() : null;
+ } else {
+ permissionsBuilder_.addAllMessages(other.permissions_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.WsPermissions.PermissionTemplate parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.WsPermissions.PermissionTemplate) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object id_ = "";
+ /**
+ * <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 java.util.List<org.sonarqube.ws.WsPermissions.Permission> permissions_ =
+ java.util.Collections.emptyList();
+ private void ensurePermissionsIsMutable() {
+ if (!((bitField0_ & 0x00000040) == 0x00000040)) {
+ permissions_ = new java.util.ArrayList<org.sonarqube.ws.WsPermissions.Permission>(permissions_);
+ bitField0_ |= 0x00000040;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder> permissionsBuilder_;
+
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 7;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.Permission> getPermissionsList() {
+ if (permissionsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(permissions_);
+ } else {
+ return permissionsBuilder_.getMessageList();
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 7;</code>
+ */
+ public int getPermissionsCount() {
+ if (permissionsBuilder_ == null) {
+ return permissions_.size();
+ } else {
+ return permissionsBuilder_.getCount();
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 7;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.Permission getPermissions(int index) {
+ if (permissionsBuilder_ == null) {
+ return permissions_.get(index);
+ } else {
+ return permissionsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 7;</code>
+ */
+ public Builder setPermissions(
+ int index, org.sonarqube.ws.WsPermissions.Permission value) {
+ if (permissionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePermissionsIsMutable();
+ permissions_.set(index, value);
+ onChanged();
+ } else {
+ permissionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 7;</code>
+ */
+ public Builder setPermissions(
+ int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) {
+ if (permissionsBuilder_ == null) {
+ ensurePermissionsIsMutable();
+ permissions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ permissionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 7;</code>
+ */
+ public Builder addPermissions(org.sonarqube.ws.WsPermissions.Permission value) {
+ if (permissionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePermissionsIsMutable();
+ permissions_.add(value);
+ onChanged();
+ } else {
+ permissionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 7;</code>
+ */
+ public Builder addPermissions(
+ int index, org.sonarqube.ws.WsPermissions.Permission value) {
+ if (permissionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePermissionsIsMutable();
+ permissions_.add(index, value);
+ onChanged();
+ } else {
+ permissionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 7;</code>
+ */
+ public Builder addPermissions(
+ org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) {
+ if (permissionsBuilder_ == null) {
+ ensurePermissionsIsMutable();
+ permissions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ permissionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 7;</code>
+ */
+ public Builder addPermissions(
+ int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) {
+ if (permissionsBuilder_ == null) {
+ ensurePermissionsIsMutable();
+ permissions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ permissionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 7;</code>
+ */
+ public Builder addAllPermissions(
+ java.lang.Iterable<? extends org.sonarqube.ws.WsPermissions.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 = 7;</code>
+ */
+ public Builder clearPermissions() {
+ if (permissionsBuilder_ == null) {
+ permissions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ } else {
+ permissionsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 7;</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 = 7;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.Permission.Builder getPermissionsBuilder(
+ int index) {
+ return getPermissionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 7;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder(
+ int index) {
+ if (permissionsBuilder_ == null) {
+ return permissions_.get(index); } else {
+ return permissionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 7;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.WsPermissions.PermissionOrBuilder>
+ getPermissionsOrBuilderList() {
+ if (permissionsBuilder_ != null) {
+ return permissionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(permissions_);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 7;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder() {
+ return getPermissionsFieldBuilder().addBuilder(
+ org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 7;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder(
+ int index) {
+ return getPermissionsFieldBuilder().addBuilder(
+ index, org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 7;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.Permission.Builder>
+ getPermissionsBuilderList() {
+ return getPermissionsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder>
+ getPermissionsFieldBuilder() {
+ if (permissionsBuilder_ == null) {
+ permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder>(
+ permissions_,
+ ((bitField0_ & 0x00000040) == 0x00000040),
+ getParentForChildren(),
+ isClean());
+ permissions_ = null;
+ }
+ return permissionsBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.PermissionTemplate)
+ }
+
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.PermissionTemplate)
+ private static final org.sonarqube.ws.WsPermissions.PermissionTemplate DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.PermissionTemplate();
+ }
+
+ public static org.sonarqube.ws.WsPermissions.PermissionTemplate getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<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.WsPermissions.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.WsPermissions.PermissionTemplate getPermissionTemplate();
+ /**
+ * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
+ */
+ org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder();
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.permissions.WsCreatePermissionTemplateResponse}
+ */
+ public static final class WsCreatePermissionTemplateResponse extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsCreatePermissionTemplateResponse)
+ WsCreatePermissionTemplateResponseOrBuilder {
+ // Use WsCreatePermissionTemplateResponse.newBuilder() to construct.
+ private WsCreatePermissionTemplateResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private WsCreatePermissionTemplateResponse() {
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private WsCreatePermissionTemplateResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ subBuilder = permissionTemplate_.toBuilder();
+ }
+ permissionTemplate_ = input.readMessage(org.sonarqube.ws.WsPermissions.PermissionTemplate.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(permissionTemplate_);
+ permissionTemplate_ = subBuilder.buildPartial();
+ }
+ bitField0_ |= 0x00000001;
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse.class, org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int PERMISSIONTEMPLATE_FIELD_NUMBER = 1;
+ private org.sonarqube.ws.WsPermissions.PermissionTemplate permissionTemplate_;
+ /**
+ * <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.WsPermissions.PermissionTemplate getPermissionTemplate() {
+ return permissionTemplate_ == null ? org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_;
+ }
+ /**
+ * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder() {
+ return permissionTemplate_ == null ? org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeMessage(1, getPermissionTemplate());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getPermissionTemplate());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.permissions.WsCreatePermissionTemplateResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsCreatePermissionTemplateResponse)
+ org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse.class, org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getPermissionTemplateFieldBuilder();
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ if (permissionTemplateBuilder_ == null) {
+ permissionTemplate_ = null;
+ } else {
+ permissionTemplateBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_descriptor;
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse getDefaultInstanceForType() {
+ return org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse build() {
+ org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse buildPartial() {
+ org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse result = new org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ if (permissionTemplateBuilder_ == null) {
+ result.permissionTemplate_ = permissionTemplate_;
+ } else {
+ result.permissionTemplate_ = permissionTemplateBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse) {
+ return mergeFrom((org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse other) {
+ if (other == org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse.getDefaultInstance()) return this;
+ if (other.hasPermissionTemplate()) {
+ mergePermissionTemplate(other.getPermissionTemplate());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private org.sonarqube.ws.WsPermissions.PermissionTemplate permissionTemplate_ = null;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder> permissionTemplateBuilder_;
+ /**
+ * <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.WsPermissions.PermissionTemplate getPermissionTemplate() {
+ if (permissionTemplateBuilder_ == null) {
+ return permissionTemplate_ == null ? org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_;
+ } else {
+ return permissionTemplateBuilder_.getMessage();
+ }
+ }
+ /**
+ * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
+ */
+ public Builder setPermissionTemplate(org.sonarqube.ws.WsPermissions.PermissionTemplate value) {
+ if (permissionTemplateBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ permissionTemplate_ = value;
+ onChanged();
+ } else {
+ permissionTemplateBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
+ */
+ public Builder setPermissionTemplate(
+ org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder builderForValue) {
+ if (permissionTemplateBuilder_ == null) {
+ permissionTemplate_ = builderForValue.build();
+ onChanged();
+ } else {
+ permissionTemplateBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
+ */
+ public Builder mergePermissionTemplate(org.sonarqube.ws.WsPermissions.PermissionTemplate value) {
+ if (permissionTemplateBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ permissionTemplate_ != null &&
+ permissionTemplate_ != org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance()) {
+ permissionTemplate_ =
+ org.sonarqube.ws.WsPermissions.PermissionTemplate.newBuilder(permissionTemplate_).mergeFrom(value).buildPartial();
+ } else {
+ permissionTemplate_ = value;
+ }
+ onChanged();
+ } else {
+ permissionTemplateBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * <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.WsPermissions.PermissionTemplate.Builder getPermissionTemplateBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getPermissionTemplateFieldBuilder().getBuilder();
+ }
+ /**
+ * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder() {
+ if (permissionTemplateBuilder_ != null) {
+ return permissionTemplateBuilder_.getMessageOrBuilder();
+ } else {
+ return permissionTemplate_ == null ?
+ org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_;
+ }
+ }
+ /**
+ * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder>
+ getPermissionTemplateFieldBuilder() {
+ if (permissionTemplateBuilder_ == null) {
+ permissionTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder>(
+ getPermissionTemplate(),
+ getParentForChildren(),
+ isClean());
+ permissionTemplate_ = null;
+ }
+ return permissionTemplateBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsCreatePermissionTemplateResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsCreatePermissionTemplateResponse)
+ private static final org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse();
+ }
+
+ public static org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<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.WsPermissions.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.WsPermissions.PermissionTemplate getPermissionTemplate();
+ /**
+ * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
+ */
+ org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder();
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse}
+ */
+ public static final class WsUpdatePermissionTemplateResponse extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse)
+ WsUpdatePermissionTemplateResponseOrBuilder {
+ // Use WsUpdatePermissionTemplateResponse.newBuilder() to construct.
+ private WsUpdatePermissionTemplateResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private WsUpdatePermissionTemplateResponse() {
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private WsUpdatePermissionTemplateResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ subBuilder = permissionTemplate_.toBuilder();
+ }
+ permissionTemplate_ = input.readMessage(org.sonarqube.ws.WsPermissions.PermissionTemplate.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(permissionTemplate_);
+ permissionTemplate_ = subBuilder.buildPartial();
+ }
+ bitField0_ |= 0x00000001;
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse.class, org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int PERMISSIONTEMPLATE_FIELD_NUMBER = 1;
+ private org.sonarqube.ws.WsPermissions.PermissionTemplate permissionTemplate_;
+ /**
+ * <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.WsPermissions.PermissionTemplate getPermissionTemplate() {
+ return permissionTemplate_ == null ? org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_;
+ }
+ /**
+ * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder() {
+ return permissionTemplate_ == null ? org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeMessage(1, getPermissionTemplate());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getPermissionTemplate());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse)
+ org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse.class, org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getPermissionTemplateFieldBuilder();
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ if (permissionTemplateBuilder_ == null) {
+ permissionTemplate_ = null;
+ } else {
+ permissionTemplateBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_descriptor;
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse getDefaultInstanceForType() {
+ return org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse build() {
+ org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse buildPartial() {
+ org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse result = new org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ if (permissionTemplateBuilder_ == null) {
+ result.permissionTemplate_ = permissionTemplate_;
+ } else {
+ result.permissionTemplate_ = permissionTemplateBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse) {
+ return mergeFrom((org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse other) {
+ if (other == org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse.getDefaultInstance()) return this;
+ if (other.hasPermissionTemplate()) {
+ mergePermissionTemplate(other.getPermissionTemplate());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private org.sonarqube.ws.WsPermissions.PermissionTemplate permissionTemplate_ = null;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder> permissionTemplateBuilder_;
+ /**
+ * <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.WsPermissions.PermissionTemplate getPermissionTemplate() {
+ if (permissionTemplateBuilder_ == null) {
+ return permissionTemplate_ == null ? org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_;
+ } else {
+ return permissionTemplateBuilder_.getMessage();
+ }
+ }
+ /**
+ * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
+ */
+ public Builder setPermissionTemplate(org.sonarqube.ws.WsPermissions.PermissionTemplate value) {
+ if (permissionTemplateBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ permissionTemplate_ = value;
+ onChanged();
+ } else {
+ permissionTemplateBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
+ */
+ public Builder setPermissionTemplate(
+ org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder builderForValue) {
+ if (permissionTemplateBuilder_ == null) {
+ permissionTemplate_ = builderForValue.build();
+ onChanged();
+ } else {
+ permissionTemplateBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
+ */
+ public Builder mergePermissionTemplate(org.sonarqube.ws.WsPermissions.PermissionTemplate value) {
+ if (permissionTemplateBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ permissionTemplate_ != null &&
+ permissionTemplate_ != org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance()) {
+ permissionTemplate_ =
+ org.sonarqube.ws.WsPermissions.PermissionTemplate.newBuilder(permissionTemplate_).mergeFrom(value).buildPartial();
+ } else {
+ permissionTemplate_ = value;
+ }
+ onChanged();
+ } else {
+ permissionTemplateBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * <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.WsPermissions.PermissionTemplate.Builder getPermissionTemplateBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getPermissionTemplateFieldBuilder().getBuilder();
+ }
+ /**
+ * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder() {
+ if (permissionTemplateBuilder_ != null) {
+ return permissionTemplateBuilder_.getMessageOrBuilder();
+ } else {
+ return permissionTemplate_ == null ?
+ org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_;
+ }
+ }
+ /**
+ * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder>
+ getPermissionTemplateFieldBuilder() {
+ if (permissionTemplateBuilder_ == null) {
+ permissionTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder>(
+ getPermissionTemplate(),
+ getParentForChildren(),
+ isClean());
+ permissionTemplate_ = null;
+ }
+ return permissionTemplateBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse)
+ private static final org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse();
+ }
+
+ public static org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<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.WsPermissions.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.WsPermissions.PermissionTemplate>
+ getPermissionTemplatesList();
+ /**
+ * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
+ */
+ org.sonarqube.ws.WsPermissions.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.WsPermissions.PermissionTemplateOrBuilder>
+ getPermissionTemplatesOrBuilderList();
+ /**
+ * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
+ */
+ org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplatesOrBuilder(
+ int index);
+
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
+ */
+ java.util.List<org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier>
+ getDefaultTemplatesList();
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
+ */
+ org.sonarqube.ws.WsPermissions.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.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder>
+ getDefaultTemplatesOrBuilderList();
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
+ */
+ org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder getDefaultTemplatesOrBuilder(
+ int index);
+
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ java.util.List<org.sonarqube.ws.WsPermissions.Permission>
+ getPermissionsList();
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ org.sonarqube.ws.WsPermissions.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.WsPermissions.PermissionOrBuilder>
+ getPermissionsOrBuilderList();
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.permissions.WsSearchTemplatesResponse}
+ */
+ public static final class WsSearchTemplatesResponse extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsSearchTemplatesResponse)
+ WsSearchTemplatesResponseOrBuilder {
+ // Use WsSearchTemplatesResponse.newBuilder() to construct.
+ private WsSearchTemplatesResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private WsSearchTemplatesResponse() {
+ permissionTemplates_ = java.util.Collections.emptyList();
+ defaultTemplates_ = java.util.Collections.emptyList();
+ permissions_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private WsSearchTemplatesResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ permissionTemplates_ = new java.util.ArrayList<org.sonarqube.ws.WsPermissions.PermissionTemplate>();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ permissionTemplates_.add(input.readMessage(org.sonarqube.ws.WsPermissions.PermissionTemplate.PARSER, extensionRegistry));
+ break;
+ }
+ case 18: {
+ if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ defaultTemplates_ = new java.util.ArrayList<org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier>();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ defaultTemplates_.add(input.readMessage(org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.PARSER, extensionRegistry));
+ break;
+ }
+ case 26: {
+ if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
+ permissions_ = new java.util.ArrayList<org.sonarqube.ws.WsPermissions.Permission>();
+ mutable_bitField0_ |= 0x00000004;
+ }
+ permissions_.add(input.readMessage(org.sonarqube.ws.WsPermissions.Permission.PARSER, extensionRegistry));
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ permissionTemplates_ = java.util.Collections.unmodifiableList(permissionTemplates_);
+ }
+ if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ defaultTemplates_ = java.util.Collections.unmodifiableList(defaultTemplates_);
+ }
+ if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
+ permissions_ = java.util.Collections.unmodifiableList(permissions_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.class, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.Builder.class);
+ }
+
+ public interface TemplateIdQualifierOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <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.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.class, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int TEMPLATEID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object templateId_;
+ /**
+ * <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.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier)
+ org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.class, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ templateId_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ qualifier_ = "";
+ bitField0_ = (bitField0_ & ~0x00000002);
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_descriptor;
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier getDefaultInstanceForType() {
+ return org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier build() {
+ org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier buildPartial() {
+ org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier result = new org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.templateId_ = templateId_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.qualifier_ = qualifier_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier) {
+ return mergeFrom((org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier other) {
+ if (other == org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.getDefaultInstance()) return this;
+ if (other.hasTemplateId()) {
+ bitField0_ |= 0x00000001;
+ templateId_ = other.templateId_;
+ onChanged();
+ }
+ if (other.hasQualifier()) {
+ bitField0_ |= 0x00000002;
+ qualifier_ = other.qualifier_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object templateId_ = "";
+ /**
+ * <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.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier();
+ }
+
+ public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<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.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public static final int PERMISSIONTEMPLATES_FIELD_NUMBER = 1;
+ private java.util.List<org.sonarqube.ws.WsPermissions.PermissionTemplate> permissionTemplates_;
+ /**
+ * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.PermissionTemplate> getPermissionTemplatesList() {
+ return permissionTemplates_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.WsPermissions.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.WsPermissions.PermissionTemplate getPermissionTemplates(int index) {
+ return permissionTemplates_.get(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplatesOrBuilder(
+ int index) {
+ return permissionTemplates_.get(index);
+ }
+
+ public static final int DEFAULTTEMPLATES_FIELD_NUMBER = 2;
+ private java.util.List<org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier> defaultTemplates_;
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier> getDefaultTemplatesList() {
+ return defaultTemplates_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.WsPermissions.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.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier getDefaultTemplates(int index) {
+ return defaultTemplates_.get(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder getDefaultTemplatesOrBuilder(
+ int index) {
+ return defaultTemplates_.get(index);
+ }
+
+ public static final int PERMISSIONS_FIELD_NUMBER = 3;
+ private java.util.List<org.sonarqube.ws.WsPermissions.Permission> permissions_;
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.Permission> getPermissionsList() {
+ return permissions_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.WsPermissions.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.WsPermissions.Permission getPermissions(int index) {
+ return permissions_.get(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder(
+ int index) {
+ return permissions_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < permissionTemplates_.size(); i++) {
+ output.writeMessage(1, permissionTemplates_.get(i));
+ }
+ for (int i = 0; i < defaultTemplates_.size(); i++) {
+ output.writeMessage(2, defaultTemplates_.get(i));
+ }
+ for (int i = 0; i < permissions_.size(); i++) {
+ output.writeMessage(3, permissions_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < permissionTemplates_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, permissionTemplates_.get(i));
+ }
+ for (int i = 0; i < defaultTemplates_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, defaultTemplates_.get(i));
+ }
+ for (int i = 0; i < permissions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, permissions_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.permissions.WsSearchTemplatesResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsSearchTemplatesResponse)
+ org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.class, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getPermissionTemplatesFieldBuilder();
+ getDefaultTemplatesFieldBuilder();
+ getPermissionsFieldBuilder();
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ if (permissionTemplatesBuilder_ == null) {
+ permissionTemplates_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ permissionTemplatesBuilder_.clear();
+ }
+ if (defaultTemplatesBuilder_ == null) {
+ defaultTemplates_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ defaultTemplatesBuilder_.clear();
+ }
+ if (permissionsBuilder_ == null) {
+ permissions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ permissionsBuilder_.clear();
+ }
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor;
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse getDefaultInstanceForType() {
+ return org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse build() {
+ org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse buildPartial() {
+ org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse result = new org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse(this);
+ int from_bitField0_ = bitField0_;
+ if (permissionTemplatesBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ permissionTemplates_ = java.util.Collections.unmodifiableList(permissionTemplates_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.permissionTemplates_ = permissionTemplates_;
+ } else {
+ result.permissionTemplates_ = permissionTemplatesBuilder_.build();
+ }
+ if (defaultTemplatesBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ defaultTemplates_ = java.util.Collections.unmodifiableList(defaultTemplates_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.defaultTemplates_ = defaultTemplates_;
+ } else {
+ result.defaultTemplates_ = defaultTemplatesBuilder_.build();
+ }
+ if (permissionsBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ permissions_ = java.util.Collections.unmodifiableList(permissions_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.permissions_ = permissions_;
+ } else {
+ result.permissions_ = permissionsBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse) {
+ return mergeFrom((org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse other) {
+ if (other == org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.getDefaultInstance()) return this;
+ if (permissionTemplatesBuilder_ == null) {
+ if (!other.permissionTemplates_.isEmpty()) {
+ if (permissionTemplates_.isEmpty()) {
+ permissionTemplates_ = other.permissionTemplates_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensurePermissionTemplatesIsMutable();
+ permissionTemplates_.addAll(other.permissionTemplates_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.permissionTemplates_.isEmpty()) {
+ if (permissionTemplatesBuilder_.isEmpty()) {
+ permissionTemplatesBuilder_.dispose();
+ permissionTemplatesBuilder_ = null;
+ permissionTemplates_ = other.permissionTemplates_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ permissionTemplatesBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getPermissionTemplatesFieldBuilder() : null;
+ } else {
+ permissionTemplatesBuilder_.addAllMessages(other.permissionTemplates_);
+ }
+ }
+ }
+ if (defaultTemplatesBuilder_ == null) {
+ if (!other.defaultTemplates_.isEmpty()) {
+ if (defaultTemplates_.isEmpty()) {
+ defaultTemplates_ = other.defaultTemplates_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureDefaultTemplatesIsMutable();
+ defaultTemplates_.addAll(other.defaultTemplates_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.defaultTemplates_.isEmpty()) {
+ if (defaultTemplatesBuilder_.isEmpty()) {
+ defaultTemplatesBuilder_.dispose();
+ defaultTemplatesBuilder_ = null;
+ defaultTemplates_ = other.defaultTemplates_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ defaultTemplatesBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getDefaultTemplatesFieldBuilder() : null;
+ } else {
+ defaultTemplatesBuilder_.addAllMessages(other.defaultTemplates_);
+ }
+ }
+ }
+ if (permissionsBuilder_ == null) {
+ if (!other.permissions_.isEmpty()) {
+ if (permissions_.isEmpty()) {
+ permissions_ = other.permissions_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensurePermissionsIsMutable();
+ permissions_.addAll(other.permissions_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.permissions_.isEmpty()) {
+ if (permissionsBuilder_.isEmpty()) {
+ permissionsBuilder_.dispose();
+ permissionsBuilder_ = null;
+ permissions_ = other.permissions_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ permissionsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getPermissionsFieldBuilder() : null;
+ } else {
+ permissionsBuilder_.addAllMessages(other.permissions_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List<org.sonarqube.ws.WsPermissions.PermissionTemplate> permissionTemplates_ =
+ java.util.Collections.emptyList();
+ private void ensurePermissionTemplatesIsMutable() {
+ if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ permissionTemplates_ = new java.util.ArrayList<org.sonarqube.ws.WsPermissions.PermissionTemplate>(permissionTemplates_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder> permissionTemplatesBuilder_;
+
+ /**
+ * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.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.WsPermissions.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.WsPermissions.PermissionTemplate value) {
+ if (permissionTemplatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePermissionTemplatesIsMutable();
+ permissionTemplates_.set(index, value);
+ onChanged();
+ } else {
+ permissionTemplatesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
+ */
+ public Builder setPermissionTemplates(
+ int index, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder builderForValue) {
+ if (permissionTemplatesBuilder_ == null) {
+ ensurePermissionTemplatesIsMutable();
+ permissionTemplates_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ permissionTemplatesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
+ */
+ public Builder addPermissionTemplates(org.sonarqube.ws.WsPermissions.PermissionTemplate value) {
+ if (permissionTemplatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePermissionTemplatesIsMutable();
+ permissionTemplates_.add(value);
+ onChanged();
+ } else {
+ permissionTemplatesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
+ */
+ public Builder addPermissionTemplates(
+ int index, org.sonarqube.ws.WsPermissions.PermissionTemplate value) {
+ if (permissionTemplatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePermissionTemplatesIsMutable();
+ permissionTemplates_.add(index, value);
+ onChanged();
+ } else {
+ permissionTemplatesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
+ */
+ public Builder addPermissionTemplates(
+ org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder builderForValue) {
+ if (permissionTemplatesBuilder_ == null) {
+ ensurePermissionTemplatesIsMutable();
+ permissionTemplates_.add(builderForValue.build());
+ onChanged();
+ } else {
+ permissionTemplatesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
+ */
+ public Builder addPermissionTemplates(
+ int index, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder builderForValue) {
+ if (permissionTemplatesBuilder_ == null) {
+ ensurePermissionTemplatesIsMutable();
+ permissionTemplates_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ permissionTemplatesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
+ */
+ public Builder addAllPermissionTemplates(
+ java.lang.Iterable<? extends org.sonarqube.ws.WsPermissions.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.WsPermissions.PermissionTemplate.Builder getPermissionTemplatesBuilder(
+ int index) {
+ return getPermissionTemplatesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.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.WsPermissions.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.WsPermissions.PermissionTemplate.Builder addPermissionTemplatesBuilder() {
+ return getPermissionTemplatesFieldBuilder().addBuilder(
+ org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder addPermissionTemplatesBuilder(
+ int index) {
+ return getPermissionTemplatesFieldBuilder().addBuilder(
+ index, org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder>
+ getPermissionTemplatesBuilderList() {
+ return getPermissionTemplatesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder>
+ getPermissionTemplatesFieldBuilder() {
+ if (permissionTemplatesBuilder_ == null) {
+ permissionTemplatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder>(
+ permissionTemplates_,
+ ((bitField0_ & 0x00000001) == 0x00000001),
+ getParentForChildren(),
+ isClean());
+ permissionTemplates_ = null;
+ }
+ return permissionTemplatesBuilder_;
+ }
+
+ private java.util.List<org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier> defaultTemplates_ =
+ java.util.Collections.emptyList();
+ private void ensureDefaultTemplatesIsMutable() {
+ if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ defaultTemplates_ = new java.util.ArrayList<org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier>(defaultTemplates_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder> defaultTemplatesBuilder_;
+
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.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.WsPermissions.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.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier value) {
+ if (defaultTemplatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDefaultTemplatesIsMutable();
+ defaultTemplates_.set(index, value);
+ onChanged();
+ } else {
+ defaultTemplatesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
+ */
+ public Builder setDefaultTemplates(
+ int index, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder builderForValue) {
+ if (defaultTemplatesBuilder_ == null) {
+ ensureDefaultTemplatesIsMutable();
+ defaultTemplates_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ defaultTemplatesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
+ */
+ public Builder addDefaultTemplates(org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier value) {
+ if (defaultTemplatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDefaultTemplatesIsMutable();
+ defaultTemplates_.add(value);
+ onChanged();
+ } else {
+ defaultTemplatesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
+ */
+ public Builder addDefaultTemplates(
+ int index, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier value) {
+ if (defaultTemplatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDefaultTemplatesIsMutable();
+ defaultTemplates_.add(index, value);
+ onChanged();
+ } else {
+ defaultTemplatesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
+ */
+ public Builder addDefaultTemplates(
+ org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder builderForValue) {
+ if (defaultTemplatesBuilder_ == null) {
+ ensureDefaultTemplatesIsMutable();
+ defaultTemplates_.add(builderForValue.build());
+ onChanged();
+ } else {
+ defaultTemplatesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
+ */
+ public Builder addDefaultTemplates(
+ int index, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder builderForValue) {
+ if (defaultTemplatesBuilder_ == null) {
+ ensureDefaultTemplatesIsMutable();
+ defaultTemplates_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ defaultTemplatesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
+ */
+ public Builder addAllDefaultTemplates(
+ java.lang.Iterable<? extends org.sonarqube.ws.WsPermissions.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.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder getDefaultTemplatesBuilder(
+ int index) {
+ return getDefaultTemplatesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.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.WsPermissions.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.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder addDefaultTemplatesBuilder() {
+ return getDefaultTemplatesFieldBuilder().addBuilder(
+ org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder addDefaultTemplatesBuilder(
+ int index) {
+ return getDefaultTemplatesFieldBuilder().addBuilder(
+ index, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder>
+ getDefaultTemplatesBuilderList() {
+ return getDefaultTemplatesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder>
+ getDefaultTemplatesFieldBuilder() {
+ if (defaultTemplatesBuilder_ == null) {
+ defaultTemplatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder>(
+ defaultTemplates_,
+ ((bitField0_ & 0x00000002) == 0x00000002),
+ getParentForChildren(),
+ isClean());
+ defaultTemplates_ = null;
+ }
+ return defaultTemplatesBuilder_;
+ }
+
+ private java.util.List<org.sonarqube.ws.WsPermissions.Permission> permissions_ =
+ java.util.Collections.emptyList();
+ private void ensurePermissionsIsMutable() {
+ if (!((bitField0_ & 0x00000004) == 0x00000004)) {
+ permissions_ = new java.util.ArrayList<org.sonarqube.ws.WsPermissions.Permission>(permissions_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder> permissionsBuilder_;
+
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.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.WsPermissions.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.WsPermissions.Permission value) {
+ if (permissionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePermissionsIsMutable();
+ permissions_.set(index, value);
+ onChanged();
+ } else {
+ permissionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public Builder setPermissions(
+ int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) {
+ if (permissionsBuilder_ == null) {
+ ensurePermissionsIsMutable();
+ permissions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ permissionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public Builder addPermissions(org.sonarqube.ws.WsPermissions.Permission value) {
+ if (permissionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePermissionsIsMutable();
+ permissions_.add(value);
+ onChanged();
+ } else {
+ permissionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public Builder addPermissions(
+ int index, org.sonarqube.ws.WsPermissions.Permission value) {
+ if (permissionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePermissionsIsMutable();
+ permissions_.add(index, value);
+ onChanged();
+ } else {
+ permissionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public Builder addPermissions(
+ org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) {
+ if (permissionsBuilder_ == null) {
+ ensurePermissionsIsMutable();
+ permissions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ permissionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public Builder addPermissions(
+ int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) {
+ if (permissionsBuilder_ == null) {
+ ensurePermissionsIsMutable();
+ permissions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ permissionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public Builder addAllPermissions(
+ java.lang.Iterable<? extends org.sonarqube.ws.WsPermissions.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.WsPermissions.Permission.Builder getPermissionsBuilder(
+ int index) {
+ return getPermissionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.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.WsPermissions.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.WsPermissions.Permission.Builder addPermissionsBuilder() {
+ return getPermissionsFieldBuilder().addBuilder(
+ org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder(
+ int index) {
+ return getPermissionsFieldBuilder().addBuilder(
+ index, org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsPermissions.Permission.Builder>
+ getPermissionsBuilderList() {
+ return getPermissionsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder>
+ getPermissionsFieldBuilder() {
+ if (permissionsBuilder_ == null) {
+ permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder>(
+ permissions_,
+ ((bitField0_ & 0x00000004) == 0x00000004),
+ getParentForChildren(),
+ isClean());
+ permissions_ = null;
+ }
+ return permissionsBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsSearchTemplatesResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchTemplatesResponse)
+ private static final org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse();
+ }
+
+ public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<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.WsPermissions.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\"\277\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\0229\n\013permissions\030\007 \003(\0132$.sonarqube.",
+ "ws.permissions.Permission\"n\n\"WsCreatePer" +
+ "missionTemplateResponse\022H\n\022permissionTem" +
+ "plate\030\001 \001(\0132,.sonarqube.ws.permissions.P" +
+ "ermissionTemplate\"n\n\"WsUpdatePermissionT" +
+ "emplateResponse\022H\n\022permissionTemplate\030\001 " +
+ "\001(\0132,.sonarqube.ws.permissions.Permissio" +
+ "nTemplate\"\302\002\n\031WsSearchTemplatesResponse\022" +
+ "I\n\023permissionTemplates\030\001 \003(\0132,.sonarqube" +
+ ".ws.permissions.PermissionTemplate\022a\n\020de" +
+ "faultTemplates\030\002 \003(\0132G.sonarqube.ws.perm",
+ "issions.WsSearchTemplatesResponse.Templa" +
+ "teIdQualifier\0229\n\013permissions\030\003 \003(\0132$.son" +
+ "arqube.ws.permissions.Permission\032<\n\023Temp" +
+ "lateIdQualifier\022\022\n\ntemplateId\030\001 \001(\t\022\021\n\tq" +
+ "ualifier\030\002 \001(\tB#\n\020org.sonarqube.wsB\rWsPe" +
+ "rmissionsH\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", "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)
+}