summaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-09-28 15:31:02 +0200
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-09-28 16:35:02 +0200
commit2634b3b9ed7c5601a886fa7ba8e3ad0cdc76c100 (patch)
treef804bd5a307122e2f230abe90c08a8698c0eaefa /sonar-ws
parentb69446d9a9a67c87773227418cd2c5ff4f36d0d3 (diff)
downloadsonarqube-2634b3b9ed7c5601a886fa7ba8e3ad0cdc76c100.tar.gz
sonarqube-2634b3b9ed7c5601a886fa7ba8e3ad0cdc76c100.zip
SONAR-6854 WS permissions/template_groups search for groups in a specific permission template for a given permission
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/gen-java/org/sonarqube/ws/WsPermissions.java10963
-rw-r--r--sonar-ws/src/main/protobuf/ws-permissions.proto86
2 files changed, 4637 insertions, 6412 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
index 8289eaeb040..97df54a7bba 100644
--- a/sonar-ws/src/main/gen-java/org/sonarqube/ws/WsPermissions.java
+++ b/sonar-ws/src/main/gen-java/org/sonarqube/ws/WsPermissions.java
@@ -26,27 +26,27 @@ public final class WsPermissions {
org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder();
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
- java.util.List<org.sonarqube.ws.WsPermissions.WsUsersResponse.User>
+ java.util.List<org.sonarqube.ws.WsPermissions.User>
getUsersList();
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
- org.sonarqube.ws.WsPermissions.WsUsersResponse.User getUsers(int index);
+ org.sonarqube.ws.WsPermissions.User getUsers(int index);
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
int getUsersCount();
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
- java.util.List<? extends org.sonarqube.ws.WsPermissions.WsUsersResponse.UserOrBuilder>
+ java.util.List<? extends org.sonarqube.ws.WsPermissions.UserOrBuilder>
getUsersOrBuilderList();
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
- org.sonarqube.ws.WsPermissions.WsUsersResponse.UserOrBuilder getUsersOrBuilder(
+ org.sonarqube.ws.WsPermissions.UserOrBuilder getUsersOrBuilder(
int index);
}
/**
@@ -54,6 +54,7 @@ public final class WsPermissions {
*
* <pre>
* WS api/permissions/users for internal use only
+ * and WS api/permissions/template_users for internal use only
* </pre>
*/
public static final class WsUsersResponse extends
@@ -110,10 +111,10 @@ public final class WsPermissions {
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- users_ = new java.util.ArrayList<org.sonarqube.ws.WsPermissions.WsUsersResponse.User>();
+ users_ = new java.util.ArrayList<org.sonarqube.ws.WsPermissions.User>();
mutable_bitField0_ |= 0x00000002;
}
- users_.add(input.readMessage(org.sonarqube.ws.WsPermissions.WsUsersResponse.User.PARSER, extensionRegistry));
+ users_.add(input.readMessage(org.sonarqube.ws.WsPermissions.User.PARSER, extensionRegistry));
break;
}
}
@@ -144,870 +145,6 @@ public final class WsPermissions {
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_;
@@ -1031,36 +168,36 @@ public final class WsPermissions {
}
public static final int USERS_FIELD_NUMBER = 2;
- private java.util.List<org.sonarqube.ws.WsPermissions.WsUsersResponse.User> users_;
+ private java.util.List<org.sonarqube.ws.WsPermissions.User> users_;
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
- public java.util.List<org.sonarqube.ws.WsPermissions.WsUsersResponse.User> getUsersList() {
+ public java.util.List<org.sonarqube.ws.WsPermissions.User> getUsersList() {
return users_;
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
- public java.util.List<? extends org.sonarqube.ws.WsPermissions.WsUsersResponse.UserOrBuilder>
+ public java.util.List<? extends org.sonarqube.ws.WsPermissions.UserOrBuilder>
getUsersOrBuilderList() {
return users_;
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
public int getUsersCount() {
return users_.size();
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
- public org.sonarqube.ws.WsPermissions.WsUsersResponse.User getUsers(int index) {
+ public org.sonarqube.ws.WsPermissions.User getUsers(int index) {
return users_.get(index);
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
- public org.sonarqube.ws.WsPermissions.WsUsersResponse.UserOrBuilder getUsersOrBuilder(
+ public org.sonarqube.ws.WsPermissions.UserOrBuilder getUsersOrBuilder(
int index) {
return users_.get(index);
}
@@ -1182,6 +319,7 @@ public final class WsPermissions {
*
* <pre>
* WS api/permissions/users for internal use only
+ * and WS api/permissions/template_users for internal use only
* </pre>
*/
public static final class Builder extends
@@ -1462,22 +600,22 @@ public final class WsPermissions {
return pagingBuilder_;
}
- private java.util.List<org.sonarqube.ws.WsPermissions.WsUsersResponse.User> users_ =
+ private java.util.List<org.sonarqube.ws.WsPermissions.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_);
+ users_ = new java.util.ArrayList<org.sonarqube.ws.WsPermissions.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_;
+ org.sonarqube.ws.WsPermissions.User, org.sonarqube.ws.WsPermissions.User.Builder, org.sonarqube.ws.WsPermissions.UserOrBuilder> usersBuilder_;
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
- public java.util.List<org.sonarqube.ws.WsPermissions.WsUsersResponse.User> getUsersList() {
+ public java.util.List<org.sonarqube.ws.WsPermissions.User> getUsersList() {
if (usersBuilder_ == null) {
return java.util.Collections.unmodifiableList(users_);
} else {
@@ -1485,7 +623,7 @@ public final class WsPermissions {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
public int getUsersCount() {
if (usersBuilder_ == null) {
@@ -1495,9 +633,9 @@ public final class WsPermissions {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
- public org.sonarqube.ws.WsPermissions.WsUsersResponse.User getUsers(int index) {
+ public org.sonarqube.ws.WsPermissions.User getUsers(int index) {
if (usersBuilder_ == null) {
return users_.get(index);
} else {
@@ -1505,10 +643,10 @@ public final class WsPermissions {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
public Builder setUsers(
- int index, org.sonarqube.ws.WsPermissions.WsUsersResponse.User value) {
+ int index, org.sonarqube.ws.WsPermissions.User value) {
if (usersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -1522,10 +660,10 @@ public final class WsPermissions {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
public Builder setUsers(
- int index, org.sonarqube.ws.WsPermissions.WsUsersResponse.User.Builder builderForValue) {
+ int index, org.sonarqube.ws.WsPermissions.User.Builder builderForValue) {
if (usersBuilder_ == null) {
ensureUsersIsMutable();
users_.set(index, builderForValue.build());
@@ -1536,9 +674,9 @@ public final class WsPermissions {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
- public Builder addUsers(org.sonarqube.ws.WsPermissions.WsUsersResponse.User value) {
+ public Builder addUsers(org.sonarqube.ws.WsPermissions.User value) {
if (usersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -1552,10 +690,10 @@ public final class WsPermissions {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
public Builder addUsers(
- int index, org.sonarqube.ws.WsPermissions.WsUsersResponse.User value) {
+ int index, org.sonarqube.ws.WsPermissions.User value) {
if (usersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -1569,10 +707,10 @@ public final class WsPermissions {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
public Builder addUsers(
- org.sonarqube.ws.WsPermissions.WsUsersResponse.User.Builder builderForValue) {
+ org.sonarqube.ws.WsPermissions.User.Builder builderForValue) {
if (usersBuilder_ == null) {
ensureUsersIsMutable();
users_.add(builderForValue.build());
@@ -1583,10 +721,10 @@ public final class WsPermissions {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
public Builder addUsers(
- int index, org.sonarqube.ws.WsPermissions.WsUsersResponse.User.Builder builderForValue) {
+ int index, org.sonarqube.ws.WsPermissions.User.Builder builderForValue) {
if (usersBuilder_ == null) {
ensureUsersIsMutable();
users_.add(index, builderForValue.build());
@@ -1597,10 +735,10 @@ public final class WsPermissions {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
public Builder addAllUsers(
- java.lang.Iterable<? extends org.sonarqube.ws.WsPermissions.WsUsersResponse.User> values) {
+ java.lang.Iterable<? extends org.sonarqube.ws.WsPermissions.User> values) {
if (usersBuilder_ == null) {
ensureUsersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -1612,7 +750,7 @@ public final class WsPermissions {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
public Builder clearUsers() {
if (usersBuilder_ == null) {
@@ -1625,7 +763,7 @@ public final class WsPermissions {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
public Builder removeUsers(int index) {
if (usersBuilder_ == null) {
@@ -1638,16 +776,16 @@ public final class WsPermissions {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
- public org.sonarqube.ws.WsPermissions.WsUsersResponse.User.Builder getUsersBuilder(
+ public org.sonarqube.ws.WsPermissions.User.Builder getUsersBuilder(
int index) {
return getUsersFieldBuilder().getBuilder(index);
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
- public org.sonarqube.ws.WsPermissions.WsUsersResponse.UserOrBuilder getUsersOrBuilder(
+ public org.sonarqube.ws.WsPermissions.UserOrBuilder getUsersOrBuilder(
int index) {
if (usersBuilder_ == null) {
return users_.get(index); } else {
@@ -1655,9 +793,9 @@ public final class WsPermissions {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
- public java.util.List<? extends org.sonarqube.ws.WsPermissions.WsUsersResponse.UserOrBuilder>
+ public java.util.List<? extends org.sonarqube.ws.WsPermissions.UserOrBuilder>
getUsersOrBuilderList() {
if (usersBuilder_ != null) {
return usersBuilder_.getMessageOrBuilderList();
@@ -1666,33 +804,33 @@ public final class WsPermissions {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
- public org.sonarqube.ws.WsPermissions.WsUsersResponse.User.Builder addUsersBuilder() {
+ public org.sonarqube.ws.WsPermissions.User.Builder addUsersBuilder() {
return getUsersFieldBuilder().addBuilder(
- org.sonarqube.ws.WsPermissions.WsUsersResponse.User.getDefaultInstance());
+ org.sonarqube.ws.WsPermissions.User.getDefaultInstance());
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
- public org.sonarqube.ws.WsPermissions.WsUsersResponse.User.Builder addUsersBuilder(
+ public org.sonarqube.ws.WsPermissions.User.Builder addUsersBuilder(
int index) {
return getUsersFieldBuilder().addBuilder(
- index, org.sonarqube.ws.WsPermissions.WsUsersResponse.User.getDefaultInstance());
+ index, org.sonarqube.ws.WsPermissions.User.getDefaultInstance());
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.User users = 2;</code>
*/
- public java.util.List<org.sonarqube.ws.WsPermissions.WsUsersResponse.User.Builder>
+ public java.util.List<org.sonarqube.ws.WsPermissions.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>
+ org.sonarqube.ws.WsPermissions.User, org.sonarqube.ws.WsPermissions.User.Builder, org.sonarqube.ws.WsPermissions.UserOrBuilder>
getUsersFieldBuilder() {
if (usersBuilder_ == null) {
usersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.WsPermissions.WsUsersResponse.User, org.sonarqube.ws.WsPermissions.WsUsersResponse.User.Builder, org.sonarqube.ws.WsPermissions.WsUsersResponse.UserOrBuilder>(
+ org.sonarqube.ws.WsPermissions.User, org.sonarqube.ws.WsPermissions.User.Builder, org.sonarqube.ws.WsPermissions.UserOrBuilder>(
users_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
@@ -1763,27 +901,27 @@ public final class WsPermissions {
org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder();
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
- java.util.List<org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group>
+ java.util.List<org.sonarqube.ws.WsPermissions.Group>
getGroupsList();
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
- org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group getGroups(int index);
+ org.sonarqube.ws.WsPermissions.Group getGroups(int index);
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
int getGroupsCount();
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
- java.util.List<? extends org.sonarqube.ws.WsPermissions.WsGroupsResponse.GroupOrBuilder>
+ java.util.List<? extends org.sonarqube.ws.WsPermissions.GroupOrBuilder>
getGroupsOrBuilderList();
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
- org.sonarqube.ws.WsPermissions.WsGroupsResponse.GroupOrBuilder getGroupsOrBuilder(
+ org.sonarqube.ws.WsPermissions.GroupOrBuilder getGroupsOrBuilder(
int index);
}
/**
@@ -1791,6 +929,7 @@ public final class WsPermissions {
*
* <pre>
* WS api/permissions/groups for internal use only
+ * and WS api/permissions/template_groups for internal use only
* </pre>
*/
public static final class WsGroupsResponse extends
@@ -1847,10 +986,10 @@ public final class WsPermissions {
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- groups_ = new java.util.ArrayList<org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group>();
+ groups_ = new java.util.ArrayList<org.sonarqube.ws.WsPermissions.Group>();
mutable_bitField0_ |= 0x00000002;
}
- groups_.add(input.readMessage(org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group.PARSER, extensionRegistry));
+ groups_.add(input.readMessage(org.sonarqube.ws.WsPermissions.Group.PARSER, extensionRegistry));
break;
}
}
@@ -1881,870 +1020,6 @@ public final class WsPermissions {
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_;
@@ -2768,36 +1043,36 @@ public final class WsPermissions {
}
public static final int GROUPS_FIELD_NUMBER = 2;
- private java.util.List<org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group> groups_;
+ private java.util.List<org.sonarqube.ws.WsPermissions.Group> groups_;
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
- public java.util.List<org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group> getGroupsList() {
+ public java.util.List<org.sonarqube.ws.WsPermissions.Group> getGroupsList() {
return groups_;
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
- public java.util.List<? extends org.sonarqube.ws.WsPermissions.WsGroupsResponse.GroupOrBuilder>
+ public java.util.List<? extends org.sonarqube.ws.WsPermissions.GroupOrBuilder>
getGroupsOrBuilderList() {
return groups_;
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
public int getGroupsCount() {
return groups_.size();
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
- public org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group getGroups(int index) {
+ public org.sonarqube.ws.WsPermissions.Group getGroups(int index) {
return groups_.get(index);
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
- public org.sonarqube.ws.WsPermissions.WsGroupsResponse.GroupOrBuilder getGroupsOrBuilder(
+ public org.sonarqube.ws.WsPermissions.GroupOrBuilder getGroupsOrBuilder(
int index) {
return groups_.get(index);
}
@@ -2919,6 +1194,7 @@ public final class WsPermissions {
*
* <pre>
* WS api/permissions/groups for internal use only
+ * and WS api/permissions/template_groups for internal use only
* </pre>
*/
public static final class Builder extends
@@ -3199,22 +1475,22 @@ public final class WsPermissions {
return pagingBuilder_;
}
- private java.util.List<org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group> groups_ =
+ private java.util.List<org.sonarqube.ws.WsPermissions.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_);
+ groups_ = new java.util.ArrayList<org.sonarqube.ws.WsPermissions.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_;
+ org.sonarqube.ws.WsPermissions.Group, org.sonarqube.ws.WsPermissions.Group.Builder, org.sonarqube.ws.WsPermissions.GroupOrBuilder> groupsBuilder_;
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
- public java.util.List<org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group> getGroupsList() {
+ public java.util.List<org.sonarqube.ws.WsPermissions.Group> getGroupsList() {
if (groupsBuilder_ == null) {
return java.util.Collections.unmodifiableList(groups_);
} else {
@@ -3222,7 +1498,7 @@ public final class WsPermissions {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
public int getGroupsCount() {
if (groupsBuilder_ == null) {
@@ -3232,9 +1508,9 @@ public final class WsPermissions {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
- public org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group getGroups(int index) {
+ public org.sonarqube.ws.WsPermissions.Group getGroups(int index) {
if (groupsBuilder_ == null) {
return groups_.get(index);
} else {
@@ -3242,10 +1518,10 @@ public final class WsPermissions {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
public Builder setGroups(
- int index, org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group value) {
+ int index, org.sonarqube.ws.WsPermissions.Group value) {
if (groupsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -3259,10 +1535,10 @@ public final class WsPermissions {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
public Builder setGroups(
- int index, org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group.Builder builderForValue) {
+ int index, org.sonarqube.ws.WsPermissions.Group.Builder builderForValue) {
if (groupsBuilder_ == null) {
ensureGroupsIsMutable();
groups_.set(index, builderForValue.build());
@@ -3273,9 +1549,9 @@ public final class WsPermissions {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
- public Builder addGroups(org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group value) {
+ public Builder addGroups(org.sonarqube.ws.WsPermissions.Group value) {
if (groupsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -3289,10 +1565,10 @@ public final class WsPermissions {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
public Builder addGroups(
- int index, org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group value) {
+ int index, org.sonarqube.ws.WsPermissions.Group value) {
if (groupsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -3306,10 +1582,10 @@ public final class WsPermissions {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
public Builder addGroups(
- org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group.Builder builderForValue) {
+ org.sonarqube.ws.WsPermissions.Group.Builder builderForValue) {
if (groupsBuilder_ == null) {
ensureGroupsIsMutable();
groups_.add(builderForValue.build());
@@ -3320,10 +1596,10 @@ public final class WsPermissions {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
public Builder addGroups(
- int index, org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group.Builder builderForValue) {
+ int index, org.sonarqube.ws.WsPermissions.Group.Builder builderForValue) {
if (groupsBuilder_ == null) {
ensureGroupsIsMutable();
groups_.add(index, builderForValue.build());
@@ -3334,10 +1610,10 @@ public final class WsPermissions {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
public Builder addAllGroups(
- java.lang.Iterable<? extends org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group> values) {
+ java.lang.Iterable<? extends org.sonarqube.ws.WsPermissions.Group> values) {
if (groupsBuilder_ == null) {
ensureGroupsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -3349,7 +1625,7 @@ public final class WsPermissions {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
public Builder clearGroups() {
if (groupsBuilder_ == null) {
@@ -3362,7 +1638,7 @@ public final class WsPermissions {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
public Builder removeGroups(int index) {
if (groupsBuilder_ == null) {
@@ -3375,16 +1651,16 @@ public final class WsPermissions {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
- public org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group.Builder getGroupsBuilder(
+ public org.sonarqube.ws.WsPermissions.Group.Builder getGroupsBuilder(
int index) {
return getGroupsFieldBuilder().getBuilder(index);
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
- public org.sonarqube.ws.WsPermissions.WsGroupsResponse.GroupOrBuilder getGroupsOrBuilder(
+ public org.sonarqube.ws.WsPermissions.GroupOrBuilder getGroupsOrBuilder(
int index) {
if (groupsBuilder_ == null) {
return groups_.get(index); } else {
@@ -3392,9 +1668,9 @@ public final class WsPermissions {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
- public java.util.List<? extends org.sonarqube.ws.WsPermissions.WsGroupsResponse.GroupOrBuilder>
+ public java.util.List<? extends org.sonarqube.ws.WsPermissions.GroupOrBuilder>
getGroupsOrBuilderList() {
if (groupsBuilder_ != null) {
return groupsBuilder_.getMessageOrBuilderList();
@@ -3403,33 +1679,33 @@ public final class WsPermissions {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
- public org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group.Builder addGroupsBuilder() {
+ public org.sonarqube.ws.WsPermissions.Group.Builder addGroupsBuilder() {
return getGroupsFieldBuilder().addBuilder(
- org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group.getDefaultInstance());
+ org.sonarqube.ws.WsPermissions.Group.getDefaultInstance());
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
- public org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group.Builder addGroupsBuilder(
+ public org.sonarqube.ws.WsPermissions.Group.Builder addGroupsBuilder(
int index) {
return getGroupsFieldBuilder().addBuilder(
- index, org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group.getDefaultInstance());
+ index, org.sonarqube.ws.WsPermissions.Group.getDefaultInstance());
}
/**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Group groups = 2;</code>
*/
- public java.util.List<org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group.Builder>
+ public java.util.List<org.sonarqube.ws.WsPermissions.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>
+ org.sonarqube.ws.WsPermissions.Group, org.sonarqube.ws.WsPermissions.Group.Builder, org.sonarqube.ws.WsPermissions.GroupOrBuilder>
getGroupsFieldBuilder() {
if (groupsBuilder_ == null) {
groupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group, org.sonarqube.ws.WsPermissions.WsGroupsResponse.Group.Builder, org.sonarqube.ws.WsPermissions.WsGroupsResponse.GroupOrBuilder>(
+ org.sonarqube.ws.WsPermissions.Group, org.sonarqube.ws.WsPermissions.Group.Builder, org.sonarqube.ws.WsPermissions.GroupOrBuilder>(
groups_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
@@ -3482,2685 +1758,6 @@ public final class WsPermissions {
}
- public interface WsTemplateUsersResponseOrBuilder extends
- // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsTemplateUsersResponse)
- 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.WsTemplateUsersResponse.User users = 2;</code>
- */
- java.util.List<org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User>
- getUsersList();
- /**
- * <code>repeated .sonarqube.ws.permissions.WsTemplateUsersResponse.User users = 2;</code>
- */
- org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User getUsers(int index);
- /**
- * <code>repeated .sonarqube.ws.permissions.WsTemplateUsersResponse.User users = 2;</code>
- */
- int getUsersCount();
- /**
- * <code>repeated .sonarqube.ws.permissions.WsTemplateUsersResponse.User users = 2;</code>
- */
- java.util.List<? extends org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.UserOrBuilder>
- getUsersOrBuilderList();
- /**
- * <code>repeated .sonarqube.ws.permissions.WsTemplateUsersResponse.User users = 2;</code>
- */
- org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.UserOrBuilder getUsersOrBuilder(
- int index);
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.WsTemplateUsersResponse}
- *
- * <pre>
- * WS api/permissions/template_users for internal use only
- * </pre>
- */
- public static final class WsTemplateUsersResponse extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsTemplateUsersResponse)
- WsTemplateUsersResponseOrBuilder {
- // Use WsTemplateUsersResponse.newBuilder() to construct.
- private WsTemplateUsersResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
- super(builder);
- }
- private WsTemplateUsersResponse() {
- users_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private WsTemplateUsersResponse(
- 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.WsTemplateUsersResponse.User>();
- mutable_bitField0_ |= 0x00000002;
- }
- users_.add(input.readMessage(org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.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_WsTemplateUsersResponse_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsTemplateUsersResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.class, org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.Builder.class);
- }
-
- public interface UserOrBuilder extends
- // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsTemplateUsersResponse.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.WsTemplateUsersResponse.User}
- */
- public static final class User extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsTemplateUsersResponse.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_WsTemplateUsersResponse_User_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsTemplateUsersResponse_User_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User.class, org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.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.WsTemplateUsersResponse.User parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.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.WsTemplateUsersResponse.User parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.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.WsTemplateUsersResponse.User parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.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.WsTemplateUsersResponse.User parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.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.WsTemplateUsersResponse.User parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.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.WsTemplateUsersResponse.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.WsTemplateUsersResponse.User}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsTemplateUsersResponse.User)
- org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.UserOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsTemplateUsersResponse_User_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsTemplateUsersResponse_User_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User.class, org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User.Builder.class);
- }
-
- // Construct using org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.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_WsTemplateUsersResponse_User_descriptor;
- }
-
- public org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User getDefaultInstanceForType() {
- return org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User.getDefaultInstance();
- }
-
- public org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User build() {
- org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User buildPartial() {
- org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User result = new org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.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.WsTemplateUsersResponse.User) {
- return mergeFrom((org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User other) {
- if (other == org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.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.WsTemplateUsersResponse.User parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.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.WsTemplateUsersResponse.User)
- }
-
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsTemplateUsersResponse.User)
- private static final org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User();
- }
-
- public static org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.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.WsTemplateUsersResponse.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.WsTemplateUsersResponse.User> users_;
- /**
- * <code>repeated .sonarqube.ws.permissions.WsTemplateUsersResponse.User users = 2;</code>
- */
- public java.util.List<org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User> getUsersList() {
- return users_;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsTemplateUsersResponse.User users = 2;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.UserOrBuilder>
- getUsersOrBuilderList() {
- return users_;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsTemplateUsersResponse.User users = 2;</code>
- */
- public int getUsersCount() {
- return users_.size();
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsTemplateUsersResponse.User users = 2;</code>
- */
- public org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User getUsers(int index) {
- return users_.get(index);
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsTemplateUsersResponse.User users = 2;</code>
- */
- public org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.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.WsTemplateUsersResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse 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.WsTemplateUsersResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse 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.WsTemplateUsersResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse 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.WsTemplateUsersResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse 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.WsTemplateUsersResponse 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.WsTemplateUsersResponse}
- *
- * <pre>
- * WS api/permissions/template_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.WsTemplateUsersResponse)
- org.sonarqube.ws.WsPermissions.WsTemplateUsersResponseOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsTemplateUsersResponse_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsTemplateUsersResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.class, org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.Builder.class);
- }
-
- // Construct using org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.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_WsTemplateUsersResponse_descriptor;
- }
-
- public org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse getDefaultInstanceForType() {
- return org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.getDefaultInstance();
- }
-
- public org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse build() {
- org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse buildPartial() {
- org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse result = new org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse(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.WsTemplateUsersResponse) {
- return mergeFrom((org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse other) {
- if (other == org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.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.WsTemplateUsersResponse parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse) 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.WsTemplateUsersResponse.User> users_ =
- java.util.Collections.emptyList();
- private void ensureUsersIsMutable() {
- if (!((bitField0_ & 0x00000002) == 0x00000002)) {
- users_ = new java.util.ArrayList<org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User>(users_);
- bitField0_ |= 0x00000002;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User, org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User.Builder, org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.UserOrBuilder> usersBuilder_;
-
- /**
- * <code>repeated .sonarqube.ws.permissions.WsTemplateUsersResponse.User users = 2;</code>
- */
- public java.util.List<org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User> getUsersList() {
- if (usersBuilder_ == null) {
- return java.util.Collections.unmodifiableList(users_);
- } else {
- return usersBuilder_.getMessageList();
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsTemplateUsersResponse.User users = 2;</code>
- */
- public int getUsersCount() {
- if (usersBuilder_ == null) {
- return users_.size();
- } else {
- return usersBuilder_.getCount();
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsTemplateUsersResponse.User users = 2;</code>
- */
- public org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User getUsers(int index) {
- if (usersBuilder_ == null) {
- return users_.get(index);
- } else {
- return usersBuilder_.getMessage(index);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsTemplateUsersResponse.User users = 2;</code>
- */
- public Builder setUsers(
- int index, org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.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.WsTemplateUsersResponse.User users = 2;</code>
- */
- public Builder setUsers(
- int index, org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.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.WsTemplateUsersResponse.User users = 2;</code>
- */
- public Builder addUsers(org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.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.WsTemplateUsersResponse.User users = 2;</code>
- */
- public Builder addUsers(
- int index, org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.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.WsTemplateUsersResponse.User users = 2;</code>
- */
- public Builder addUsers(
- org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User.Builder builderForValue) {
- if (usersBuilder_ == null) {
- ensureUsersIsMutable();
- users_.add(builderForValue.build());
- onChanged();
- } else {
- usersBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsTemplateUsersResponse.User users = 2;</code>
- */
- public Builder addUsers(
- int index, org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.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.WsTemplateUsersResponse.User users = 2;</code>
- */
- public Builder addAllUsers(
- java.lang.Iterable<? extends org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.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.WsTemplateUsersResponse.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.WsTemplateUsersResponse.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.WsTemplateUsersResponse.User users = 2;</code>
- */
- public org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User.Builder getUsersBuilder(
- int index) {
- return getUsersFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsTemplateUsersResponse.User users = 2;</code>
- */
- public org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.UserOrBuilder getUsersOrBuilder(
- int index) {
- if (usersBuilder_ == null) {
- return users_.get(index); } else {
- return usersBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsTemplateUsersResponse.User users = 2;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.UserOrBuilder>
- getUsersOrBuilderList() {
- if (usersBuilder_ != null) {
- return usersBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(users_);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsTemplateUsersResponse.User users = 2;</code>
- */
- public org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User.Builder addUsersBuilder() {
- return getUsersFieldBuilder().addBuilder(
- org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsTemplateUsersResponse.User users = 2;</code>
- */
- public org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User.Builder addUsersBuilder(
- int index) {
- return getUsersFieldBuilder().addBuilder(
- index, org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsTemplateUsersResponse.User users = 2;</code>
- */
- public java.util.List<org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User.Builder>
- getUsersBuilderList() {
- return getUsersFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User, org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User.Builder, org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.UserOrBuilder>
- getUsersFieldBuilder() {
- if (usersBuilder_ == null) {
- usersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User, org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.User.Builder, org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse.UserOrBuilder>(
- users_,
- ((bitField0_ & 0x00000002) == 0x00000002),
- getParentForChildren(),
- isClean());
- users_ = null;
- }
- return usersBuilder_;
- }
-
- // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsTemplateUsersResponse)
- }
-
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsTemplateUsersResponse)
- private static final org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse();
- }
-
- public static org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- public static final com.google.protobuf.Parser<WsTemplateUsersResponse> PARSER =
- new com.google.protobuf.AbstractParser<WsTemplateUsersResponse>() {
- public WsTemplateUsersResponse parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- try {
- return new WsTemplateUsersResponse(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<WsTemplateUsersResponse> getParserForType() {
- return PARSER;
- }
-
- public org.sonarqube.ws.WsPermissions.WsTemplateUsersResponse 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 {
@@ -9361,1719 +4958,6 @@ public final class WsPermissions {
}
- 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 {
@@ -14105,42 +7989,4400 @@ public final class WsPermissions {
}
+ 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 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 UserOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.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.User}
+ */
+ public static final class User extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.User)
+ UserOrBuilder {
+ // Use User.newBuilder() to construct.
+ private User(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private User() {
+ login_ = "";
+ name_ = "";
+ email_ = "";
+ selected_ = false;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private User(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000001;
+ login_ = bs;
+ break;
+ }
+ case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000002;
+ name_ = bs;
+ break;
+ }
+ case 26: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000004;
+ email_ = bs;
+ break;
+ }
+ case 32: {
+ bitField0_ |= 0x00000008;
+ selected_ = input.readBool();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_User_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_User_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.User.class, org.sonarqube.ws.WsPermissions.User.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int LOGIN_FIELD_NUMBER = 1;
+ private volatile java.lang.Object login_;
+ /**
+ * <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.User parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.User parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.User parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.User parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.User parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.User parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.User parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.User parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.User parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.User parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.WsPermissions.User prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.permissions.User}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.User)
+ org.sonarqube.ws.WsPermissions.UserOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_User_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_User_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.User.class, org.sonarqube.ws.WsPermissions.User.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.WsPermissions.User.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ login_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ name_ = "";
+ bitField0_ = (bitField0_ & ~0x00000002);
+ email_ = "";
+ bitField0_ = (bitField0_ & ~0x00000004);
+ selected_ = false;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_User_descriptor;
+ }
+
+ public org.sonarqube.ws.WsPermissions.User getDefaultInstanceForType() {
+ return org.sonarqube.ws.WsPermissions.User.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.WsPermissions.User build() {
+ org.sonarqube.ws.WsPermissions.User result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.WsPermissions.User buildPartial() {
+ org.sonarqube.ws.WsPermissions.User result = new org.sonarqube.ws.WsPermissions.User(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.login_ = login_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.name_ = name_;
+ if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ to_bitField0_ |= 0x00000004;
+ }
+ result.email_ = email_;
+ if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ to_bitField0_ |= 0x00000008;
+ }
+ result.selected_ = selected_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.WsPermissions.User) {
+ return mergeFrom((org.sonarqube.ws.WsPermissions.User)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.WsPermissions.User other) {
+ if (other == org.sonarqube.ws.WsPermissions.User.getDefaultInstance()) return this;
+ if (other.hasLogin()) {
+ bitField0_ |= 0x00000001;
+ login_ = other.login_;
+ onChanged();
+ }
+ if (other.hasName()) {
+ bitField0_ |= 0x00000002;
+ name_ = other.name_;
+ onChanged();
+ }
+ if (other.hasEmail()) {
+ bitField0_ |= 0x00000004;
+ email_ = other.email_;
+ onChanged();
+ }
+ if (other.hasSelected()) {
+ setSelected(other.getSelected());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.WsPermissions.User parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.WsPermissions.User) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object login_ = "";
+ /**
+ * <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.User)
+ }
+
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.User)
+ private static final org.sonarqube.ws.WsPermissions.User DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.User();
+ }
+
+ public static org.sonarqube.ws.WsPermissions.User getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<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.User getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GroupOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.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.Group}
+ */
+ public static final class Group extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.Group)
+ GroupOrBuilder {
+ // Use Group.newBuilder() to construct.
+ private Group(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private Group() {
+ id_ = "";
+ name_ = "";
+ description_ = "";
+ selected_ = false;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Group(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000001;
+ id_ = bs;
+ break;
+ }
+ case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000002;
+ name_ = bs;
+ break;
+ }
+ case 26: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000004;
+ description_ = bs;
+ break;
+ }
+ case 32: {
+ bitField0_ |= 0x00000008;
+ selected_ = input.readBool();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Group_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Group_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.Group.class, org.sonarqube.ws.WsPermissions.Group.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int ID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object id_;
+ /**
+ * <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.Group parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.Group parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.Group parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsPermissions.Group parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.Group parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.Group parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.Group parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.Group parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsPermissions.Group parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsPermissions.Group parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.WsPermissions.Group prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.permissions.Group}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.Group)
+ org.sonarqube.ws.WsPermissions.GroupOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Group_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Group_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsPermissions.Group.class, org.sonarqube.ws.WsPermissions.Group.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.WsPermissions.Group.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ id_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ name_ = "";
+ bitField0_ = (bitField0_ & ~0x00000002);
+ description_ = "";
+ bitField0_ = (bitField0_ & ~0x00000004);
+ selected_ = false;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Group_descriptor;
+ }
+
+ public org.sonarqube.ws.WsPermissions.Group getDefaultInstanceForType() {
+ return org.sonarqube.ws.WsPermissions.Group.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.WsPermissions.Group build() {
+ org.sonarqube.ws.WsPermissions.Group result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.WsPermissions.Group buildPartial() {
+ org.sonarqube.ws.WsPermissions.Group result = new org.sonarqube.ws.WsPermissions.Group(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.id_ = id_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.name_ = name_;
+ if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ to_bitField0_ |= 0x00000004;
+ }
+ result.description_ = description_;
+ if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ to_bitField0_ |= 0x00000008;
+ }
+ result.selected_ = selected_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.WsPermissions.Group) {
+ return mergeFrom((org.sonarqube.ws.WsPermissions.Group)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.WsPermissions.Group other) {
+ if (other == org.sonarqube.ws.WsPermissions.Group.getDefaultInstance()) return this;
+ if (other.hasId()) {
+ bitField0_ |= 0x00000001;
+ id_ = other.id_;
+ onChanged();
+ }
+ if (other.hasName()) {
+ bitField0_ |= 0x00000002;
+ name_ = other.name_;
+ onChanged();
+ }
+ if (other.hasDescription()) {
+ bitField0_ |= 0x00000004;
+ description_ = other.description_;
+ onChanged();
+ }
+ if (other.hasSelected()) {
+ setSelected(other.getSelected());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.WsPermissions.Group parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.WsPermissions.Group) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object id_ = "";
+ /**
+ * <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.Group)
+ }
+
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.Group)
+ private static final org.sonarqube.ws.WsPermissions.Group DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.Group();
+ }
+
+ public static org.sonarqube.ws.WsPermissions.Group getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<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.Group getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_permissions_WsUsersResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
- internal_static_sonarqube_ws_permissions_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_WsTemplateUsersResponse_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_sonarqube_ws_permissions_WsTemplateUsersResponse_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
- internal_static_sonarqube_ws_permissions_WsTemplateUsersResponse_User_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_sonarqube_ws_permissions_WsTemplateUsersResponse_User_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
@@ -14156,11 +12398,6 @@ public final class WsPermissions {
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
@@ -14180,6 +12417,26 @@ public final class WsPermissions {
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_sonarqube_ws_permissions_Permission_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_sonarqube_ws_permissions_Permission_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_sonarqube_ws_permissions_PermissionTemplate_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_sonarqube_ws_permissions_User_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_sonarqube_ws_permissions_User_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_sonarqube_ws_permissions_Group_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_sonarqube_ws_permissions_Group_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
@@ -14190,56 +12447,50 @@ public final class WsPermissions {
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\"\324\001\n\027WsT" +
- "emplateUsersResponse\022,\n\006paging\030\001 \001(\0132\034.s" +
- "onarqube.ws.commons.Paging\022E\n\005users\030\002 \003(" +
- "\01326.sonarqube.ws.permissions.WsTemplateU" +
- "sersResponse.User\032D\n\004User\022\r\n\005login\030\001 \001(\t" +
- "\022\014\n\004name\030\002 \001(\t\022\r\n\005email\030\003 \001(\t\022\020\n\010selecte" +
- "d\030\004 \001(\010\"e\n\nPermission\022\013\n\003key\030\001 \001(\t\022\014\n\004na" +
- "me\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\022\n\nusersCo" +
- "unt\030\004 \001(\005\022\023\n\013groupsCount\030\005 \001(\005\"^\n!WsSear",
- "chGlobalPermissionsResponse\0229\n\013permissio" +
- "ns\030\001 \003(\0132$.sonarqube.ws.permissions.Perm" +
- "ission\"\345\002\n\"WsSearchProjectPermissionsRes" +
+ "missions\032\020ws-commons.proto\"n\n\017WsUsersRes" +
"ponse\022,\n\006paging\030\001 \001(\0132\034.sonarqube.ws.com" +
- "mons.Paging\022V\n\010projects\030\002 \003(\0132D.sonarqub" +
- "e.ws.permissions.WsSearchProjectPermissi" +
- "onsResponse.Project\0229\n\013permissions\030\003 \003(\013" +
- "2$.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\tqu" +
- "alifier\030\003 \001(\t\022\014\n\004name\030\004 \001(\t\0229\n\013permissio",
- "ns\030\005 \003(\0132$.sonarqube.ws.permissions.Perm" +
- "ission\"\277\001\n\022PermissionTemplate\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\021" +
- "projectKeyPattern\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\"WsCreatePermissionTemplateResponse\022H" +
- "\n\022permissionTemplate\030\001 \001(\0132,.sonarqube.w" +
- "s.permissions.PermissionTemplate\"n\n\"WsUp" +
- "datePermissionTemplateResponse\022H\n\022permis",
- "sionTemplate\030\001 \001(\0132,.sonarqube.ws.permis" +
- "sions.PermissionTemplate\"\302\002\n\031WsSearchTem" +
- "platesResponse\022I\n\023permissionTemplates\030\001 " +
- "\003(\0132,.sonarqube.ws.permissions.Permissio" +
- "nTemplate\022a\n\020defaultTemplates\030\002 \003(\0132G.so" +
- "narqube.ws.permissions.WsSearchTemplates" +
- "Response.TemplateIdQualifier\0229\n\013permissi" +
- "ons\030\003 \003(\0132$.sonarqube.ws.permissions.Per" +
- "mission\032<\n\023TemplateIdQualifier\022\022\n\ntempla" +
- "teId\030\001 \001(\t\022\021\n\tqualifier\030\002 \001(\tB#\n\020org.son",
- "arqube.wsB\rWsPermissionsH\001"
+ "mons.Paging\022-\n\005users\030\002 \003(\0132\036.sonarqube.w" +
+ "s.permissions.User\"q\n\020WsGroupsResponse\022," +
+ "\n\006paging\030\001 \001(\0132\034.sonarqube.ws.commons.Pa" +
+ "ging\022/\n\006groups\030\002 \003(\0132\037.sonarqube.ws.perm" +
+ "issions.Group\"^\n!WsSearchGlobalPermissio" +
+ "nsResponse\0229\n\013permissions\030\001 \003(\0132$.sonarq" +
+ "ube.ws.permissions.Permission\"\345\002\n\"WsSear",
+ "chProjectPermissionsResponse\022,\n\006paging\030\001" +
+ " \001(\0132\034.sonarqube.ws.commons.Paging\022V\n\010pr" +
+ "ojects\030\002 \003(\0132D.sonarqube.ws.permissions." +
+ "WsSearchProjectPermissionsResponse.Proje" +
+ "ct\0229\n\013permissions\030\003 \003(\0132$.sonarqube.ws.p" +
+ "ermissions.Permission\032~\n\007Project\022\n\n\002id\030\001" +
+ " \001(\t\022\013\n\003key\030\002 \001(\t\022\021\n\tqualifier\030\003 \001(\t\022\014\n\004" +
+ "name\030\004 \001(\t\0229\n\013permissions\030\005 \003(\0132$.sonarq" +
+ "ube.ws.permissions.Permission\"n\n\"WsCreat" +
+ "ePermissionTemplateResponse\022H\n\022permissio",
+ "nTemplate\030\001 \001(\0132,.sonarqube.ws.permissio" +
+ "ns.PermissionTemplate\"n\n\"WsUpdatePermiss" +
+ "ionTemplateResponse\022H\n\022permissionTemplat" +
+ "e\030\001 \001(\0132,.sonarqube.ws.permissions.Permi" +
+ "ssionTemplate\"\302\002\n\031WsSearchTemplatesRespo" +
+ "nse\022I\n\023permissionTemplates\030\001 \003(\0132,.sonar" +
+ "qube.ws.permissions.PermissionTemplate\022a" +
+ "\n\020defaultTemplates\030\002 \003(\0132G.sonarqube.ws." +
+ "permissions.WsSearchTemplatesResponse.Te" +
+ "mplateIdQualifier\0229\n\013permissions\030\003 \003(\0132$",
+ ".sonarqube.ws.permissions.Permission\032<\n\023" +
+ "TemplateIdQualifier\022\022\n\ntemplateId\030\001 \001(\t\022" +
+ "\021\n\tqualifier\030\002 \001(\t\"e\n\nPermission\022\013\n\003key\030" +
+ "\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t" +
+ "\022\022\n\nusersCount\030\004 \001(\005\022\023\n\013groupsCount\030\005 \001(" +
+ "\005\"\277\001\n\022PermissionTemplate\022\n\n\002id\030\001 \001(\t\022\014\n\004" +
+ "name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\031\n\021proje" +
+ "ctKeyPattern\030\004 \001(\t\022\021\n\tcreatedAt\030\005 \001(\t\022\021\n" +
+ "\tupdatedAt\030\006 \001(\t\0229\n\013permissions\030\007 \003(\0132$." +
+ "sonarqube.ws.permissions.Permission\"D\n\004U",
+ "ser\022\r\n\005login\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\r\n\005emai" +
+ "l\030\003 \001(\t\022\020\n\010selected\030\004 \001(\010\"H\n\005Group\022\n\n\002id" +
+ "\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\023\n\013description\030\003 \001(" +
+ "\t\022\020\n\010selected\030\004 \001(\010B#\n\020org.sonarqube.wsB" +
+ "\rWsPermissionsH\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
@@ -14260,50 +12511,20 @@ public final class WsPermissions {
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_WsTemplateUsersResponse_descriptor =
- getDescriptor().getMessageTypes().get(2);
- internal_static_sonarqube_ws_permissions_WsTemplateUsersResponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_sonarqube_ws_permissions_WsTemplateUsersResponse_descriptor,
- new java.lang.String[] { "Paging", "Users", });
- internal_static_sonarqube_ws_permissions_WsTemplateUsersResponse_User_descriptor =
- internal_static_sonarqube_ws_permissions_WsTemplateUsersResponse_descriptor.getNestedTypes().get(0);
- internal_static_sonarqube_ws_permissions_WsTemplateUsersResponse_User_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_sonarqube_ws_permissions_WsTemplateUsersResponse_User_descriptor,
- new java.lang.String[] { "Login", "Name", "Email", "Selected", });
- internal_static_sonarqube_ws_permissions_Permission_descriptor =
- getDescriptor().getMessageTypes().get(3);
- 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(4);
+ getDescriptor().getMessageTypes().get(2);
internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor,
new java.lang.String[] { "Permissions", });
internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor =
- getDescriptor().getMessageTypes().get(5);
+ getDescriptor().getMessageTypes().get(3);
internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor,
@@ -14314,26 +12535,20 @@ public final class WsPermissions {
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(6);
- 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(7);
+ getDescriptor().getMessageTypes().get(4);
internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_descriptor,
new java.lang.String[] { "PermissionTemplate", });
internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_descriptor =
- getDescriptor().getMessageTypes().get(8);
+ getDescriptor().getMessageTypes().get(5);
internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_descriptor,
new java.lang.String[] { "PermissionTemplate", });
internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor =
- getDescriptor().getMessageTypes().get(9);
+ getDescriptor().getMessageTypes().get(6);
internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor,
@@ -14344,6 +12559,30 @@ public final class WsPermissions {
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_descriptor,
new java.lang.String[] { "TemplateId", "Qualifier", });
+ internal_static_sonarqube_ws_permissions_Permission_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_sonarqube_ws_permissions_Permission_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_sonarqube_ws_permissions_Permission_descriptor,
+ new java.lang.String[] { "Key", "Name", "Description", "UsersCount", "GroupsCount", });
+ internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor =
+ getDescriptor().getMessageTypes().get(8);
+ internal_static_sonarqube_ws_permissions_PermissionTemplate_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor,
+ new java.lang.String[] { "Id", "Name", "Description", "ProjectKeyPattern", "CreatedAt", "UpdatedAt", "Permissions", });
+ internal_static_sonarqube_ws_permissions_User_descriptor =
+ getDescriptor().getMessageTypes().get(9);
+ internal_static_sonarqube_ws_permissions_User_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_sonarqube_ws_permissions_User_descriptor,
+ new java.lang.String[] { "Login", "Name", "Email", "Selected", });
+ internal_static_sonarqube_ws_permissions_Group_descriptor =
+ getDescriptor().getMessageTypes().get(10);
+ internal_static_sonarqube_ws_permissions_Group_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_sonarqube_ws_permissions_Group_descriptor,
+ new java.lang.String[] { "Id", "Name", "Description", "Selected", });
org.sonarqube.ws.Common.getDescriptor();
}
diff --git a/sonar-ws/src/main/protobuf/ws-permissions.proto b/sonar-ws/src/main/protobuf/ws-permissions.proto
index 26daddcdef7..043fe71a19b 100644
--- a/sonar-ws/src/main/protobuf/ws-permissions.proto
+++ b/sonar-ws/src/main/protobuf/ws-permissions.proto
@@ -27,55 +27,19 @@ option java_outer_classname = "WsPermissions";
option optimize_for = SPEED;
// WS api/permissions/users for internal use only
+// and WS api/permissions/template_users for internal use only
message WsUsersResponse {
-
- message User {
- optional string login = 1;
- optional string name = 2;
- optional string email = 3;
- optional bool selected = 4;
- }
-
optional sonarqube.ws.commons.Paging paging = 1;
repeated User users = 2;
}
// WS api/permissions/groups for internal use only
+// and WS api/permissions/template_groups for internal use only
message WsGroupsResponse {
-
- message Group {
- optional string id = 1;
- optional string name = 2;
- optional string description = 3;
- optional bool selected = 4;
- }
-
optional sonarqube.ws.commons.Paging paging = 1;
repeated Group groups = 2;
}
-// WS api/permissions/template_users for internal use only
-message WsTemplateUsersResponse {
-
- message User {
- optional string login = 1;
- optional string name = 2;
- optional string email = 3;
- optional bool selected = 4;
- }
-
- optional sonarqube.ws.commons.Paging paging = 1;
- repeated User users = 2;
-}
-
-message Permission {
- optional string key = 1;
- optional string name = 2;
- optional string description = 3;
- optional int32 usersCount = 4;
- optional int32 groupsCount = 5;
-}
-
message WsSearchGlobalPermissionsResponse {
repeated Permission permissions = 1;
}
@@ -94,18 +58,6 @@ message WsSearchProjectPermissionsResponse {
repeated Permission permissions = 3;
}
-message PermissionTemplate {
- optional string id = 1;
- optional string name = 2;
- optional string description = 3;
- optional string projectKeyPattern = 4;
- // ex: 2015-08-25T16:18:48+0200
- optional string createdAt = 5;
- // ex: 2015-08-25T16:18:48+0200
- optional string updatedAt = 6;
- repeated Permission permissions = 7;
-}
-
message WsCreatePermissionTemplateResponse {
optional PermissionTemplate permissionTemplate = 1;
}
@@ -124,3 +76,37 @@ message WsSearchTemplatesResponse {
repeated TemplateIdQualifier defaultTemplates = 2;
repeated Permission permissions = 3;
}
+
+message Permission {
+ optional string key = 1;
+ optional string name = 2;
+ optional string description = 3;
+ optional int32 usersCount = 4;
+ optional int32 groupsCount = 5;
+}
+
+message PermissionTemplate {
+ optional string id = 1;
+ optional string name = 2;
+ optional string description = 3;
+ optional string projectKeyPattern = 4;
+ // ex: 2015-08-25T16:18:48+0200
+ optional string createdAt = 5;
+ // ex: 2015-08-25T16:18:48+0200
+ optional string updatedAt = 6;
+ repeated Permission permissions = 7;
+}
+
+message User {
+ optional string login = 1;
+ optional string name = 2;
+ optional string email = 3;
+ optional bool selected = 4;
+}
+
+message Group {
+ optional string id = 1;
+ optional string name = 2;
+ optional string description = 3;
+ optional bool selected = 4;
+}