
org.sonarqube.ws.QualityProfiles Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonar-ws Show documentation
Show all versions of sonar-ws Show documentation
Open source platform for continuous inspection of code quality
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ws-qualityprofiles.proto
package org.sonarqube.ws;
public final class QualityProfiles {
private QualityProfiles() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface SearchWsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.qualityprofiles.SearchWsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
java.util.List
getProfilesList();
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile getProfiles(int index);
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
int getProfilesCount();
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
java.util.List extends org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfileOrBuilder>
getProfilesOrBuilderList();
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfileOrBuilder getProfilesOrBuilder(
int index);
}
/**
* Protobuf type {@code sonarqube.ws.qualityprofiles.SearchWsResponse}
*
*
* WS api/qualityprofiles/search
*
*/
public static final class SearchWsResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.qualityprofiles.SearchWsResponse)
SearchWsResponseOrBuilder {
// Use SearchWsResponse.newBuilder() to construct.
private SearchWsResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private SearchWsResponse() {
profiles_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SearchWsResponse(
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)) {
profiles_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
profiles_.add(input.readMessage(org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile.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)) {
profiles_ = java.util.Collections.unmodifiableList(profiles_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.QualityProfiles.internal_static_sonarqube_ws_qualityprofiles_SearchWsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.QualityProfiles.internal_static_sonarqube_ws_qualityprofiles_SearchWsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.QualityProfiles.SearchWsResponse.class, org.sonarqube.ws.QualityProfiles.SearchWsResponse.Builder.class);
}
public interface QualityProfileOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile)
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 language = 3;
*/
boolean hasLanguage();
/**
* optional string language = 3;
*/
java.lang.String getLanguage();
/**
* optional string language = 3;
*/
com.google.protobuf.ByteString
getLanguageBytes();
/**
* optional string languageName = 4;
*/
boolean hasLanguageName();
/**
* optional string languageName = 4;
*/
java.lang.String getLanguageName();
/**
* optional string languageName = 4;
*/
com.google.protobuf.ByteString
getLanguageNameBytes();
/**
* optional bool isInherited = 5;
*/
boolean hasIsInherited();
/**
* optional bool isInherited = 5;
*/
boolean getIsInherited();
/**
* optional string parentKey = 6;
*/
boolean hasParentKey();
/**
* optional string parentKey = 6;
*/
java.lang.String getParentKey();
/**
* optional string parentKey = 6;
*/
com.google.protobuf.ByteString
getParentKeyBytes();
/**
* optional string parentName = 7;
*/
boolean hasParentName();
/**
* optional string parentName = 7;
*/
java.lang.String getParentName();
/**
* optional string parentName = 7;
*/
com.google.protobuf.ByteString
getParentNameBytes();
/**
* optional bool isDefault = 8;
*/
boolean hasIsDefault();
/**
* optional bool isDefault = 8;
*/
boolean getIsDefault();
/**
* optional int64 activeRuleCount = 9;
*/
boolean hasActiveRuleCount();
/**
* optional int64 activeRuleCount = 9;
*/
long getActiveRuleCount();
/**
* optional int64 activeDeprecatedRuleCount = 12;
*/
boolean hasActiveDeprecatedRuleCount();
/**
* optional int64 activeDeprecatedRuleCount = 12;
*/
long getActiveDeprecatedRuleCount();
/**
* optional int64 projectCount = 10;
*/
boolean hasProjectCount();
/**
* optional int64 projectCount = 10;
*/
long getProjectCount();
/**
* optional string rulesUpdatedAt = 11;
*/
boolean hasRulesUpdatedAt();
/**
* optional string rulesUpdatedAt = 11;
*/
java.lang.String getRulesUpdatedAt();
/**
* optional string rulesUpdatedAt = 11;
*/
com.google.protobuf.ByteString
getRulesUpdatedAtBytes();
/**
* optional string lastUsed = 13;
*/
boolean hasLastUsed();
/**
* optional string lastUsed = 13;
*/
java.lang.String getLastUsed();
/**
* optional string lastUsed = 13;
*/
com.google.protobuf.ByteString
getLastUsedBytes();
/**
* optional string userUpdatedAt = 14;
*/
boolean hasUserUpdatedAt();
/**
* optional string userUpdatedAt = 14;
*/
java.lang.String getUserUpdatedAt();
/**
* optional string userUpdatedAt = 14;
*/
com.google.protobuf.ByteString
getUserUpdatedAtBytes();
}
/**
* Protobuf type {@code sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile}
*/
public static final class QualityProfile extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile)
QualityProfileOrBuilder {
// Use QualityProfile.newBuilder() to construct.
private QualityProfile(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private QualityProfile() {
key_ = "";
name_ = "";
language_ = "";
languageName_ = "";
isInherited_ = false;
parentKey_ = "";
parentName_ = "";
isDefault_ = false;
activeRuleCount_ = 0L;
activeDeprecatedRuleCount_ = 0L;
projectCount_ = 0L;
rulesUpdatedAt_ = "";
lastUsed_ = "";
userUpdatedAt_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QualityProfile(
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;
language_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
languageName_ = bs;
break;
}
case 40: {
bitField0_ |= 0x00000010;
isInherited_ = input.readBool();
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
parentKey_ = bs;
break;
}
case 58: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000040;
parentName_ = bs;
break;
}
case 64: {
bitField0_ |= 0x00000080;
isDefault_ = input.readBool();
break;
}
case 72: {
bitField0_ |= 0x00000100;
activeRuleCount_ = input.readInt64();
break;
}
case 80: {
bitField0_ |= 0x00000400;
projectCount_ = input.readInt64();
break;
}
case 90: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000800;
rulesUpdatedAt_ = bs;
break;
}
case 96: {
bitField0_ |= 0x00000200;
activeDeprecatedRuleCount_ = input.readInt64();
break;
}
case 106: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00001000;
lastUsed_ = bs;
break;
}
case 114: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00002000;
userUpdatedAt_ = 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.QualityProfiles.internal_static_sonarqube_ws_qualityprofiles_SearchWsResponse_QualityProfile_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.QualityProfiles.internal_static_sonarqube_ws_qualityprofiles_SearchWsResponse_QualityProfile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile.class, org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile.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 LANGUAGE_FIELD_NUMBER = 3;
private volatile java.lang.Object language_;
/**
* optional string language = 3;
*/
public boolean hasLanguage() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string language = 3;
*/
public java.lang.String getLanguage() {
java.lang.Object ref = language_;
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()) {
language_ = s;
}
return s;
}
}
/**
* optional string language = 3;
*/
public com.google.protobuf.ByteString
getLanguageBytes() {
java.lang.Object ref = language_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
language_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LANGUAGENAME_FIELD_NUMBER = 4;
private volatile java.lang.Object languageName_;
/**
* optional string languageName = 4;
*/
public boolean hasLanguageName() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string languageName = 4;
*/
public java.lang.String getLanguageName() {
java.lang.Object ref = languageName_;
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()) {
languageName_ = s;
}
return s;
}
}
/**
* optional string languageName = 4;
*/
public com.google.protobuf.ByteString
getLanguageNameBytes() {
java.lang.Object ref = languageName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
languageName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ISINHERITED_FIELD_NUMBER = 5;
private boolean isInherited_;
/**
* optional bool isInherited = 5;
*/
public boolean hasIsInherited() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional bool isInherited = 5;
*/
public boolean getIsInherited() {
return isInherited_;
}
public static final int PARENTKEY_FIELD_NUMBER = 6;
private volatile java.lang.Object parentKey_;
/**
* optional string parentKey = 6;
*/
public boolean hasParentKey() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string parentKey = 6;
*/
public java.lang.String getParentKey() {
java.lang.Object ref = parentKey_;
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()) {
parentKey_ = s;
}
return s;
}
}
/**
* optional string parentKey = 6;
*/
public com.google.protobuf.ByteString
getParentKeyBytes() {
java.lang.Object ref = parentKey_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
parentKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARENTNAME_FIELD_NUMBER = 7;
private volatile java.lang.Object parentName_;
/**
* optional string parentName = 7;
*/
public boolean hasParentName() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional string parentName = 7;
*/
public java.lang.String getParentName() {
java.lang.Object ref = parentName_;
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()) {
parentName_ = s;
}
return s;
}
}
/**
* optional string parentName = 7;
*/
public com.google.protobuf.ByteString
getParentNameBytes() {
java.lang.Object ref = parentName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
parentName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ISDEFAULT_FIELD_NUMBER = 8;
private boolean isDefault_;
/**
* optional bool isDefault = 8;
*/
public boolean hasIsDefault() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional bool isDefault = 8;
*/
public boolean getIsDefault() {
return isDefault_;
}
public static final int ACTIVERULECOUNT_FIELD_NUMBER = 9;
private long activeRuleCount_;
/**
* optional int64 activeRuleCount = 9;
*/
public boolean hasActiveRuleCount() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional int64 activeRuleCount = 9;
*/
public long getActiveRuleCount() {
return activeRuleCount_;
}
public static final int ACTIVEDEPRECATEDRULECOUNT_FIELD_NUMBER = 12;
private long activeDeprecatedRuleCount_;
/**
* optional int64 activeDeprecatedRuleCount = 12;
*/
public boolean hasActiveDeprecatedRuleCount() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional int64 activeDeprecatedRuleCount = 12;
*/
public long getActiveDeprecatedRuleCount() {
return activeDeprecatedRuleCount_;
}
public static final int PROJECTCOUNT_FIELD_NUMBER = 10;
private long projectCount_;
/**
* optional int64 projectCount = 10;
*/
public boolean hasProjectCount() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional int64 projectCount = 10;
*/
public long getProjectCount() {
return projectCount_;
}
public static final int RULESUPDATEDAT_FIELD_NUMBER = 11;
private volatile java.lang.Object rulesUpdatedAt_;
/**
* optional string rulesUpdatedAt = 11;
*/
public boolean hasRulesUpdatedAt() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional string rulesUpdatedAt = 11;
*/
public java.lang.String getRulesUpdatedAt() {
java.lang.Object ref = rulesUpdatedAt_;
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()) {
rulesUpdatedAt_ = s;
}
return s;
}
}
/**
* optional string rulesUpdatedAt = 11;
*/
public com.google.protobuf.ByteString
getRulesUpdatedAtBytes() {
java.lang.Object ref = rulesUpdatedAt_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rulesUpdatedAt_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LASTUSED_FIELD_NUMBER = 13;
private volatile java.lang.Object lastUsed_;
/**
* optional string lastUsed = 13;
*/
public boolean hasLastUsed() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* optional string lastUsed = 13;
*/
public java.lang.String getLastUsed() {
java.lang.Object ref = lastUsed_;
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()) {
lastUsed_ = s;
}
return s;
}
}
/**
* optional string lastUsed = 13;
*/
public com.google.protobuf.ByteString
getLastUsedBytes() {
java.lang.Object ref = lastUsed_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lastUsed_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USERUPDATEDAT_FIELD_NUMBER = 14;
private volatile java.lang.Object userUpdatedAt_;
/**
* optional string userUpdatedAt = 14;
*/
public boolean hasUserUpdatedAt() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* optional string userUpdatedAt = 14;
*/
public java.lang.String getUserUpdatedAt() {
java.lang.Object ref = userUpdatedAt_;
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()) {
userUpdatedAt_ = s;
}
return s;
}
}
/**
* optional string userUpdatedAt = 14;
*/
public com.google.protobuf.ByteString
getUserUpdatedAtBytes() {
java.lang.Object ref = userUpdatedAt_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userUpdatedAt_ = 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, key_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, name_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, language_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
com.google.protobuf.GeneratedMessage.writeString(output, 4, languageName_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBool(5, isInherited_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
com.google.protobuf.GeneratedMessage.writeString(output, 6, parentKey_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
com.google.protobuf.GeneratedMessage.writeString(output, 7, parentName_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeBool(8, isDefault_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeInt64(9, activeRuleCount_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeInt64(10, projectCount_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
com.google.protobuf.GeneratedMessage.writeString(output, 11, rulesUpdatedAt_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeInt64(12, activeDeprecatedRuleCount_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
com.google.protobuf.GeneratedMessage.writeString(output, 13, lastUsed_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
com.google.protobuf.GeneratedMessage.writeString(output, 14, userUpdatedAt_);
}
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, language_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(4, languageName_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, isInherited_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(6, parentKey_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(7, parentName_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, isDefault_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, activeRuleCount_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(10, projectCount_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(11, rulesUpdatedAt_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(12, activeDeprecatedRuleCount_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(13, lastUsed_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(14, userUpdatedAt_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile 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.QualityProfiles.SearchWsResponse.QualityProfile parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile 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.QualityProfiles.SearchWsResponse.QualityProfile 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.qualityprofiles.SearchWsResponse.QualityProfile}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile)
org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfileOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.QualityProfiles.internal_static_sonarqube_ws_qualityprofiles_SearchWsResponse_QualityProfile_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.QualityProfiles.internal_static_sonarqube_ws_qualityprofiles_SearchWsResponse_QualityProfile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile.class, org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile.Builder.class);
}
// Construct using org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile.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);
language_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
languageName_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
isInherited_ = false;
bitField0_ = (bitField0_ & ~0x00000010);
parentKey_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
parentName_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
isDefault_ = false;
bitField0_ = (bitField0_ & ~0x00000080);
activeRuleCount_ = 0L;
bitField0_ = (bitField0_ & ~0x00000100);
activeDeprecatedRuleCount_ = 0L;
bitField0_ = (bitField0_ & ~0x00000200);
projectCount_ = 0L;
bitField0_ = (bitField0_ & ~0x00000400);
rulesUpdatedAt_ = "";
bitField0_ = (bitField0_ & ~0x00000800);
lastUsed_ = "";
bitField0_ = (bitField0_ & ~0x00001000);
userUpdatedAt_ = "";
bitField0_ = (bitField0_ & ~0x00002000);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.QualityProfiles.internal_static_sonarqube_ws_qualityprofiles_SearchWsResponse_QualityProfile_descriptor;
}
public org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile getDefaultInstanceForType() {
return org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile.getDefaultInstance();
}
public org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile build() {
org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile buildPartial() {
org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile result = new org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile(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.language_ = language_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.languageName_ = languageName_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.isInherited_ = isInherited_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.parentKey_ = parentKey_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.parentName_ = parentName_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.isDefault_ = isDefault_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.activeRuleCount_ = activeRuleCount_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
result.activeDeprecatedRuleCount_ = activeDeprecatedRuleCount_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000400;
}
result.projectCount_ = projectCount_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000800;
}
result.rulesUpdatedAt_ = rulesUpdatedAt_;
if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
to_bitField0_ |= 0x00001000;
}
result.lastUsed_ = lastUsed_;
if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
to_bitField0_ |= 0x00002000;
}
result.userUpdatedAt_ = userUpdatedAt_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile) {
return mergeFrom((org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile other) {
if (other == org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile.getDefaultInstance()) return this;
if (other.hasKey()) {
bitField0_ |= 0x00000001;
key_ = other.key_;
onChanged();
}
if (other.hasName()) {
bitField0_ |= 0x00000002;
name_ = other.name_;
onChanged();
}
if (other.hasLanguage()) {
bitField0_ |= 0x00000004;
language_ = other.language_;
onChanged();
}
if (other.hasLanguageName()) {
bitField0_ |= 0x00000008;
languageName_ = other.languageName_;
onChanged();
}
if (other.hasIsInherited()) {
setIsInherited(other.getIsInherited());
}
if (other.hasParentKey()) {
bitField0_ |= 0x00000020;
parentKey_ = other.parentKey_;
onChanged();
}
if (other.hasParentName()) {
bitField0_ |= 0x00000040;
parentName_ = other.parentName_;
onChanged();
}
if (other.hasIsDefault()) {
setIsDefault(other.getIsDefault());
}
if (other.hasActiveRuleCount()) {
setActiveRuleCount(other.getActiveRuleCount());
}
if (other.hasActiveDeprecatedRuleCount()) {
setActiveDeprecatedRuleCount(other.getActiveDeprecatedRuleCount());
}
if (other.hasProjectCount()) {
setProjectCount(other.getProjectCount());
}
if (other.hasRulesUpdatedAt()) {
bitField0_ |= 0x00000800;
rulesUpdatedAt_ = other.rulesUpdatedAt_;
onChanged();
}
if (other.hasLastUsed()) {
bitField0_ |= 0x00001000;
lastUsed_ = other.lastUsed_;
onChanged();
}
if (other.hasUserUpdatedAt()) {
bitField0_ |= 0x00002000;
userUpdatedAt_ = other.userUpdatedAt_;
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.QualityProfiles.SearchWsResponse.QualityProfile parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile) 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 language_ = "";
/**
* optional string language = 3;
*/
public boolean hasLanguage() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string language = 3;
*/
public java.lang.String getLanguage() {
java.lang.Object ref = language_;
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()) {
language_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string language = 3;
*/
public com.google.protobuf.ByteString
getLanguageBytes() {
java.lang.Object ref = language_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
language_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string language = 3;
*/
public Builder setLanguage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
language_ = value;
onChanged();
return this;
}
/**
* optional string language = 3;
*/
public Builder clearLanguage() {
bitField0_ = (bitField0_ & ~0x00000004);
language_ = getDefaultInstance().getLanguage();
onChanged();
return this;
}
/**
* optional string language = 3;
*/
public Builder setLanguageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
language_ = value;
onChanged();
return this;
}
private java.lang.Object languageName_ = "";
/**
* optional string languageName = 4;
*/
public boolean hasLanguageName() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string languageName = 4;
*/
public java.lang.String getLanguageName() {
java.lang.Object ref = languageName_;
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()) {
languageName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string languageName = 4;
*/
public com.google.protobuf.ByteString
getLanguageNameBytes() {
java.lang.Object ref = languageName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
languageName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string languageName = 4;
*/
public Builder setLanguageName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
languageName_ = value;
onChanged();
return this;
}
/**
* optional string languageName = 4;
*/
public Builder clearLanguageName() {
bitField0_ = (bitField0_ & ~0x00000008);
languageName_ = getDefaultInstance().getLanguageName();
onChanged();
return this;
}
/**
* optional string languageName = 4;
*/
public Builder setLanguageNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
languageName_ = value;
onChanged();
return this;
}
private boolean isInherited_ ;
/**
* optional bool isInherited = 5;
*/
public boolean hasIsInherited() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional bool isInherited = 5;
*/
public boolean getIsInherited() {
return isInherited_;
}
/**
* optional bool isInherited = 5;
*/
public Builder setIsInherited(boolean value) {
bitField0_ |= 0x00000010;
isInherited_ = value;
onChanged();
return this;
}
/**
* optional bool isInherited = 5;
*/
public Builder clearIsInherited() {
bitField0_ = (bitField0_ & ~0x00000010);
isInherited_ = false;
onChanged();
return this;
}
private java.lang.Object parentKey_ = "";
/**
* optional string parentKey = 6;
*/
public boolean hasParentKey() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string parentKey = 6;
*/
public java.lang.String getParentKey() {
java.lang.Object ref = parentKey_;
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()) {
parentKey_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string parentKey = 6;
*/
public com.google.protobuf.ByteString
getParentKeyBytes() {
java.lang.Object ref = parentKey_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
parentKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string parentKey = 6;
*/
public Builder setParentKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
parentKey_ = value;
onChanged();
return this;
}
/**
* optional string parentKey = 6;
*/
public Builder clearParentKey() {
bitField0_ = (bitField0_ & ~0x00000020);
parentKey_ = getDefaultInstance().getParentKey();
onChanged();
return this;
}
/**
* optional string parentKey = 6;
*/
public Builder setParentKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
parentKey_ = value;
onChanged();
return this;
}
private java.lang.Object parentName_ = "";
/**
* optional string parentName = 7;
*/
public boolean hasParentName() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional string parentName = 7;
*/
public java.lang.String getParentName() {
java.lang.Object ref = parentName_;
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()) {
parentName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string parentName = 7;
*/
public com.google.protobuf.ByteString
getParentNameBytes() {
java.lang.Object ref = parentName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
parentName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string parentName = 7;
*/
public Builder setParentName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
parentName_ = value;
onChanged();
return this;
}
/**
* optional string parentName = 7;
*/
public Builder clearParentName() {
bitField0_ = (bitField0_ & ~0x00000040);
parentName_ = getDefaultInstance().getParentName();
onChanged();
return this;
}
/**
* optional string parentName = 7;
*/
public Builder setParentNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
parentName_ = value;
onChanged();
return this;
}
private boolean isDefault_ ;
/**
* optional bool isDefault = 8;
*/
public boolean hasIsDefault() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional bool isDefault = 8;
*/
public boolean getIsDefault() {
return isDefault_;
}
/**
* optional bool isDefault = 8;
*/
public Builder setIsDefault(boolean value) {
bitField0_ |= 0x00000080;
isDefault_ = value;
onChanged();
return this;
}
/**
* optional bool isDefault = 8;
*/
public Builder clearIsDefault() {
bitField0_ = (bitField0_ & ~0x00000080);
isDefault_ = false;
onChanged();
return this;
}
private long activeRuleCount_ ;
/**
* optional int64 activeRuleCount = 9;
*/
public boolean hasActiveRuleCount() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional int64 activeRuleCount = 9;
*/
public long getActiveRuleCount() {
return activeRuleCount_;
}
/**
* optional int64 activeRuleCount = 9;
*/
public Builder setActiveRuleCount(long value) {
bitField0_ |= 0x00000100;
activeRuleCount_ = value;
onChanged();
return this;
}
/**
* optional int64 activeRuleCount = 9;
*/
public Builder clearActiveRuleCount() {
bitField0_ = (bitField0_ & ~0x00000100);
activeRuleCount_ = 0L;
onChanged();
return this;
}
private long activeDeprecatedRuleCount_ ;
/**
* optional int64 activeDeprecatedRuleCount = 12;
*/
public boolean hasActiveDeprecatedRuleCount() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional int64 activeDeprecatedRuleCount = 12;
*/
public long getActiveDeprecatedRuleCount() {
return activeDeprecatedRuleCount_;
}
/**
* optional int64 activeDeprecatedRuleCount = 12;
*/
public Builder setActiveDeprecatedRuleCount(long value) {
bitField0_ |= 0x00000200;
activeDeprecatedRuleCount_ = value;
onChanged();
return this;
}
/**
* optional int64 activeDeprecatedRuleCount = 12;
*/
public Builder clearActiveDeprecatedRuleCount() {
bitField0_ = (bitField0_ & ~0x00000200);
activeDeprecatedRuleCount_ = 0L;
onChanged();
return this;
}
private long projectCount_ ;
/**
* optional int64 projectCount = 10;
*/
public boolean hasProjectCount() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional int64 projectCount = 10;
*/
public long getProjectCount() {
return projectCount_;
}
/**
* optional int64 projectCount = 10;
*/
public Builder setProjectCount(long value) {
bitField0_ |= 0x00000400;
projectCount_ = value;
onChanged();
return this;
}
/**
* optional int64 projectCount = 10;
*/
public Builder clearProjectCount() {
bitField0_ = (bitField0_ & ~0x00000400);
projectCount_ = 0L;
onChanged();
return this;
}
private java.lang.Object rulesUpdatedAt_ = "";
/**
* optional string rulesUpdatedAt = 11;
*/
public boolean hasRulesUpdatedAt() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional string rulesUpdatedAt = 11;
*/
public java.lang.String getRulesUpdatedAt() {
java.lang.Object ref = rulesUpdatedAt_;
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()) {
rulesUpdatedAt_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string rulesUpdatedAt = 11;
*/
public com.google.protobuf.ByteString
getRulesUpdatedAtBytes() {
java.lang.Object ref = rulesUpdatedAt_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rulesUpdatedAt_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string rulesUpdatedAt = 11;
*/
public Builder setRulesUpdatedAt(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
rulesUpdatedAt_ = value;
onChanged();
return this;
}
/**
* optional string rulesUpdatedAt = 11;
*/
public Builder clearRulesUpdatedAt() {
bitField0_ = (bitField0_ & ~0x00000800);
rulesUpdatedAt_ = getDefaultInstance().getRulesUpdatedAt();
onChanged();
return this;
}
/**
* optional string rulesUpdatedAt = 11;
*/
public Builder setRulesUpdatedAtBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
rulesUpdatedAt_ = value;
onChanged();
return this;
}
private java.lang.Object lastUsed_ = "";
/**
* optional string lastUsed = 13;
*/
public boolean hasLastUsed() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* optional string lastUsed = 13;
*/
public java.lang.String getLastUsed() {
java.lang.Object ref = lastUsed_;
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()) {
lastUsed_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string lastUsed = 13;
*/
public com.google.protobuf.ByteString
getLastUsedBytes() {
java.lang.Object ref = lastUsed_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lastUsed_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string lastUsed = 13;
*/
public Builder setLastUsed(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00001000;
lastUsed_ = value;
onChanged();
return this;
}
/**
* optional string lastUsed = 13;
*/
public Builder clearLastUsed() {
bitField0_ = (bitField0_ & ~0x00001000);
lastUsed_ = getDefaultInstance().getLastUsed();
onChanged();
return this;
}
/**
* optional string lastUsed = 13;
*/
public Builder setLastUsedBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00001000;
lastUsed_ = value;
onChanged();
return this;
}
private java.lang.Object userUpdatedAt_ = "";
/**
* optional string userUpdatedAt = 14;
*/
public boolean hasUserUpdatedAt() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* optional string userUpdatedAt = 14;
*/
public java.lang.String getUserUpdatedAt() {
java.lang.Object ref = userUpdatedAt_;
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()) {
userUpdatedAt_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string userUpdatedAt = 14;
*/
public com.google.protobuf.ByteString
getUserUpdatedAtBytes() {
java.lang.Object ref = userUpdatedAt_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userUpdatedAt_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string userUpdatedAt = 14;
*/
public Builder setUserUpdatedAt(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
userUpdatedAt_ = value;
onChanged();
return this;
}
/**
* optional string userUpdatedAt = 14;
*/
public Builder clearUserUpdatedAt() {
bitField0_ = (bitField0_ & ~0x00002000);
userUpdatedAt_ = getDefaultInstance().getUserUpdatedAt();
onChanged();
return this;
}
/**
* optional string userUpdatedAt = 14;
*/
public Builder setUserUpdatedAtBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
userUpdatedAt_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile)
}
// @@protoc_insertion_point(class_scope:sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile)
private static final org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile();
}
public static org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public QualityProfile parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new QualityProfile(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.QualityProfiles.SearchWsResponse.QualityProfile getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int PROFILES_FIELD_NUMBER = 1;
private java.util.List profiles_;
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
public java.util.List getProfilesList() {
return profiles_;
}
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
public java.util.List extends org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfileOrBuilder>
getProfilesOrBuilderList() {
return profiles_;
}
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
public int getProfilesCount() {
return profiles_.size();
}
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
public org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile getProfiles(int index) {
return profiles_.get(index);
}
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
public org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfileOrBuilder getProfilesOrBuilder(
int index) {
return profiles_.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 < profiles_.size(); i++) {
output.writeMessage(1, profiles_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < profiles_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, profiles_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.sonarqube.ws.QualityProfiles.SearchWsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.QualityProfiles.SearchWsResponse 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.QualityProfiles.SearchWsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.QualityProfiles.SearchWsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.sonarqube.ws.QualityProfiles.SearchWsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.QualityProfiles.SearchWsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.QualityProfiles.SearchWsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.sonarqube.ws.QualityProfiles.SearchWsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.QualityProfiles.SearchWsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.QualityProfiles.SearchWsResponse 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.QualityProfiles.SearchWsResponse 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.qualityprofiles.SearchWsResponse}
*
*
* WS api/qualityprofiles/search
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:sonarqube.ws.qualityprofiles.SearchWsResponse)
org.sonarqube.ws.QualityProfiles.SearchWsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.QualityProfiles.internal_static_sonarqube_ws_qualityprofiles_SearchWsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.QualityProfiles.internal_static_sonarqube_ws_qualityprofiles_SearchWsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.QualityProfiles.SearchWsResponse.class, org.sonarqube.ws.QualityProfiles.SearchWsResponse.Builder.class);
}
// Construct using org.sonarqube.ws.QualityProfiles.SearchWsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getProfilesFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (profilesBuilder_ == null) {
profiles_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
profilesBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.QualityProfiles.internal_static_sonarqube_ws_qualityprofiles_SearchWsResponse_descriptor;
}
public org.sonarqube.ws.QualityProfiles.SearchWsResponse getDefaultInstanceForType() {
return org.sonarqube.ws.QualityProfiles.SearchWsResponse.getDefaultInstance();
}
public org.sonarqube.ws.QualityProfiles.SearchWsResponse build() {
org.sonarqube.ws.QualityProfiles.SearchWsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.sonarqube.ws.QualityProfiles.SearchWsResponse buildPartial() {
org.sonarqube.ws.QualityProfiles.SearchWsResponse result = new org.sonarqube.ws.QualityProfiles.SearchWsResponse(this);
int from_bitField0_ = bitField0_;
if (profilesBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
profiles_ = java.util.Collections.unmodifiableList(profiles_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.profiles_ = profiles_;
} else {
result.profiles_ = profilesBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.sonarqube.ws.QualityProfiles.SearchWsResponse) {
return mergeFrom((org.sonarqube.ws.QualityProfiles.SearchWsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.sonarqube.ws.QualityProfiles.SearchWsResponse other) {
if (other == org.sonarqube.ws.QualityProfiles.SearchWsResponse.getDefaultInstance()) return this;
if (profilesBuilder_ == null) {
if (!other.profiles_.isEmpty()) {
if (profiles_.isEmpty()) {
profiles_ = other.profiles_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureProfilesIsMutable();
profiles_.addAll(other.profiles_);
}
onChanged();
}
} else {
if (!other.profiles_.isEmpty()) {
if (profilesBuilder_.isEmpty()) {
profilesBuilder_.dispose();
profilesBuilder_ = null;
profiles_ = other.profiles_;
bitField0_ = (bitField0_ & ~0x00000001);
profilesBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getProfilesFieldBuilder() : null;
} else {
profilesBuilder_.addAllMessages(other.profiles_);
}
}
}
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.QualityProfiles.SearchWsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.sonarqube.ws.QualityProfiles.SearchWsResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List profiles_ =
java.util.Collections.emptyList();
private void ensureProfilesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
profiles_ = new java.util.ArrayList(profiles_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile, org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile.Builder, org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfileOrBuilder> profilesBuilder_;
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
public java.util.List getProfilesList() {
if (profilesBuilder_ == null) {
return java.util.Collections.unmodifiableList(profiles_);
} else {
return profilesBuilder_.getMessageList();
}
}
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
public int getProfilesCount() {
if (profilesBuilder_ == null) {
return profiles_.size();
} else {
return profilesBuilder_.getCount();
}
}
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
public org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile getProfiles(int index) {
if (profilesBuilder_ == null) {
return profiles_.get(index);
} else {
return profilesBuilder_.getMessage(index);
}
}
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
public Builder setProfiles(
int index, org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile value) {
if (profilesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProfilesIsMutable();
profiles_.set(index, value);
onChanged();
} else {
profilesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
public Builder setProfiles(
int index, org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile.Builder builderForValue) {
if (profilesBuilder_ == null) {
ensureProfilesIsMutable();
profiles_.set(index, builderForValue.build());
onChanged();
} else {
profilesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
public Builder addProfiles(org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile value) {
if (profilesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProfilesIsMutable();
profiles_.add(value);
onChanged();
} else {
profilesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
public Builder addProfiles(
int index, org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile value) {
if (profilesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProfilesIsMutable();
profiles_.add(index, value);
onChanged();
} else {
profilesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
public Builder addProfiles(
org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile.Builder builderForValue) {
if (profilesBuilder_ == null) {
ensureProfilesIsMutable();
profiles_.add(builderForValue.build());
onChanged();
} else {
profilesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
public Builder addProfiles(
int index, org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile.Builder builderForValue) {
if (profilesBuilder_ == null) {
ensureProfilesIsMutable();
profiles_.add(index, builderForValue.build());
onChanged();
} else {
profilesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
public Builder addAllProfiles(
java.lang.Iterable extends org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile> values) {
if (profilesBuilder_ == null) {
ensureProfilesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, profiles_);
onChanged();
} else {
profilesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
public Builder clearProfiles() {
if (profilesBuilder_ == null) {
profiles_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
profilesBuilder_.clear();
}
return this;
}
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
public Builder removeProfiles(int index) {
if (profilesBuilder_ == null) {
ensureProfilesIsMutable();
profiles_.remove(index);
onChanged();
} else {
profilesBuilder_.remove(index);
}
return this;
}
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
public org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile.Builder getProfilesBuilder(
int index) {
return getProfilesFieldBuilder().getBuilder(index);
}
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
public org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfileOrBuilder getProfilesOrBuilder(
int index) {
if (profilesBuilder_ == null) {
return profiles_.get(index); } else {
return profilesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
public java.util.List extends org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfileOrBuilder>
getProfilesOrBuilderList() {
if (profilesBuilder_ != null) {
return profilesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(profiles_);
}
}
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
public org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile.Builder addProfilesBuilder() {
return getProfilesFieldBuilder().addBuilder(
org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile.getDefaultInstance());
}
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
public org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile.Builder addProfilesBuilder(
int index) {
return getProfilesFieldBuilder().addBuilder(
index, org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile.getDefaultInstance());
}
/**
* repeated .sonarqube.ws.qualityprofiles.SearchWsResponse.QualityProfile profiles = 1;
*/
public java.util.List
getProfilesBuilderList() {
return getProfilesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile, org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile.Builder, org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfileOrBuilder>
getProfilesFieldBuilder() {
if (profilesBuilder_ == null) {
profilesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile, org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfile.Builder, org.sonarqube.ws.QualityProfiles.SearchWsResponse.QualityProfileOrBuilder>(
profiles_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
profiles_ = null;
}
return profilesBuilder_;
}
// @@protoc_insertion_point(builder_scope:sonarqube.ws.qualityprofiles.SearchWsResponse)
}
// @@protoc_insertion_point(class_scope:sonarqube.ws.qualityprofiles.SearchWsResponse)
private static final org.sonarqube.ws.QualityProfiles.SearchWsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.sonarqube.ws.QualityProfiles.SearchWsResponse();
}
public static org.sonarqube.ws.QualityProfiles.SearchWsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SearchWsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new SearchWsResponse(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.QualityProfiles.SearchWsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_qualityprofiles_SearchWsResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_qualityprofiles_SearchWsResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_qualityprofiles_SearchWsResponse_QualityProfile_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_qualityprofiles_SearchWsResponse_QualityProfile_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\030ws-qualityprofiles.proto\022\034sonarqube.ws" +
".qualityprofiles\"\233\003\n\020SearchWsResponse\022O\n" +
"\010profiles\030\001 \003(\0132=.sonarqube.ws.qualitypr" +
"ofiles.SearchWsResponse.QualityProfile\032\265" +
"\002\n\016QualityProfile\022\013\n\003key\030\001 \001(\t\022\014\n\004name\030\002" +
" \001(\t\022\020\n\010language\030\003 \001(\t\022\024\n\014languageName\030\004" +
" \001(\t\022\023\n\013isInherited\030\005 \001(\010\022\021\n\tparentKey\030\006" +
" \001(\t\022\022\n\nparentName\030\007 \001(\t\022\021\n\tisDefault\030\010 " +
"\001(\010\022\027\n\017activeRuleCount\030\t \001(\003\022!\n\031activeDe" +
"precatedRuleCount\030\014 \001(\003\022\024\n\014projectCount\030",
"\n \001(\003\022\026\n\016rulesUpdatedAt\030\013 \001(\t\022\020\n\010lastUse" +
"d\030\r \001(\t\022\025\n\ruserUpdatedAt\030\016 \001(\tB%\n\020org.so" +
"narqube.wsB\017QualityProfilesH\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[] {
}, assigner);
internal_static_sonarqube_ws_qualityprofiles_SearchWsResponse_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_sonarqube_ws_qualityprofiles_SearchWsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_qualityprofiles_SearchWsResponse_descriptor,
new java.lang.String[] { "Profiles", });
internal_static_sonarqube_ws_qualityprofiles_SearchWsResponse_QualityProfile_descriptor =
internal_static_sonarqube_ws_qualityprofiles_SearchWsResponse_descriptor.getNestedTypes().get(0);
internal_static_sonarqube_ws_qualityprofiles_SearchWsResponse_QualityProfile_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_qualityprofiles_SearchWsResponse_QualityProfile_descriptor,
new java.lang.String[] { "Key", "Name", "Language", "LanguageName", "IsInherited", "ParentKey", "ParentName", "IsDefault", "ActiveRuleCount", "ActiveDeprecatedRuleCount", "ProjectCount", "RulesUpdatedAt", "LastUsed", "UserUpdatedAt", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy