com.google.protobuf.MessageOrBuilder {
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <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.UsersResponse.User users = 2;</code>
*/
java.util.List<org.sonarqube.ws.Permissions.UsersResponse.User>
getUsersList();
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
org.sonarqube.ws.Permissions.UsersResponse.User getUsers(int index);
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
int getUsersCount();
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
java.util.List<? extends org.sonarqube.ws.Permissions.UsersResponse.UserOrBuilder>
getUsersOrBuilderList();
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
org.sonarqube.ws.Permissions.UsersResponse.UserOrBuilder getUsersOrBuilder(
int index);
-
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</code>
- */
- boolean hasPaging();
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</code>
- */
- org.sonarqube.ws.Common.Paging getPaging();
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</code>
- */
- org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder();
}
/**
* Protobuf type {@code sonarqube.ws.permissions.UsersResponse}
break;
}
case 10: {
- if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- users_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.UsersResponse.User>();
- mutable_bitField0_ |= 0x00000001;
- }
- users_.add(input.readMessage(org.sonarqube.ws.Permissions.UsersResponse.User.PARSER, extensionRegistry));
- break;
- }
- case 18: {
org.sonarqube.ws.Common.Paging.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = paging_.toBuilder();
bitField0_ |= 0x00000001;
break;
}
+ case 18: {
+ if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ users_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.UsersResponse.User>();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ users_.add(input.readMessage(org.sonarqube.ws.Permissions.UsersResponse.User.PARSER, extensionRegistry));
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
- if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
users_ = java.util.Collections.unmodifiableList(users_);
}
this.unknownFields = unknownFields.build();
}
private int bitField0_;
- public static final int USERS_FIELD_NUMBER = 1;
+ 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_;
+ }
+ /**
+ * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
+ */
+ public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() {
+ return paging_;
+ }
+
+ public static final int USERS_FIELD_NUMBER = 2;
private java.util.List<org.sonarqube.ws.Permissions.UsersResponse.User> users_;
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
public java.util.List<org.sonarqube.ws.Permissions.UsersResponse.User> getUsersList() {
return users_;
}
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
public java.util.List<? extends org.sonarqube.ws.Permissions.UsersResponse.UserOrBuilder>
getUsersOrBuilderList() {
return users_;
}
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
public int getUsersCount() {
return users_.size();
}
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
public org.sonarqube.ws.Permissions.UsersResponse.User getUsers(int index) {
return users_.get(index);
}
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
public org.sonarqube.ws.Permissions.UsersResponse.UserOrBuilder getUsersOrBuilder(
int index) {
return users_.get(index);
}
- public static final int PAGING_FIELD_NUMBER = 2;
- private org.sonarqube.ws.Common.Paging paging_;
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</code>
- */
- public boolean hasPaging() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</code>
- */
- public org.sonarqube.ws.Common.Paging getPaging() {
- return paging_;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</code>
- */
- public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() {
- return paging_;
- }
-
private void initFields() {
- users_ = java.util.Collections.emptyList();
paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
+ users_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
- for (int i = 0; i < users_.size(); i++) {
- output.writeMessage(1, users_.get(i));
- }
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(2, paging_);
+ output.writeMessage(1, paging_);
+ }
+ for (int i = 0; i < users_.size(); i++) {
+ output.writeMessage(2, users_.get(i));
}
getUnknownFields().writeTo(output);
}
if (size != -1) return size;
size = 0;
- for (int i = 0; i < users_.size(); i++) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, users_.get(i));
+ .computeMessageSize(1, paging_);
}
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ for (int i = 0; i < users_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, paging_);
+ .computeMessageSize(2, users_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getUsersFieldBuilder();
getPagingFieldBuilder();
+ getUsersFieldBuilder();
}
}
private static Builder create() {
public Builder clear() {
super.clear();
- if (usersBuilder_ == null) {
- users_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- usersBuilder_.clear();
- }
if (pagingBuilder_ == null) {
paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
} else {
pagingBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ if (usersBuilder_ == null) {
+ users_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ usersBuilder_.clear();
+ }
return this;
}
org.sonarqube.ws.Permissions.UsersResponse result = new org.sonarqube.ws.Permissions.UsersResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (usersBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- users_ = java.util.Collections.unmodifiableList(users_);
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.users_ = users_;
- } else {
- result.users_ = usersBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (pagingBuilder_ == null) {
} 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(org.sonarqube.ws.Permissions.UsersResponse other) {
if (other == org.sonarqube.ws.Permissions.UsersResponse.getDefaultInstance()) return this;
+ if (other.hasPaging()) {
+ mergePaging(other.getPaging());
+ }
if (usersBuilder_ == null) {
if (!other.users_.isEmpty()) {
if (users_.isEmpty()) {
users_ = other.users_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureUsersIsMutable();
users_.addAll(other.users_);
usersBuilder_.dispose();
usersBuilder_ = null;
users_ = other.users_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
usersBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getUsersFieldBuilder() : null;
}
}
}
- if (other.hasPaging()) {
- mergePaging(other.getPaging());
- }
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
}
private int bitField0_;
+ private org.sonarqube.ws.Common.Paging paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
+ 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_;
+ } 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_ != 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_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
+ 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_;
+ }
+ }
+ /**
+ * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder>
+ getPagingFieldBuilder() {
+ if (pagingBuilder_ == null) {
+ pagingBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder>(
+ getPaging(),
+ getParentForChildren(),
+ isClean());
+ paging_ = null;
+ }
+ return pagingBuilder_;
+ }
+
private java.util.List<org.sonarqube.ws.Permissions.UsersResponse.User> users_ =
java.util.Collections.emptyList();
private void ensureUsersIsMutable() {
- if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (!((bitField0_ & 0x00000002) == 0x00000002)) {
users_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.UsersResponse.User>(users_);
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000002;
}
}
org.sonarqube.ws.Permissions.UsersResponse.User, org.sonarqube.ws.Permissions.UsersResponse.User.Builder, org.sonarqube.ws.Permissions.UsersResponse.UserOrBuilder> usersBuilder_;
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
public java.util.List<org.sonarqube.ws.Permissions.UsersResponse.User> getUsersList() {
if (usersBuilder_ == null) {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
public int getUsersCount() {
if (usersBuilder_ == null) {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
public org.sonarqube.ws.Permissions.UsersResponse.User getUsers(int index) {
if (usersBuilder_ == null) {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
public Builder setUsers(
int index, org.sonarqube.ws.Permissions.UsersResponse.User value) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
public Builder setUsers(
int index, org.sonarqube.ws.Permissions.UsersResponse.User.Builder builderForValue) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
public Builder addUsers(org.sonarqube.ws.Permissions.UsersResponse.User value) {
if (usersBuilder_ == null) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
public Builder addUsers(
int index, org.sonarqube.ws.Permissions.UsersResponse.User value) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
public Builder addUsers(
org.sonarqube.ws.Permissions.UsersResponse.User.Builder builderForValue) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
public Builder addUsers(
int index, org.sonarqube.ws.Permissions.UsersResponse.User.Builder builderForValue) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
public Builder addAllUsers(
java.lang.Iterable<? extends org.sonarqube.ws.Permissions.UsersResponse.User> values) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
public Builder clearUsers() {
if (usersBuilder_ == null) {
users_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
usersBuilder_.clear();
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
public Builder removeUsers(int index) {
if (usersBuilder_ == null) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
public org.sonarqube.ws.Permissions.UsersResponse.User.Builder getUsersBuilder(
int index) {
return getUsersFieldBuilder().getBuilder(index);
}
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
public org.sonarqube.ws.Permissions.UsersResponse.UserOrBuilder getUsersOrBuilder(
int index) {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
public java.util.List<? extends org.sonarqube.ws.Permissions.UsersResponse.UserOrBuilder>
getUsersOrBuilderList() {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
public org.sonarqube.ws.Permissions.UsersResponse.User.Builder addUsersBuilder() {
return getUsersFieldBuilder().addBuilder(
org.sonarqube.ws.Permissions.UsersResponse.User.getDefaultInstance());
}
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
public org.sonarqube.ws.Permissions.UsersResponse.User.Builder addUsersBuilder(
int index) {
index, org.sonarqube.ws.Permissions.UsersResponse.User.getDefaultInstance());
}
/**
- * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.UsersResponse.User users = 2;</code>
*/
public java.util.List<org.sonarqube.ws.Permissions.UsersResponse.User.Builder>
getUsersBuilderList() {
usersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.Permissions.UsersResponse.User, org.sonarqube.ws.Permissions.UsersResponse.User.Builder, org.sonarqube.ws.Permissions.UsersResponse.UserOrBuilder>(
users_,
- ((bitField0_ & 0x00000001) == 0x00000001),
+ ((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
users_ = null;
return usersBuilder_;
}
- private org.sonarqube.ws.Common.Paging paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
- 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 = 2;</code>
- */
- public boolean hasPaging() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</code>
- */
- public org.sonarqube.ws.Common.Paging getPaging() {
- if (pagingBuilder_ == null) {
- return paging_;
- } else {
- return pagingBuilder_.getMessage();
- }
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</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_ |= 0x00000002;
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</code>
- */
- public Builder setPaging(
- org.sonarqube.ws.Common.Paging.Builder builderForValue) {
- if (pagingBuilder_ == null) {
- paging_ = builderForValue.build();
- onChanged();
- } else {
- pagingBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000002;
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</code>
- */
- public Builder mergePaging(org.sonarqube.ws.Common.Paging value) {
- if (pagingBuilder_ == null) {
- if (((bitField0_ & 0x00000002) == 0x00000002) &&
- 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_ |= 0x00000002;
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</code>
- */
- public Builder clearPaging() {
- if (pagingBuilder_ == null) {
- paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
- onChanged();
- } else {
- pagingBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000002);
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</code>
- */
- public org.sonarqube.ws.Common.Paging.Builder getPagingBuilder() {
- bitField0_ |= 0x00000002;
- onChanged();
- return getPagingFieldBuilder().getBuilder();
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</code>
- */
- public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() {
- if (pagingBuilder_ != null) {
- return pagingBuilder_.getMessageOrBuilder();
- } else {
- return paging_;
- }
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</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_;
- }
-
// @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.UsersResponse)
}
com.google.protobuf.MessageOrBuilder {
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <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.GroupsResponse.Group groups = 2;</code>
*/
java.util.List<org.sonarqube.ws.Permissions.GroupsResponse.Group>
getGroupsList();
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
*/
org.sonarqube.ws.Permissions.GroupsResponse.Group getGroups(int index);
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
*/
int getGroupsCount();
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
*/
java.util.List<? extends org.sonarqube.ws.Permissions.GroupsResponse.GroupOrBuilder>
getGroupsOrBuilderList();
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
*/
org.sonarqube.ws.Permissions.GroupsResponse.GroupOrBuilder getGroupsOrBuilder(
int index);
-
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</code>
- */
- boolean hasPaging();
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</code>
- */
- org.sonarqube.ws.Common.Paging getPaging();
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</code>
- */
- org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder();
}
/**
* Protobuf type {@code sonarqube.ws.permissions.GroupsResponse}
break;
}
case 10: {
- if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- groups_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.GroupsResponse.Group>();
- mutable_bitField0_ |= 0x00000001;
- }
- groups_.add(input.readMessage(org.sonarqube.ws.Permissions.GroupsResponse.Group.PARSER, extensionRegistry));
- break;
- }
- case 18: {
org.sonarqube.ws.Common.Paging.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = paging_.toBuilder();
bitField0_ |= 0x00000001;
break;
}
+ case 18: {
+ if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ groups_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.GroupsResponse.Group>();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ groups_.add(input.readMessage(org.sonarqube.ws.Permissions.GroupsResponse.Group.PARSER, extensionRegistry));
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
- if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
groups_ = java.util.Collections.unmodifiableList(groups_);
}
this.unknownFields = unknownFields.build();
}
private int bitField0_;
- public static final int GROUPS_FIELD_NUMBER = 1;
+ 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_;
+ }
+ /**
+ * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
+ */
+ public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() {
+ return paging_;
+ }
+
+ public static final int GROUPS_FIELD_NUMBER = 2;
private java.util.List<org.sonarqube.ws.Permissions.GroupsResponse.Group> groups_;
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
*/
public java.util.List<org.sonarqube.ws.Permissions.GroupsResponse.Group> getGroupsList() {
return groups_;
}
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
*/
public java.util.List<? extends org.sonarqube.ws.Permissions.GroupsResponse.GroupOrBuilder>
getGroupsOrBuilderList() {
return groups_;
}
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
*/
public int getGroupsCount() {
return groups_.size();
}
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
*/
public org.sonarqube.ws.Permissions.GroupsResponse.Group getGroups(int index) {
return groups_.get(index);
}
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
*/
public org.sonarqube.ws.Permissions.GroupsResponse.GroupOrBuilder getGroupsOrBuilder(
int index) {
return groups_.get(index);
}
- public static final int PAGING_FIELD_NUMBER = 2;
- private org.sonarqube.ws.Common.Paging paging_;
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</code>
- */
- public boolean hasPaging() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</code>
- */
- public org.sonarqube.ws.Common.Paging getPaging() {
- return paging_;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</code>
- */
- public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() {
- return paging_;
- }
-
private void initFields() {
- groups_ = java.util.Collections.emptyList();
paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
+ groups_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
- for (int i = 0; i < groups_.size(); i++) {
- output.writeMessage(1, groups_.get(i));
- }
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(2, paging_);
+ output.writeMessage(1, paging_);
+ }
+ for (int i = 0; i < groups_.size(); i++) {
+ output.writeMessage(2, groups_.get(i));
}
getUnknownFields().writeTo(output);
}
if (size != -1) return size;
size = 0;
- for (int i = 0; i < groups_.size(); i++) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, groups_.get(i));
+ .computeMessageSize(1, paging_);
}
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ for (int i = 0; i < groups_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, paging_);
+ .computeMessageSize(2, groups_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getGroupsFieldBuilder();
getPagingFieldBuilder();
+ getGroupsFieldBuilder();
}
}
private static Builder create() {
public Builder clear() {
super.clear();
- if (groupsBuilder_ == null) {
- groups_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- groupsBuilder_.clear();
- }
if (pagingBuilder_ == null) {
paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
} else {
pagingBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ if (groupsBuilder_ == null) {
+ groups_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ groupsBuilder_.clear();
+ }
return this;
}
org.sonarqube.ws.Permissions.GroupsResponse result = new org.sonarqube.ws.Permissions.GroupsResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (groupsBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- groups_ = java.util.Collections.unmodifiableList(groups_);
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.groups_ = groups_;
- } else {
- result.groups_ = groupsBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (pagingBuilder_ == null) {
} else {
result.paging_ = pagingBuilder_.build();
}
+ if (groupsBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ groups_ = java.util.Collections.unmodifiableList(groups_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.groups_ = groups_;
+ } else {
+ result.groups_ = groupsBuilder_.build();
+ }
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
public Builder mergeFrom(org.sonarqube.ws.Permissions.GroupsResponse other) {
if (other == org.sonarqube.ws.Permissions.GroupsResponse.getDefaultInstance()) return this;
+ if (other.hasPaging()) {
+ mergePaging(other.getPaging());
+ }
if (groupsBuilder_ == null) {
if (!other.groups_.isEmpty()) {
if (groups_.isEmpty()) {
groups_ = other.groups_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureGroupsIsMutable();
groups_.addAll(other.groups_);
groupsBuilder_.dispose();
groupsBuilder_ = null;
groups_ = other.groups_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
groupsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getGroupsFieldBuilder() : null;
}
}
}
- if (other.hasPaging()) {
- mergePaging(other.getPaging());
- }
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
}
private int bitField0_;
- private java.util.List<org.sonarqube.ws.Permissions.GroupsResponse.Group> groups_ =
- java.util.Collections.emptyList();
- private void ensureGroupsIsMutable() {
- if (!((bitField0_ & 0x00000001) == 0x00000001)) {
- groups_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.GroupsResponse.Group>(groups_);
- bitField0_ |= 0x00000001;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.GroupsResponse.Group, org.sonarqube.ws.Permissions.GroupsResponse.Group.Builder, org.sonarqube.ws.Permissions.GroupsResponse.GroupOrBuilder> groupsBuilder_;
-
+ private org.sonarqube.ws.Common.Paging paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_;
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
*/
- public java.util.List<org.sonarqube.ws.Permissions.GroupsResponse.Group> getGroupsList() {
- if (groupsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(groups_);
- } else {
- return groupsBuilder_.getMessageList();
- }
+ public boolean hasPaging() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
*/
- public int getGroupsCount() {
- if (groupsBuilder_ == null) {
- return groups_.size();
+ public org.sonarqube.ws.Common.Paging getPaging() {
+ if (pagingBuilder_ == null) {
+ return paging_;
} else {
- return groupsBuilder_.getCount();
+ return pagingBuilder_.getMessage();
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
*/
- public org.sonarqube.ws.Permissions.GroupsResponse.Group getGroups(int index) {
- if (groupsBuilder_ == null) {
- return groups_.get(index);
- } else {
- return groupsBuilder_.getMessage(index);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 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_ != 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_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
+ 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_;
+ }
+ }
+ /**
+ * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder>
+ getPagingFieldBuilder() {
+ if (pagingBuilder_ == null) {
+ pagingBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder>(
+ getPaging(),
+ getParentForChildren(),
+ isClean());
+ paging_ = null;
+ }
+ return pagingBuilder_;
+ }
+
+ private java.util.List<org.sonarqube.ws.Permissions.GroupsResponse.Group> groups_ =
+ java.util.Collections.emptyList();
+ private void ensureGroupsIsMutable() {
+ if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ groups_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.GroupsResponse.Group>(groups_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.Permissions.GroupsResponse.Group, org.sonarqube.ws.Permissions.GroupsResponse.Group.Builder, org.sonarqube.ws.Permissions.GroupsResponse.GroupOrBuilder> groupsBuilder_;
+
+ /**
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
+ */
+ public java.util.List<org.sonarqube.ws.Permissions.GroupsResponse.Group> getGroupsList() {
+ if (groupsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(groups_);
+ } else {
+ return groupsBuilder_.getMessageList();
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
+ */
+ public int getGroupsCount() {
+ if (groupsBuilder_ == null) {
+ return groups_.size();
+ } else {
+ return groupsBuilder_.getCount();
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
+ */
+ public org.sonarqube.ws.Permissions.GroupsResponse.Group getGroups(int index) {
+ if (groupsBuilder_ == null) {
+ return groups_.get(index);
+ } else {
+ return groupsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
*/
public Builder setGroups(
int index, org.sonarqube.ws.Permissions.GroupsResponse.Group value) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
*/
public Builder setGroups(
int index, org.sonarqube.ws.Permissions.GroupsResponse.Group.Builder builderForValue) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
*/
public Builder addGroups(org.sonarqube.ws.Permissions.GroupsResponse.Group value) {
if (groupsBuilder_ == null) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
*/
public Builder addGroups(
int index, org.sonarqube.ws.Permissions.GroupsResponse.Group value) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
*/
public Builder addGroups(
org.sonarqube.ws.Permissions.GroupsResponse.Group.Builder builderForValue) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
*/
public Builder addGroups(
int index, org.sonarqube.ws.Permissions.GroupsResponse.Group.Builder builderForValue) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
*/
public Builder addAllGroups(
java.lang.Iterable<? extends org.sonarqube.ws.Permissions.GroupsResponse.Group> values) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
*/
public Builder clearGroups() {
if (groupsBuilder_ == null) {
groups_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
groupsBuilder_.clear();
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
*/
public Builder removeGroups(int index) {
if (groupsBuilder_ == null) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
*/
public org.sonarqube.ws.Permissions.GroupsResponse.Group.Builder getGroupsBuilder(
int index) {
return getGroupsFieldBuilder().getBuilder(index);
}
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
*/
public org.sonarqube.ws.Permissions.GroupsResponse.GroupOrBuilder getGroupsOrBuilder(
int index) {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
*/
public java.util.List<? extends org.sonarqube.ws.Permissions.GroupsResponse.GroupOrBuilder>
getGroupsOrBuilderList() {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
*/
public org.sonarqube.ws.Permissions.GroupsResponse.Group.Builder addGroupsBuilder() {
return getGroupsFieldBuilder().addBuilder(
org.sonarqube.ws.Permissions.GroupsResponse.Group.getDefaultInstance());
}
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
*/
public org.sonarqube.ws.Permissions.GroupsResponse.Group.Builder addGroupsBuilder(
int index) {
index, org.sonarqube.ws.Permissions.GroupsResponse.Group.getDefaultInstance());
}
/**
- * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.GroupsResponse.Group groups = 2;</code>
*/
public java.util.List<org.sonarqube.ws.Permissions.GroupsResponse.Group.Builder>
getGroupsBuilderList() {
groupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.Permissions.GroupsResponse.Group, org.sonarqube.ws.Permissions.GroupsResponse.Group.Builder, org.sonarqube.ws.Permissions.GroupsResponse.GroupOrBuilder>(
groups_,
- ((bitField0_ & 0x00000001) == 0x00000001),
+ ((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
groups_ = null;
return groupsBuilder_;
}
- private org.sonarqube.ws.Common.Paging paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
- 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 = 2;</code>
- */
- public boolean hasPaging() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</code>
- */
- public org.sonarqube.ws.Common.Paging getPaging() {
- if (pagingBuilder_ == null) {
- return paging_;
- } else {
- return pagingBuilder_.getMessage();
- }
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</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_ |= 0x00000002;
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</code>
- */
- public Builder setPaging(
- org.sonarqube.ws.Common.Paging.Builder builderForValue) {
- if (pagingBuilder_ == null) {
- paging_ = builderForValue.build();
- onChanged();
- } else {
- pagingBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000002;
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</code>
- */
- public Builder mergePaging(org.sonarqube.ws.Common.Paging value) {
- if (pagingBuilder_ == null) {
- if (((bitField0_ & 0x00000002) == 0x00000002) &&
- 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_ |= 0x00000002;
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</code>
- */
- public Builder clearPaging() {
- if (pagingBuilder_ == null) {
- paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
- onChanged();
- } else {
- pagingBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000002);
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</code>
- */
- public org.sonarqube.ws.Common.Paging.Builder getPagingBuilder() {
- bitField0_ |= 0x00000002;
- onChanged();
- return getPagingFieldBuilder().getBuilder();
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</code>
- */
- public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() {
- if (pagingBuilder_ != null) {
- return pagingBuilder_.getMessageOrBuilder();
- } else {
- return paging_;
- }
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 2;</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_;
- }
-
// @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.GroupsResponse)
}
com.google.protobuf.MessageOrBuilder {
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <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.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
java.util.List<org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project>
getProjectsList();
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project getProjects(int index);
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
int getProjectsCount();
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
java.util.List<? extends org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.ProjectOrBuilder>
getProjectsOrBuilderList();
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.ProjectOrBuilder getProjectsOrBuilder(
int index);
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
java.util.List<org.sonarqube.ws.Permissions.Permission>
getPermissionsList();
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
org.sonarqube.ws.Permissions.Permission getPermissions(int index);
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
int getPermissionsCount();
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
java.util.List<? extends org.sonarqube.ws.Permissions.PermissionOrBuilder>
getPermissionsOrBuilderList();
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder(
int index);
-
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 3;</code>
- */
- boolean hasPaging();
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 3;</code>
- */
- org.sonarqube.ws.Common.Paging getPaging();
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 3;</code>
- */
- org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder();
}
/**
* Protobuf type {@code sonarqube.ws.permissions.SearchProjectPermissionsResponse}
break;
}
case 10: {
- if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- projects_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project>();
- mutable_bitField0_ |= 0x00000001;
+ org.sonarqube.ws.Common.Paging.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ subBuilder = paging_.toBuilder();
}
- projects_.add(input.readMessage(org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project.PARSER, extensionRegistry));
+ 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)) {
- permissions_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.Permission>();
+ projects_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project>();
mutable_bitField0_ |= 0x00000002;
}
- permissions_.add(input.readMessage(org.sonarqube.ws.Permissions.Permission.PARSER, extensionRegistry));
+ projects_.add(input.readMessage(org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project.PARSER, extensionRegistry));
break;
}
case 26: {
- 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();
+ if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
+ permissions_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.Permission>();
+ mutable_bitField0_ |= 0x00000004;
}
- bitField0_ |= 0x00000001;
+ permissions_.add(input.readMessage(org.sonarqube.ws.Permissions.Permission.PARSER, extensionRegistry));
break;
}
}
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
- if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
projects_ = java.util.Collections.unmodifiableList(projects_);
}
- if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
permissions_ = java.util.Collections.unmodifiableList(permissions_);
}
this.unknownFields = unknownFields.build();
}
private int bitField0_;
- public static final int PROJECTS_FIELD_NUMBER = 1;
+ 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_;
+ }
+ /**
+ * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
+ */
+ public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() {
+ return paging_;
+ }
+
+ public static final int PROJECTS_FIELD_NUMBER = 2;
private java.util.List<org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project> projects_;
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
public java.util.List<org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project> getProjectsList() {
return projects_;
}
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
public java.util.List<? extends org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.ProjectOrBuilder>
getProjectsOrBuilderList() {
return projects_;
}
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
public int getProjectsCount() {
return projects_.size();
}
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
public org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project getProjects(int index) {
return projects_.get(index);
}
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
public org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.ProjectOrBuilder getProjectsOrBuilder(
int index) {
return projects_.get(index);
}
- public static final int PERMISSIONS_FIELD_NUMBER = 2;
+ public static final int PERMISSIONS_FIELD_NUMBER = 3;
private java.util.List<org.sonarqube.ws.Permissions.Permission> permissions_;
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
public java.util.List<org.sonarqube.ws.Permissions.Permission> getPermissionsList() {
return permissions_;
}
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
public java.util.List<? extends org.sonarqube.ws.Permissions.PermissionOrBuilder>
getPermissionsOrBuilderList() {
return permissions_;
}
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
public int getPermissionsCount() {
return permissions_.size();
}
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
public org.sonarqube.ws.Permissions.Permission getPermissions(int index) {
return permissions_.get(index);
}
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
public org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder(
int index) {
return permissions_.get(index);
}
- public static final int PAGING_FIELD_NUMBER = 3;
- private org.sonarqube.ws.Common.Paging paging_;
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 3;</code>
- */
- public boolean hasPaging() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 3;</code>
- */
- public org.sonarqube.ws.Common.Paging getPaging() {
- return paging_;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 3;</code>
- */
- public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() {
- return paging_;
- }
-
private void initFields() {
+ paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
projects_ = java.util.Collections.emptyList();
permissions_ = java.util.Collections.emptyList();
- paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeMessage(1, paging_);
+ }
for (int i = 0; i < projects_.size(); i++) {
- output.writeMessage(1, projects_.get(i));
+ output.writeMessage(2, projects_.get(i));
}
for (int i = 0; i < permissions_.size(); i++) {
- output.writeMessage(2, permissions_.get(i));
- }
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(3, paging_);
+ output.writeMessage(3, permissions_.get(i));
}
getUnknownFields().writeTo(output);
}
if (size != -1) return size;
size = 0;
- for (int i = 0; i < projects_.size(); i++) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, projects_.get(i));
+ .computeMessageSize(1, paging_);
}
- for (int i = 0; i < permissions_.size(); i++) {
+ for (int i = 0; i < projects_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, permissions_.get(i));
+ .computeMessageSize(2, projects_.get(i));
}
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ for (int i = 0; i < permissions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, paging_);
+ .computeMessageSize(3, permissions_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getPagingFieldBuilder();
getProjectsFieldBuilder();
getPermissionsFieldBuilder();
- getPagingFieldBuilder();
}
}
private static Builder create() {
public Builder clear() {
super.clear();
+ if (pagingBuilder_ == null) {
+ paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
+ } else {
+ pagingBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
if (projectsBuilder_ == null) {
projects_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
} else {
projectsBuilder_.clear();
}
if (permissionsBuilder_ == null) {
permissions_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000004);
} else {
permissionsBuilder_.clear();
}
- if (pagingBuilder_ == null) {
- paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
- } else {
- pagingBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse result = new org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ if (pagingBuilder_ == null) {
+ result.paging_ = paging_;
+ } else {
+ result.paging_ = pagingBuilder_.build();
+ }
if (projectsBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
projects_ = java.util.Collections.unmodifiableList(projects_);
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
}
result.projects_ = projects_;
} else {
result.projects_ = projectsBuilder_.build();
}
if (permissionsBuilder_ == null) {
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
permissions_ = java.util.Collections.unmodifiableList(permissions_);
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000004);
}
result.permissions_ = permissions_;
} else {
result.permissions_ = permissionsBuilder_.build();
}
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000001;
- }
- if (pagingBuilder_ == null) {
- result.paging_ = paging_;
- } else {
- result.paging_ = pagingBuilder_.build();
- }
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
public Builder mergeFrom(org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse other) {
if (other == org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.getDefaultInstance()) return this;
+ if (other.hasPaging()) {
+ mergePaging(other.getPaging());
+ }
if (projectsBuilder_ == null) {
if (!other.projects_.isEmpty()) {
if (projects_.isEmpty()) {
projects_ = other.projects_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureProjectsIsMutable();
projects_.addAll(other.projects_);
projectsBuilder_.dispose();
projectsBuilder_ = null;
projects_ = other.projects_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
projectsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getProjectsFieldBuilder() : null;
if (!other.permissions_.isEmpty()) {
if (permissions_.isEmpty()) {
permissions_ = other.permissions_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensurePermissionsIsMutable();
permissions_.addAll(other.permissions_);
permissionsBuilder_.dispose();
permissionsBuilder_ = null;
permissions_ = other.permissions_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000004);
permissionsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getPermissionsFieldBuilder() : null;
}
}
}
- if (other.hasPaging()) {
- mergePaging(other.getPaging());
- }
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
}
private int bitField0_;
+ private org.sonarqube.ws.Common.Paging paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
+ 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_;
+ } 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_ != 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_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
+ 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_;
+ }
+ }
+ /**
+ * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder>
+ getPagingFieldBuilder() {
+ if (pagingBuilder_ == null) {
+ pagingBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder>(
+ getPaging(),
+ getParentForChildren(),
+ isClean());
+ paging_ = null;
+ }
+ return pagingBuilder_;
+ }
+
private java.util.List<org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project> projects_ =
java.util.Collections.emptyList();
private void ensureProjectsIsMutable() {
- if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (!((bitField0_ & 0x00000002) == 0x00000002)) {
projects_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project>(projects_);
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000002;
}
}
org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project, org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project.Builder, org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.ProjectOrBuilder> projectsBuilder_;
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
public java.util.List<org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project> getProjectsList() {
if (projectsBuilder_ == null) {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
public int getProjectsCount() {
if (projectsBuilder_ == null) {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
public org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project getProjects(int index) {
if (projectsBuilder_ == null) {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
public Builder setProjects(
int index, org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project value) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
public Builder setProjects(
int index, org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project.Builder builderForValue) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
public Builder addProjects(org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project value) {
if (projectsBuilder_ == null) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
public Builder addProjects(
int index, org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project value) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
public Builder addProjects(
org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project.Builder builderForValue) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
public Builder addProjects(
int index, org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project.Builder builderForValue) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
public Builder addAllProjects(
java.lang.Iterable<? extends org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project> values) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
public Builder clearProjects() {
if (projectsBuilder_ == null) {
projects_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
projectsBuilder_.clear();
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
public Builder removeProjects(int index) {
if (projectsBuilder_ == null) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
public org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project.Builder getProjectsBuilder(
int index) {
return getProjectsFieldBuilder().getBuilder(index);
}
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
public org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.ProjectOrBuilder getProjectsOrBuilder(
int index) {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
public java.util.List<? extends org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.ProjectOrBuilder>
getProjectsOrBuilderList() {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
public org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project.Builder addProjectsBuilder() {
return getProjectsFieldBuilder().addBuilder(
org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project.getDefaultInstance());
}
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
public org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project.Builder addProjectsBuilder(
int index) {
index, org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project.getDefaultInstance());
}
/**
- * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 1;</code>
+ * <code>repeated .sonarqube.ws.permissions.SearchProjectPermissionsResponse.Project projects = 2;</code>
*/
public java.util.List<org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project.Builder>
getProjectsBuilderList() {
projectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project, org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.Project.Builder, org.sonarqube.ws.Permissions.SearchProjectPermissionsResponse.ProjectOrBuilder>(
projects_,
- ((bitField0_ & 0x00000001) == 0x00000001),
+ ((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
projects_ = null;
private java.util.List<org.sonarqube.ws.Permissions.Permission> permissions_ =
java.util.Collections.emptyList();
private void ensurePermissionsIsMutable() {
- if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (!((bitField0_ & 0x00000004) == 0x00000004)) {
permissions_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.Permission>(permissions_);
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000004;
}
}
org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder> permissionsBuilder_;
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
public java.util.List<org.sonarqube.ws.Permissions.Permission> getPermissionsList() {
if (permissionsBuilder_ == null) {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
public int getPermissionsCount() {
if (permissionsBuilder_ == null) {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
public org.sonarqube.ws.Permissions.Permission getPermissions(int index) {
if (permissionsBuilder_ == null) {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
public Builder setPermissions(
int index, org.sonarqube.ws.Permissions.Permission value) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
public Builder setPermissions(
int index, org.sonarqube.ws.Permissions.Permission.Builder builderForValue) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
public Builder addPermissions(org.sonarqube.ws.Permissions.Permission value) {
if (permissionsBuilder_ == null) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
public Builder addPermissions(
int index, org.sonarqube.ws.Permissions.Permission value) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
public Builder addPermissions(
org.sonarqube.ws.Permissions.Permission.Builder builderForValue) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
public Builder addPermissions(
int index, org.sonarqube.ws.Permissions.Permission.Builder builderForValue) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
public Builder addAllPermissions(
java.lang.Iterable<? extends org.sonarqube.ws.Permissions.Permission> values) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
public Builder clearPermissions() {
if (permissionsBuilder_ == null) {
permissions_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
permissionsBuilder_.clear();
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
public Builder removePermissions(int index) {
if (permissionsBuilder_ == null) {
return this;
}
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
public org.sonarqube.ws.Permissions.Permission.Builder getPermissionsBuilder(
int index) {
return getPermissionsFieldBuilder().getBuilder(index);
}
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
public org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder(
int index) {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
public java.util.List<? extends org.sonarqube.ws.Permissions.PermissionOrBuilder>
getPermissionsOrBuilderList() {
}
}
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
public org.sonarqube.ws.Permissions.Permission.Builder addPermissionsBuilder() {
return getPermissionsFieldBuilder().addBuilder(
org.sonarqube.ws.Permissions.Permission.getDefaultInstance());
}
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
public org.sonarqube.ws.Permissions.Permission.Builder addPermissionsBuilder(
int index) {
index, org.sonarqube.ws.Permissions.Permission.getDefaultInstance());
}
/**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 2;</code>
+ * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
*/
public java.util.List<org.sonarqube.ws.Permissions.Permission.Builder>
getPermissionsBuilderList() {
permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder>(
permissions_,
- ((bitField0_ & 0x00000002) == 0x00000002),
+ ((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
permissions_ = null;
return permissionsBuilder_;
}
- private org.sonarqube.ws.Common.Paging paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
- 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 = 3;</code>
- */
- public boolean hasPaging() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 3;</code>
- */
- public org.sonarqube.ws.Common.Paging getPaging() {
- if (pagingBuilder_ == null) {
- return paging_;
- } else {
- return pagingBuilder_.getMessage();
- }
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 3;</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_ |= 0x00000004;
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 3;</code>
- */
- public Builder setPaging(
- org.sonarqube.ws.Common.Paging.Builder builderForValue) {
- if (pagingBuilder_ == null) {
- paging_ = builderForValue.build();
- onChanged();
- } else {
- pagingBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000004;
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 3;</code>
- */
- public Builder mergePaging(org.sonarqube.ws.Common.Paging value) {
- if (pagingBuilder_ == null) {
- if (((bitField0_ & 0x00000004) == 0x00000004) &&
- 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_ |= 0x00000004;
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 3;</code>
- */
- public Builder clearPaging() {
- if (pagingBuilder_ == null) {
- paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
- onChanged();
- } else {
- pagingBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000004);
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 3;</code>
- */
- public org.sonarqube.ws.Common.Paging.Builder getPagingBuilder() {
- bitField0_ |= 0x00000004;
- onChanged();
- return getPagingFieldBuilder().getBuilder();
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 3;</code>
- */
- public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() {
- if (pagingBuilder_ != null) {
- return pagingBuilder_.getMessageOrBuilder();
- } else {
- return paging_;
- }
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 3;</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_;
- }
-
// @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.SearchProjectPermissionsResponse)
}
/**
* <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();
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_;
}
/**
* <code>optional string createdAt = 5;</code>
+ *
+ * <pre>
+ * ex: 2015-08-25T16:18:48+0200
+ * </pre>
*/
public com.google.protobuf.ByteString
getCreatedAtBytes() {
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_;
}
/**
* <code>optional string updatedAt = 6;</code>
+ *
+ * <pre>
+ * ex: 2015-08-25T16:18:48+0200
+ * </pre>
*/
public com.google.protobuf.ByteString
getUpdatedAtBytes() {
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_;
}
/**
* <code>optional string createdAt = 5;</code>
+ *
+ * <pre>
+ * ex: 2015-08-25T16:18:48+0200
+ * </pre>
*/
public com.google.protobuf.ByteString
getCreatedAtBytes() {
}
/**
* <code>optional string createdAt = 5;</code>
+ *
+ * <pre>
+ * ex: 2015-08-25T16:18:48+0200
+ * </pre>
*/
public Builder setCreatedAt(
java.lang.String value) {
}
/**
* <code>optional string createdAt = 5;</code>
+ *
+ * <pre>
+ * ex: 2015-08-25T16:18:48+0200
+ * </pre>
*/
public Builder clearCreatedAt() {
bitField0_ = (bitField0_ & ~0x00000010);
}
/**
* <code>optional string createdAt = 5;</code>
+ *
+ * <pre>
+ * ex: 2015-08-25T16:18:48+0200
+ * </pre>
*/
public Builder setCreatedAtBytes(
com.google.protobuf.ByteString value) {
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_;
}
/**
* <code>optional string updatedAt = 6;</code>
+ *
+ * <pre>
+ * ex: 2015-08-25T16:18:48+0200
+ * </pre>
*/
public com.google.protobuf.ByteString
getUpdatedAtBytes() {
}
/**
* <code>optional string updatedAt = 6;</code>
+ *
+ * <pre>
+ * ex: 2015-08-25T16:18:48+0200
+ * </pre>
*/
public Builder setUpdatedAt(
java.lang.String value) {
}
/**
* <code>optional string updatedAt = 6;</code>
+ *
+ * <pre>
+ * ex: 2015-08-25T16:18:48+0200
+ * </pre>
*/
public Builder clearUpdatedAt() {
bitField0_ = (bitField0_ & ~0x00000020);
}
/**
* <code>optional string updatedAt = 6;</code>
+ *
+ * <pre>
+ * ex: 2015-08-25T16:18:48+0200
+ * </pre>
*/
public Builder setUpdatedAtBytes(
com.google.protobuf.ByteString value) {
java.lang.String[] descriptorData = {
"\n\024ws-permissions.proto\022\030sonarqube.ws.per" +
"missions\032\020ws-commons.proto\"\300\001\n\rUsersResp" +
- "onse\022;\n\005users\030\001 \003(\0132,.sonarqube.ws.permi" +
- "ssions.UsersResponse.User\022,\n\006paging\030\002 \001(" +
- "\0132\034.sonarqube.ws.commons.Paging\032D\n\004User\022" +
+ "onse\022,\n\006paging\030\001 \001(\0132\034.sonarqube.ws.comm" +
+ "ons.Paging\022;\n\005users\030\002 \003(\0132,.sonarqube.ws" +
+ ".permissions.UsersResponse.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\010selected\030\004 \001(\010\"\310\001\n\016GroupsResponse" +
- "\022>\n\006groups\030\001 \003(\0132..sonarqube.ws.permissi" +
- "ons.GroupsResponse.Group\022,\n\006paging\030\002 \001(\013" +
- "2\034.sonarqube.ws.commons.Paging\032H\n\005Group\022",
+ "\022,\n\006paging\030\001 \001(\0132\034.sonarqube.ws.commons." +
+ "Paging\022>\n\006groups\030\002 \003(\0132..sonarqube.ws.pe" +
+ "rmissions.GroupsResponse.Group\032H\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(\010\"e\n\nPermission\022\013" +
"\n\003key\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\023\n\013description" +
"t\030\005 \001(\005\"\\\n\037SearchGlobalPermissionsRespon" +
"se\0229\n\013permissions\030\001 \003(\0132$.sonarqube.ws.p" +
"ermissions.Permission\"\344\002\n SearchProjectP" +
- "ermissionsResponse\022T\n\010projects\030\001 \003(\0132B.s" +
- "onarqube.ws.permissions.SearchProjectPer" +
- "missionsResponse.Project\0229\n\013permissions\030",
- "\002 \003(\0132$.sonarqube.ws.permissions.Permiss" +
- "ion\022,\n\006paging\030\003 \001(\0132\034.sonarqube.ws.commo" +
- "ns.Paging\032\200\001\n\007Project\022\014\n\004uuid\030\001 \001(\t\022\013\n\003k" +
+ "ermissionsResponse\022,\n\006paging\030\001 \001(\0132\034.son" +
+ "arqube.ws.commons.Paging\022T\n\010projects\030\002 \003" +
+ "(\0132B.sonarqube.ws.permissions.SearchProj",
+ "ectPermissionsResponse.Project\0229\n\013permis" +
+ "sions\030\003 \003(\0132$.sonarqube.ws.permissions.P" +
+ "ermission\032\200\001\n\007Project\022\014\n\004uuid\030\001 \001(\t\022\013\n\003k" +
"ey\030\002 \001(\t\022\021\n\tqualifier\030\003 \001(\t\022\014\n\004name\030\004 \001(" +
"\t\0229\n\013permissions\030\005 \003(\0132$.sonarqube.ws.pe" +
"rmissions.Permission\"\202\001\n\022PermissionTempl" +
internal_static_sonarqube_ws_permissions_UsersResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_permissions_UsersResponse_descriptor,
- new java.lang.String[] { "Users", "Paging", });
+ new java.lang.String[] { "Paging", "Users", });
internal_static_sonarqube_ws_permissions_UsersResponse_User_descriptor =
internal_static_sonarqube_ws_permissions_UsersResponse_descriptor.getNestedTypes().get(0);
internal_static_sonarqube_ws_permissions_UsersResponse_User_fieldAccessorTable = new
internal_static_sonarqube_ws_permissions_GroupsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_permissions_GroupsResponse_descriptor,
- new java.lang.String[] { "Groups", "Paging", });
+ new java.lang.String[] { "Paging", "Groups", });
internal_static_sonarqube_ws_permissions_GroupsResponse_Group_descriptor =
internal_static_sonarqube_ws_permissions_GroupsResponse_descriptor.getNestedTypes().get(0);
internal_static_sonarqube_ws_permissions_GroupsResponse_Group_fieldAccessorTable = new
internal_static_sonarqube_ws_permissions_SearchProjectPermissionsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_permissions_SearchProjectPermissionsResponse_descriptor,
- new java.lang.String[] { "Projects", "Permissions", "Paging", });
+ new java.lang.String[] { "Paging", "Projects", "Permissions", });
internal_static_sonarqube_ws_permissions_SearchProjectPermissionsResponse_Project_descriptor =
internal_static_sonarqube_ws_permissions_SearchProjectPermissionsResponse_descriptor.getNestedTypes().get(0);
internal_static_sonarqube_ws_permissions_SearchProjectPermissionsResponse_Project_fieldAccessorTable = new