All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonarqube.ws.WsPermissions Maven / Gradle / Ivy

There is a newer version: 25.1.0.102122
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ws-permissions.proto

package org.sonarqube.ws;

public final class WsPermissions {
  private WsPermissions() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface OldUsersWsResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.OldUsersWsResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional .sonarqube.ws.commons.Paging paging = 1;
     */
    boolean hasPaging();
    /**
     * optional .sonarqube.ws.commons.Paging paging = 1;
     */
    org.sonarqube.ws.Common.Paging getPaging();
    /**
     * optional .sonarqube.ws.commons.Paging paging = 1;
     */
    org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder();

    /**
     * repeated .sonarqube.ws.permissions.OldUser users = 2;
     */
    java.util.List 
        getUsersList();
    /**
     * repeated .sonarqube.ws.permissions.OldUser users = 2;
     */
    org.sonarqube.ws.WsPermissions.OldUser getUsers(int index);
    /**
     * repeated .sonarqube.ws.permissions.OldUser users = 2;
     */
    int getUsersCount();
    /**
     * repeated .sonarqube.ws.permissions.OldUser users = 2;
     */
    java.util.List 
        getUsersOrBuilderList();
    /**
     * repeated .sonarqube.ws.permissions.OldUser users = 2;
     */
    org.sonarqube.ws.WsPermissions.OldUserOrBuilder getUsersOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code sonarqube.ws.permissions.OldUsersWsResponse}
   *
   * 
   * WS api/permissions/template_users for internal use only
   * 
*/ public static final class OldUsersWsResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.OldUsersWsResponse) OldUsersWsResponseOrBuilder { // Use OldUsersWsResponse.newBuilder() to construct. private OldUsersWsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private OldUsersWsResponse() { users_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OldUsersWsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.sonarqube.ws.Common.Paging.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = paging_.toBuilder(); } paging_ = input.readMessage(org.sonarqube.ws.Common.Paging.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(paging_); paging_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { users_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } users_.add(input.readMessage(org.sonarqube.ws.WsPermissions.OldUser.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { users_ = java.util.Collections.unmodifiableList(users_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_OldUsersWsResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_OldUsersWsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.OldUsersWsResponse.class, org.sonarqube.ws.WsPermissions.OldUsersWsResponse.Builder.class); } private int bitField0_; public static final int PAGING_FIELD_NUMBER = 1; private org.sonarqube.ws.Common.Paging paging_; /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public boolean hasPaging() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public org.sonarqube.ws.Common.Paging getPaging() { return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; } public static final int USERS_FIELD_NUMBER = 2; private java.util.List users_; /** * repeated .sonarqube.ws.permissions.OldUser users = 2; */ public java.util.List getUsersList() { return users_; } /** * repeated .sonarqube.ws.permissions.OldUser users = 2; */ public java.util.List getUsersOrBuilderList() { return users_; } /** * repeated .sonarqube.ws.permissions.OldUser users = 2; */ public int getUsersCount() { return users_.size(); } /** * repeated .sonarqube.ws.permissions.OldUser users = 2; */ public org.sonarqube.ws.WsPermissions.OldUser getUsers(int index) { return users_.get(index); } /** * repeated .sonarqube.ws.permissions.OldUser users = 2; */ public org.sonarqube.ws.WsPermissions.OldUserOrBuilder getUsersOrBuilder( int index) { return users_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getPaging()); } for (int i = 0; i < users_.size(); i++) { output.writeMessage(2, users_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPaging()); } for (int i = 0; i < users_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, users_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.sonarqube.ws.WsPermissions.OldUsersWsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.OldUsersWsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.OldUsersWsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.OldUsersWsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.OldUsersWsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.OldUsersWsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.OldUsersWsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.sonarqube.ws.WsPermissions.OldUsersWsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.OldUsersWsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.OldUsersWsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarqube.ws.WsPermissions.OldUsersWsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code sonarqube.ws.permissions.OldUsersWsResponse} * *
     * WS api/permissions/template_users for internal use only
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.OldUsersWsResponse) org.sonarqube.ws.WsPermissions.OldUsersWsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_OldUsersWsResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_OldUsersWsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.OldUsersWsResponse.class, org.sonarqube.ws.WsPermissions.OldUsersWsResponse.Builder.class); } // Construct using org.sonarqube.ws.WsPermissions.OldUsersWsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPagingFieldBuilder(); getUsersFieldBuilder(); } } public Builder clear() { super.clear(); if (pagingBuilder_ == null) { paging_ = null; } else { pagingBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (usersBuilder_ == null) { users_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { usersBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_OldUsersWsResponse_descriptor; } public org.sonarqube.ws.WsPermissions.OldUsersWsResponse getDefaultInstanceForType() { return org.sonarqube.ws.WsPermissions.OldUsersWsResponse.getDefaultInstance(); } public org.sonarqube.ws.WsPermissions.OldUsersWsResponse build() { org.sonarqube.ws.WsPermissions.OldUsersWsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.sonarqube.ws.WsPermissions.OldUsersWsResponse buildPartial() { org.sonarqube.ws.WsPermissions.OldUsersWsResponse result = new org.sonarqube.ws.WsPermissions.OldUsersWsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (pagingBuilder_ == null) { result.paging_ = paging_; } else { result.paging_ = pagingBuilder_.build(); } if (usersBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { users_ = java.util.Collections.unmodifiableList(users_); bitField0_ = (bitField0_ & ~0x00000002); } result.users_ = users_; } else { result.users_ = usersBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarqube.ws.WsPermissions.OldUsersWsResponse) { return mergeFrom((org.sonarqube.ws.WsPermissions.OldUsersWsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarqube.ws.WsPermissions.OldUsersWsResponse other) { if (other == org.sonarqube.ws.WsPermissions.OldUsersWsResponse.getDefaultInstance()) return this; if (other.hasPaging()) { mergePaging(other.getPaging()); } if (usersBuilder_ == null) { if (!other.users_.isEmpty()) { if (users_.isEmpty()) { users_ = other.users_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureUsersIsMutable(); users_.addAll(other.users_); } onChanged(); } } else { if (!other.users_.isEmpty()) { if (usersBuilder_.isEmpty()) { usersBuilder_.dispose(); usersBuilder_ = null; users_ = other.users_; bitField0_ = (bitField0_ & ~0x00000002); usersBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getUsersFieldBuilder() : null; } else { usersBuilder_.addAllMessages(other.users_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.sonarqube.ws.WsPermissions.OldUsersWsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.sonarqube.ws.WsPermissions.OldUsersWsResponse) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.sonarqube.ws.Common.Paging paging_ = null; private com.google.protobuf.SingleFieldBuilder< org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_; /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public boolean hasPaging() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public org.sonarqube.ws.Common.Paging getPaging() { if (pagingBuilder_ == null) { return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; } else { return pagingBuilder_.getMessage(); } } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ 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; } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ 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; } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public Builder mergePaging(org.sonarqube.ws.Common.Paging value) { if (pagingBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && paging_ != null && paging_ != org.sonarqube.ws.Common.Paging.getDefaultInstance()) { paging_ = org.sonarqube.ws.Common.Paging.newBuilder(paging_).mergeFrom(value).buildPartial(); } else { paging_ = value; } onChanged(); } else { pagingBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public Builder clearPaging() { if (pagingBuilder_ == null) { paging_ = null; onChanged(); } else { pagingBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public org.sonarqube.ws.Common.Paging.Builder getPagingBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPagingFieldBuilder().getBuilder(); } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { if (pagingBuilder_ != null) { return pagingBuilder_.getMessageOrBuilder(); } else { return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; } } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ 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 users_ = java.util.Collections.emptyList(); private void ensureUsersIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { users_ = new java.util.ArrayList(users_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.OldUser, org.sonarqube.ws.WsPermissions.OldUser.Builder, org.sonarqube.ws.WsPermissions.OldUserOrBuilder> usersBuilder_; /** * repeated .sonarqube.ws.permissions.OldUser users = 2; */ public java.util.List getUsersList() { if (usersBuilder_ == null) { return java.util.Collections.unmodifiableList(users_); } else { return usersBuilder_.getMessageList(); } } /** * repeated .sonarqube.ws.permissions.OldUser users = 2; */ public int getUsersCount() { if (usersBuilder_ == null) { return users_.size(); } else { return usersBuilder_.getCount(); } } /** * repeated .sonarqube.ws.permissions.OldUser users = 2; */ public org.sonarqube.ws.WsPermissions.OldUser getUsers(int index) { if (usersBuilder_ == null) { return users_.get(index); } else { return usersBuilder_.getMessage(index); } } /** * repeated .sonarqube.ws.permissions.OldUser users = 2; */ public Builder setUsers( int index, org.sonarqube.ws.WsPermissions.OldUser value) { if (usersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUsersIsMutable(); users_.set(index, value); onChanged(); } else { usersBuilder_.setMessage(index, value); } return this; } /** * repeated .sonarqube.ws.permissions.OldUser users = 2; */ public Builder setUsers( int index, org.sonarqube.ws.WsPermissions.OldUser.Builder builderForValue) { if (usersBuilder_ == null) { ensureUsersIsMutable(); users_.set(index, builderForValue.build()); onChanged(); } else { usersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.OldUser users = 2; */ public Builder addUsers(org.sonarqube.ws.WsPermissions.OldUser value) { if (usersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUsersIsMutable(); users_.add(value); onChanged(); } else { usersBuilder_.addMessage(value); } return this; } /** * repeated .sonarqube.ws.permissions.OldUser users = 2; */ public Builder addUsers( int index, org.sonarqube.ws.WsPermissions.OldUser value) { if (usersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUsersIsMutable(); users_.add(index, value); onChanged(); } else { usersBuilder_.addMessage(index, value); } return this; } /** * repeated .sonarqube.ws.permissions.OldUser users = 2; */ public Builder addUsers( org.sonarqube.ws.WsPermissions.OldUser.Builder builderForValue) { if (usersBuilder_ == null) { ensureUsersIsMutable(); users_.add(builderForValue.build()); onChanged(); } else { usersBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.OldUser users = 2; */ public Builder addUsers( int index, org.sonarqube.ws.WsPermissions.OldUser.Builder builderForValue) { if (usersBuilder_ == null) { ensureUsersIsMutable(); users_.add(index, builderForValue.build()); onChanged(); } else { usersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.OldUser users = 2; */ public Builder addAllUsers( java.lang.Iterable values) { if (usersBuilder_ == null) { ensureUsersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, users_); onChanged(); } else { usersBuilder_.addAllMessages(values); } return this; } /** * repeated .sonarqube.ws.permissions.OldUser users = 2; */ public Builder clearUsers() { if (usersBuilder_ == null) { users_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { usersBuilder_.clear(); } return this; } /** * repeated .sonarqube.ws.permissions.OldUser users = 2; */ public Builder removeUsers(int index) { if (usersBuilder_ == null) { ensureUsersIsMutable(); users_.remove(index); onChanged(); } else { usersBuilder_.remove(index); } return this; } /** * repeated .sonarqube.ws.permissions.OldUser users = 2; */ public org.sonarqube.ws.WsPermissions.OldUser.Builder getUsersBuilder( int index) { return getUsersFieldBuilder().getBuilder(index); } /** * repeated .sonarqube.ws.permissions.OldUser users = 2; */ public org.sonarqube.ws.WsPermissions.OldUserOrBuilder getUsersOrBuilder( int index) { if (usersBuilder_ == null) { return users_.get(index); } else { return usersBuilder_.getMessageOrBuilder(index); } } /** * repeated .sonarqube.ws.permissions.OldUser users = 2; */ public java.util.List getUsersOrBuilderList() { if (usersBuilder_ != null) { return usersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(users_); } } /** * repeated .sonarqube.ws.permissions.OldUser users = 2; */ public org.sonarqube.ws.WsPermissions.OldUser.Builder addUsersBuilder() { return getUsersFieldBuilder().addBuilder( org.sonarqube.ws.WsPermissions.OldUser.getDefaultInstance()); } /** * repeated .sonarqube.ws.permissions.OldUser users = 2; */ public org.sonarqube.ws.WsPermissions.OldUser.Builder addUsersBuilder( int index) { return getUsersFieldBuilder().addBuilder( index, org.sonarqube.ws.WsPermissions.OldUser.getDefaultInstance()); } /** * repeated .sonarqube.ws.permissions.OldUser users = 2; */ public java.util.List getUsersBuilderList() { return getUsersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.OldUser, org.sonarqube.ws.WsPermissions.OldUser.Builder, org.sonarqube.ws.WsPermissions.OldUserOrBuilder> getUsersFieldBuilder() { if (usersBuilder_ == null) { usersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.OldUser, org.sonarqube.ws.WsPermissions.OldUser.Builder, org.sonarqube.ws.WsPermissions.OldUserOrBuilder>( users_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); users_ = null; } return usersBuilder_; } // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.OldUsersWsResponse) } // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.OldUsersWsResponse) private static final org.sonarqube.ws.WsPermissions.OldUsersWsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.OldUsersWsResponse(); } public static org.sonarqube.ws.WsPermissions.OldUsersWsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OldUsersWsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new OldUsersWsResponse(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.sonarqube.ws.WsPermissions.OldUsersWsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UsersWsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.UsersWsResponse) com.google.protobuf.MessageOrBuilder { /** * optional .sonarqube.ws.commons.Paging paging = 1; */ boolean hasPaging(); /** * optional .sonarqube.ws.commons.Paging paging = 1; */ org.sonarqube.ws.Common.Paging getPaging(); /** * optional .sonarqube.ws.commons.Paging paging = 1; */ org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder(); /** * repeated .sonarqube.ws.permissions.User users = 2; */ java.util.List getUsersList(); /** * repeated .sonarqube.ws.permissions.User users = 2; */ org.sonarqube.ws.WsPermissions.User getUsers(int index); /** * repeated .sonarqube.ws.permissions.User users = 2; */ int getUsersCount(); /** * repeated .sonarqube.ws.permissions.User users = 2; */ java.util.List getUsersOrBuilderList(); /** * repeated .sonarqube.ws.permissions.User users = 2; */ org.sonarqube.ws.WsPermissions.UserOrBuilder getUsersOrBuilder( int index); } /** * Protobuf type {@code sonarqube.ws.permissions.UsersWsResponse} * *
   * WS api/permissions/users for internal use only
   * 
*/ public static final class UsersWsResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.UsersWsResponse) UsersWsResponseOrBuilder { // Use UsersWsResponse.newBuilder() to construct. private UsersWsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UsersWsResponse() { users_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UsersWsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.sonarqube.ws.Common.Paging.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = paging_.toBuilder(); } paging_ = input.readMessage(org.sonarqube.ws.Common.Paging.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(paging_); paging_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { users_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } users_.add(input.readMessage(org.sonarqube.ws.WsPermissions.User.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { users_ = java.util.Collections.unmodifiableList(users_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_UsersWsResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_UsersWsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.UsersWsResponse.class, org.sonarqube.ws.WsPermissions.UsersWsResponse.Builder.class); } private int bitField0_; public static final int PAGING_FIELD_NUMBER = 1; private org.sonarqube.ws.Common.Paging paging_; /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public boolean hasPaging() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public org.sonarqube.ws.Common.Paging getPaging() { return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; } public static final int USERS_FIELD_NUMBER = 2; private java.util.List users_; /** * repeated .sonarqube.ws.permissions.User users = 2; */ public java.util.List getUsersList() { return users_; } /** * repeated .sonarqube.ws.permissions.User users = 2; */ public java.util.List getUsersOrBuilderList() { return users_; } /** * repeated .sonarqube.ws.permissions.User users = 2; */ public int getUsersCount() { return users_.size(); } /** * repeated .sonarqube.ws.permissions.User users = 2; */ public org.sonarqube.ws.WsPermissions.User getUsers(int index) { return users_.get(index); } /** * repeated .sonarqube.ws.permissions.User users = 2; */ public org.sonarqube.ws.WsPermissions.UserOrBuilder getUsersOrBuilder( int index) { return users_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getPaging()); } for (int i = 0; i < users_.size(); i++) { output.writeMessage(2, users_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPaging()); } for (int i = 0; i < users_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, users_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.sonarqube.ws.WsPermissions.UsersWsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.UsersWsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.UsersWsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.UsersWsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.UsersWsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.UsersWsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.UsersWsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.sonarqube.ws.WsPermissions.UsersWsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.UsersWsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.UsersWsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarqube.ws.WsPermissions.UsersWsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code sonarqube.ws.permissions.UsersWsResponse} * *
     * WS api/permissions/users for internal use only
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.UsersWsResponse) org.sonarqube.ws.WsPermissions.UsersWsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_UsersWsResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_UsersWsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.UsersWsResponse.class, org.sonarqube.ws.WsPermissions.UsersWsResponse.Builder.class); } // Construct using org.sonarqube.ws.WsPermissions.UsersWsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPagingFieldBuilder(); getUsersFieldBuilder(); } } public Builder clear() { super.clear(); if (pagingBuilder_ == null) { paging_ = null; } else { pagingBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (usersBuilder_ == null) { users_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { usersBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_UsersWsResponse_descriptor; } public org.sonarqube.ws.WsPermissions.UsersWsResponse getDefaultInstanceForType() { return org.sonarqube.ws.WsPermissions.UsersWsResponse.getDefaultInstance(); } public org.sonarqube.ws.WsPermissions.UsersWsResponse build() { org.sonarqube.ws.WsPermissions.UsersWsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.sonarqube.ws.WsPermissions.UsersWsResponse buildPartial() { org.sonarqube.ws.WsPermissions.UsersWsResponse result = new org.sonarqube.ws.WsPermissions.UsersWsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (pagingBuilder_ == null) { result.paging_ = paging_; } else { result.paging_ = pagingBuilder_.build(); } if (usersBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { users_ = java.util.Collections.unmodifiableList(users_); bitField0_ = (bitField0_ & ~0x00000002); } result.users_ = users_; } else { result.users_ = usersBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarqube.ws.WsPermissions.UsersWsResponse) { return mergeFrom((org.sonarqube.ws.WsPermissions.UsersWsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarqube.ws.WsPermissions.UsersWsResponse other) { if (other == org.sonarqube.ws.WsPermissions.UsersWsResponse.getDefaultInstance()) return this; if (other.hasPaging()) { mergePaging(other.getPaging()); } if (usersBuilder_ == null) { if (!other.users_.isEmpty()) { if (users_.isEmpty()) { users_ = other.users_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureUsersIsMutable(); users_.addAll(other.users_); } onChanged(); } } else { if (!other.users_.isEmpty()) { if (usersBuilder_.isEmpty()) { usersBuilder_.dispose(); usersBuilder_ = null; users_ = other.users_; bitField0_ = (bitField0_ & ~0x00000002); usersBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getUsersFieldBuilder() : null; } else { usersBuilder_.addAllMessages(other.users_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.sonarqube.ws.WsPermissions.UsersWsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.sonarqube.ws.WsPermissions.UsersWsResponse) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.sonarqube.ws.Common.Paging paging_ = null; private com.google.protobuf.SingleFieldBuilder< org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_; /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public boolean hasPaging() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public org.sonarqube.ws.Common.Paging getPaging() { if (pagingBuilder_ == null) { return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; } else { return pagingBuilder_.getMessage(); } } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ 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; } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ 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; } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public Builder mergePaging(org.sonarqube.ws.Common.Paging value) { if (pagingBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && paging_ != null && paging_ != org.sonarqube.ws.Common.Paging.getDefaultInstance()) { paging_ = org.sonarqube.ws.Common.Paging.newBuilder(paging_).mergeFrom(value).buildPartial(); } else { paging_ = value; } onChanged(); } else { pagingBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public Builder clearPaging() { if (pagingBuilder_ == null) { paging_ = null; onChanged(); } else { pagingBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public org.sonarqube.ws.Common.Paging.Builder getPagingBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPagingFieldBuilder().getBuilder(); } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { if (pagingBuilder_ != null) { return pagingBuilder_.getMessageOrBuilder(); } else { return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; } } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ 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 users_ = java.util.Collections.emptyList(); private void ensureUsersIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { users_ = new java.util.ArrayList(users_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.User, org.sonarqube.ws.WsPermissions.User.Builder, org.sonarqube.ws.WsPermissions.UserOrBuilder> usersBuilder_; /** * repeated .sonarqube.ws.permissions.User users = 2; */ public java.util.List getUsersList() { if (usersBuilder_ == null) { return java.util.Collections.unmodifiableList(users_); } else { return usersBuilder_.getMessageList(); } } /** * repeated .sonarqube.ws.permissions.User users = 2; */ public int getUsersCount() { if (usersBuilder_ == null) { return users_.size(); } else { return usersBuilder_.getCount(); } } /** * repeated .sonarqube.ws.permissions.User users = 2; */ public org.sonarqube.ws.WsPermissions.User getUsers(int index) { if (usersBuilder_ == null) { return users_.get(index); } else { return usersBuilder_.getMessage(index); } } /** * repeated .sonarqube.ws.permissions.User users = 2; */ public Builder setUsers( int index, org.sonarqube.ws.WsPermissions.User value) { if (usersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUsersIsMutable(); users_.set(index, value); onChanged(); } else { usersBuilder_.setMessage(index, value); } return this; } /** * repeated .sonarqube.ws.permissions.User users = 2; */ public Builder setUsers( int index, org.sonarqube.ws.WsPermissions.User.Builder builderForValue) { if (usersBuilder_ == null) { ensureUsersIsMutable(); users_.set(index, builderForValue.build()); onChanged(); } else { usersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.User users = 2; */ public Builder addUsers(org.sonarqube.ws.WsPermissions.User value) { if (usersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUsersIsMutable(); users_.add(value); onChanged(); } else { usersBuilder_.addMessage(value); } return this; } /** * repeated .sonarqube.ws.permissions.User users = 2; */ public Builder addUsers( int index, org.sonarqube.ws.WsPermissions.User value) { if (usersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUsersIsMutable(); users_.add(index, value); onChanged(); } else { usersBuilder_.addMessage(index, value); } return this; } /** * repeated .sonarqube.ws.permissions.User users = 2; */ public Builder addUsers( org.sonarqube.ws.WsPermissions.User.Builder builderForValue) { if (usersBuilder_ == null) { ensureUsersIsMutable(); users_.add(builderForValue.build()); onChanged(); } else { usersBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.User users = 2; */ public Builder addUsers( int index, org.sonarqube.ws.WsPermissions.User.Builder builderForValue) { if (usersBuilder_ == null) { ensureUsersIsMutable(); users_.add(index, builderForValue.build()); onChanged(); } else { usersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.User users = 2; */ public Builder addAllUsers( java.lang.Iterable values) { if (usersBuilder_ == null) { ensureUsersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, users_); onChanged(); } else { usersBuilder_.addAllMessages(values); } return this; } /** * repeated .sonarqube.ws.permissions.User users = 2; */ public Builder clearUsers() { if (usersBuilder_ == null) { users_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { usersBuilder_.clear(); } return this; } /** * repeated .sonarqube.ws.permissions.User users = 2; */ public Builder removeUsers(int index) { if (usersBuilder_ == null) { ensureUsersIsMutable(); users_.remove(index); onChanged(); } else { usersBuilder_.remove(index); } return this; } /** * repeated .sonarqube.ws.permissions.User users = 2; */ public org.sonarqube.ws.WsPermissions.User.Builder getUsersBuilder( int index) { return getUsersFieldBuilder().getBuilder(index); } /** * repeated .sonarqube.ws.permissions.User users = 2; */ public org.sonarqube.ws.WsPermissions.UserOrBuilder getUsersOrBuilder( int index) { if (usersBuilder_ == null) { return users_.get(index); } else { return usersBuilder_.getMessageOrBuilder(index); } } /** * repeated .sonarqube.ws.permissions.User users = 2; */ public java.util.List getUsersOrBuilderList() { if (usersBuilder_ != null) { return usersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(users_); } } /** * repeated .sonarqube.ws.permissions.User users = 2; */ public org.sonarqube.ws.WsPermissions.User.Builder addUsersBuilder() { return getUsersFieldBuilder().addBuilder( org.sonarqube.ws.WsPermissions.User.getDefaultInstance()); } /** * repeated .sonarqube.ws.permissions.User users = 2; */ public org.sonarqube.ws.WsPermissions.User.Builder addUsersBuilder( int index) { return getUsersFieldBuilder().addBuilder( index, org.sonarqube.ws.WsPermissions.User.getDefaultInstance()); } /** * repeated .sonarqube.ws.permissions.User users = 2; */ public java.util.List getUsersBuilderList() { return getUsersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.User, org.sonarqube.ws.WsPermissions.User.Builder, org.sonarqube.ws.WsPermissions.UserOrBuilder> getUsersFieldBuilder() { if (usersBuilder_ == null) { usersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.User, org.sonarqube.ws.WsPermissions.User.Builder, org.sonarqube.ws.WsPermissions.UserOrBuilder>( users_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); users_ = null; } return usersBuilder_; } // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.UsersWsResponse) } // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.UsersWsResponse) private static final org.sonarqube.ws.WsPermissions.UsersWsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.UsersWsResponse(); } public static org.sonarqube.ws.WsPermissions.UsersWsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public UsersWsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new UsersWsResponse(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.sonarqube.ws.WsPermissions.UsersWsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WsGroupsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsGroupsResponse) com.google.protobuf.MessageOrBuilder { /** * optional .sonarqube.ws.commons.Paging paging = 1; */ boolean hasPaging(); /** * optional .sonarqube.ws.commons.Paging paging = 1; */ org.sonarqube.ws.Common.Paging getPaging(); /** * optional .sonarqube.ws.commons.Paging paging = 1; */ org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder(); /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ java.util.List getGroupsList(); /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ org.sonarqube.ws.WsPermissions.Group getGroups(int index); /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ int getGroupsCount(); /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ java.util.List getGroupsOrBuilderList(); /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ org.sonarqube.ws.WsPermissions.GroupOrBuilder getGroupsOrBuilder( int index); } /** * Protobuf type {@code sonarqube.ws.permissions.WsGroupsResponse} * *
   * WS api/permissions/groups for internal use only
   * 
*/ public static final class WsGroupsResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsGroupsResponse) WsGroupsResponseOrBuilder { // Use WsGroupsResponse.newBuilder() to construct. private WsGroupsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private WsGroupsResponse() { groups_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WsGroupsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.sonarqube.ws.Common.Paging.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = paging_.toBuilder(); } paging_ = input.readMessage(org.sonarqube.ws.Common.Paging.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(paging_); paging_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { groups_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } groups_.add(input.readMessage(org.sonarqube.ws.WsPermissions.Group.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { groups_ = java.util.Collections.unmodifiableList(groups_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.WsGroupsResponse.class, org.sonarqube.ws.WsPermissions.WsGroupsResponse.Builder.class); } private int bitField0_; public static final int PAGING_FIELD_NUMBER = 1; private org.sonarqube.ws.Common.Paging paging_; /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public boolean hasPaging() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public org.sonarqube.ws.Common.Paging getPaging() { return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; } public static final int GROUPS_FIELD_NUMBER = 2; private java.util.List groups_; /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ public java.util.List getGroupsList() { return groups_; } /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ public java.util.List getGroupsOrBuilderList() { return groups_; } /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ public int getGroupsCount() { return groups_.size(); } /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ public org.sonarqube.ws.WsPermissions.Group getGroups(int index) { return groups_.get(index); } /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ public org.sonarqube.ws.WsPermissions.GroupOrBuilder getGroupsOrBuilder( int index) { return groups_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getPaging()); } for (int i = 0; i < groups_.size(); i++) { output.writeMessage(2, groups_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPaging()); } for (int i = 0; i < groups_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, groups_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarqube.ws.WsPermissions.WsGroupsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code sonarqube.ws.permissions.WsGroupsResponse} * *
     * WS api/permissions/groups for internal use only
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsGroupsResponse) org.sonarqube.ws.WsPermissions.WsGroupsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.WsGroupsResponse.class, org.sonarqube.ws.WsPermissions.WsGroupsResponse.Builder.class); } // Construct using org.sonarqube.ws.WsPermissions.WsGroupsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPagingFieldBuilder(); getGroupsFieldBuilder(); } } public Builder clear() { super.clear(); if (pagingBuilder_ == null) { paging_ = null; } else { pagingBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (groupsBuilder_ == null) { groups_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { groupsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor; } public org.sonarqube.ws.WsPermissions.WsGroupsResponse getDefaultInstanceForType() { return org.sonarqube.ws.WsPermissions.WsGroupsResponse.getDefaultInstance(); } public org.sonarqube.ws.WsPermissions.WsGroupsResponse build() { org.sonarqube.ws.WsPermissions.WsGroupsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.sonarqube.ws.WsPermissions.WsGroupsResponse buildPartial() { org.sonarqube.ws.WsPermissions.WsGroupsResponse result = new org.sonarqube.ws.WsPermissions.WsGroupsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (pagingBuilder_ == null) { result.paging_ = paging_; } else { result.paging_ = pagingBuilder_.build(); } if (groupsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { groups_ = java.util.Collections.unmodifiableList(groups_); bitField0_ = (bitField0_ & ~0x00000002); } result.groups_ = groups_; } else { result.groups_ = groupsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarqube.ws.WsPermissions.WsGroupsResponse) { return mergeFrom((org.sonarqube.ws.WsPermissions.WsGroupsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarqube.ws.WsPermissions.WsGroupsResponse other) { if (other == org.sonarqube.ws.WsPermissions.WsGroupsResponse.getDefaultInstance()) return this; if (other.hasPaging()) { mergePaging(other.getPaging()); } if (groupsBuilder_ == null) { if (!other.groups_.isEmpty()) { if (groups_.isEmpty()) { groups_ = other.groups_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureGroupsIsMutable(); groups_.addAll(other.groups_); } onChanged(); } } else { if (!other.groups_.isEmpty()) { if (groupsBuilder_.isEmpty()) { groupsBuilder_.dispose(); groupsBuilder_ = null; groups_ = other.groups_; bitField0_ = (bitField0_ & ~0x00000002); groupsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getGroupsFieldBuilder() : null; } else { groupsBuilder_.addAllMessages(other.groups_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.sonarqube.ws.WsPermissions.WsGroupsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.sonarqube.ws.WsPermissions.WsGroupsResponse) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.sonarqube.ws.Common.Paging paging_ = null; private com.google.protobuf.SingleFieldBuilder< org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_; /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public boolean hasPaging() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public org.sonarqube.ws.Common.Paging getPaging() { if (pagingBuilder_ == null) { return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; } else { return pagingBuilder_.getMessage(); } } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ 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; } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ 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; } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public Builder mergePaging(org.sonarqube.ws.Common.Paging value) { if (pagingBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && paging_ != null && paging_ != org.sonarqube.ws.Common.Paging.getDefaultInstance()) { paging_ = org.sonarqube.ws.Common.Paging.newBuilder(paging_).mergeFrom(value).buildPartial(); } else { paging_ = value; } onChanged(); } else { pagingBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public Builder clearPaging() { if (pagingBuilder_ == null) { paging_ = null; onChanged(); } else { pagingBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public org.sonarqube.ws.Common.Paging.Builder getPagingBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPagingFieldBuilder().getBuilder(); } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { if (pagingBuilder_ != null) { return pagingBuilder_.getMessageOrBuilder(); } else { return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; } } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ 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 groups_ = java.util.Collections.emptyList(); private void ensureGroupsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { groups_ = new java.util.ArrayList(groups_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.Group, org.sonarqube.ws.WsPermissions.Group.Builder, org.sonarqube.ws.WsPermissions.GroupOrBuilder> groupsBuilder_; /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ public java.util.List getGroupsList() { if (groupsBuilder_ == null) { return java.util.Collections.unmodifiableList(groups_); } else { return groupsBuilder_.getMessageList(); } } /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ public int getGroupsCount() { if (groupsBuilder_ == null) { return groups_.size(); } else { return groupsBuilder_.getCount(); } } /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ public org.sonarqube.ws.WsPermissions.Group getGroups(int index) { if (groupsBuilder_ == null) { return groups_.get(index); } else { return groupsBuilder_.getMessage(index); } } /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ public Builder setGroups( int index, org.sonarqube.ws.WsPermissions.Group value) { if (groupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupsIsMutable(); groups_.set(index, value); onChanged(); } else { groupsBuilder_.setMessage(index, value); } return this; } /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ public Builder setGroups( int index, org.sonarqube.ws.WsPermissions.Group.Builder builderForValue) { if (groupsBuilder_ == null) { ensureGroupsIsMutable(); groups_.set(index, builderForValue.build()); onChanged(); } else { groupsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ public Builder addGroups(org.sonarqube.ws.WsPermissions.Group value) { if (groupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupsIsMutable(); groups_.add(value); onChanged(); } else { groupsBuilder_.addMessage(value); } return this; } /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ public Builder addGroups( int index, org.sonarqube.ws.WsPermissions.Group value) { if (groupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupsIsMutable(); groups_.add(index, value); onChanged(); } else { groupsBuilder_.addMessage(index, value); } return this; } /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ public Builder addGroups( org.sonarqube.ws.WsPermissions.Group.Builder builderForValue) { if (groupsBuilder_ == null) { ensureGroupsIsMutable(); groups_.add(builderForValue.build()); onChanged(); } else { groupsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ public Builder addGroups( int index, org.sonarqube.ws.WsPermissions.Group.Builder builderForValue) { if (groupsBuilder_ == null) { ensureGroupsIsMutable(); groups_.add(index, builderForValue.build()); onChanged(); } else { groupsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ public Builder addAllGroups( java.lang.Iterable values) { if (groupsBuilder_ == null) { ensureGroupsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, groups_); onChanged(); } else { groupsBuilder_.addAllMessages(values); } return this; } /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ public Builder clearGroups() { if (groupsBuilder_ == null) { groups_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { groupsBuilder_.clear(); } return this; } /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ public Builder removeGroups(int index) { if (groupsBuilder_ == null) { ensureGroupsIsMutable(); groups_.remove(index); onChanged(); } else { groupsBuilder_.remove(index); } return this; } /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ public org.sonarqube.ws.WsPermissions.Group.Builder getGroupsBuilder( int index) { return getGroupsFieldBuilder().getBuilder(index); } /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ public org.sonarqube.ws.WsPermissions.GroupOrBuilder getGroupsOrBuilder( int index) { if (groupsBuilder_ == null) { return groups_.get(index); } else { return groupsBuilder_.getMessageOrBuilder(index); } } /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ public java.util.List getGroupsOrBuilderList() { if (groupsBuilder_ != null) { return groupsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(groups_); } } /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ public org.sonarqube.ws.WsPermissions.Group.Builder addGroupsBuilder() { return getGroupsFieldBuilder().addBuilder( org.sonarqube.ws.WsPermissions.Group.getDefaultInstance()); } /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ public org.sonarqube.ws.WsPermissions.Group.Builder addGroupsBuilder( int index) { return getGroupsFieldBuilder().addBuilder( index, org.sonarqube.ws.WsPermissions.Group.getDefaultInstance()); } /** * repeated .sonarqube.ws.permissions.Group groups = 2; */ public java.util.List getGroupsBuilderList() { return getGroupsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.Group, org.sonarqube.ws.WsPermissions.Group.Builder, org.sonarqube.ws.WsPermissions.GroupOrBuilder> getGroupsFieldBuilder() { if (groupsBuilder_ == null) { groupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.Group, org.sonarqube.ws.WsPermissions.Group.Builder, org.sonarqube.ws.WsPermissions.GroupOrBuilder>( groups_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); groups_ = null; } return groupsBuilder_; } // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsGroupsResponse) } // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsGroupsResponse) private static final org.sonarqube.ws.WsPermissions.WsGroupsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.WsGroupsResponse(); } public static org.sonarqube.ws.WsPermissions.WsGroupsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public WsGroupsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new WsGroupsResponse(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.sonarqube.ws.WsPermissions.WsGroupsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WsTemplateGroupsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsTemplateGroupsResponse) com.google.protobuf.MessageOrBuilder { /** * optional .sonarqube.ws.commons.Paging paging = 1; */ boolean hasPaging(); /** * optional .sonarqube.ws.commons.Paging paging = 1; */ org.sonarqube.ws.Common.Paging getPaging(); /** * optional .sonarqube.ws.commons.Paging paging = 1; */ org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder(); /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ java.util.List getGroupsList(); /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ org.sonarqube.ws.WsPermissions.OldGroup getGroups(int index); /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ int getGroupsCount(); /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ java.util.List getGroupsOrBuilderList(); /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ org.sonarqube.ws.WsPermissions.OldGroupOrBuilder getGroupsOrBuilder( int index); } /** * Protobuf type {@code sonarqube.ws.permissions.WsTemplateGroupsResponse} * *
   * WS api/permissions/template_groups for internal use only
   * 
*/ public static final class WsTemplateGroupsResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsTemplateGroupsResponse) WsTemplateGroupsResponseOrBuilder { // Use WsTemplateGroupsResponse.newBuilder() to construct. private WsTemplateGroupsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private WsTemplateGroupsResponse() { groups_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WsTemplateGroupsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.sonarqube.ws.Common.Paging.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = paging_.toBuilder(); } paging_ = input.readMessage(org.sonarqube.ws.Common.Paging.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(paging_); paging_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { groups_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } groups_.add(input.readMessage(org.sonarqube.ws.WsPermissions.OldGroup.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { groups_ = java.util.Collections.unmodifiableList(groups_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsTemplateGroupsResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsTemplateGroupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse.class, org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse.Builder.class); } private int bitField0_; public static final int PAGING_FIELD_NUMBER = 1; private org.sonarqube.ws.Common.Paging paging_; /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public boolean hasPaging() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public org.sonarqube.ws.Common.Paging getPaging() { return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; } public static final int GROUPS_FIELD_NUMBER = 2; private java.util.List groups_; /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ public java.util.List getGroupsList() { return groups_; } /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ public java.util.List getGroupsOrBuilderList() { return groups_; } /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ public int getGroupsCount() { return groups_.size(); } /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ public org.sonarqube.ws.WsPermissions.OldGroup getGroups(int index) { return groups_.get(index); } /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ public org.sonarqube.ws.WsPermissions.OldGroupOrBuilder getGroupsOrBuilder( int index) { return groups_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getPaging()); } for (int i = 0; i < groups_.size(); i++) { output.writeMessage(2, groups_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPaging()); } for (int i = 0; i < groups_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, groups_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code sonarqube.ws.permissions.WsTemplateGroupsResponse} * *
     * WS api/permissions/template_groups for internal use only
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsTemplateGroupsResponse) org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsTemplateGroupsResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsTemplateGroupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse.class, org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse.Builder.class); } // Construct using org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPagingFieldBuilder(); getGroupsFieldBuilder(); } } public Builder clear() { super.clear(); if (pagingBuilder_ == null) { paging_ = null; } else { pagingBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (groupsBuilder_ == null) { groups_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { groupsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsTemplateGroupsResponse_descriptor; } public org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse getDefaultInstanceForType() { return org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse.getDefaultInstance(); } public org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse build() { org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse buildPartial() { org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse result = new org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (pagingBuilder_ == null) { result.paging_ = paging_; } else { result.paging_ = pagingBuilder_.build(); } if (groupsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { groups_ = java.util.Collections.unmodifiableList(groups_); bitField0_ = (bitField0_ & ~0x00000002); } result.groups_ = groups_; } else { result.groups_ = groupsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse) { return mergeFrom((org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse other) { if (other == org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse.getDefaultInstance()) return this; if (other.hasPaging()) { mergePaging(other.getPaging()); } if (groupsBuilder_ == null) { if (!other.groups_.isEmpty()) { if (groups_.isEmpty()) { groups_ = other.groups_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureGroupsIsMutable(); groups_.addAll(other.groups_); } onChanged(); } } else { if (!other.groups_.isEmpty()) { if (groupsBuilder_.isEmpty()) { groupsBuilder_.dispose(); groupsBuilder_ = null; groups_ = other.groups_; bitField0_ = (bitField0_ & ~0x00000002); groupsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getGroupsFieldBuilder() : null; } else { groupsBuilder_.addAllMessages(other.groups_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.sonarqube.ws.Common.Paging paging_ = null; private com.google.protobuf.SingleFieldBuilder< org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_; /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public boolean hasPaging() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public org.sonarqube.ws.Common.Paging getPaging() { if (pagingBuilder_ == null) { return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; } else { return pagingBuilder_.getMessage(); } } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ 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; } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ 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; } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public Builder mergePaging(org.sonarqube.ws.Common.Paging value) { if (pagingBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && paging_ != null && paging_ != org.sonarqube.ws.Common.Paging.getDefaultInstance()) { paging_ = org.sonarqube.ws.Common.Paging.newBuilder(paging_).mergeFrom(value).buildPartial(); } else { paging_ = value; } onChanged(); } else { pagingBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public Builder clearPaging() { if (pagingBuilder_ == null) { paging_ = null; onChanged(); } else { pagingBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public org.sonarqube.ws.Common.Paging.Builder getPagingBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPagingFieldBuilder().getBuilder(); } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { if (pagingBuilder_ != null) { return pagingBuilder_.getMessageOrBuilder(); } else { return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; } } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ 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 groups_ = java.util.Collections.emptyList(); private void ensureGroupsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { groups_ = new java.util.ArrayList(groups_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.OldGroup, org.sonarqube.ws.WsPermissions.OldGroup.Builder, org.sonarqube.ws.WsPermissions.OldGroupOrBuilder> groupsBuilder_; /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ public java.util.List getGroupsList() { if (groupsBuilder_ == null) { return java.util.Collections.unmodifiableList(groups_); } else { return groupsBuilder_.getMessageList(); } } /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ public int getGroupsCount() { if (groupsBuilder_ == null) { return groups_.size(); } else { return groupsBuilder_.getCount(); } } /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ public org.sonarqube.ws.WsPermissions.OldGroup getGroups(int index) { if (groupsBuilder_ == null) { return groups_.get(index); } else { return groupsBuilder_.getMessage(index); } } /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ public Builder setGroups( int index, org.sonarqube.ws.WsPermissions.OldGroup value) { if (groupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupsIsMutable(); groups_.set(index, value); onChanged(); } else { groupsBuilder_.setMessage(index, value); } return this; } /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ public Builder setGroups( int index, org.sonarqube.ws.WsPermissions.OldGroup.Builder builderForValue) { if (groupsBuilder_ == null) { ensureGroupsIsMutable(); groups_.set(index, builderForValue.build()); onChanged(); } else { groupsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ public Builder addGroups(org.sonarqube.ws.WsPermissions.OldGroup value) { if (groupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupsIsMutable(); groups_.add(value); onChanged(); } else { groupsBuilder_.addMessage(value); } return this; } /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ public Builder addGroups( int index, org.sonarqube.ws.WsPermissions.OldGroup value) { if (groupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupsIsMutable(); groups_.add(index, value); onChanged(); } else { groupsBuilder_.addMessage(index, value); } return this; } /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ public Builder addGroups( org.sonarqube.ws.WsPermissions.OldGroup.Builder builderForValue) { if (groupsBuilder_ == null) { ensureGroupsIsMutable(); groups_.add(builderForValue.build()); onChanged(); } else { groupsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ public Builder addGroups( int index, org.sonarqube.ws.WsPermissions.OldGroup.Builder builderForValue) { if (groupsBuilder_ == null) { ensureGroupsIsMutable(); groups_.add(index, builderForValue.build()); onChanged(); } else { groupsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ public Builder addAllGroups( java.lang.Iterable values) { if (groupsBuilder_ == null) { ensureGroupsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, groups_); onChanged(); } else { groupsBuilder_.addAllMessages(values); } return this; } /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ public Builder clearGroups() { if (groupsBuilder_ == null) { groups_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { groupsBuilder_.clear(); } return this; } /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ public Builder removeGroups(int index) { if (groupsBuilder_ == null) { ensureGroupsIsMutable(); groups_.remove(index); onChanged(); } else { groupsBuilder_.remove(index); } return this; } /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ public org.sonarqube.ws.WsPermissions.OldGroup.Builder getGroupsBuilder( int index) { return getGroupsFieldBuilder().getBuilder(index); } /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ public org.sonarqube.ws.WsPermissions.OldGroupOrBuilder getGroupsOrBuilder( int index) { if (groupsBuilder_ == null) { return groups_.get(index); } else { return groupsBuilder_.getMessageOrBuilder(index); } } /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ public java.util.List getGroupsOrBuilderList() { if (groupsBuilder_ != null) { return groupsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(groups_); } } /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ public org.sonarqube.ws.WsPermissions.OldGroup.Builder addGroupsBuilder() { return getGroupsFieldBuilder().addBuilder( org.sonarqube.ws.WsPermissions.OldGroup.getDefaultInstance()); } /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ public org.sonarqube.ws.WsPermissions.OldGroup.Builder addGroupsBuilder( int index) { return getGroupsFieldBuilder().addBuilder( index, org.sonarqube.ws.WsPermissions.OldGroup.getDefaultInstance()); } /** * repeated .sonarqube.ws.permissions.OldGroup groups = 2; */ public java.util.List getGroupsBuilderList() { return getGroupsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.OldGroup, org.sonarqube.ws.WsPermissions.OldGroup.Builder, org.sonarqube.ws.WsPermissions.OldGroupOrBuilder> getGroupsFieldBuilder() { if (groupsBuilder_ == null) { groupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.OldGroup, org.sonarqube.ws.WsPermissions.OldGroup.Builder, org.sonarqube.ws.WsPermissions.OldGroupOrBuilder>( groups_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); groups_ = null; } return groupsBuilder_; } // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsTemplateGroupsResponse) } // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsTemplateGroupsResponse) private static final org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse(); } public static org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public WsTemplateGroupsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new WsTemplateGroupsResponse(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.sonarqube.ws.WsPermissions.WsTemplateGroupsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WsSearchGlobalPermissionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse) com.google.protobuf.MessageOrBuilder { /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ java.util.List getPermissionsList(); /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ org.sonarqube.ws.WsPermissions.Permission getPermissions(int index); /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ int getPermissionsCount(); /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ java.util.List getPermissionsOrBuilderList(); /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( int index); } /** * Protobuf type {@code sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse} */ public static final class WsSearchGlobalPermissionsResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse) WsSearchGlobalPermissionsResponseOrBuilder { // Use WsSearchGlobalPermissionsResponse.newBuilder() to construct. private WsSearchGlobalPermissionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private WsSearchGlobalPermissionsResponse() { permissions_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WsSearchGlobalPermissionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { permissions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } permissions_.add(input.readMessage(org.sonarqube.ws.WsPermissions.Permission.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { permissions_ = java.util.Collections.unmodifiableList(permissions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse.class, org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse.Builder.class); } public static final int PERMISSIONS_FIELD_NUMBER = 1; private java.util.List permissions_; /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ public java.util.List getPermissionsList() { return permissions_; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ public java.util.List getPermissionsOrBuilderList() { return permissions_; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ public int getPermissionsCount() { return permissions_.size(); } /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ public org.sonarqube.ws.WsPermissions.Permission getPermissions(int index) { return permissions_.get(index); } /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( int index) { return permissions_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < permissions_.size(); i++) { output.writeMessage(1, permissions_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < permissions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, permissions_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse) org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse.class, org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse.Builder.class); } // Construct using org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPermissionsFieldBuilder(); } } public Builder clear() { super.clear(); if (permissionsBuilder_ == null) { permissions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { permissionsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor; } public org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse getDefaultInstanceForType() { return org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse.getDefaultInstance(); } public org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse build() { org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse buildPartial() { org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse result = new org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse(this); int from_bitField0_ = bitField0_; if (permissionsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { permissions_ = java.util.Collections.unmodifiableList(permissions_); bitField0_ = (bitField0_ & ~0x00000001); } result.permissions_ = permissions_; } else { result.permissions_ = permissionsBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse) { return mergeFrom((org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse other) { if (other == org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse.getDefaultInstance()) return this; if (permissionsBuilder_ == null) { if (!other.permissions_.isEmpty()) { if (permissions_.isEmpty()) { permissions_ = other.permissions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePermissionsIsMutable(); permissions_.addAll(other.permissions_); } onChanged(); } } else { if (!other.permissions_.isEmpty()) { if (permissionsBuilder_.isEmpty()) { permissionsBuilder_.dispose(); permissionsBuilder_ = null; permissions_ = other.permissions_; bitField0_ = (bitField0_ & ~0x00000001); permissionsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getPermissionsFieldBuilder() : null; } else { permissionsBuilder_.addAllMessages(other.permissions_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List permissions_ = java.util.Collections.emptyList(); private void ensurePermissionsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { permissions_ = new java.util.ArrayList(permissions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder> permissionsBuilder_; /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ public java.util.List getPermissionsList() { if (permissionsBuilder_ == null) { return java.util.Collections.unmodifiableList(permissions_); } else { return permissionsBuilder_.getMessageList(); } } /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ public int getPermissionsCount() { if (permissionsBuilder_ == null) { return permissions_.size(); } else { return permissionsBuilder_.getCount(); } } /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ public org.sonarqube.ws.WsPermissions.Permission getPermissions(int index) { if (permissionsBuilder_ == null) { return permissions_.get(index); } else { return permissionsBuilder_.getMessage(index); } } /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ public Builder setPermissions( int index, org.sonarqube.ws.WsPermissions.Permission value) { if (permissionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.set(index, value); onChanged(); } else { permissionsBuilder_.setMessage(index, value); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ public Builder setPermissions( int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.set(index, builderForValue.build()); onChanged(); } else { permissionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ public Builder addPermissions(org.sonarqube.ws.WsPermissions.Permission value) { if (permissionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); } else { permissionsBuilder_.addMessage(value); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ public Builder addPermissions( int index, org.sonarqube.ws.WsPermissions.Permission value) { if (permissionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.add(index, value); onChanged(); } else { permissionsBuilder_.addMessage(index, value); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ public Builder addPermissions( org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.add(builderForValue.build()); onChanged(); } else { permissionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ public Builder addPermissions( int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.add(index, builderForValue.build()); onChanged(); } else { permissionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ public Builder addAllPermissions( java.lang.Iterable values) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, permissions_); onChanged(); } else { permissionsBuilder_.addAllMessages(values); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ public Builder clearPermissions() { if (permissionsBuilder_ == null) { permissions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { permissionsBuilder_.clear(); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ public Builder removePermissions(int index) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.remove(index); onChanged(); } else { permissionsBuilder_.remove(index); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ public org.sonarqube.ws.WsPermissions.Permission.Builder getPermissionsBuilder( int index) { return getPermissionsFieldBuilder().getBuilder(index); } /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( int index) { if (permissionsBuilder_ == null) { return permissions_.get(index); } else { return permissionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ public java.util.List getPermissionsOrBuilderList() { if (permissionsBuilder_ != null) { return permissionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(permissions_); } } /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder() { return getPermissionsFieldBuilder().addBuilder( org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance()); } /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder( int index) { return getPermissionsFieldBuilder().addBuilder( index, org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance()); } /** * repeated .sonarqube.ws.permissions.Permission permissions = 1; */ public java.util.List getPermissionsBuilderList() { return getPermissionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder> getPermissionsFieldBuilder() { if (permissionsBuilder_ == null) { permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder>( permissions_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); permissions_ = null; } return permissionsBuilder_; } // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse) } // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse) private static final org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse(); } public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public WsSearchGlobalPermissionsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new WsSearchGlobalPermissionsResponse(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SearchProjectPermissionsWsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.SearchProjectPermissionsWsResponse) com.google.protobuf.MessageOrBuilder { /** * optional .sonarqube.ws.commons.Paging paging = 1; */ boolean hasPaging(); /** * optional .sonarqube.ws.commons.Paging paging = 1; */ org.sonarqube.ws.Common.Paging getPaging(); /** * optional .sonarqube.ws.commons.Paging paging = 1; */ org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder(); /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ java.util.List getProjectsList(); /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project getProjects(int index); /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ int getProjectsCount(); /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ java.util.List getProjectsOrBuilderList(); /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.ProjectOrBuilder getProjectsOrBuilder( int index); /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ java.util.List getPermissionsList(); /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ org.sonarqube.ws.WsPermissions.Permission getPermissions(int index); /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ int getPermissionsCount(); /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ java.util.List getPermissionsOrBuilderList(); /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( int index); } /** * Protobuf type {@code sonarqube.ws.permissions.SearchProjectPermissionsWsResponse} */ public static final class SearchProjectPermissionsWsResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.SearchProjectPermissionsWsResponse) SearchProjectPermissionsWsResponseOrBuilder { // Use SearchProjectPermissionsWsResponse.newBuilder() to construct. private SearchProjectPermissionsWsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SearchProjectPermissionsWsResponse() { projects_ = java.util.Collections.emptyList(); permissions_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SearchProjectPermissionsWsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.sonarqube.ws.Common.Paging.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = paging_.toBuilder(); } paging_ = input.readMessage(org.sonarqube.ws.Common.Paging.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(paging_); paging_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { projects_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } projects_.add(input.readMessage(org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project.parser(), extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { permissions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } permissions_.add(input.readMessage(org.sonarqube.ws.WsPermissions.Permission.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { projects_ = java.util.Collections.unmodifiableList(projects_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { permissions_ = java.util.Collections.unmodifiableList(permissions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_SearchProjectPermissionsWsResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_SearchProjectPermissionsWsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.class, org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Builder.class); } public interface ProjectOrBuilder extends // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project) com.google.protobuf.MessageOrBuilder { /** * optional string id = 1; */ boolean hasId(); /** * optional string id = 1; */ java.lang.String getId(); /** * optional string id = 1; */ com.google.protobuf.ByteString getIdBytes(); /** * optional string key = 2; */ boolean hasKey(); /** * optional string key = 2; */ java.lang.String getKey(); /** * optional string key = 2; */ com.google.protobuf.ByteString getKeyBytes(); /** * optional string qualifier = 3; */ boolean hasQualifier(); /** * optional string qualifier = 3; */ java.lang.String getQualifier(); /** * optional string qualifier = 3; */ com.google.protobuf.ByteString getQualifierBytes(); /** * optional string name = 4; */ boolean hasName(); /** * optional string name = 4; */ java.lang.String getName(); /** * optional string name = 4; */ com.google.protobuf.ByteString getNameBytes(); /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ java.util.List getPermissionsList(); /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ org.sonarqube.ws.WsPermissions.Permission getPermissions(int index); /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ int getPermissionsCount(); /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ java.util.List getPermissionsOrBuilderList(); /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( int index); } /** * Protobuf type {@code sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project} */ public static final class Project extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project) ProjectOrBuilder { // Use Project.newBuilder() to construct. private Project(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Project() { id_ = ""; key_ = ""; qualifier_ = ""; name_ = ""; permissions_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Project( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; id_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; key_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; qualifier_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; name_ = bs; break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { permissions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } permissions_.add(input.readMessage(org.sonarqube.ws.WsPermissions.Permission.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { permissions_ = java.util.Collections.unmodifiableList(permissions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_SearchProjectPermissionsWsResponse_Project_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_SearchProjectPermissionsWsResponse_Project_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project.class, org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** * optional string id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string id = 1; */ public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { id_ = s; } return s; } } /** * optional string id = 1; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KEY_FIELD_NUMBER = 2; private volatile java.lang.Object key_; /** * optional string key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string key = 2; */ public java.lang.String getKey() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { key_ = s; } return s; } } /** * optional string key = 2; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int QUALIFIER_FIELD_NUMBER = 3; private volatile java.lang.Object qualifier_; /** * optional string qualifier = 3; */ public boolean hasQualifier() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string qualifier = 3; */ public java.lang.String getQualifier() { java.lang.Object ref = qualifier_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { qualifier_ = s; } return s; } } /** * optional string qualifier = 3; */ public com.google.protobuf.ByteString getQualifierBytes() { java.lang.Object ref = qualifier_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); qualifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 4; private volatile java.lang.Object name_; /** * optional string name = 4; */ public boolean hasName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string name = 4; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * optional string name = 4; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PERMISSIONS_FIELD_NUMBER = 5; private java.util.List permissions_; /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ public java.util.List getPermissionsList() { return permissions_; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ public java.util.List getPermissionsOrBuilderList() { return permissions_; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ public int getPermissionsCount() { return permissions_.size(); } /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ public org.sonarqube.ws.WsPermissions.Permission getPermissions(int index) { return permissions_.get(index); } /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( int index) { return permissions_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, key_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, qualifier_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, name_); } for (int i = 0; i < permissions_.size(); i++) { output.writeMessage(5, permissions_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, key_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, qualifier_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, name_); } for (int i = 0; i < permissions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, permissions_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project) org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.ProjectOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_SearchProjectPermissionsWsResponse_Project_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_SearchProjectPermissionsWsResponse_Project_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project.class, org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project.Builder.class); } // Construct using org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPermissionsFieldBuilder(); } } public Builder clear() { super.clear(); id_ = ""; bitField0_ = (bitField0_ & ~0x00000001); key_ = ""; bitField0_ = (bitField0_ & ~0x00000002); qualifier_ = ""; bitField0_ = (bitField0_ & ~0x00000004); name_ = ""; bitField0_ = (bitField0_ & ~0x00000008); if (permissionsBuilder_ == null) { permissions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { permissionsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_SearchProjectPermissionsWsResponse_Project_descriptor; } public org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project getDefaultInstanceForType() { return org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project.getDefaultInstance(); } public org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project build() { org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project buildPartial() { org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project result = new org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.key_ = key_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.qualifier_ = qualifier_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.name_ = name_; if (permissionsBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { permissions_ = java.util.Collections.unmodifiableList(permissions_); bitField0_ = (bitField0_ & ~0x00000010); } result.permissions_ = permissions_; } else { result.permissions_ = permissionsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project) { return mergeFrom((org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project other) { if (other == org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project.getDefaultInstance()) return this; if (other.hasId()) { bitField0_ |= 0x00000001; id_ = other.id_; onChanged(); } if (other.hasKey()) { bitField0_ |= 0x00000002; key_ = other.key_; onChanged(); } if (other.hasQualifier()) { bitField0_ |= 0x00000004; qualifier_ = other.qualifier_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000008; name_ = other.name_; onChanged(); } if (permissionsBuilder_ == null) { if (!other.permissions_.isEmpty()) { if (permissions_.isEmpty()) { permissions_ = other.permissions_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensurePermissionsIsMutable(); permissions_.addAll(other.permissions_); } onChanged(); } } else { if (!other.permissions_.isEmpty()) { if (permissionsBuilder_.isEmpty()) { permissionsBuilder_.dispose(); permissionsBuilder_ = null; permissions_ = other.permissions_; bitField0_ = (bitField0_ & ~0x00000010); permissionsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getPermissionsFieldBuilder() : null; } else { permissionsBuilder_.addAllMessages(other.permissions_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** * optional string id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string id = 1; */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { id_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string id = 1; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string id = 1; */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * optional string id = 1; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * optional string id = 1; */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } private java.lang.Object key_ = ""; /** * optional string key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string key = 2; */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { key_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string key = 2; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string key = 2; */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; key_ = value; onChanged(); return this; } /** * optional string key = 2; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000002); key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * optional string key = 2; */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; key_ = value; onChanged(); return this; } private java.lang.Object qualifier_ = ""; /** * optional string qualifier = 3; */ public boolean hasQualifier() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string qualifier = 3; */ public java.lang.String getQualifier() { java.lang.Object ref = qualifier_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { qualifier_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string qualifier = 3; */ public com.google.protobuf.ByteString getQualifierBytes() { java.lang.Object ref = qualifier_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); qualifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string qualifier = 3; */ public Builder setQualifier( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; qualifier_ = value; onChanged(); return this; } /** * optional string qualifier = 3; */ public Builder clearQualifier() { bitField0_ = (bitField0_ & ~0x00000004); qualifier_ = getDefaultInstance().getQualifier(); onChanged(); return this; } /** * optional string qualifier = 3; */ public Builder setQualifierBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; qualifier_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** * optional string name = 4; */ public boolean hasName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string name = 4; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string name = 4; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string name = 4; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; name_ = value; onChanged(); return this; } /** * optional string name = 4; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000008); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 4; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; name_ = value; onChanged(); return this; } private java.util.List permissions_ = java.util.Collections.emptyList(); private void ensurePermissionsIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { permissions_ = new java.util.ArrayList(permissions_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder> permissionsBuilder_; /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ public java.util.List getPermissionsList() { if (permissionsBuilder_ == null) { return java.util.Collections.unmodifiableList(permissions_); } else { return permissionsBuilder_.getMessageList(); } } /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ public int getPermissionsCount() { if (permissionsBuilder_ == null) { return permissions_.size(); } else { return permissionsBuilder_.getCount(); } } /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ public org.sonarqube.ws.WsPermissions.Permission getPermissions(int index) { if (permissionsBuilder_ == null) { return permissions_.get(index); } else { return permissionsBuilder_.getMessage(index); } } /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ public Builder setPermissions( int index, org.sonarqube.ws.WsPermissions.Permission value) { if (permissionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.set(index, value); onChanged(); } else { permissionsBuilder_.setMessage(index, value); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ public Builder setPermissions( int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.set(index, builderForValue.build()); onChanged(); } else { permissionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ public Builder addPermissions(org.sonarqube.ws.WsPermissions.Permission value) { if (permissionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); } else { permissionsBuilder_.addMessage(value); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ public Builder addPermissions( int index, org.sonarqube.ws.WsPermissions.Permission value) { if (permissionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.add(index, value); onChanged(); } else { permissionsBuilder_.addMessage(index, value); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ public Builder addPermissions( org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.add(builderForValue.build()); onChanged(); } else { permissionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ public Builder addPermissions( int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.add(index, builderForValue.build()); onChanged(); } else { permissionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ public Builder addAllPermissions( java.lang.Iterable values) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, permissions_); onChanged(); } else { permissionsBuilder_.addAllMessages(values); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ public Builder clearPermissions() { if (permissionsBuilder_ == null) { permissions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { permissionsBuilder_.clear(); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ public Builder removePermissions(int index) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.remove(index); onChanged(); } else { permissionsBuilder_.remove(index); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ public org.sonarqube.ws.WsPermissions.Permission.Builder getPermissionsBuilder( int index) { return getPermissionsFieldBuilder().getBuilder(index); } /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( int index) { if (permissionsBuilder_ == null) { return permissions_.get(index); } else { return permissionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ public java.util.List getPermissionsOrBuilderList() { if (permissionsBuilder_ != null) { return permissionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(permissions_); } } /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder() { return getPermissionsFieldBuilder().addBuilder( org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance()); } /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder( int index) { return getPermissionsFieldBuilder().addBuilder( index, org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance()); } /** * repeated .sonarqube.ws.permissions.Permission permissions = 5; */ public java.util.List getPermissionsBuilderList() { return getPermissionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder> getPermissionsFieldBuilder() { if (permissionsBuilder_ == null) { permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder>( permissions_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); permissions_ = null; } return permissionsBuilder_; } // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project) } // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project) private static final org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project(); } public static org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Project parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new Project(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int PAGING_FIELD_NUMBER = 1; private org.sonarqube.ws.Common.Paging paging_; /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public boolean hasPaging() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public org.sonarqube.ws.Common.Paging getPaging() { return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; } public static final int PROJECTS_FIELD_NUMBER = 2; private java.util.List projects_; /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ public java.util.List getProjectsList() { return projects_; } /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ public java.util.List getProjectsOrBuilderList() { return projects_; } /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ public int getProjectsCount() { return projects_.size(); } /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ public org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project getProjects(int index) { return projects_.get(index); } /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ public org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.ProjectOrBuilder getProjectsOrBuilder( int index) { return projects_.get(index); } public static final int PERMISSIONS_FIELD_NUMBER = 3; private java.util.List permissions_; /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public java.util.List getPermissionsList() { return permissions_; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public java.util.List getPermissionsOrBuilderList() { return permissions_; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public int getPermissionsCount() { return permissions_.size(); } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public org.sonarqube.ws.WsPermissions.Permission getPermissions(int index) { return permissions_.get(index); } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( int index) { return permissions_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getPaging()); } for (int i = 0; i < projects_.size(); i++) { output.writeMessage(2, projects_.get(i)); } for (int i = 0; i < permissions_.size(); i++) { output.writeMessage(3, permissions_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPaging()); } for (int i = 0; i < projects_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, projects_.get(i)); } for (int i = 0; i < permissions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, permissions_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code sonarqube.ws.permissions.SearchProjectPermissionsWsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.SearchProjectPermissionsWsResponse) org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_SearchProjectPermissionsWsResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_SearchProjectPermissionsWsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.class, org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Builder.class); } // Construct using org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPagingFieldBuilder(); getProjectsFieldBuilder(); getPermissionsFieldBuilder(); } } public Builder clear() { super.clear(); if (pagingBuilder_ == null) { paging_ = null; } else { pagingBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (projectsBuilder_ == null) { projects_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { projectsBuilder_.clear(); } if (permissionsBuilder_ == null) { permissions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { permissionsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_SearchProjectPermissionsWsResponse_descriptor; } public org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse getDefaultInstanceForType() { return org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.getDefaultInstance(); } public org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse build() { org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse buildPartial() { org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse result = new org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (pagingBuilder_ == null) { result.paging_ = paging_; } else { result.paging_ = pagingBuilder_.build(); } if (projectsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { projects_ = java.util.Collections.unmodifiableList(projects_); bitField0_ = (bitField0_ & ~0x00000002); } result.projects_ = projects_; } else { result.projects_ = projectsBuilder_.build(); } if (permissionsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { permissions_ = java.util.Collections.unmodifiableList(permissions_); bitField0_ = (bitField0_ & ~0x00000004); } result.permissions_ = permissions_; } else { result.permissions_ = permissionsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse) { return mergeFrom((org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse other) { if (other == org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.getDefaultInstance()) return this; if (other.hasPaging()) { mergePaging(other.getPaging()); } if (projectsBuilder_ == null) { if (!other.projects_.isEmpty()) { if (projects_.isEmpty()) { projects_ = other.projects_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureProjectsIsMutable(); projects_.addAll(other.projects_); } onChanged(); } } else { if (!other.projects_.isEmpty()) { if (projectsBuilder_.isEmpty()) { projectsBuilder_.dispose(); projectsBuilder_ = null; projects_ = other.projects_; bitField0_ = (bitField0_ & ~0x00000002); projectsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getProjectsFieldBuilder() : null; } else { projectsBuilder_.addAllMessages(other.projects_); } } } if (permissionsBuilder_ == null) { if (!other.permissions_.isEmpty()) { if (permissions_.isEmpty()) { permissions_ = other.permissions_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensurePermissionsIsMutable(); permissions_.addAll(other.permissions_); } onChanged(); } } else { if (!other.permissions_.isEmpty()) { if (permissionsBuilder_.isEmpty()) { permissionsBuilder_.dispose(); permissionsBuilder_ = null; permissions_ = other.permissions_; bitField0_ = (bitField0_ & ~0x00000004); permissionsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getPermissionsFieldBuilder() : null; } else { permissionsBuilder_.addAllMessages(other.permissions_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.sonarqube.ws.Common.Paging paging_ = null; private com.google.protobuf.SingleFieldBuilder< org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_; /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public boolean hasPaging() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public org.sonarqube.ws.Common.Paging getPaging() { if (pagingBuilder_ == null) { return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; } else { return pagingBuilder_.getMessage(); } } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ 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; } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ 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; } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public Builder mergePaging(org.sonarqube.ws.Common.Paging value) { if (pagingBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && paging_ != null && paging_ != org.sonarqube.ws.Common.Paging.getDefaultInstance()) { paging_ = org.sonarqube.ws.Common.Paging.newBuilder(paging_).mergeFrom(value).buildPartial(); } else { paging_ = value; } onChanged(); } else { pagingBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public Builder clearPaging() { if (pagingBuilder_ == null) { paging_ = null; onChanged(); } else { pagingBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public org.sonarqube.ws.Common.Paging.Builder getPagingBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPagingFieldBuilder().getBuilder(); } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { if (pagingBuilder_ != null) { return pagingBuilder_.getMessageOrBuilder(); } else { return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; } } /** * optional .sonarqube.ws.commons.Paging paging = 1; */ 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 projects_ = java.util.Collections.emptyList(); private void ensureProjectsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { projects_ = new java.util.ArrayList(projects_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project, org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project.Builder, org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.ProjectOrBuilder> projectsBuilder_; /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ public java.util.List getProjectsList() { if (projectsBuilder_ == null) { return java.util.Collections.unmodifiableList(projects_); } else { return projectsBuilder_.getMessageList(); } } /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ public int getProjectsCount() { if (projectsBuilder_ == null) { return projects_.size(); } else { return projectsBuilder_.getCount(); } } /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ public org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project getProjects(int index) { if (projectsBuilder_ == null) { return projects_.get(index); } else { return projectsBuilder_.getMessage(index); } } /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ public Builder setProjects( int index, org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project value) { if (projectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProjectsIsMutable(); projects_.set(index, value); onChanged(); } else { projectsBuilder_.setMessage(index, value); } return this; } /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ public Builder setProjects( int index, org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project.Builder builderForValue) { if (projectsBuilder_ == null) { ensureProjectsIsMutable(); projects_.set(index, builderForValue.build()); onChanged(); } else { projectsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ public Builder addProjects(org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project value) { if (projectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProjectsIsMutable(); projects_.add(value); onChanged(); } else { projectsBuilder_.addMessage(value); } return this; } /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ public Builder addProjects( int index, org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project value) { if (projectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProjectsIsMutable(); projects_.add(index, value); onChanged(); } else { projectsBuilder_.addMessage(index, value); } return this; } /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ public Builder addProjects( org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project.Builder builderForValue) { if (projectsBuilder_ == null) { ensureProjectsIsMutable(); projects_.add(builderForValue.build()); onChanged(); } else { projectsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ public Builder addProjects( int index, org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project.Builder builderForValue) { if (projectsBuilder_ == null) { ensureProjectsIsMutable(); projects_.add(index, builderForValue.build()); onChanged(); } else { projectsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ public Builder addAllProjects( java.lang.Iterable values) { if (projectsBuilder_ == null) { ensureProjectsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, projects_); onChanged(); } else { projectsBuilder_.addAllMessages(values); } return this; } /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ public Builder clearProjects() { if (projectsBuilder_ == null) { projects_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { projectsBuilder_.clear(); } return this; } /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ public Builder removeProjects(int index) { if (projectsBuilder_ == null) { ensureProjectsIsMutable(); projects_.remove(index); onChanged(); } else { projectsBuilder_.remove(index); } return this; } /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ public org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project.Builder getProjectsBuilder( int index) { return getProjectsFieldBuilder().getBuilder(index); } /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ public org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.ProjectOrBuilder getProjectsOrBuilder( int index) { if (projectsBuilder_ == null) { return projects_.get(index); } else { return projectsBuilder_.getMessageOrBuilder(index); } } /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ public java.util.List getProjectsOrBuilderList() { if (projectsBuilder_ != null) { return projectsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(projects_); } } /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ public org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project.Builder addProjectsBuilder() { return getProjectsFieldBuilder().addBuilder( org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project.getDefaultInstance()); } /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ public org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project.Builder addProjectsBuilder( int index) { return getProjectsFieldBuilder().addBuilder( index, org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project.getDefaultInstance()); } /** * repeated .sonarqube.ws.permissions.SearchProjectPermissionsWsResponse.Project projects = 2; */ public java.util.List getProjectsBuilderList() { return getProjectsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project, org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project.Builder, org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.ProjectOrBuilder> getProjectsFieldBuilder() { if (projectsBuilder_ == null) { projectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project, org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.Project.Builder, org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse.ProjectOrBuilder>( projects_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); projects_ = null; } return projectsBuilder_; } private java.util.List permissions_ = java.util.Collections.emptyList(); private void ensurePermissionsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { permissions_ = new java.util.ArrayList(permissions_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder> permissionsBuilder_; /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public java.util.List getPermissionsList() { if (permissionsBuilder_ == null) { return java.util.Collections.unmodifiableList(permissions_); } else { return permissionsBuilder_.getMessageList(); } } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public int getPermissionsCount() { if (permissionsBuilder_ == null) { return permissions_.size(); } else { return permissionsBuilder_.getCount(); } } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public org.sonarqube.ws.WsPermissions.Permission getPermissions(int index) { if (permissionsBuilder_ == null) { return permissions_.get(index); } else { return permissionsBuilder_.getMessage(index); } } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public Builder setPermissions( int index, org.sonarqube.ws.WsPermissions.Permission value) { if (permissionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.set(index, value); onChanged(); } else { permissionsBuilder_.setMessage(index, value); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public Builder setPermissions( int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.set(index, builderForValue.build()); onChanged(); } else { permissionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public Builder addPermissions(org.sonarqube.ws.WsPermissions.Permission value) { if (permissionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); } else { permissionsBuilder_.addMessage(value); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public Builder addPermissions( int index, org.sonarqube.ws.WsPermissions.Permission value) { if (permissionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.add(index, value); onChanged(); } else { permissionsBuilder_.addMessage(index, value); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public Builder addPermissions( org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.add(builderForValue.build()); onChanged(); } else { permissionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public Builder addPermissions( int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.add(index, builderForValue.build()); onChanged(); } else { permissionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public Builder addAllPermissions( java.lang.Iterable values) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, permissions_); onChanged(); } else { permissionsBuilder_.addAllMessages(values); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public Builder clearPermissions() { if (permissionsBuilder_ == null) { permissions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { permissionsBuilder_.clear(); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public Builder removePermissions(int index) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.remove(index); onChanged(); } else { permissionsBuilder_.remove(index); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public org.sonarqube.ws.WsPermissions.Permission.Builder getPermissionsBuilder( int index) { return getPermissionsFieldBuilder().getBuilder(index); } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( int index) { if (permissionsBuilder_ == null) { return permissions_.get(index); } else { return permissionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public java.util.List getPermissionsOrBuilderList() { if (permissionsBuilder_ != null) { return permissionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(permissions_); } } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder() { return getPermissionsFieldBuilder().addBuilder( org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance()); } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder( int index) { return getPermissionsFieldBuilder().addBuilder( index, org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance()); } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public java.util.List getPermissionsBuilderList() { return getPermissionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder> getPermissionsFieldBuilder() { if (permissionsBuilder_ == null) { permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder>( permissions_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); permissions_ = null; } return permissionsBuilder_; } // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.SearchProjectPermissionsWsResponse) } // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.SearchProjectPermissionsWsResponse) private static final org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse(); } public static org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SearchProjectPermissionsWsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new SearchProjectPermissionsWsResponse(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.sonarqube.ws.WsPermissions.SearchProjectPermissionsWsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateTemplateWsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.CreateTemplateWsResponse) com.google.protobuf.MessageOrBuilder { /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ boolean hasPermissionTemplate(); /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ org.sonarqube.ws.WsPermissions.PermissionTemplate getPermissionTemplate(); /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder(); } /** * Protobuf type {@code sonarqube.ws.permissions.CreateTemplateWsResponse} */ public static final class CreateTemplateWsResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.CreateTemplateWsResponse) CreateTemplateWsResponseOrBuilder { // Use CreateTemplateWsResponse.newBuilder() to construct. private CreateTemplateWsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private CreateTemplateWsResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreateTemplateWsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = permissionTemplate_.toBuilder(); } permissionTemplate_ = input.readMessage(org.sonarqube.ws.WsPermissions.PermissionTemplate.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(permissionTemplate_); permissionTemplate_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_CreateTemplateWsResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_CreateTemplateWsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse.class, org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse.Builder.class); } private int bitField0_; public static final int PERMISSIONTEMPLATE_FIELD_NUMBER = 1; private org.sonarqube.ws.WsPermissions.PermissionTemplate permissionTemplate_; /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ public boolean hasPermissionTemplate() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ public org.sonarqube.ws.WsPermissions.PermissionTemplate getPermissionTemplate() { return permissionTemplate_ == null ? org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_; } /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ public org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder() { return permissionTemplate_ == null ? org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getPermissionTemplate()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPermissionTemplate()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code sonarqube.ws.permissions.CreateTemplateWsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.CreateTemplateWsResponse) org.sonarqube.ws.WsPermissions.CreateTemplateWsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_CreateTemplateWsResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_CreateTemplateWsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse.class, org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse.Builder.class); } // Construct using org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPermissionTemplateFieldBuilder(); } } public Builder clear() { super.clear(); if (permissionTemplateBuilder_ == null) { permissionTemplate_ = null; } else { permissionTemplateBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_CreateTemplateWsResponse_descriptor; } public org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse getDefaultInstanceForType() { return org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse.getDefaultInstance(); } public org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse build() { org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse buildPartial() { org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse result = new org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (permissionTemplateBuilder_ == null) { result.permissionTemplate_ = permissionTemplate_; } else { result.permissionTemplate_ = permissionTemplateBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse) { return mergeFrom((org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse other) { if (other == org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse.getDefaultInstance()) return this; if (other.hasPermissionTemplate()) { mergePermissionTemplate(other.getPermissionTemplate()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.sonarqube.ws.WsPermissions.PermissionTemplate permissionTemplate_ = null; private com.google.protobuf.SingleFieldBuilder< org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder> permissionTemplateBuilder_; /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ public boolean hasPermissionTemplate() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ public org.sonarqube.ws.WsPermissions.PermissionTemplate getPermissionTemplate() { if (permissionTemplateBuilder_ == null) { return permissionTemplate_ == null ? org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_; } else { return permissionTemplateBuilder_.getMessage(); } } /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ public Builder setPermissionTemplate(org.sonarqube.ws.WsPermissions.PermissionTemplate value) { if (permissionTemplateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } permissionTemplate_ = value; onChanged(); } else { permissionTemplateBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ public Builder setPermissionTemplate( org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder builderForValue) { if (permissionTemplateBuilder_ == null) { permissionTemplate_ = builderForValue.build(); onChanged(); } else { permissionTemplateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ public Builder mergePermissionTemplate(org.sonarqube.ws.WsPermissions.PermissionTemplate value) { if (permissionTemplateBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && permissionTemplate_ != null && permissionTemplate_ != org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance()) { permissionTemplate_ = org.sonarqube.ws.WsPermissions.PermissionTemplate.newBuilder(permissionTemplate_).mergeFrom(value).buildPartial(); } else { permissionTemplate_ = value; } onChanged(); } else { permissionTemplateBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ public Builder clearPermissionTemplate() { if (permissionTemplateBuilder_ == null) { permissionTemplate_ = null; onChanged(); } else { permissionTemplateBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ public org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder getPermissionTemplateBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPermissionTemplateFieldBuilder().getBuilder(); } /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ public org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder() { if (permissionTemplateBuilder_ != null) { return permissionTemplateBuilder_.getMessageOrBuilder(); } else { return permissionTemplate_ == null ? org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_; } } /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ private com.google.protobuf.SingleFieldBuilder< org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder> getPermissionTemplateFieldBuilder() { if (permissionTemplateBuilder_ == null) { permissionTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder>( getPermissionTemplate(), getParentForChildren(), isClean()); permissionTemplate_ = null; } return permissionTemplateBuilder_; } // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.CreateTemplateWsResponse) } // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.CreateTemplateWsResponse) private static final org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse(); } public static org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CreateTemplateWsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new CreateTemplateWsResponse(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.sonarqube.ws.WsPermissions.CreateTemplateWsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateTemplateWsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.UpdateTemplateWsResponse) com.google.protobuf.MessageOrBuilder { /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ boolean hasPermissionTemplate(); /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ org.sonarqube.ws.WsPermissions.PermissionTemplate getPermissionTemplate(); /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder(); } /** * Protobuf type {@code sonarqube.ws.permissions.UpdateTemplateWsResponse} */ public static final class UpdateTemplateWsResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.UpdateTemplateWsResponse) UpdateTemplateWsResponseOrBuilder { // Use UpdateTemplateWsResponse.newBuilder() to construct. private UpdateTemplateWsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UpdateTemplateWsResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateTemplateWsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = permissionTemplate_.toBuilder(); } permissionTemplate_ = input.readMessage(org.sonarqube.ws.WsPermissions.PermissionTemplate.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(permissionTemplate_); permissionTemplate_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_UpdateTemplateWsResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_UpdateTemplateWsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse.class, org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse.Builder.class); } private int bitField0_; public static final int PERMISSIONTEMPLATE_FIELD_NUMBER = 1; private org.sonarqube.ws.WsPermissions.PermissionTemplate permissionTemplate_; /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ public boolean hasPermissionTemplate() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ public org.sonarqube.ws.WsPermissions.PermissionTemplate getPermissionTemplate() { return permissionTemplate_ == null ? org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_; } /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ public org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder() { return permissionTemplate_ == null ? org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getPermissionTemplate()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPermissionTemplate()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code sonarqube.ws.permissions.UpdateTemplateWsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.UpdateTemplateWsResponse) org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_UpdateTemplateWsResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_UpdateTemplateWsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse.class, org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse.Builder.class); } // Construct using org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPermissionTemplateFieldBuilder(); } } public Builder clear() { super.clear(); if (permissionTemplateBuilder_ == null) { permissionTemplate_ = null; } else { permissionTemplateBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_UpdateTemplateWsResponse_descriptor; } public org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse getDefaultInstanceForType() { return org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse.getDefaultInstance(); } public org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse build() { org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse buildPartial() { org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse result = new org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (permissionTemplateBuilder_ == null) { result.permissionTemplate_ = permissionTemplate_; } else { result.permissionTemplate_ = permissionTemplateBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse) { return mergeFrom((org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse other) { if (other == org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse.getDefaultInstance()) return this; if (other.hasPermissionTemplate()) { mergePermissionTemplate(other.getPermissionTemplate()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.sonarqube.ws.WsPermissions.PermissionTemplate permissionTemplate_ = null; private com.google.protobuf.SingleFieldBuilder< org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder> permissionTemplateBuilder_; /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ public boolean hasPermissionTemplate() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ public org.sonarqube.ws.WsPermissions.PermissionTemplate getPermissionTemplate() { if (permissionTemplateBuilder_ == null) { return permissionTemplate_ == null ? org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_; } else { return permissionTemplateBuilder_.getMessage(); } } /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ public Builder setPermissionTemplate(org.sonarqube.ws.WsPermissions.PermissionTemplate value) { if (permissionTemplateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } permissionTemplate_ = value; onChanged(); } else { permissionTemplateBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ public Builder setPermissionTemplate( org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder builderForValue) { if (permissionTemplateBuilder_ == null) { permissionTemplate_ = builderForValue.build(); onChanged(); } else { permissionTemplateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ public Builder mergePermissionTemplate(org.sonarqube.ws.WsPermissions.PermissionTemplate value) { if (permissionTemplateBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && permissionTemplate_ != null && permissionTemplate_ != org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance()) { permissionTemplate_ = org.sonarqube.ws.WsPermissions.PermissionTemplate.newBuilder(permissionTemplate_).mergeFrom(value).buildPartial(); } else { permissionTemplate_ = value; } onChanged(); } else { permissionTemplateBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ public Builder clearPermissionTemplate() { if (permissionTemplateBuilder_ == null) { permissionTemplate_ = null; onChanged(); } else { permissionTemplateBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ public org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder getPermissionTemplateBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPermissionTemplateFieldBuilder().getBuilder(); } /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ public org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder() { if (permissionTemplateBuilder_ != null) { return permissionTemplateBuilder_.getMessageOrBuilder(); } else { return permissionTemplate_ == null ? org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_; } } /** * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; */ private com.google.protobuf.SingleFieldBuilder< org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder> getPermissionTemplateFieldBuilder() { if (permissionTemplateBuilder_ == null) { permissionTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder>( getPermissionTemplate(), getParentForChildren(), isClean()); permissionTemplate_ = null; } return permissionTemplateBuilder_; } // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.UpdateTemplateWsResponse) } // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.UpdateTemplateWsResponse) private static final org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse(); } public static org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public UpdateTemplateWsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new UpdateTemplateWsResponse(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.sonarqube.ws.WsPermissions.UpdateTemplateWsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SearchTemplatesWsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.SearchTemplatesWsResponse) com.google.protobuf.MessageOrBuilder { /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ java.util.List getPermissionTemplatesList(); /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ org.sonarqube.ws.WsPermissions.PermissionTemplate getPermissionTemplates(int index); /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ int getPermissionTemplatesCount(); /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ java.util.List getPermissionTemplatesOrBuilderList(); /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplatesOrBuilder( int index); /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ java.util.List getDefaultTemplatesList(); /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier getDefaultTemplates(int index); /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ int getDefaultTemplatesCount(); /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ java.util.List getDefaultTemplatesOrBuilderList(); /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifierOrBuilder getDefaultTemplatesOrBuilder( int index); /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ java.util.List getPermissionsList(); /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ org.sonarqube.ws.WsPermissions.Permission getPermissions(int index); /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ int getPermissionsCount(); /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ java.util.List getPermissionsOrBuilderList(); /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( int index); } /** * Protobuf type {@code sonarqube.ws.permissions.SearchTemplatesWsResponse} */ public static final class SearchTemplatesWsResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.SearchTemplatesWsResponse) SearchTemplatesWsResponseOrBuilder { // Use SearchTemplatesWsResponse.newBuilder() to construct. private SearchTemplatesWsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SearchTemplatesWsResponse() { permissionTemplates_ = java.util.Collections.emptyList(); defaultTemplates_ = java.util.Collections.emptyList(); permissions_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SearchTemplatesWsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { permissionTemplates_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } permissionTemplates_.add(input.readMessage(org.sonarqube.ws.WsPermissions.PermissionTemplate.parser(), extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { defaultTemplates_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } defaultTemplates_.add(input.readMessage(org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier.parser(), extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { permissions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } permissions_.add(input.readMessage(org.sonarqube.ws.WsPermissions.Permission.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { permissionTemplates_ = java.util.Collections.unmodifiableList(permissionTemplates_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { defaultTemplates_ = java.util.Collections.unmodifiableList(defaultTemplates_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { permissions_ = java.util.Collections.unmodifiableList(permissions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_SearchTemplatesWsResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_SearchTemplatesWsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.class, org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.Builder.class); } public interface TemplateIdQualifierOrBuilder extends // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier) com.google.protobuf.MessageOrBuilder { /** * optional string templateId = 1; */ boolean hasTemplateId(); /** * optional string templateId = 1; */ java.lang.String getTemplateId(); /** * optional string templateId = 1; */ com.google.protobuf.ByteString getTemplateIdBytes(); /** * optional string qualifier = 2; */ boolean hasQualifier(); /** * optional string qualifier = 2; */ java.lang.String getQualifier(); /** * optional string qualifier = 2; */ com.google.protobuf.ByteString getQualifierBytes(); } /** * Protobuf type {@code sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier} */ public static final class TemplateIdQualifier extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier) TemplateIdQualifierOrBuilder { // Use TemplateIdQualifier.newBuilder() to construct. private TemplateIdQualifier(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TemplateIdQualifier() { templateId_ = ""; qualifier_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TemplateIdQualifier( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; templateId_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; qualifier_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_SearchTemplatesWsResponse_TemplateIdQualifier_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_SearchTemplatesWsResponse_TemplateIdQualifier_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier.class, org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier.Builder.class); } private int bitField0_; public static final int TEMPLATEID_FIELD_NUMBER = 1; private volatile java.lang.Object templateId_; /** * optional string templateId = 1; */ public boolean hasTemplateId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string templateId = 1; */ public java.lang.String getTemplateId() { java.lang.Object ref = templateId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { templateId_ = s; } return s; } } /** * optional string templateId = 1; */ public com.google.protobuf.ByteString getTemplateIdBytes() { java.lang.Object ref = templateId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); templateId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int QUALIFIER_FIELD_NUMBER = 2; private volatile java.lang.Object qualifier_; /** * optional string qualifier = 2; */ public boolean hasQualifier() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string qualifier = 2; */ public java.lang.String getQualifier() { java.lang.Object ref = qualifier_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { qualifier_ = s; } return s; } } /** * optional string qualifier = 2; */ public com.google.protobuf.ByteString getQualifierBytes() { java.lang.Object ref = qualifier_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); qualifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, templateId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, qualifier_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, templateId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, qualifier_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier) org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifierOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_SearchTemplatesWsResponse_TemplateIdQualifier_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_SearchTemplatesWsResponse_TemplateIdQualifier_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier.class, org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier.Builder.class); } // Construct using org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); templateId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); qualifier_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_SearchTemplatesWsResponse_TemplateIdQualifier_descriptor; } public org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier getDefaultInstanceForType() { return org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier.getDefaultInstance(); } public org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier build() { org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier buildPartial() { org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier result = new org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.templateId_ = templateId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.qualifier_ = qualifier_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier) { return mergeFrom((org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier other) { if (other == org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier.getDefaultInstance()) return this; if (other.hasTemplateId()) { bitField0_ |= 0x00000001; templateId_ = other.templateId_; onChanged(); } if (other.hasQualifier()) { bitField0_ |= 0x00000002; qualifier_ = other.qualifier_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object templateId_ = ""; /** * optional string templateId = 1; */ public boolean hasTemplateId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string templateId = 1; */ public java.lang.String getTemplateId() { java.lang.Object ref = templateId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { templateId_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string templateId = 1; */ public com.google.protobuf.ByteString getTemplateIdBytes() { java.lang.Object ref = templateId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); templateId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string templateId = 1; */ public Builder setTemplateId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; templateId_ = value; onChanged(); return this; } /** * optional string templateId = 1; */ public Builder clearTemplateId() { bitField0_ = (bitField0_ & ~0x00000001); templateId_ = getDefaultInstance().getTemplateId(); onChanged(); return this; } /** * optional string templateId = 1; */ public Builder setTemplateIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; templateId_ = value; onChanged(); return this; } private java.lang.Object qualifier_ = ""; /** * optional string qualifier = 2; */ public boolean hasQualifier() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string qualifier = 2; */ public java.lang.String getQualifier() { java.lang.Object ref = qualifier_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { qualifier_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string qualifier = 2; */ public com.google.protobuf.ByteString getQualifierBytes() { java.lang.Object ref = qualifier_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); qualifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string qualifier = 2; */ public Builder setQualifier( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; qualifier_ = value; onChanged(); return this; } /** * optional string qualifier = 2; */ public Builder clearQualifier() { bitField0_ = (bitField0_ & ~0x00000002); qualifier_ = getDefaultInstance().getQualifier(); onChanged(); return this; } /** * optional string qualifier = 2; */ public Builder setQualifierBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; qualifier_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier) } // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier) private static final org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier(); } public static org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TemplateIdQualifier parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new TemplateIdQualifier(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int PERMISSIONTEMPLATES_FIELD_NUMBER = 1; private java.util.List permissionTemplates_; /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ public java.util.List getPermissionTemplatesList() { return permissionTemplates_; } /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ public java.util.List getPermissionTemplatesOrBuilderList() { return permissionTemplates_; } /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ public int getPermissionTemplatesCount() { return permissionTemplates_.size(); } /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ public org.sonarqube.ws.WsPermissions.PermissionTemplate getPermissionTemplates(int index) { return permissionTemplates_.get(index); } /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ public org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplatesOrBuilder( int index) { return permissionTemplates_.get(index); } public static final int DEFAULTTEMPLATES_FIELD_NUMBER = 2; private java.util.List defaultTemplates_; /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ public java.util.List getDefaultTemplatesList() { return defaultTemplates_; } /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ public java.util.List getDefaultTemplatesOrBuilderList() { return defaultTemplates_; } /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ public int getDefaultTemplatesCount() { return defaultTemplates_.size(); } /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ public org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier getDefaultTemplates(int index) { return defaultTemplates_.get(index); } /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ public org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifierOrBuilder getDefaultTemplatesOrBuilder( int index) { return defaultTemplates_.get(index); } public static final int PERMISSIONS_FIELD_NUMBER = 3; private java.util.List permissions_; /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public java.util.List getPermissionsList() { return permissions_; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public java.util.List getPermissionsOrBuilderList() { return permissions_; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public int getPermissionsCount() { return permissions_.size(); } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public org.sonarqube.ws.WsPermissions.Permission getPermissions(int index) { return permissions_.get(index); } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( int index) { return permissions_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < permissionTemplates_.size(); i++) { output.writeMessage(1, permissionTemplates_.get(i)); } for (int i = 0; i < defaultTemplates_.size(); i++) { output.writeMessage(2, defaultTemplates_.get(i)); } for (int i = 0; i < permissions_.size(); i++) { output.writeMessage(3, permissions_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < permissionTemplates_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, permissionTemplates_.get(i)); } for (int i = 0; i < defaultTemplates_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, defaultTemplates_.get(i)); } for (int i = 0; i < permissions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, permissions_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code sonarqube.ws.permissions.SearchTemplatesWsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.SearchTemplatesWsResponse) org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_SearchTemplatesWsResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_SearchTemplatesWsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.class, org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.Builder.class); } // Construct using org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPermissionTemplatesFieldBuilder(); getDefaultTemplatesFieldBuilder(); getPermissionsFieldBuilder(); } } public Builder clear() { super.clear(); if (permissionTemplatesBuilder_ == null) { permissionTemplates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { permissionTemplatesBuilder_.clear(); } if (defaultTemplatesBuilder_ == null) { defaultTemplates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { defaultTemplatesBuilder_.clear(); } if (permissionsBuilder_ == null) { permissions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { permissionsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_SearchTemplatesWsResponse_descriptor; } public org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse getDefaultInstanceForType() { return org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.getDefaultInstance(); } public org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse build() { org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse buildPartial() { org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse result = new org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse(this); int from_bitField0_ = bitField0_; if (permissionTemplatesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { permissionTemplates_ = java.util.Collections.unmodifiableList(permissionTemplates_); bitField0_ = (bitField0_ & ~0x00000001); } result.permissionTemplates_ = permissionTemplates_; } else { result.permissionTemplates_ = permissionTemplatesBuilder_.build(); } if (defaultTemplatesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { defaultTemplates_ = java.util.Collections.unmodifiableList(defaultTemplates_); bitField0_ = (bitField0_ & ~0x00000002); } result.defaultTemplates_ = defaultTemplates_; } else { result.defaultTemplates_ = defaultTemplatesBuilder_.build(); } if (permissionsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { permissions_ = java.util.Collections.unmodifiableList(permissions_); bitField0_ = (bitField0_ & ~0x00000004); } result.permissions_ = permissions_; } else { result.permissions_ = permissionsBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse) { return mergeFrom((org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse other) { if (other == org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.getDefaultInstance()) return this; if (permissionTemplatesBuilder_ == null) { if (!other.permissionTemplates_.isEmpty()) { if (permissionTemplates_.isEmpty()) { permissionTemplates_ = other.permissionTemplates_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePermissionTemplatesIsMutable(); permissionTemplates_.addAll(other.permissionTemplates_); } onChanged(); } } else { if (!other.permissionTemplates_.isEmpty()) { if (permissionTemplatesBuilder_.isEmpty()) { permissionTemplatesBuilder_.dispose(); permissionTemplatesBuilder_ = null; permissionTemplates_ = other.permissionTemplates_; bitField0_ = (bitField0_ & ~0x00000001); permissionTemplatesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getPermissionTemplatesFieldBuilder() : null; } else { permissionTemplatesBuilder_.addAllMessages(other.permissionTemplates_); } } } if (defaultTemplatesBuilder_ == null) { if (!other.defaultTemplates_.isEmpty()) { if (defaultTemplates_.isEmpty()) { defaultTemplates_ = other.defaultTemplates_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDefaultTemplatesIsMutable(); defaultTemplates_.addAll(other.defaultTemplates_); } onChanged(); } } else { if (!other.defaultTemplates_.isEmpty()) { if (defaultTemplatesBuilder_.isEmpty()) { defaultTemplatesBuilder_.dispose(); defaultTemplatesBuilder_ = null; defaultTemplates_ = other.defaultTemplates_; bitField0_ = (bitField0_ & ~0x00000002); defaultTemplatesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getDefaultTemplatesFieldBuilder() : null; } else { defaultTemplatesBuilder_.addAllMessages(other.defaultTemplates_); } } } if (permissionsBuilder_ == null) { if (!other.permissions_.isEmpty()) { if (permissions_.isEmpty()) { permissions_ = other.permissions_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensurePermissionsIsMutable(); permissions_.addAll(other.permissions_); } onChanged(); } } else { if (!other.permissions_.isEmpty()) { if (permissionsBuilder_.isEmpty()) { permissionsBuilder_.dispose(); permissionsBuilder_ = null; permissions_ = other.permissions_; bitField0_ = (bitField0_ & ~0x00000004); permissionsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getPermissionsFieldBuilder() : null; } else { permissionsBuilder_.addAllMessages(other.permissions_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List permissionTemplates_ = java.util.Collections.emptyList(); private void ensurePermissionTemplatesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { permissionTemplates_ = new java.util.ArrayList(permissionTemplates_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder> permissionTemplatesBuilder_; /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ public java.util.List getPermissionTemplatesList() { if (permissionTemplatesBuilder_ == null) { return java.util.Collections.unmodifiableList(permissionTemplates_); } else { return permissionTemplatesBuilder_.getMessageList(); } } /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ public int getPermissionTemplatesCount() { if (permissionTemplatesBuilder_ == null) { return permissionTemplates_.size(); } else { return permissionTemplatesBuilder_.getCount(); } } /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ public org.sonarqube.ws.WsPermissions.PermissionTemplate getPermissionTemplates(int index) { if (permissionTemplatesBuilder_ == null) { return permissionTemplates_.get(index); } else { return permissionTemplatesBuilder_.getMessage(index); } } /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ public Builder setPermissionTemplates( int index, org.sonarqube.ws.WsPermissions.PermissionTemplate value) { if (permissionTemplatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionTemplatesIsMutable(); permissionTemplates_.set(index, value); onChanged(); } else { permissionTemplatesBuilder_.setMessage(index, value); } return this; } /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ public Builder setPermissionTemplates( int index, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder builderForValue) { if (permissionTemplatesBuilder_ == null) { ensurePermissionTemplatesIsMutable(); permissionTemplates_.set(index, builderForValue.build()); onChanged(); } else { permissionTemplatesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ public Builder addPermissionTemplates(org.sonarqube.ws.WsPermissions.PermissionTemplate value) { if (permissionTemplatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionTemplatesIsMutable(); permissionTemplates_.add(value); onChanged(); } else { permissionTemplatesBuilder_.addMessage(value); } return this; } /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ public Builder addPermissionTemplates( int index, org.sonarqube.ws.WsPermissions.PermissionTemplate value) { if (permissionTemplatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionTemplatesIsMutable(); permissionTemplates_.add(index, value); onChanged(); } else { permissionTemplatesBuilder_.addMessage(index, value); } return this; } /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ public Builder addPermissionTemplates( org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder builderForValue) { if (permissionTemplatesBuilder_ == null) { ensurePermissionTemplatesIsMutable(); permissionTemplates_.add(builderForValue.build()); onChanged(); } else { permissionTemplatesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ public Builder addPermissionTemplates( int index, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder builderForValue) { if (permissionTemplatesBuilder_ == null) { ensurePermissionTemplatesIsMutable(); permissionTemplates_.add(index, builderForValue.build()); onChanged(); } else { permissionTemplatesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ public Builder addAllPermissionTemplates( java.lang.Iterable values) { if (permissionTemplatesBuilder_ == null) { ensurePermissionTemplatesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, permissionTemplates_); onChanged(); } else { permissionTemplatesBuilder_.addAllMessages(values); } return this; } /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ public Builder clearPermissionTemplates() { if (permissionTemplatesBuilder_ == null) { permissionTemplates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { permissionTemplatesBuilder_.clear(); } return this; } /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ public Builder removePermissionTemplates(int index) { if (permissionTemplatesBuilder_ == null) { ensurePermissionTemplatesIsMutable(); permissionTemplates_.remove(index); onChanged(); } else { permissionTemplatesBuilder_.remove(index); } return this; } /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ public org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder getPermissionTemplatesBuilder( int index) { return getPermissionTemplatesFieldBuilder().getBuilder(index); } /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ public org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplatesOrBuilder( int index) { if (permissionTemplatesBuilder_ == null) { return permissionTemplates_.get(index); } else { return permissionTemplatesBuilder_.getMessageOrBuilder(index); } } /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ public java.util.List getPermissionTemplatesOrBuilderList() { if (permissionTemplatesBuilder_ != null) { return permissionTemplatesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(permissionTemplates_); } } /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ public org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder addPermissionTemplatesBuilder() { return getPermissionTemplatesFieldBuilder().addBuilder( org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance()); } /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ public org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder addPermissionTemplatesBuilder( int index) { return getPermissionTemplatesFieldBuilder().addBuilder( index, org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance()); } /** * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; */ public java.util.List getPermissionTemplatesBuilderList() { return getPermissionTemplatesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder> getPermissionTemplatesFieldBuilder() { if (permissionTemplatesBuilder_ == null) { permissionTemplatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder>( permissionTemplates_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); permissionTemplates_ = null; } return permissionTemplatesBuilder_; } private java.util.List defaultTemplates_ = java.util.Collections.emptyList(); private void ensureDefaultTemplatesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { defaultTemplates_ = new java.util.ArrayList(defaultTemplates_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier, org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier.Builder, org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifierOrBuilder> defaultTemplatesBuilder_; /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ public java.util.List getDefaultTemplatesList() { if (defaultTemplatesBuilder_ == null) { return java.util.Collections.unmodifiableList(defaultTemplates_); } else { return defaultTemplatesBuilder_.getMessageList(); } } /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ public int getDefaultTemplatesCount() { if (defaultTemplatesBuilder_ == null) { return defaultTemplates_.size(); } else { return defaultTemplatesBuilder_.getCount(); } } /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ public org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier getDefaultTemplates(int index) { if (defaultTemplatesBuilder_ == null) { return defaultTemplates_.get(index); } else { return defaultTemplatesBuilder_.getMessage(index); } } /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ public Builder setDefaultTemplates( int index, org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier value) { if (defaultTemplatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDefaultTemplatesIsMutable(); defaultTemplates_.set(index, value); onChanged(); } else { defaultTemplatesBuilder_.setMessage(index, value); } return this; } /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ public Builder setDefaultTemplates( int index, org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier.Builder builderForValue) { if (defaultTemplatesBuilder_ == null) { ensureDefaultTemplatesIsMutable(); defaultTemplates_.set(index, builderForValue.build()); onChanged(); } else { defaultTemplatesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ public Builder addDefaultTemplates(org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier value) { if (defaultTemplatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDefaultTemplatesIsMutable(); defaultTemplates_.add(value); onChanged(); } else { defaultTemplatesBuilder_.addMessage(value); } return this; } /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ public Builder addDefaultTemplates( int index, org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier value) { if (defaultTemplatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDefaultTemplatesIsMutable(); defaultTemplates_.add(index, value); onChanged(); } else { defaultTemplatesBuilder_.addMessage(index, value); } return this; } /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ public Builder addDefaultTemplates( org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier.Builder builderForValue) { if (defaultTemplatesBuilder_ == null) { ensureDefaultTemplatesIsMutable(); defaultTemplates_.add(builderForValue.build()); onChanged(); } else { defaultTemplatesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ public Builder addDefaultTemplates( int index, org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier.Builder builderForValue) { if (defaultTemplatesBuilder_ == null) { ensureDefaultTemplatesIsMutable(); defaultTemplates_.add(index, builderForValue.build()); onChanged(); } else { defaultTemplatesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ public Builder addAllDefaultTemplates( java.lang.Iterable values) { if (defaultTemplatesBuilder_ == null) { ensureDefaultTemplatesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, defaultTemplates_); onChanged(); } else { defaultTemplatesBuilder_.addAllMessages(values); } return this; } /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ public Builder clearDefaultTemplates() { if (defaultTemplatesBuilder_ == null) { defaultTemplates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { defaultTemplatesBuilder_.clear(); } return this; } /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ public Builder removeDefaultTemplates(int index) { if (defaultTemplatesBuilder_ == null) { ensureDefaultTemplatesIsMutable(); defaultTemplates_.remove(index); onChanged(); } else { defaultTemplatesBuilder_.remove(index); } return this; } /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ public org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier.Builder getDefaultTemplatesBuilder( int index) { return getDefaultTemplatesFieldBuilder().getBuilder(index); } /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ public org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifierOrBuilder getDefaultTemplatesOrBuilder( int index) { if (defaultTemplatesBuilder_ == null) { return defaultTemplates_.get(index); } else { return defaultTemplatesBuilder_.getMessageOrBuilder(index); } } /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ public java.util.List getDefaultTemplatesOrBuilderList() { if (defaultTemplatesBuilder_ != null) { return defaultTemplatesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(defaultTemplates_); } } /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ public org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier.Builder addDefaultTemplatesBuilder() { return getDefaultTemplatesFieldBuilder().addBuilder( org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier.getDefaultInstance()); } /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ public org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier.Builder addDefaultTemplatesBuilder( int index) { return getDefaultTemplatesFieldBuilder().addBuilder( index, org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier.getDefaultInstance()); } /** * repeated .sonarqube.ws.permissions.SearchTemplatesWsResponse.TemplateIdQualifier defaultTemplates = 2; */ public java.util.List getDefaultTemplatesBuilderList() { return getDefaultTemplatesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier, org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier.Builder, org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifierOrBuilder> getDefaultTemplatesFieldBuilder() { if (defaultTemplatesBuilder_ == null) { defaultTemplatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier, org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifier.Builder, org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse.TemplateIdQualifierOrBuilder>( defaultTemplates_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); defaultTemplates_ = null; } return defaultTemplatesBuilder_; } private java.util.List permissions_ = java.util.Collections.emptyList(); private void ensurePermissionsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { permissions_ = new java.util.ArrayList(permissions_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder> permissionsBuilder_; /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public java.util.List getPermissionsList() { if (permissionsBuilder_ == null) { return java.util.Collections.unmodifiableList(permissions_); } else { return permissionsBuilder_.getMessageList(); } } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public int getPermissionsCount() { if (permissionsBuilder_ == null) { return permissions_.size(); } else { return permissionsBuilder_.getCount(); } } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public org.sonarqube.ws.WsPermissions.Permission getPermissions(int index) { if (permissionsBuilder_ == null) { return permissions_.get(index); } else { return permissionsBuilder_.getMessage(index); } } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public Builder setPermissions( int index, org.sonarqube.ws.WsPermissions.Permission value) { if (permissionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.set(index, value); onChanged(); } else { permissionsBuilder_.setMessage(index, value); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public Builder setPermissions( int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.set(index, builderForValue.build()); onChanged(); } else { permissionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public Builder addPermissions(org.sonarqube.ws.WsPermissions.Permission value) { if (permissionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); } else { permissionsBuilder_.addMessage(value); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public Builder addPermissions( int index, org.sonarqube.ws.WsPermissions.Permission value) { if (permissionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.add(index, value); onChanged(); } else { permissionsBuilder_.addMessage(index, value); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public Builder addPermissions( org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.add(builderForValue.build()); onChanged(); } else { permissionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public Builder addPermissions( int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.add(index, builderForValue.build()); onChanged(); } else { permissionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public Builder addAllPermissions( java.lang.Iterable values) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, permissions_); onChanged(); } else { permissionsBuilder_.addAllMessages(values); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public Builder clearPermissions() { if (permissionsBuilder_ == null) { permissions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { permissionsBuilder_.clear(); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public Builder removePermissions(int index) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.remove(index); onChanged(); } else { permissionsBuilder_.remove(index); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public org.sonarqube.ws.WsPermissions.Permission.Builder getPermissionsBuilder( int index) { return getPermissionsFieldBuilder().getBuilder(index); } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( int index) { if (permissionsBuilder_ == null) { return permissions_.get(index); } else { return permissionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public java.util.List getPermissionsOrBuilderList() { if (permissionsBuilder_ != null) { return permissionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(permissions_); } } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder() { return getPermissionsFieldBuilder().addBuilder( org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance()); } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder( int index) { return getPermissionsFieldBuilder().addBuilder( index, org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance()); } /** * repeated .sonarqube.ws.permissions.Permission permissions = 3; */ public java.util.List getPermissionsBuilderList() { return getPermissionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder> getPermissionsFieldBuilder() { if (permissionsBuilder_ == null) { permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder>( permissions_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); permissions_ = null; } return permissionsBuilder_; } // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.SearchTemplatesWsResponse) } // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.SearchTemplatesWsResponse) private static final org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse(); } public static org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SearchTemplatesWsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new SearchTemplatesWsResponse(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.sonarqube.ws.WsPermissions.SearchTemplatesWsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PermissionOrBuilder extends // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.Permission) com.google.protobuf.MessageOrBuilder { /** * optional string key = 1; */ boolean hasKey(); /** * optional string key = 1; */ java.lang.String getKey(); /** * optional string key = 1; */ com.google.protobuf.ByteString getKeyBytes(); /** * optional string name = 2; */ boolean hasName(); /** * optional string name = 2; */ java.lang.String getName(); /** * optional string name = 2; */ com.google.protobuf.ByteString getNameBytes(); /** * optional string description = 3; */ boolean hasDescription(); /** * optional string description = 3; */ java.lang.String getDescription(); /** * optional string description = 3; */ com.google.protobuf.ByteString getDescriptionBytes(); /** * optional int32 usersCount = 4; */ boolean hasUsersCount(); /** * optional int32 usersCount = 4; */ int getUsersCount(); /** * optional int32 groupsCount = 5; */ boolean hasGroupsCount(); /** * optional int32 groupsCount = 5; */ int getGroupsCount(); /** * optional bool withProjectCreator = 6; */ boolean hasWithProjectCreator(); /** * optional bool withProjectCreator = 6; */ boolean getWithProjectCreator(); } /** * Protobuf type {@code sonarqube.ws.permissions.Permission} */ public static final class Permission extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.Permission) PermissionOrBuilder { // Use Permission.newBuilder() to construct. private Permission(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Permission() { key_ = ""; name_ = ""; description_ = ""; usersCount_ = 0; groupsCount_ = 0; withProjectCreator_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Permission( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; key_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; name_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; description_ = bs; break; } case 32: { bitField0_ |= 0x00000008; usersCount_ = input.readInt32(); break; } case 40: { bitField0_ |= 0x00000010; groupsCount_ = input.readInt32(); break; } case 48: { bitField0_ |= 0x00000020; withProjectCreator_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Permission_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Permission_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.Permission.class, org.sonarqube.ws.WsPermissions.Permission.Builder.class); } private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** * optional string key = 1; */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { key_ = s; } return s; } } /** * optional string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * optional string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** * optional string description = 3; */ public boolean hasDescription() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string description = 3; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { description_ = s; } return s; } } /** * optional string description = 3; */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int USERSCOUNT_FIELD_NUMBER = 4; private int usersCount_; /** * optional int32 usersCount = 4; */ public boolean hasUsersCount() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int32 usersCount = 4; */ public int getUsersCount() { return usersCount_; } public static final int GROUPSCOUNT_FIELD_NUMBER = 5; private int groupsCount_; /** * optional int32 groupsCount = 5; */ public boolean hasGroupsCount() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int32 groupsCount = 5; */ public int getGroupsCount() { return groupsCount_; } public static final int WITHPROJECTCREATOR_FIELD_NUMBER = 6; private boolean withProjectCreator_; /** * optional bool withProjectCreator = 6; */ public boolean hasWithProjectCreator() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bool withProjectCreator = 6; */ public boolean getWithProjectCreator() { return withProjectCreator_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, key_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, usersCount_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt32(5, groupsCount_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBool(6, withProjectCreator_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, key_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, usersCount_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, groupsCount_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, withProjectCreator_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.sonarqube.ws.WsPermissions.Permission parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.Permission parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.Permission parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.Permission parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.Permission parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.Permission parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.Permission parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.sonarqube.ws.WsPermissions.Permission parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.Permission parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.Permission parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarqube.ws.WsPermissions.Permission prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code sonarqube.ws.permissions.Permission} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.Permission) org.sonarqube.ws.WsPermissions.PermissionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Permission_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Permission_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.Permission.class, org.sonarqube.ws.WsPermissions.Permission.Builder.class); } // Construct using org.sonarqube.ws.WsPermissions.Permission.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); key_ = ""; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); description_ = ""; bitField0_ = (bitField0_ & ~0x00000004); usersCount_ = 0; bitField0_ = (bitField0_ & ~0x00000008); groupsCount_ = 0; bitField0_ = (bitField0_ & ~0x00000010); withProjectCreator_ = false; bitField0_ = (bitField0_ & ~0x00000020); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Permission_descriptor; } public org.sonarqube.ws.WsPermissions.Permission getDefaultInstanceForType() { return org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance(); } public org.sonarqube.ws.WsPermissions.Permission build() { org.sonarqube.ws.WsPermissions.Permission result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.sonarqube.ws.WsPermissions.Permission buildPartial() { org.sonarqube.ws.WsPermissions.Permission result = new org.sonarqube.ws.WsPermissions.Permission(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.key_ = key_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.description_ = description_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.usersCount_ = usersCount_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.groupsCount_ = groupsCount_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.withProjectCreator_ = withProjectCreator_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarqube.ws.WsPermissions.Permission) { return mergeFrom((org.sonarqube.ws.WsPermissions.Permission)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarqube.ws.WsPermissions.Permission other) { if (other == org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance()) return this; if (other.hasKey()) { bitField0_ |= 0x00000001; key_ = other.key_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasDescription()) { bitField0_ |= 0x00000004; description_ = other.description_; onChanged(); } if (other.hasUsersCount()) { setUsersCount(other.getUsersCount()); } if (other.hasGroupsCount()) { setGroupsCount(other.getGroupsCount()); } if (other.hasWithProjectCreator()) { setWithProjectCreator(other.getWithProjectCreator()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.sonarqube.ws.WsPermissions.Permission parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.sonarqube.ws.WsPermissions.Permission) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object key_ = ""; /** * optional string key = 1; */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { key_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string key = 1; */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } /** * optional string key = 1; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * optional string key = 1; */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string name = 2; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** * optional string name = 2; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 2; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** * optional string description = 3; */ public boolean hasDescription() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string description = 3; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { description_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string description = 3; */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string description = 3; */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; description_ = value; onChanged(); return this; } /** * optional string description = 3; */ public Builder clearDescription() { bitField0_ = (bitField0_ & ~0x00000004); description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** * optional string description = 3; */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; description_ = value; onChanged(); return this; } private int usersCount_ ; /** * optional int32 usersCount = 4; */ public boolean hasUsersCount() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int32 usersCount = 4; */ public int getUsersCount() { return usersCount_; } /** * optional int32 usersCount = 4; */ public Builder setUsersCount(int value) { bitField0_ |= 0x00000008; usersCount_ = value; onChanged(); return this; } /** * optional int32 usersCount = 4; */ public Builder clearUsersCount() { bitField0_ = (bitField0_ & ~0x00000008); usersCount_ = 0; onChanged(); return this; } private int groupsCount_ ; /** * optional int32 groupsCount = 5; */ public boolean hasGroupsCount() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int32 groupsCount = 5; */ public int getGroupsCount() { return groupsCount_; } /** * optional int32 groupsCount = 5; */ public Builder setGroupsCount(int value) { bitField0_ |= 0x00000010; groupsCount_ = value; onChanged(); return this; } /** * optional int32 groupsCount = 5; */ public Builder clearGroupsCount() { bitField0_ = (bitField0_ & ~0x00000010); groupsCount_ = 0; onChanged(); return this; } private boolean withProjectCreator_ ; /** * optional bool withProjectCreator = 6; */ public boolean hasWithProjectCreator() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bool withProjectCreator = 6; */ public boolean getWithProjectCreator() { return withProjectCreator_; } /** * optional bool withProjectCreator = 6; */ public Builder setWithProjectCreator(boolean value) { bitField0_ |= 0x00000020; withProjectCreator_ = value; onChanged(); return this; } /** * optional bool withProjectCreator = 6; */ public Builder clearWithProjectCreator() { bitField0_ = (bitField0_ & ~0x00000020); withProjectCreator_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.Permission) } // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.Permission) private static final org.sonarqube.ws.WsPermissions.Permission DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.Permission(); } public static org.sonarqube.ws.WsPermissions.Permission getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Permission parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new Permission(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.sonarqube.ws.WsPermissions.Permission getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PermissionTemplateOrBuilder extends // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.PermissionTemplate) com.google.protobuf.MessageOrBuilder { /** * optional string id = 1; */ boolean hasId(); /** * optional string id = 1; */ java.lang.String getId(); /** * optional string id = 1; */ com.google.protobuf.ByteString getIdBytes(); /** * optional string name = 2; */ boolean hasName(); /** * optional string name = 2; */ java.lang.String getName(); /** * optional string name = 2; */ com.google.protobuf.ByteString getNameBytes(); /** * optional string description = 3; */ boolean hasDescription(); /** * optional string description = 3; */ java.lang.String getDescription(); /** * optional string description = 3; */ com.google.protobuf.ByteString getDescriptionBytes(); /** * optional string projectKeyPattern = 4; */ boolean hasProjectKeyPattern(); /** * optional string projectKeyPattern = 4; */ java.lang.String getProjectKeyPattern(); /** * optional string projectKeyPattern = 4; */ com.google.protobuf.ByteString getProjectKeyPatternBytes(); /** * optional string createdAt = 5; * *
     * ex: 2015-08-25T16:18:48+0200
     * 
*/ boolean hasCreatedAt(); /** * optional string createdAt = 5; * *
     * ex: 2015-08-25T16:18:48+0200
     * 
*/ java.lang.String getCreatedAt(); /** * optional string createdAt = 5; * *
     * ex: 2015-08-25T16:18:48+0200
     * 
*/ com.google.protobuf.ByteString getCreatedAtBytes(); /** * optional string updatedAt = 6; * *
     * ex: 2015-08-25T16:18:48+0200
     * 
*/ boolean hasUpdatedAt(); /** * optional string updatedAt = 6; * *
     * ex: 2015-08-25T16:18:48+0200
     * 
*/ java.lang.String getUpdatedAt(); /** * optional string updatedAt = 6; * *
     * ex: 2015-08-25T16:18:48+0200
     * 
*/ com.google.protobuf.ByteString getUpdatedAtBytes(); /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ java.util.List getPermissionsList(); /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ org.sonarqube.ws.WsPermissions.Permission getPermissions(int index); /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ int getPermissionsCount(); /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ java.util.List getPermissionsOrBuilderList(); /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( int index); } /** * Protobuf type {@code sonarqube.ws.permissions.PermissionTemplate} */ public static final class PermissionTemplate extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.PermissionTemplate) PermissionTemplateOrBuilder { // Use PermissionTemplate.newBuilder() to construct. private PermissionTemplate(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private PermissionTemplate() { id_ = ""; name_ = ""; description_ = ""; projectKeyPattern_ = ""; createdAt_ = ""; updatedAt_ = ""; permissions_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PermissionTemplate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; id_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; name_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; description_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; projectKeyPattern_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; createdAt_ = bs; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; updatedAt_ = bs; break; } case 58: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { permissions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } permissions_.add(input.readMessage(org.sonarqube.ws.WsPermissions.Permission.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { permissions_ = java.util.Collections.unmodifiableList(permissions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.PermissionTemplate.class, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** * optional string id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string id = 1; */ public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { id_ = s; } return s; } } /** * optional string id = 1; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * optional string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** * optional string description = 3; */ public boolean hasDescription() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string description = 3; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { description_ = s; } return s; } } /** * optional string description = 3; */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PROJECTKEYPATTERN_FIELD_NUMBER = 4; private volatile java.lang.Object projectKeyPattern_; /** * optional string projectKeyPattern = 4; */ public boolean hasProjectKeyPattern() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string projectKeyPattern = 4; */ public java.lang.String getProjectKeyPattern() { java.lang.Object ref = projectKeyPattern_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { projectKeyPattern_ = s; } return s; } } /** * optional string projectKeyPattern = 4; */ public com.google.protobuf.ByteString getProjectKeyPatternBytes() { java.lang.Object ref = projectKeyPattern_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); projectKeyPattern_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATEDAT_FIELD_NUMBER = 5; private volatile java.lang.Object createdAt_; /** * optional string createdAt = 5; * *
     * ex: 2015-08-25T16:18:48+0200
     * 
*/ public boolean hasCreatedAt() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string createdAt = 5; * *
     * ex: 2015-08-25T16:18:48+0200
     * 
*/ public java.lang.String getCreatedAt() { java.lang.Object ref = createdAt_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { createdAt_ = s; } return s; } } /** * optional string createdAt = 5; * *
     * ex: 2015-08-25T16:18:48+0200
     * 
*/ public com.google.protobuf.ByteString getCreatedAtBytes() { java.lang.Object ref = createdAt_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); createdAt_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int UPDATEDAT_FIELD_NUMBER = 6; private volatile java.lang.Object updatedAt_; /** * optional string updatedAt = 6; * *
     * ex: 2015-08-25T16:18:48+0200
     * 
*/ public boolean hasUpdatedAt() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string updatedAt = 6; * *
     * ex: 2015-08-25T16:18:48+0200
     * 
*/ public java.lang.String getUpdatedAt() { java.lang.Object ref = updatedAt_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { updatedAt_ = s; } return s; } } /** * optional string updatedAt = 6; * *
     * ex: 2015-08-25T16:18:48+0200
     * 
*/ public com.google.protobuf.ByteString getUpdatedAtBytes() { java.lang.Object ref = updatedAt_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); updatedAt_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PERMISSIONS_FIELD_NUMBER = 7; private java.util.List permissions_; /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ public java.util.List getPermissionsList() { return permissions_; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ public java.util.List getPermissionsOrBuilderList() { return permissions_; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ public int getPermissionsCount() { return permissions_.size(); } /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ public org.sonarqube.ws.WsPermissions.Permission getPermissions(int index) { return permissions_.get(index); } /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( int index) { return permissions_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, projectKeyPattern_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, createdAt_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { com.google.protobuf.GeneratedMessage.writeString(output, 6, updatedAt_); } for (int i = 0; i < permissions_.size(); i++) { output.writeMessage(7, permissions_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, projectKeyPattern_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, createdAt_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(6, updatedAt_); } for (int i = 0; i < permissions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, permissions_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarqube.ws.WsPermissions.PermissionTemplate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code sonarqube.ws.permissions.PermissionTemplate} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.PermissionTemplate) org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.PermissionTemplate.class, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder.class); } // Construct using org.sonarqube.ws.WsPermissions.PermissionTemplate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPermissionsFieldBuilder(); } } public Builder clear() { super.clear(); id_ = ""; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); description_ = ""; bitField0_ = (bitField0_ & ~0x00000004); projectKeyPattern_ = ""; bitField0_ = (bitField0_ & ~0x00000008); createdAt_ = ""; bitField0_ = (bitField0_ & ~0x00000010); updatedAt_ = ""; bitField0_ = (bitField0_ & ~0x00000020); if (permissionsBuilder_ == null) { permissions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { permissionsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor; } public org.sonarqube.ws.WsPermissions.PermissionTemplate getDefaultInstanceForType() { return org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance(); } public org.sonarqube.ws.WsPermissions.PermissionTemplate build() { org.sonarqube.ws.WsPermissions.PermissionTemplate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.sonarqube.ws.WsPermissions.PermissionTemplate buildPartial() { org.sonarqube.ws.WsPermissions.PermissionTemplate result = new org.sonarqube.ws.WsPermissions.PermissionTemplate(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.description_ = description_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.projectKeyPattern_ = projectKeyPattern_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.createdAt_ = createdAt_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.updatedAt_ = updatedAt_; if (permissionsBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { permissions_ = java.util.Collections.unmodifiableList(permissions_); bitField0_ = (bitField0_ & ~0x00000040); } result.permissions_ = permissions_; } else { result.permissions_ = permissionsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarqube.ws.WsPermissions.PermissionTemplate) { return mergeFrom((org.sonarqube.ws.WsPermissions.PermissionTemplate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarqube.ws.WsPermissions.PermissionTemplate other) { if (other == org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance()) return this; if (other.hasId()) { bitField0_ |= 0x00000001; id_ = other.id_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasDescription()) { bitField0_ |= 0x00000004; description_ = other.description_; onChanged(); } if (other.hasProjectKeyPattern()) { bitField0_ |= 0x00000008; projectKeyPattern_ = other.projectKeyPattern_; onChanged(); } if (other.hasCreatedAt()) { bitField0_ |= 0x00000010; createdAt_ = other.createdAt_; onChanged(); } if (other.hasUpdatedAt()) { bitField0_ |= 0x00000020; updatedAt_ = other.updatedAt_; onChanged(); } if (permissionsBuilder_ == null) { if (!other.permissions_.isEmpty()) { if (permissions_.isEmpty()) { permissions_ = other.permissions_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensurePermissionsIsMutable(); permissions_.addAll(other.permissions_); } onChanged(); } } else { if (!other.permissions_.isEmpty()) { if (permissionsBuilder_.isEmpty()) { permissionsBuilder_.dispose(); permissionsBuilder_ = null; permissions_ = other.permissions_; bitField0_ = (bitField0_ & ~0x00000040); permissionsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getPermissionsFieldBuilder() : null; } else { permissionsBuilder_.addAllMessages(other.permissions_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.sonarqube.ws.WsPermissions.PermissionTemplate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.sonarqube.ws.WsPermissions.PermissionTemplate) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** * optional string id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string id = 1; */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { id_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string id = 1; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string id = 1; */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * optional string id = 1; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * optional string id = 1; */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string name = 2; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** * optional string name = 2; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 2; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** * optional string description = 3; */ public boolean hasDescription() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string description = 3; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { description_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string description = 3; */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string description = 3; */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; description_ = value; onChanged(); return this; } /** * optional string description = 3; */ public Builder clearDescription() { bitField0_ = (bitField0_ & ~0x00000004); description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** * optional string description = 3; */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; description_ = value; onChanged(); return this; } private java.lang.Object projectKeyPattern_ = ""; /** * optional string projectKeyPattern = 4; */ public boolean hasProjectKeyPattern() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string projectKeyPattern = 4; */ public java.lang.String getProjectKeyPattern() { java.lang.Object ref = projectKeyPattern_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { projectKeyPattern_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string projectKeyPattern = 4; */ public com.google.protobuf.ByteString getProjectKeyPatternBytes() { java.lang.Object ref = projectKeyPattern_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); projectKeyPattern_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string projectKeyPattern = 4; */ public Builder setProjectKeyPattern( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; projectKeyPattern_ = value; onChanged(); return this; } /** * optional string projectKeyPattern = 4; */ public Builder clearProjectKeyPattern() { bitField0_ = (bitField0_ & ~0x00000008); projectKeyPattern_ = getDefaultInstance().getProjectKeyPattern(); onChanged(); return this; } /** * optional string projectKeyPattern = 4; */ public Builder setProjectKeyPatternBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; projectKeyPattern_ = value; onChanged(); return this; } private java.lang.Object createdAt_ = ""; /** * optional string createdAt = 5; * *
       * ex: 2015-08-25T16:18:48+0200
       * 
*/ public boolean hasCreatedAt() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string createdAt = 5; * *
       * ex: 2015-08-25T16:18:48+0200
       * 
*/ public java.lang.String getCreatedAt() { java.lang.Object ref = createdAt_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { createdAt_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string createdAt = 5; * *
       * ex: 2015-08-25T16:18:48+0200
       * 
*/ public com.google.protobuf.ByteString getCreatedAtBytes() { java.lang.Object ref = createdAt_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); createdAt_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string createdAt = 5; * *
       * ex: 2015-08-25T16:18:48+0200
       * 
*/ public Builder setCreatedAt( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; createdAt_ = value; onChanged(); return this; } /** * optional string createdAt = 5; * *
       * ex: 2015-08-25T16:18:48+0200
       * 
*/ public Builder clearCreatedAt() { bitField0_ = (bitField0_ & ~0x00000010); createdAt_ = getDefaultInstance().getCreatedAt(); onChanged(); return this; } /** * optional string createdAt = 5; * *
       * ex: 2015-08-25T16:18:48+0200
       * 
*/ public Builder setCreatedAtBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; createdAt_ = value; onChanged(); return this; } private java.lang.Object updatedAt_ = ""; /** * optional string updatedAt = 6; * *
       * ex: 2015-08-25T16:18:48+0200
       * 
*/ public boolean hasUpdatedAt() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string updatedAt = 6; * *
       * ex: 2015-08-25T16:18:48+0200
       * 
*/ public java.lang.String getUpdatedAt() { java.lang.Object ref = updatedAt_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { updatedAt_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string updatedAt = 6; * *
       * ex: 2015-08-25T16:18:48+0200
       * 
*/ public com.google.protobuf.ByteString getUpdatedAtBytes() { java.lang.Object ref = updatedAt_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); updatedAt_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string updatedAt = 6; * *
       * ex: 2015-08-25T16:18:48+0200
       * 
*/ public Builder setUpdatedAt( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; updatedAt_ = value; onChanged(); return this; } /** * optional string updatedAt = 6; * *
       * ex: 2015-08-25T16:18:48+0200
       * 
*/ public Builder clearUpdatedAt() { bitField0_ = (bitField0_ & ~0x00000020); updatedAt_ = getDefaultInstance().getUpdatedAt(); onChanged(); return this; } /** * optional string updatedAt = 6; * *
       * ex: 2015-08-25T16:18:48+0200
       * 
*/ public Builder setUpdatedAtBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; updatedAt_ = value; onChanged(); return this; } private java.util.List permissions_ = java.util.Collections.emptyList(); private void ensurePermissionsIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { permissions_ = new java.util.ArrayList(permissions_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder> permissionsBuilder_; /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ public java.util.List getPermissionsList() { if (permissionsBuilder_ == null) { return java.util.Collections.unmodifiableList(permissions_); } else { return permissionsBuilder_.getMessageList(); } } /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ public int getPermissionsCount() { if (permissionsBuilder_ == null) { return permissions_.size(); } else { return permissionsBuilder_.getCount(); } } /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ public org.sonarqube.ws.WsPermissions.Permission getPermissions(int index) { if (permissionsBuilder_ == null) { return permissions_.get(index); } else { return permissionsBuilder_.getMessage(index); } } /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ public Builder setPermissions( int index, org.sonarqube.ws.WsPermissions.Permission value) { if (permissionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.set(index, value); onChanged(); } else { permissionsBuilder_.setMessage(index, value); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ public Builder setPermissions( int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.set(index, builderForValue.build()); onChanged(); } else { permissionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ public Builder addPermissions(org.sonarqube.ws.WsPermissions.Permission value) { if (permissionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); } else { permissionsBuilder_.addMessage(value); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ public Builder addPermissions( int index, org.sonarqube.ws.WsPermissions.Permission value) { if (permissionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.add(index, value); onChanged(); } else { permissionsBuilder_.addMessage(index, value); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ public Builder addPermissions( org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.add(builderForValue.build()); onChanged(); } else { permissionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ public Builder addPermissions( int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.add(index, builderForValue.build()); onChanged(); } else { permissionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ public Builder addAllPermissions( java.lang.Iterable values) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, permissions_); onChanged(); } else { permissionsBuilder_.addAllMessages(values); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ public Builder clearPermissions() { if (permissionsBuilder_ == null) { permissions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { permissionsBuilder_.clear(); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ public Builder removePermissions(int index) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.remove(index); onChanged(); } else { permissionsBuilder_.remove(index); } return this; } /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ public org.sonarqube.ws.WsPermissions.Permission.Builder getPermissionsBuilder( int index) { return getPermissionsFieldBuilder().getBuilder(index); } /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( int index) { if (permissionsBuilder_ == null) { return permissions_.get(index); } else { return permissionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ public java.util.List getPermissionsOrBuilderList() { if (permissionsBuilder_ != null) { return permissionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(permissions_); } } /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder() { return getPermissionsFieldBuilder().addBuilder( org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance()); } /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder( int index) { return getPermissionsFieldBuilder().addBuilder( index, org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance()); } /** * repeated .sonarqube.ws.permissions.Permission permissions = 7; */ public java.util.List getPermissionsBuilderList() { return getPermissionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder> getPermissionsFieldBuilder() { if (permissionsBuilder_ == null) { permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder>( permissions_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); permissions_ = null; } return permissionsBuilder_; } // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.PermissionTemplate) } // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.PermissionTemplate) private static final org.sonarqube.ws.WsPermissions.PermissionTemplate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.PermissionTemplate(); } public static org.sonarqube.ws.WsPermissions.PermissionTemplate getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PermissionTemplate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new PermissionTemplate(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.sonarqube.ws.WsPermissions.PermissionTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OldUserOrBuilder extends // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.OldUser) com.google.protobuf.MessageOrBuilder { /** * optional string login = 1; */ boolean hasLogin(); /** * optional string login = 1; */ java.lang.String getLogin(); /** * optional string login = 1; */ com.google.protobuf.ByteString getLoginBytes(); /** * optional string name = 2; */ boolean hasName(); /** * optional string name = 2; */ java.lang.String getName(); /** * optional string name = 2; */ com.google.protobuf.ByteString getNameBytes(); /** * optional string email = 3; */ boolean hasEmail(); /** * optional string email = 3; */ java.lang.String getEmail(); /** * optional string email = 3; */ com.google.protobuf.ByteString getEmailBytes(); /** * optional bool selected = 4; */ boolean hasSelected(); /** * optional bool selected = 4; */ boolean getSelected(); } /** * Protobuf type {@code sonarqube.ws.permissions.OldUser} */ public static final class OldUser extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.OldUser) OldUserOrBuilder { // Use OldUser.newBuilder() to construct. private OldUser(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private OldUser() { login_ = ""; name_ = ""; email_ = ""; selected_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OldUser( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; login_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; name_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; email_ = bs; break; } case 32: { bitField0_ |= 0x00000008; selected_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_OldUser_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_OldUser_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.OldUser.class, org.sonarqube.ws.WsPermissions.OldUser.Builder.class); } private int bitField0_; public static final int LOGIN_FIELD_NUMBER = 1; private volatile java.lang.Object login_; /** * optional string login = 1; */ public boolean hasLogin() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string login = 1; */ public java.lang.String getLogin() { java.lang.Object ref = login_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { login_ = s; } return s; } } /** * optional string login = 1; */ public com.google.protobuf.ByteString getLoginBytes() { java.lang.Object ref = login_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); login_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * optional string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EMAIL_FIELD_NUMBER = 3; private volatile java.lang.Object email_; /** * optional string email = 3; */ public boolean hasEmail() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string email = 3; */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { email_ = s; } return s; } } /** * optional string email = 3; */ public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); email_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SELECTED_FIELD_NUMBER = 4; private boolean selected_; /** * optional bool selected = 4; */ public boolean hasSelected() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional bool selected = 4; */ public boolean getSelected() { return selected_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, login_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, email_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, selected_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, login_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, email_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, selected_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.sonarqube.ws.WsPermissions.OldUser parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.OldUser parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.OldUser parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.OldUser parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.OldUser parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.OldUser parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.OldUser parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.sonarqube.ws.WsPermissions.OldUser parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.OldUser parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.OldUser parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarqube.ws.WsPermissions.OldUser prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code sonarqube.ws.permissions.OldUser} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.OldUser) org.sonarqube.ws.WsPermissions.OldUserOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_OldUser_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_OldUser_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.OldUser.class, org.sonarqube.ws.WsPermissions.OldUser.Builder.class); } // Construct using org.sonarqube.ws.WsPermissions.OldUser.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); login_ = ""; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); email_ = ""; bitField0_ = (bitField0_ & ~0x00000004); selected_ = false; bitField0_ = (bitField0_ & ~0x00000008); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_OldUser_descriptor; } public org.sonarqube.ws.WsPermissions.OldUser getDefaultInstanceForType() { return org.sonarqube.ws.WsPermissions.OldUser.getDefaultInstance(); } public org.sonarqube.ws.WsPermissions.OldUser build() { org.sonarqube.ws.WsPermissions.OldUser result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.sonarqube.ws.WsPermissions.OldUser buildPartial() { org.sonarqube.ws.WsPermissions.OldUser result = new org.sonarqube.ws.WsPermissions.OldUser(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.login_ = login_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.email_ = email_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.selected_ = selected_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarqube.ws.WsPermissions.OldUser) { return mergeFrom((org.sonarqube.ws.WsPermissions.OldUser)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarqube.ws.WsPermissions.OldUser other) { if (other == org.sonarqube.ws.WsPermissions.OldUser.getDefaultInstance()) return this; if (other.hasLogin()) { bitField0_ |= 0x00000001; login_ = other.login_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasEmail()) { bitField0_ |= 0x00000004; email_ = other.email_; onChanged(); } if (other.hasSelected()) { setSelected(other.getSelected()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.sonarqube.ws.WsPermissions.OldUser parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.sonarqube.ws.WsPermissions.OldUser) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object login_ = ""; /** * optional string login = 1; */ public boolean hasLogin() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string login = 1; */ public java.lang.String getLogin() { java.lang.Object ref = login_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { login_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string login = 1; */ public com.google.protobuf.ByteString getLoginBytes() { java.lang.Object ref = login_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); login_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string login = 1; */ public Builder setLogin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; login_ = value; onChanged(); return this; } /** * optional string login = 1; */ public Builder clearLogin() { bitField0_ = (bitField0_ & ~0x00000001); login_ = getDefaultInstance().getLogin(); onChanged(); return this; } /** * optional string login = 1; */ public Builder setLoginBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; login_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string name = 2; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** * optional string name = 2; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 2; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } private java.lang.Object email_ = ""; /** * optional string email = 3; */ public boolean hasEmail() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string email = 3; */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { email_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string email = 3; */ public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); email_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string email = 3; */ public Builder setEmail( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; email_ = value; onChanged(); return this; } /** * optional string email = 3; */ public Builder clearEmail() { bitField0_ = (bitField0_ & ~0x00000004); email_ = getDefaultInstance().getEmail(); onChanged(); return this; } /** * optional string email = 3; */ public Builder setEmailBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; email_ = value; onChanged(); return this; } private boolean selected_ ; /** * optional bool selected = 4; */ public boolean hasSelected() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional bool selected = 4; */ public boolean getSelected() { return selected_; } /** * optional bool selected = 4; */ public Builder setSelected(boolean value) { bitField0_ |= 0x00000008; selected_ = value; onChanged(); return this; } /** * optional bool selected = 4; */ public Builder clearSelected() { bitField0_ = (bitField0_ & ~0x00000008); selected_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.OldUser) } // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.OldUser) private static final org.sonarqube.ws.WsPermissions.OldUser DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.OldUser(); } public static org.sonarqube.ws.WsPermissions.OldUser getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OldUser parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new OldUser(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.sonarqube.ws.WsPermissions.OldUser getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UserOrBuilder extends // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.User) com.google.protobuf.MessageOrBuilder { /** * optional string login = 1; */ boolean hasLogin(); /** * optional string login = 1; */ java.lang.String getLogin(); /** * optional string login = 1; */ com.google.protobuf.ByteString getLoginBytes(); /** * optional string name = 2; */ boolean hasName(); /** * optional string name = 2; */ java.lang.String getName(); /** * optional string name = 2; */ com.google.protobuf.ByteString getNameBytes(); /** * optional string email = 3; */ boolean hasEmail(); /** * optional string email = 3; */ java.lang.String getEmail(); /** * optional string email = 3; */ com.google.protobuf.ByteString getEmailBytes(); /** * repeated string permissions = 4; */ com.google.protobuf.ProtocolStringList getPermissionsList(); /** * repeated string permissions = 4; */ int getPermissionsCount(); /** * repeated string permissions = 4; */ java.lang.String getPermissions(int index); /** * repeated string permissions = 4; */ com.google.protobuf.ByteString getPermissionsBytes(int index); } /** * Protobuf type {@code sonarqube.ws.permissions.User} */ public static final class User extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.User) UserOrBuilder { // Use User.newBuilder() to construct. private User(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private User() { login_ = ""; name_ = ""; email_ = ""; permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private User( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; login_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; name_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; email_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { permissions_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000008; } permissions_.add(bs); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { permissions_ = permissions_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_User_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_User_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.User.class, org.sonarqube.ws.WsPermissions.User.Builder.class); } private int bitField0_; public static final int LOGIN_FIELD_NUMBER = 1; private volatile java.lang.Object login_; /** * optional string login = 1; */ public boolean hasLogin() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string login = 1; */ public java.lang.String getLogin() { java.lang.Object ref = login_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { login_ = s; } return s; } } /** * optional string login = 1; */ public com.google.protobuf.ByteString getLoginBytes() { java.lang.Object ref = login_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); login_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * optional string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EMAIL_FIELD_NUMBER = 3; private volatile java.lang.Object email_; /** * optional string email = 3; */ public boolean hasEmail() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string email = 3; */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { email_ = s; } return s; } } /** * optional string email = 3; */ public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); email_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PERMISSIONS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList permissions_; /** * repeated string permissions = 4; */ public com.google.protobuf.ProtocolStringList getPermissionsList() { return permissions_; } /** * repeated string permissions = 4; */ public int getPermissionsCount() { return permissions_.size(); } /** * repeated string permissions = 4; */ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** * repeated string permissions = 4; */ public com.google.protobuf.ByteString getPermissionsBytes(int index) { return permissions_.getByteString(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, login_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, email_); } for (int i = 0; i < permissions_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 4, permissions_.getRaw(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, login_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, email_); } { int dataSize = 0; for (int i = 0; i < permissions_.size(); i++) { dataSize += computeStringSizeNoTag(permissions_.getRaw(i)); } size += dataSize; size += 1 * getPermissionsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.sonarqube.ws.WsPermissions.User parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.User parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.User parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.User parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.User parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.User parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.User parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.sonarqube.ws.WsPermissions.User parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.User parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.User parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarqube.ws.WsPermissions.User prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code sonarqube.ws.permissions.User} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.User) org.sonarqube.ws.WsPermissions.UserOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_User_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_User_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.User.class, org.sonarqube.ws.WsPermissions.User.Builder.class); } // Construct using org.sonarqube.ws.WsPermissions.User.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); login_ = ""; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); email_ = ""; bitField0_ = (bitField0_ & ~0x00000004); permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_User_descriptor; } public org.sonarqube.ws.WsPermissions.User getDefaultInstanceForType() { return org.sonarqube.ws.WsPermissions.User.getDefaultInstance(); } public org.sonarqube.ws.WsPermissions.User build() { org.sonarqube.ws.WsPermissions.User result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.sonarqube.ws.WsPermissions.User buildPartial() { org.sonarqube.ws.WsPermissions.User result = new org.sonarqube.ws.WsPermissions.User(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.login_ = login_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.email_ = email_; if (((bitField0_ & 0x00000008) == 0x00000008)) { permissions_ = permissions_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.permissions_ = permissions_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarqube.ws.WsPermissions.User) { return mergeFrom((org.sonarqube.ws.WsPermissions.User)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarqube.ws.WsPermissions.User other) { if (other == org.sonarqube.ws.WsPermissions.User.getDefaultInstance()) return this; if (other.hasLogin()) { bitField0_ |= 0x00000001; login_ = other.login_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasEmail()) { bitField0_ |= 0x00000004; email_ = other.email_; onChanged(); } if (!other.permissions_.isEmpty()) { if (permissions_.isEmpty()) { permissions_ = other.permissions_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensurePermissionsIsMutable(); permissions_.addAll(other.permissions_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.sonarqube.ws.WsPermissions.User parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.sonarqube.ws.WsPermissions.User) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object login_ = ""; /** * optional string login = 1; */ public boolean hasLogin() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string login = 1; */ public java.lang.String getLogin() { java.lang.Object ref = login_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { login_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string login = 1; */ public com.google.protobuf.ByteString getLoginBytes() { java.lang.Object ref = login_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); login_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string login = 1; */ public Builder setLogin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; login_ = value; onChanged(); return this; } /** * optional string login = 1; */ public Builder clearLogin() { bitField0_ = (bitField0_ & ~0x00000001); login_ = getDefaultInstance().getLogin(); onChanged(); return this; } /** * optional string login = 1; */ public Builder setLoginBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; login_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string name = 2; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** * optional string name = 2; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 2; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } private java.lang.Object email_ = ""; /** * optional string email = 3; */ public boolean hasEmail() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string email = 3; */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { email_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string email = 3; */ public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); email_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string email = 3; */ public Builder setEmail( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; email_ = value; onChanged(); return this; } /** * optional string email = 3; */ public Builder clearEmail() { bitField0_ = (bitField0_ & ~0x00000004); email_ = getDefaultInstance().getEmail(); onChanged(); return this; } /** * optional string email = 3; */ public Builder setEmailBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; email_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePermissionsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); bitField0_ |= 0x00000008; } } /** * repeated string permissions = 4; */ public com.google.protobuf.ProtocolStringList getPermissionsList() { return permissions_.getUnmodifiableView(); } /** * repeated string permissions = 4; */ public int getPermissionsCount() { return permissions_.size(); } /** * repeated string permissions = 4; */ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** * repeated string permissions = 4; */ public com.google.protobuf.ByteString getPermissionsBytes(int index) { return permissions_.getByteString(index); } /** * repeated string permissions = 4; */ public Builder setPermissions( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.set(index, value); onChanged(); return this; } /** * repeated string permissions = 4; */ public Builder addPermissions( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } /** * repeated string permissions = 4; */ public Builder addAllPermissions( java.lang.Iterable values) { ensurePermissionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, permissions_); onChanged(); return this; } /** * repeated string permissions = 4; */ public Builder clearPermissions() { permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * repeated string permissions = 4; */ public Builder addPermissionsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.User) } // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.User) private static final org.sonarqube.ws.WsPermissions.User DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.User(); } public static org.sonarqube.ws.WsPermissions.User getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public User parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new User(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.sonarqube.ws.WsPermissions.User getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OldGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.OldGroup) com.google.protobuf.MessageOrBuilder { /** * optional string id = 1; */ boolean hasId(); /** * optional string id = 1; */ java.lang.String getId(); /** * optional string id = 1; */ com.google.protobuf.ByteString getIdBytes(); /** * optional string name = 2; */ boolean hasName(); /** * optional string name = 2; */ java.lang.String getName(); /** * optional string name = 2; */ com.google.protobuf.ByteString getNameBytes(); /** * optional string description = 3; */ boolean hasDescription(); /** * optional string description = 3; */ java.lang.String getDescription(); /** * optional string description = 3; */ com.google.protobuf.ByteString getDescriptionBytes(); /** * optional bool selected = 4; */ boolean hasSelected(); /** * optional bool selected = 4; */ boolean getSelected(); } /** * Protobuf type {@code sonarqube.ws.permissions.OldGroup} */ public static final class OldGroup extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.OldGroup) OldGroupOrBuilder { // Use OldGroup.newBuilder() to construct. private OldGroup(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private OldGroup() { id_ = ""; name_ = ""; description_ = ""; selected_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OldGroup( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; id_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; name_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; description_ = bs; break; } case 32: { bitField0_ |= 0x00000008; selected_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_OldGroup_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_OldGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.OldGroup.class, org.sonarqube.ws.WsPermissions.OldGroup.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** * optional string id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string id = 1; */ public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { id_ = s; } return s; } } /** * optional string id = 1; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * optional string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** * optional string description = 3; */ public boolean hasDescription() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string description = 3; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { description_ = s; } return s; } } /** * optional string description = 3; */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SELECTED_FIELD_NUMBER = 4; private boolean selected_; /** * optional bool selected = 4; */ public boolean hasSelected() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional bool selected = 4; */ public boolean getSelected() { return selected_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, selected_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, selected_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.sonarqube.ws.WsPermissions.OldGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.OldGroup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.OldGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.OldGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.OldGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.OldGroup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.OldGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.sonarqube.ws.WsPermissions.OldGroup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.OldGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.OldGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarqube.ws.WsPermissions.OldGroup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code sonarqube.ws.permissions.OldGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.OldGroup) org.sonarqube.ws.WsPermissions.OldGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_OldGroup_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_OldGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.OldGroup.class, org.sonarqube.ws.WsPermissions.OldGroup.Builder.class); } // Construct using org.sonarqube.ws.WsPermissions.OldGroup.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); id_ = ""; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); description_ = ""; bitField0_ = (bitField0_ & ~0x00000004); selected_ = false; bitField0_ = (bitField0_ & ~0x00000008); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_OldGroup_descriptor; } public org.sonarqube.ws.WsPermissions.OldGroup getDefaultInstanceForType() { return org.sonarqube.ws.WsPermissions.OldGroup.getDefaultInstance(); } public org.sonarqube.ws.WsPermissions.OldGroup build() { org.sonarqube.ws.WsPermissions.OldGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.sonarqube.ws.WsPermissions.OldGroup buildPartial() { org.sonarqube.ws.WsPermissions.OldGroup result = new org.sonarqube.ws.WsPermissions.OldGroup(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.description_ = description_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.selected_ = selected_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarqube.ws.WsPermissions.OldGroup) { return mergeFrom((org.sonarqube.ws.WsPermissions.OldGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarqube.ws.WsPermissions.OldGroup other) { if (other == org.sonarqube.ws.WsPermissions.OldGroup.getDefaultInstance()) return this; if (other.hasId()) { bitField0_ |= 0x00000001; id_ = other.id_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasDescription()) { bitField0_ |= 0x00000004; description_ = other.description_; onChanged(); } if (other.hasSelected()) { setSelected(other.getSelected()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.sonarqube.ws.WsPermissions.OldGroup parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.sonarqube.ws.WsPermissions.OldGroup) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** * optional string id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string id = 1; */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { id_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string id = 1; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string id = 1; */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * optional string id = 1; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * optional string id = 1; */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string name = 2; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** * optional string name = 2; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 2; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** * optional string description = 3; */ public boolean hasDescription() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string description = 3; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { description_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string description = 3; */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string description = 3; */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; description_ = value; onChanged(); return this; } /** * optional string description = 3; */ public Builder clearDescription() { bitField0_ = (bitField0_ & ~0x00000004); description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** * optional string description = 3; */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; description_ = value; onChanged(); return this; } private boolean selected_ ; /** * optional bool selected = 4; */ public boolean hasSelected() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional bool selected = 4; */ public boolean getSelected() { return selected_; } /** * optional bool selected = 4; */ public Builder setSelected(boolean value) { bitField0_ |= 0x00000008; selected_ = value; onChanged(); return this; } /** * optional bool selected = 4; */ public Builder clearSelected() { bitField0_ = (bitField0_ & ~0x00000008); selected_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.OldGroup) } // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.OldGroup) private static final org.sonarqube.ws.WsPermissions.OldGroup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.OldGroup(); } public static org.sonarqube.ws.WsPermissions.OldGroup getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OldGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new OldGroup(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.sonarqube.ws.WsPermissions.OldGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GroupOrBuilder extends // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.Group) com.google.protobuf.MessageOrBuilder { /** * optional string id = 1; */ boolean hasId(); /** * optional string id = 1; */ java.lang.String getId(); /** * optional string id = 1; */ com.google.protobuf.ByteString getIdBytes(); /** * optional string name = 2; */ boolean hasName(); /** * optional string name = 2; */ java.lang.String getName(); /** * optional string name = 2; */ com.google.protobuf.ByteString getNameBytes(); /** * optional string description = 3; */ boolean hasDescription(); /** * optional string description = 3; */ java.lang.String getDescription(); /** * optional string description = 3; */ com.google.protobuf.ByteString getDescriptionBytes(); /** * repeated string permissions = 4; */ com.google.protobuf.ProtocolStringList getPermissionsList(); /** * repeated string permissions = 4; */ int getPermissionsCount(); /** * repeated string permissions = 4; */ java.lang.String getPermissions(int index); /** * repeated string permissions = 4; */ com.google.protobuf.ByteString getPermissionsBytes(int index); } /** * Protobuf type {@code sonarqube.ws.permissions.Group} */ public static final class Group extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.Group) GroupOrBuilder { // Use Group.newBuilder() to construct. private Group(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Group() { id_ = ""; name_ = ""; description_ = ""; permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Group( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; id_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; name_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; description_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { permissions_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000008; } permissions_.add(bs); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { permissions_ = permissions_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Group_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Group_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.Group.class, org.sonarqube.ws.WsPermissions.Group.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** * optional string id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string id = 1; */ public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { id_ = s; } return s; } } /** * optional string id = 1; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * optional string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** * optional string description = 3; */ public boolean hasDescription() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string description = 3; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { description_ = s; } return s; } } /** * optional string description = 3; */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PERMISSIONS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList permissions_; /** * repeated string permissions = 4; */ public com.google.protobuf.ProtocolStringList getPermissionsList() { return permissions_; } /** * repeated string permissions = 4; */ public int getPermissionsCount() { return permissions_.size(); } /** * repeated string permissions = 4; */ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** * repeated string permissions = 4; */ public com.google.protobuf.ByteString getPermissionsBytes(int index) { return permissions_.getByteString(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); } for (int i = 0; i < permissions_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 4, permissions_.getRaw(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); } { int dataSize = 0; for (int i = 0; i < permissions_.size(); i++) { dataSize += computeStringSizeNoTag(permissions_.getRaw(i)); } size += dataSize; size += 1 * getPermissionsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.sonarqube.ws.WsPermissions.Group parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.Group parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.Group parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.WsPermissions.Group parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.Group parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.Group parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.Group parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.sonarqube.ws.WsPermissions.Group parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.sonarqube.ws.WsPermissions.Group parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.WsPermissions.Group parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarqube.ws.WsPermissions.Group prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code sonarqube.ws.permissions.Group} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.Group) org.sonarqube.ws.WsPermissions.GroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Group_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Group_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.WsPermissions.Group.class, org.sonarqube.ws.WsPermissions.Group.Builder.class); } // Construct using org.sonarqube.ws.WsPermissions.Group.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); id_ = ""; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); description_ = ""; bitField0_ = (bitField0_ & ~0x00000004); permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Group_descriptor; } public org.sonarqube.ws.WsPermissions.Group getDefaultInstanceForType() { return org.sonarqube.ws.WsPermissions.Group.getDefaultInstance(); } public org.sonarqube.ws.WsPermissions.Group build() { org.sonarqube.ws.WsPermissions.Group result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.sonarqube.ws.WsPermissions.Group buildPartial() { org.sonarqube.ws.WsPermissions.Group result = new org.sonarqube.ws.WsPermissions.Group(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.description_ = description_; if (((bitField0_ & 0x00000008) == 0x00000008)) { permissions_ = permissions_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.permissions_ = permissions_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarqube.ws.WsPermissions.Group) { return mergeFrom((org.sonarqube.ws.WsPermissions.Group)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarqube.ws.WsPermissions.Group other) { if (other == org.sonarqube.ws.WsPermissions.Group.getDefaultInstance()) return this; if (other.hasId()) { bitField0_ |= 0x00000001; id_ = other.id_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasDescription()) { bitField0_ |= 0x00000004; description_ = other.description_; onChanged(); } if (!other.permissions_.isEmpty()) { if (permissions_.isEmpty()) { permissions_ = other.permissions_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensurePermissionsIsMutable(); permissions_.addAll(other.permissions_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.sonarqube.ws.WsPermissions.Group parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.sonarqube.ws.WsPermissions.Group) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** * optional string id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string id = 1; */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { id_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string id = 1; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string id = 1; */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * optional string id = 1; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * optional string id = 1; */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string name = 2; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** * optional string name = 2; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 2; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** * optional string description = 3; */ public boolean hasDescription() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string description = 3; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { description_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string description = 3; */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string description = 3; */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; description_ = value; onChanged(); return this; } /** * optional string description = 3; */ public Builder clearDescription() { bitField0_ = (bitField0_ & ~0x00000004); description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** * optional string description = 3; */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; description_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePermissionsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); bitField0_ |= 0x00000008; } } /** * repeated string permissions = 4; */ public com.google.protobuf.ProtocolStringList getPermissionsList() { return permissions_.getUnmodifiableView(); } /** * repeated string permissions = 4; */ public int getPermissionsCount() { return permissions_.size(); } /** * repeated string permissions = 4; */ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** * repeated string permissions = 4; */ public com.google.protobuf.ByteString getPermissionsBytes(int index) { return permissions_.getByteString(index); } /** * repeated string permissions = 4; */ public Builder setPermissions( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.set(index, value); onChanged(); return this; } /** * repeated string permissions = 4; */ public Builder addPermissions( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } /** * repeated string permissions = 4; */ public Builder addAllPermissions( java.lang.Iterable values) { ensurePermissionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, permissions_); onChanged(); return this; } /** * repeated string permissions = 4; */ public Builder clearPermissions() { permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * repeated string permissions = 4; */ public Builder addPermissionsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.Group) } // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.Group) private static final org.sonarqube.ws.WsPermissions.Group DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.Group(); } public static org.sonarqube.ws.WsPermissions.Group getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Group parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new Group(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.sonarqube.ws.WsPermissions.Group getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_permissions_OldUsersWsResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_permissions_OldUsersWsResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_permissions_UsersWsResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_permissions_UsersWsResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_permissions_WsGroupsResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_permissions_WsTemplateGroupsResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_permissions_WsTemplateGroupsResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_permissions_SearchProjectPermissionsWsResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_permissions_SearchProjectPermissionsWsResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_permissions_SearchProjectPermissionsWsResponse_Project_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_permissions_SearchProjectPermissionsWsResponse_Project_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_permissions_CreateTemplateWsResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_permissions_CreateTemplateWsResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_permissions_UpdateTemplateWsResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_permissions_UpdateTemplateWsResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_permissions_SearchTemplatesWsResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_permissions_SearchTemplatesWsResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_permissions_SearchTemplatesWsResponse_TemplateIdQualifier_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_permissions_SearchTemplatesWsResponse_TemplateIdQualifier_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_permissions_Permission_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_permissions_Permission_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_permissions_PermissionTemplate_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_permissions_OldUser_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_permissions_OldUser_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_permissions_User_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_permissions_User_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_permissions_OldGroup_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_permissions_OldGroup_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_permissions_Group_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_permissions_Group_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\024ws-permissions.proto\022\030sonarqube.ws.per" + "missions\032\020ws-commons.proto\"t\n\022OldUsersWs" + "Response\022,\n\006paging\030\001 \001(\0132\034.sonarqube.ws." + "commons.Paging\0220\n\005users\030\002 \003(\0132!.sonarqub" + "e.ws.permissions.OldUser\"n\n\017UsersWsRespo" + "nse\022,\n\006paging\030\001 \001(\0132\034.sonarqube.ws.commo" + "ns.Paging\022-\n\005users\030\002 \003(\0132\036.sonarqube.ws." + "permissions.User\"q\n\020WsGroupsResponse\022,\n\006" + "paging\030\001 \001(\0132\034.sonarqube.ws.commons.Pagi" + "ng\022/\n\006groups\030\002 \003(\0132\037.sonarqube.ws.permis", "sions.Group\"|\n\030WsTemplateGroupsResponse\022" + ",\n\006paging\030\001 \001(\0132\034.sonarqube.ws.commons.P" + "aging\0222\n\006groups\030\002 \003(\0132\".sonarqube.ws.per" + "missions.OldGroup\"^\n!WsSearchGlobalPermi" + "ssionsResponse\0229\n\013permissions\030\001 \003(\0132$.so" + "narqube.ws.permissions.Permission\"\345\002\n\"Se" + "archProjectPermissionsWsResponse\022,\n\006pagi" + "ng\030\001 \001(\0132\034.sonarqube.ws.commons.Paging\022V" + "\n\010projects\030\002 \003(\0132D.sonarqube.ws.permissi" + "ons.SearchProjectPermissionsWsResponse.P", "roject\0229\n\013permissions\030\003 \003(\0132$.sonarqube." + "ws.permissions.Permission\032~\n\007Project\022\n\n\002" + "id\030\001 \001(\t\022\013\n\003key\030\002 \001(\t\022\021\n\tqualifier\030\003 \001(\t" + "\022\014\n\004name\030\004 \001(\t\0229\n\013permissions\030\005 \003(\0132$.so" + "narqube.ws.permissions.Permission\"d\n\030Cre" + "ateTemplateWsResponse\022H\n\022permissionTempl" + "ate\030\001 \001(\0132,.sonarqube.ws.permissions.Per" + "missionTemplate\"d\n\030UpdateTemplateWsRespo" + "nse\022H\n\022permissionTemplate\030\001 \001(\0132,.sonarq" + "ube.ws.permissions.PermissionTemplate\"\302\002", "\n\031SearchTemplatesWsResponse\022I\n\023permissio" + "nTemplates\030\001 \003(\0132,.sonarqube.ws.permissi" + "ons.PermissionTemplate\022a\n\020defaultTemplat" + "es\030\002 \003(\0132G.sonarqube.ws.permissions.Sear" + "chTemplatesWsResponse.TemplateIdQualifie" + "r\0229\n\013permissions\030\003 \003(\0132$.sonarqube.ws.pe" + "rmissions.Permission\032<\n\023TemplateIdQualif" + "ier\022\022\n\ntemplateId\030\001 \001(\t\022\021\n\tqualifier\030\002 \001" + "(\t\"\201\001\n\nPermission\022\013\n\003key\030\001 \001(\t\022\014\n\004name\030\002" + " \001(\t\022\023\n\013description\030\003 \001(\t\022\022\n\nusersCount\030", "\004 \001(\005\022\023\n\013groupsCount\030\005 \001(\005\022\032\n\022withProjec" + "tCreator\030\006 \001(\010\"\277\001\n\022PermissionTemplate\022\n\n" + "\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\023\n\013description\030\003" + " \001(\t\022\031\n\021projectKeyPattern\030\004 \001(\t\022\021\n\tcreat" + "edAt\030\005 \001(\t\022\021\n\tupdatedAt\030\006 \001(\t\0229\n\013permiss" + "ions\030\007 \003(\0132$.sonarqube.ws.permissions.Pe" + "rmission\"G\n\007OldUser\022\r\n\005login\030\001 \001(\t\022\014\n\004na" + "me\030\002 \001(\t\022\r\n\005email\030\003 \001(\t\022\020\n\010selected\030\004 \001(" + "\010\"G\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\023\n\013permissions\030\004 \003(\t\"K\n\010Ol", "dGroup\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\023\n\013desc" + "ription\030\003 \001(\t\022\020\n\010selected\030\004 \001(\010\"K\n\005Group" + "\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\023\n\013descriptio" + "n\030\003 \001(\t\022\023\n\013permissions\030\004 \003(\tB#\n\020org.sona" + "rqube.wsB\rWsPermissionsH\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.sonarqube.ws.Common.getDescriptor(), }, assigner); internal_static_sonarqube_ws_permissions_OldUsersWsResponse_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_sonarqube_ws_permissions_OldUsersWsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_permissions_OldUsersWsResponse_descriptor, new java.lang.String[] { "Paging", "Users", }); internal_static_sonarqube_ws_permissions_UsersWsResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_sonarqube_ws_permissions_UsersWsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_permissions_UsersWsResponse_descriptor, new java.lang.String[] { "Paging", "Users", }); internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_sonarqube_ws_permissions_WsGroupsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor, new java.lang.String[] { "Paging", "Groups", }); internal_static_sonarqube_ws_permissions_WsTemplateGroupsResponse_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_sonarqube_ws_permissions_WsTemplateGroupsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_permissions_WsTemplateGroupsResponse_descriptor, new java.lang.String[] { "Paging", "Groups", }); internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor, new java.lang.String[] { "Permissions", }); internal_static_sonarqube_ws_permissions_SearchProjectPermissionsWsResponse_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_sonarqube_ws_permissions_SearchProjectPermissionsWsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_permissions_SearchProjectPermissionsWsResponse_descriptor, new java.lang.String[] { "Paging", "Projects", "Permissions", }); internal_static_sonarqube_ws_permissions_SearchProjectPermissionsWsResponse_Project_descriptor = internal_static_sonarqube_ws_permissions_SearchProjectPermissionsWsResponse_descriptor.getNestedTypes().get(0); internal_static_sonarqube_ws_permissions_SearchProjectPermissionsWsResponse_Project_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_permissions_SearchProjectPermissionsWsResponse_Project_descriptor, new java.lang.String[] { "Id", "Key", "Qualifier", "Name", "Permissions", }); internal_static_sonarqube_ws_permissions_CreateTemplateWsResponse_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_sonarqube_ws_permissions_CreateTemplateWsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_permissions_CreateTemplateWsResponse_descriptor, new java.lang.String[] { "PermissionTemplate", }); internal_static_sonarqube_ws_permissions_UpdateTemplateWsResponse_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_sonarqube_ws_permissions_UpdateTemplateWsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_permissions_UpdateTemplateWsResponse_descriptor, new java.lang.String[] { "PermissionTemplate", }); internal_static_sonarqube_ws_permissions_SearchTemplatesWsResponse_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_sonarqube_ws_permissions_SearchTemplatesWsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_permissions_SearchTemplatesWsResponse_descriptor, new java.lang.String[] { "PermissionTemplates", "DefaultTemplates", "Permissions", }); internal_static_sonarqube_ws_permissions_SearchTemplatesWsResponse_TemplateIdQualifier_descriptor = internal_static_sonarqube_ws_permissions_SearchTemplatesWsResponse_descriptor.getNestedTypes().get(0); internal_static_sonarqube_ws_permissions_SearchTemplatesWsResponse_TemplateIdQualifier_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_permissions_SearchTemplatesWsResponse_TemplateIdQualifier_descriptor, new java.lang.String[] { "TemplateId", "Qualifier", }); internal_static_sonarqube_ws_permissions_Permission_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_sonarqube_ws_permissions_Permission_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_permissions_Permission_descriptor, new java.lang.String[] { "Key", "Name", "Description", "UsersCount", "GroupsCount", "WithProjectCreator", }); internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_sonarqube_ws_permissions_PermissionTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor, new java.lang.String[] { "Id", "Name", "Description", "ProjectKeyPattern", "CreatedAt", "UpdatedAt", "Permissions", }); internal_static_sonarqube_ws_permissions_OldUser_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_sonarqube_ws_permissions_OldUser_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_permissions_OldUser_descriptor, new java.lang.String[] { "Login", "Name", "Email", "Selected", }); internal_static_sonarqube_ws_permissions_User_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_sonarqube_ws_permissions_User_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_permissions_User_descriptor, new java.lang.String[] { "Login", "Name", "Email", "Permissions", }); internal_static_sonarqube_ws_permissions_OldGroup_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_sonarqube_ws_permissions_OldGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_permissions_OldGroup_descriptor, new java.lang.String[] { "Id", "Name", "Description", "Selected", }); internal_static_sonarqube_ws_permissions_Group_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_sonarqube_ws_permissions_Group_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_permissions_Group_descriptor, new java.lang.String[] { "Id", "Name", "Description", "Permissions", }); org.sonarqube.ws.Common.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy