
org.sonarqube.ws.Licenses 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-licenses.proto
package org.sonarqube.ws;
public final class Licenses {
private Licenses() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface ListWsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.licenses.ListWsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
java.util.List
getLicensesList();
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
org.sonarqube.ws.Licenses.License getLicenses(int index);
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
int getLicensesCount();
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
java.util.List extends org.sonarqube.ws.Licenses.LicenseOrBuilder>
getLicensesOrBuilderList();
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
org.sonarqube.ws.Licenses.LicenseOrBuilder getLicensesOrBuilder(
int index);
}
/**
* Protobuf type {@code sonarqube.ws.licenses.ListWsResponse}
*
*
* Response of GET api/licenses/list
*
*/
public static final class ListWsResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.licenses.ListWsResponse)
ListWsResponseOrBuilder {
// Use ListWsResponse.newBuilder() to construct.
private ListWsResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ListWsResponse() {
licenses_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListWsResponse(
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)) {
licenses_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
licenses_.add(input.readMessage(org.sonarqube.ws.Licenses.License.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)) {
licenses_ = java.util.Collections.unmodifiableList(licenses_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.Licenses.internal_static_sonarqube_ws_licenses_ListWsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.Licenses.internal_static_sonarqube_ws_licenses_ListWsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.Licenses.ListWsResponse.class, org.sonarqube.ws.Licenses.ListWsResponse.Builder.class);
}
public static final int LICENSES_FIELD_NUMBER = 1;
private java.util.List licenses_;
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
public java.util.List getLicensesList() {
return licenses_;
}
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
public java.util.List extends org.sonarqube.ws.Licenses.LicenseOrBuilder>
getLicensesOrBuilderList() {
return licenses_;
}
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
public int getLicensesCount() {
return licenses_.size();
}
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
public org.sonarqube.ws.Licenses.License getLicenses(int index) {
return licenses_.get(index);
}
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
public org.sonarqube.ws.Licenses.LicenseOrBuilder getLicensesOrBuilder(
int index) {
return licenses_.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 < licenses_.size(); i++) {
output.writeMessage(1, licenses_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < licenses_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, licenses_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.sonarqube.ws.Licenses.ListWsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.Licenses.ListWsResponse 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.Licenses.ListWsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.Licenses.ListWsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.sonarqube.ws.Licenses.ListWsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.Licenses.ListWsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.Licenses.ListWsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.sonarqube.ws.Licenses.ListWsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.Licenses.ListWsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.Licenses.ListWsResponse 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.Licenses.ListWsResponse 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.licenses.ListWsResponse}
*
*
* Response of GET api/licenses/list
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:sonarqube.ws.licenses.ListWsResponse)
org.sonarqube.ws.Licenses.ListWsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.Licenses.internal_static_sonarqube_ws_licenses_ListWsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.Licenses.internal_static_sonarqube_ws_licenses_ListWsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.Licenses.ListWsResponse.class, org.sonarqube.ws.Licenses.ListWsResponse.Builder.class);
}
// Construct using org.sonarqube.ws.Licenses.ListWsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getLicensesFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (licensesBuilder_ == null) {
licenses_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
licensesBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Licenses.internal_static_sonarqube_ws_licenses_ListWsResponse_descriptor;
}
public org.sonarqube.ws.Licenses.ListWsResponse getDefaultInstanceForType() {
return org.sonarqube.ws.Licenses.ListWsResponse.getDefaultInstance();
}
public org.sonarqube.ws.Licenses.ListWsResponse build() {
org.sonarqube.ws.Licenses.ListWsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.sonarqube.ws.Licenses.ListWsResponse buildPartial() {
org.sonarqube.ws.Licenses.ListWsResponse result = new org.sonarqube.ws.Licenses.ListWsResponse(this);
int from_bitField0_ = bitField0_;
if (licensesBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
licenses_ = java.util.Collections.unmodifiableList(licenses_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.licenses_ = licenses_;
} else {
result.licenses_ = licensesBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.sonarqube.ws.Licenses.ListWsResponse) {
return mergeFrom((org.sonarqube.ws.Licenses.ListWsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.sonarqube.ws.Licenses.ListWsResponse other) {
if (other == org.sonarqube.ws.Licenses.ListWsResponse.getDefaultInstance()) return this;
if (licensesBuilder_ == null) {
if (!other.licenses_.isEmpty()) {
if (licenses_.isEmpty()) {
licenses_ = other.licenses_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLicensesIsMutable();
licenses_.addAll(other.licenses_);
}
onChanged();
}
} else {
if (!other.licenses_.isEmpty()) {
if (licensesBuilder_.isEmpty()) {
licensesBuilder_.dispose();
licensesBuilder_ = null;
licenses_ = other.licenses_;
bitField0_ = (bitField0_ & ~0x00000001);
licensesBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getLicensesFieldBuilder() : null;
} else {
licensesBuilder_.addAllMessages(other.licenses_);
}
}
}
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.Licenses.ListWsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.sonarqube.ws.Licenses.ListWsResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List licenses_ =
java.util.Collections.emptyList();
private void ensureLicensesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
licenses_ = new java.util.ArrayList(licenses_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.Licenses.License, org.sonarqube.ws.Licenses.License.Builder, org.sonarqube.ws.Licenses.LicenseOrBuilder> licensesBuilder_;
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
public java.util.List getLicensesList() {
if (licensesBuilder_ == null) {
return java.util.Collections.unmodifiableList(licenses_);
} else {
return licensesBuilder_.getMessageList();
}
}
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
public int getLicensesCount() {
if (licensesBuilder_ == null) {
return licenses_.size();
} else {
return licensesBuilder_.getCount();
}
}
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
public org.sonarqube.ws.Licenses.License getLicenses(int index) {
if (licensesBuilder_ == null) {
return licenses_.get(index);
} else {
return licensesBuilder_.getMessage(index);
}
}
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
public Builder setLicenses(
int index, org.sonarqube.ws.Licenses.License value) {
if (licensesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLicensesIsMutable();
licenses_.set(index, value);
onChanged();
} else {
licensesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
public Builder setLicenses(
int index, org.sonarqube.ws.Licenses.License.Builder builderForValue) {
if (licensesBuilder_ == null) {
ensureLicensesIsMutable();
licenses_.set(index, builderForValue.build());
onChanged();
} else {
licensesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
public Builder addLicenses(org.sonarqube.ws.Licenses.License value) {
if (licensesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLicensesIsMutable();
licenses_.add(value);
onChanged();
} else {
licensesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
public Builder addLicenses(
int index, org.sonarqube.ws.Licenses.License value) {
if (licensesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLicensesIsMutable();
licenses_.add(index, value);
onChanged();
} else {
licensesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
public Builder addLicenses(
org.sonarqube.ws.Licenses.License.Builder builderForValue) {
if (licensesBuilder_ == null) {
ensureLicensesIsMutable();
licenses_.add(builderForValue.build());
onChanged();
} else {
licensesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
public Builder addLicenses(
int index, org.sonarqube.ws.Licenses.License.Builder builderForValue) {
if (licensesBuilder_ == null) {
ensureLicensesIsMutable();
licenses_.add(index, builderForValue.build());
onChanged();
} else {
licensesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
public Builder addAllLicenses(
java.lang.Iterable extends org.sonarqube.ws.Licenses.License> values) {
if (licensesBuilder_ == null) {
ensureLicensesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, licenses_);
onChanged();
} else {
licensesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
public Builder clearLicenses() {
if (licensesBuilder_ == null) {
licenses_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
licensesBuilder_.clear();
}
return this;
}
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
public Builder removeLicenses(int index) {
if (licensesBuilder_ == null) {
ensureLicensesIsMutable();
licenses_.remove(index);
onChanged();
} else {
licensesBuilder_.remove(index);
}
return this;
}
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
public org.sonarqube.ws.Licenses.License.Builder getLicensesBuilder(
int index) {
return getLicensesFieldBuilder().getBuilder(index);
}
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
public org.sonarqube.ws.Licenses.LicenseOrBuilder getLicensesOrBuilder(
int index) {
if (licensesBuilder_ == null) {
return licenses_.get(index); } else {
return licensesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
public java.util.List extends org.sonarqube.ws.Licenses.LicenseOrBuilder>
getLicensesOrBuilderList() {
if (licensesBuilder_ != null) {
return licensesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(licenses_);
}
}
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
public org.sonarqube.ws.Licenses.License.Builder addLicensesBuilder() {
return getLicensesFieldBuilder().addBuilder(
org.sonarqube.ws.Licenses.License.getDefaultInstance());
}
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
public org.sonarqube.ws.Licenses.License.Builder addLicensesBuilder(
int index) {
return getLicensesFieldBuilder().addBuilder(
index, org.sonarqube.ws.Licenses.License.getDefaultInstance());
}
/**
* repeated .sonarqube.ws.licenses.License licenses = 1;
*/
public java.util.List
getLicensesBuilderList() {
return getLicensesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.Licenses.License, org.sonarqube.ws.Licenses.License.Builder, org.sonarqube.ws.Licenses.LicenseOrBuilder>
getLicensesFieldBuilder() {
if (licensesBuilder_ == null) {
licensesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.Licenses.License, org.sonarqube.ws.Licenses.License.Builder, org.sonarqube.ws.Licenses.LicenseOrBuilder>(
licenses_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
licenses_ = null;
}
return licensesBuilder_;
}
// @@protoc_insertion_point(builder_scope:sonarqube.ws.licenses.ListWsResponse)
}
// @@protoc_insertion_point(class_scope:sonarqube.ws.licenses.ListWsResponse)
private static final org.sonarqube.ws.Licenses.ListWsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.sonarqube.ws.Licenses.ListWsResponse();
}
public static org.sonarqube.ws.Licenses.ListWsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ListWsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new ListWsResponse(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.Licenses.ListWsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LicenseOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.licenses.License)
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 value = 3;
*/
boolean hasValue();
/**
* optional string value = 3;
*/
java.lang.String getValue();
/**
* optional string value = 3;
*/
com.google.protobuf.ByteString
getValueBytes();
/**
* optional string product = 4;
*/
boolean hasProduct();
/**
* optional string product = 4;
*/
java.lang.String getProduct();
/**
* optional string product = 4;
*/
com.google.protobuf.ByteString
getProductBytes();
/**
* optional string organization = 5;
*/
boolean hasOrganization();
/**
* optional string organization = 5;
*/
java.lang.String getOrganization();
/**
* optional string organization = 5;
*/
com.google.protobuf.ByteString
getOrganizationBytes();
/**
* optional string expiration = 6;
*/
boolean hasExpiration();
/**
* optional string expiration = 6;
*/
java.lang.String getExpiration();
/**
* optional string expiration = 6;
*/
com.google.protobuf.ByteString
getExpirationBytes();
/**
* optional string serverId = 7;
*/
boolean hasServerId();
/**
* optional string serverId = 7;
*/
java.lang.String getServerId();
/**
* optional string serverId = 7;
*/
com.google.protobuf.ByteString
getServerIdBytes();
/**
* optional string type = 8;
*/
boolean hasType();
/**
* optional string type = 8;
*/
java.lang.String getType();
/**
* optional string type = 8;
*/
com.google.protobuf.ByteString
getTypeBytes();
/**
* optional .sonarqube.ws.licenses.AdditionalProperties additionalProperties = 9;
*/
boolean hasAdditionalProperties();
/**
* optional .sonarqube.ws.licenses.AdditionalProperties additionalProperties = 9;
*/
org.sonarqube.ws.Licenses.AdditionalProperties getAdditionalProperties();
/**
* optional .sonarqube.ws.licenses.AdditionalProperties additionalProperties = 9;
*/
org.sonarqube.ws.Licenses.AdditionalPropertiesOrBuilder getAdditionalPropertiesOrBuilder();
/**
* optional bool invalidProduct = 10;
*/
boolean hasInvalidProduct();
/**
* optional bool invalidProduct = 10;
*/
boolean getInvalidProduct();
/**
* optional bool invalidExpiration = 11;
*/
boolean hasInvalidExpiration();
/**
* optional bool invalidExpiration = 11;
*/
boolean getInvalidExpiration();
/**
* optional bool invalidServerId = 12;
*/
boolean hasInvalidServerId();
/**
* optional bool invalidServerId = 12;
*/
boolean getInvalidServerId();
}
/**
* Protobuf type {@code sonarqube.ws.licenses.License}
*/
public static final class License extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.licenses.License)
LicenseOrBuilder {
// Use License.newBuilder() to construct.
private License(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private License() {
key_ = "";
name_ = "";
value_ = "";
product_ = "";
organization_ = "";
expiration_ = "";
serverId_ = "";
type_ = "";
invalidProduct_ = false;
invalidExpiration_ = false;
invalidServerId_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private License(
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;
value_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
product_ = bs;
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
organization_ = bs;
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
expiration_ = bs;
break;
}
case 58: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000040;
serverId_ = bs;
break;
}
case 66: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000080;
type_ = bs;
break;
}
case 74: {
org.sonarqube.ws.Licenses.AdditionalProperties.Builder subBuilder = null;
if (((bitField0_ & 0x00000100) == 0x00000100)) {
subBuilder = additionalProperties_.toBuilder();
}
additionalProperties_ = input.readMessage(org.sonarqube.ws.Licenses.AdditionalProperties.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(additionalProperties_);
additionalProperties_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000100;
break;
}
case 80: {
bitField0_ |= 0x00000200;
invalidProduct_ = input.readBool();
break;
}
case 88: {
bitField0_ |= 0x00000400;
invalidExpiration_ = input.readBool();
break;
}
case 96: {
bitField0_ |= 0x00000800;
invalidServerId_ = 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.Licenses.internal_static_sonarqube_ws_licenses_License_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.Licenses.internal_static_sonarqube_ws_licenses_License_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.Licenses.License.class, org.sonarqube.ws.Licenses.License.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 VALUE_FIELD_NUMBER = 3;
private volatile java.lang.Object value_;
/**
* optional string value = 3;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string value = 3;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
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()) {
value_ = s;
}
return s;
}
}
/**
* optional string value = 3;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PRODUCT_FIELD_NUMBER = 4;
private volatile java.lang.Object product_;
/**
* optional string product = 4;
*/
public boolean hasProduct() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string product = 4;
*/
public java.lang.String getProduct() {
java.lang.Object ref = product_;
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()) {
product_ = s;
}
return s;
}
}
/**
* optional string product = 4;
*/
public com.google.protobuf.ByteString
getProductBytes() {
java.lang.Object ref = product_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
product_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ORGANIZATION_FIELD_NUMBER = 5;
private volatile java.lang.Object organization_;
/**
* optional string organization = 5;
*/
public boolean hasOrganization() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string organization = 5;
*/
public java.lang.String getOrganization() {
java.lang.Object ref = organization_;
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()) {
organization_ = s;
}
return s;
}
}
/**
* optional string organization = 5;
*/
public com.google.protobuf.ByteString
getOrganizationBytes() {
java.lang.Object ref = organization_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
organization_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXPIRATION_FIELD_NUMBER = 6;
private volatile java.lang.Object expiration_;
/**
* optional string expiration = 6;
*/
public boolean hasExpiration() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string expiration = 6;
*/
public java.lang.String getExpiration() {
java.lang.Object ref = expiration_;
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()) {
expiration_ = s;
}
return s;
}
}
/**
* optional string expiration = 6;
*/
public com.google.protobuf.ByteString
getExpirationBytes() {
java.lang.Object ref = expiration_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
expiration_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SERVERID_FIELD_NUMBER = 7;
private volatile java.lang.Object serverId_;
/**
* optional string serverId = 7;
*/
public boolean hasServerId() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional string serverId = 7;
*/
public java.lang.String getServerId() {
java.lang.Object ref = serverId_;
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()) {
serverId_ = s;
}
return s;
}
}
/**
* optional string serverId = 7;
*/
public com.google.protobuf.ByteString
getServerIdBytes() {
java.lang.Object ref = serverId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serverId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 8;
private volatile java.lang.Object type_;
/**
* optional string type = 8;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional string type = 8;
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
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()) {
type_ = s;
}
return s;
}
}
/**
* optional string type = 8;
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADDITIONALPROPERTIES_FIELD_NUMBER = 9;
private org.sonarqube.ws.Licenses.AdditionalProperties additionalProperties_;
/**
* optional .sonarqube.ws.licenses.AdditionalProperties additionalProperties = 9;
*/
public boolean hasAdditionalProperties() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional .sonarqube.ws.licenses.AdditionalProperties additionalProperties = 9;
*/
public org.sonarqube.ws.Licenses.AdditionalProperties getAdditionalProperties() {
return additionalProperties_ == null ? org.sonarqube.ws.Licenses.AdditionalProperties.getDefaultInstance() : additionalProperties_;
}
/**
* optional .sonarqube.ws.licenses.AdditionalProperties additionalProperties = 9;
*/
public org.sonarqube.ws.Licenses.AdditionalPropertiesOrBuilder getAdditionalPropertiesOrBuilder() {
return additionalProperties_ == null ? org.sonarqube.ws.Licenses.AdditionalProperties.getDefaultInstance() : additionalProperties_;
}
public static final int INVALIDPRODUCT_FIELD_NUMBER = 10;
private boolean invalidProduct_;
/**
* optional bool invalidProduct = 10;
*/
public boolean hasInvalidProduct() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional bool invalidProduct = 10;
*/
public boolean getInvalidProduct() {
return invalidProduct_;
}
public static final int INVALIDEXPIRATION_FIELD_NUMBER = 11;
private boolean invalidExpiration_;
/**
* optional bool invalidExpiration = 11;
*/
public boolean hasInvalidExpiration() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional bool invalidExpiration = 11;
*/
public boolean getInvalidExpiration() {
return invalidExpiration_;
}
public static final int INVALIDSERVERID_FIELD_NUMBER = 12;
private boolean invalidServerId_;
/**
* optional bool invalidServerId = 12;
*/
public boolean hasInvalidServerId() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional bool invalidServerId = 12;
*/
public boolean getInvalidServerId() {
return invalidServerId_;
}
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, value_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
com.google.protobuf.GeneratedMessage.writeString(output, 4, product_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
com.google.protobuf.GeneratedMessage.writeString(output, 5, organization_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
com.google.protobuf.GeneratedMessage.writeString(output, 6, expiration_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
com.google.protobuf.GeneratedMessage.writeString(output, 7, serverId_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
com.google.protobuf.GeneratedMessage.writeString(output, 8, type_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeMessage(9, getAdditionalProperties());
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeBool(10, invalidProduct_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeBool(11, invalidExpiration_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeBool(12, invalidServerId_);
}
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, value_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(4, product_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(5, organization_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(6, expiration_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(7, serverId_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(8, type_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getAdditionalProperties());
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(10, invalidProduct_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(11, invalidExpiration_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(12, invalidServerId_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.sonarqube.ws.Licenses.License parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.Licenses.License 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.Licenses.License parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.Licenses.License parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.sonarqube.ws.Licenses.License parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.Licenses.License parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.Licenses.License parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.sonarqube.ws.Licenses.License parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.Licenses.License parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.Licenses.License 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.Licenses.License 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.licenses.License}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:sonarqube.ws.licenses.License)
org.sonarqube.ws.Licenses.LicenseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.Licenses.internal_static_sonarqube_ws_licenses_License_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.Licenses.internal_static_sonarqube_ws_licenses_License_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.Licenses.License.class, org.sonarqube.ws.Licenses.License.Builder.class);
}
// Construct using org.sonarqube.ws.Licenses.License.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getAdditionalPropertiesFieldBuilder();
}
}
public Builder clear() {
super.clear();
key_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
value_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
product_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
organization_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
expiration_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
serverId_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
type_ = "";
bitField0_ = (bitField0_ & ~0x00000080);
if (additionalPropertiesBuilder_ == null) {
additionalProperties_ = null;
} else {
additionalPropertiesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
invalidProduct_ = false;
bitField0_ = (bitField0_ & ~0x00000200);
invalidExpiration_ = false;
bitField0_ = (bitField0_ & ~0x00000400);
invalidServerId_ = false;
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Licenses.internal_static_sonarqube_ws_licenses_License_descriptor;
}
public org.sonarqube.ws.Licenses.License getDefaultInstanceForType() {
return org.sonarqube.ws.Licenses.License.getDefaultInstance();
}
public org.sonarqube.ws.Licenses.License build() {
org.sonarqube.ws.Licenses.License result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.sonarqube.ws.Licenses.License buildPartial() {
org.sonarqube.ws.Licenses.License result = new org.sonarqube.ws.Licenses.License(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.value_ = value_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.product_ = product_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.organization_ = organization_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.expiration_ = expiration_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.serverId_ = serverId_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
if (additionalPropertiesBuilder_ == null) {
result.additionalProperties_ = additionalProperties_;
} else {
result.additionalProperties_ = additionalPropertiesBuilder_.build();
}
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
result.invalidProduct_ = invalidProduct_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000400;
}
result.invalidExpiration_ = invalidExpiration_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000800;
}
result.invalidServerId_ = invalidServerId_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.sonarqube.ws.Licenses.License) {
return mergeFrom((org.sonarqube.ws.Licenses.License)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.sonarqube.ws.Licenses.License other) {
if (other == org.sonarqube.ws.Licenses.License.getDefaultInstance()) return this;
if (other.hasKey()) {
bitField0_ |= 0x00000001;
key_ = other.key_;
onChanged();
}
if (other.hasName()) {
bitField0_ |= 0x00000002;
name_ = other.name_;
onChanged();
}
if (other.hasValue()) {
bitField0_ |= 0x00000004;
value_ = other.value_;
onChanged();
}
if (other.hasProduct()) {
bitField0_ |= 0x00000008;
product_ = other.product_;
onChanged();
}
if (other.hasOrganization()) {
bitField0_ |= 0x00000010;
organization_ = other.organization_;
onChanged();
}
if (other.hasExpiration()) {
bitField0_ |= 0x00000020;
expiration_ = other.expiration_;
onChanged();
}
if (other.hasServerId()) {
bitField0_ |= 0x00000040;
serverId_ = other.serverId_;
onChanged();
}
if (other.hasType()) {
bitField0_ |= 0x00000080;
type_ = other.type_;
onChanged();
}
if (other.hasAdditionalProperties()) {
mergeAdditionalProperties(other.getAdditionalProperties());
}
if (other.hasInvalidProduct()) {
setInvalidProduct(other.getInvalidProduct());
}
if (other.hasInvalidExpiration()) {
setInvalidExpiration(other.getInvalidExpiration());
}
if (other.hasInvalidServerId()) {
setInvalidServerId(other.getInvalidServerId());
}
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.Licenses.License parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.sonarqube.ws.Licenses.License) 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 value_ = "";
/**
* optional string value = 3;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string value = 3;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
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()) {
value_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string value = 3;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string value = 3;
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
value_ = value;
onChanged();
return this;
}
/**
* optional string value = 3;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000004);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* optional string value = 3;
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
value_ = value;
onChanged();
return this;
}
private java.lang.Object product_ = "";
/**
* optional string product = 4;
*/
public boolean hasProduct() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string product = 4;
*/
public java.lang.String getProduct() {
java.lang.Object ref = product_;
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()) {
product_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string product = 4;
*/
public com.google.protobuf.ByteString
getProductBytes() {
java.lang.Object ref = product_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
product_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string product = 4;
*/
public Builder setProduct(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
product_ = value;
onChanged();
return this;
}
/**
* optional string product = 4;
*/
public Builder clearProduct() {
bitField0_ = (bitField0_ & ~0x00000008);
product_ = getDefaultInstance().getProduct();
onChanged();
return this;
}
/**
* optional string product = 4;
*/
public Builder setProductBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
product_ = value;
onChanged();
return this;
}
private java.lang.Object organization_ = "";
/**
* optional string organization = 5;
*/
public boolean hasOrganization() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string organization = 5;
*/
public java.lang.String getOrganization() {
java.lang.Object ref = organization_;
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()) {
organization_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string organization = 5;
*/
public com.google.protobuf.ByteString
getOrganizationBytes() {
java.lang.Object ref = organization_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
organization_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string organization = 5;
*/
public Builder setOrganization(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
organization_ = value;
onChanged();
return this;
}
/**
* optional string organization = 5;
*/
public Builder clearOrganization() {
bitField0_ = (bitField0_ & ~0x00000010);
organization_ = getDefaultInstance().getOrganization();
onChanged();
return this;
}
/**
* optional string organization = 5;
*/
public Builder setOrganizationBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
organization_ = value;
onChanged();
return this;
}
private java.lang.Object expiration_ = "";
/**
* optional string expiration = 6;
*/
public boolean hasExpiration() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string expiration = 6;
*/
public java.lang.String getExpiration() {
java.lang.Object ref = expiration_;
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()) {
expiration_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string expiration = 6;
*/
public com.google.protobuf.ByteString
getExpirationBytes() {
java.lang.Object ref = expiration_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
expiration_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string expiration = 6;
*/
public Builder setExpiration(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
expiration_ = value;
onChanged();
return this;
}
/**
* optional string expiration = 6;
*/
public Builder clearExpiration() {
bitField0_ = (bitField0_ & ~0x00000020);
expiration_ = getDefaultInstance().getExpiration();
onChanged();
return this;
}
/**
* optional string expiration = 6;
*/
public Builder setExpirationBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
expiration_ = value;
onChanged();
return this;
}
private java.lang.Object serverId_ = "";
/**
* optional string serverId = 7;
*/
public boolean hasServerId() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional string serverId = 7;
*/
public java.lang.String getServerId() {
java.lang.Object ref = serverId_;
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()) {
serverId_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string serverId = 7;
*/
public com.google.protobuf.ByteString
getServerIdBytes() {
java.lang.Object ref = serverId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serverId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string serverId = 7;
*/
public Builder setServerId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
serverId_ = value;
onChanged();
return this;
}
/**
* optional string serverId = 7;
*/
public Builder clearServerId() {
bitField0_ = (bitField0_ & ~0x00000040);
serverId_ = getDefaultInstance().getServerId();
onChanged();
return this;
}
/**
* optional string serverId = 7;
*/
public Builder setServerIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
serverId_ = value;
onChanged();
return this;
}
private java.lang.Object type_ = "";
/**
* optional string type = 8;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional string type = 8;
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
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()) {
type_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string type = 8;
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string type = 8;
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
type_ = value;
onChanged();
return this;
}
/**
* optional string type = 8;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000080);
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
* optional string type = 8;
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
type_ = value;
onChanged();
return this;
}
private org.sonarqube.ws.Licenses.AdditionalProperties additionalProperties_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.Licenses.AdditionalProperties, org.sonarqube.ws.Licenses.AdditionalProperties.Builder, org.sonarqube.ws.Licenses.AdditionalPropertiesOrBuilder> additionalPropertiesBuilder_;
/**
* optional .sonarqube.ws.licenses.AdditionalProperties additionalProperties = 9;
*/
public boolean hasAdditionalProperties() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional .sonarqube.ws.licenses.AdditionalProperties additionalProperties = 9;
*/
public org.sonarqube.ws.Licenses.AdditionalProperties getAdditionalProperties() {
if (additionalPropertiesBuilder_ == null) {
return additionalProperties_ == null ? org.sonarqube.ws.Licenses.AdditionalProperties.getDefaultInstance() : additionalProperties_;
} else {
return additionalPropertiesBuilder_.getMessage();
}
}
/**
* optional .sonarqube.ws.licenses.AdditionalProperties additionalProperties = 9;
*/
public Builder setAdditionalProperties(org.sonarqube.ws.Licenses.AdditionalProperties value) {
if (additionalPropertiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
additionalProperties_ = value;
onChanged();
} else {
additionalPropertiesBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
return this;
}
/**
* optional .sonarqube.ws.licenses.AdditionalProperties additionalProperties = 9;
*/
public Builder setAdditionalProperties(
org.sonarqube.ws.Licenses.AdditionalProperties.Builder builderForValue) {
if (additionalPropertiesBuilder_ == null) {
additionalProperties_ = builderForValue.build();
onChanged();
} else {
additionalPropertiesBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
return this;
}
/**
* optional .sonarqube.ws.licenses.AdditionalProperties additionalProperties = 9;
*/
public Builder mergeAdditionalProperties(org.sonarqube.ws.Licenses.AdditionalProperties value) {
if (additionalPropertiesBuilder_ == null) {
if (((bitField0_ & 0x00000100) == 0x00000100) &&
additionalProperties_ != null &&
additionalProperties_ != org.sonarqube.ws.Licenses.AdditionalProperties.getDefaultInstance()) {
additionalProperties_ =
org.sonarqube.ws.Licenses.AdditionalProperties.newBuilder(additionalProperties_).mergeFrom(value).buildPartial();
} else {
additionalProperties_ = value;
}
onChanged();
} else {
additionalPropertiesBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000100;
return this;
}
/**
* optional .sonarqube.ws.licenses.AdditionalProperties additionalProperties = 9;
*/
public Builder clearAdditionalProperties() {
if (additionalPropertiesBuilder_ == null) {
additionalProperties_ = null;
onChanged();
} else {
additionalPropertiesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
/**
* optional .sonarqube.ws.licenses.AdditionalProperties additionalProperties = 9;
*/
public org.sonarqube.ws.Licenses.AdditionalProperties.Builder getAdditionalPropertiesBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getAdditionalPropertiesFieldBuilder().getBuilder();
}
/**
* optional .sonarqube.ws.licenses.AdditionalProperties additionalProperties = 9;
*/
public org.sonarqube.ws.Licenses.AdditionalPropertiesOrBuilder getAdditionalPropertiesOrBuilder() {
if (additionalPropertiesBuilder_ != null) {
return additionalPropertiesBuilder_.getMessageOrBuilder();
} else {
return additionalProperties_ == null ?
org.sonarqube.ws.Licenses.AdditionalProperties.getDefaultInstance() : additionalProperties_;
}
}
/**
* optional .sonarqube.ws.licenses.AdditionalProperties additionalProperties = 9;
*/
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.Licenses.AdditionalProperties, org.sonarqube.ws.Licenses.AdditionalProperties.Builder, org.sonarqube.ws.Licenses.AdditionalPropertiesOrBuilder>
getAdditionalPropertiesFieldBuilder() {
if (additionalPropertiesBuilder_ == null) {
additionalPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.Licenses.AdditionalProperties, org.sonarqube.ws.Licenses.AdditionalProperties.Builder, org.sonarqube.ws.Licenses.AdditionalPropertiesOrBuilder>(
getAdditionalProperties(),
getParentForChildren(),
isClean());
additionalProperties_ = null;
}
return additionalPropertiesBuilder_;
}
private boolean invalidProduct_ ;
/**
* optional bool invalidProduct = 10;
*/
public boolean hasInvalidProduct() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional bool invalidProduct = 10;
*/
public boolean getInvalidProduct() {
return invalidProduct_;
}
/**
* optional bool invalidProduct = 10;
*/
public Builder setInvalidProduct(boolean value) {
bitField0_ |= 0x00000200;
invalidProduct_ = value;
onChanged();
return this;
}
/**
* optional bool invalidProduct = 10;
*/
public Builder clearInvalidProduct() {
bitField0_ = (bitField0_ & ~0x00000200);
invalidProduct_ = false;
onChanged();
return this;
}
private boolean invalidExpiration_ ;
/**
* optional bool invalidExpiration = 11;
*/
public boolean hasInvalidExpiration() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional bool invalidExpiration = 11;
*/
public boolean getInvalidExpiration() {
return invalidExpiration_;
}
/**
* optional bool invalidExpiration = 11;
*/
public Builder setInvalidExpiration(boolean value) {
bitField0_ |= 0x00000400;
invalidExpiration_ = value;
onChanged();
return this;
}
/**
* optional bool invalidExpiration = 11;
*/
public Builder clearInvalidExpiration() {
bitField0_ = (bitField0_ & ~0x00000400);
invalidExpiration_ = false;
onChanged();
return this;
}
private boolean invalidServerId_ ;
/**
* optional bool invalidServerId = 12;
*/
public boolean hasInvalidServerId() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional bool invalidServerId = 12;
*/
public boolean getInvalidServerId() {
return invalidServerId_;
}
/**
* optional bool invalidServerId = 12;
*/
public Builder setInvalidServerId(boolean value) {
bitField0_ |= 0x00000800;
invalidServerId_ = value;
onChanged();
return this;
}
/**
* optional bool invalidServerId = 12;
*/
public Builder clearInvalidServerId() {
bitField0_ = (bitField0_ & ~0x00000800);
invalidServerId_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:sonarqube.ws.licenses.License)
}
// @@protoc_insertion_point(class_scope:sonarqube.ws.licenses.License)
private static final org.sonarqube.ws.Licenses.License DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.sonarqube.ws.Licenses.License();
}
public static org.sonarqube.ws.Licenses.License getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public License parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new License(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.Licenses.License getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AdditionalPropertiesOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.licenses.AdditionalProperties)
com.google.protobuf.MessageOrBuilder {
/**
* map<string, string> additionalProperties = 1;
*/
java.util.Map
getAdditionalProperties();
}
/**
* Protobuf type {@code sonarqube.ws.licenses.AdditionalProperties}
*/
public static final class AdditionalProperties extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.licenses.AdditionalProperties)
AdditionalPropertiesOrBuilder {
// Use AdditionalProperties.newBuilder() to construct.
private AdditionalProperties(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private AdditionalProperties() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AdditionalProperties(
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)) {
additionalProperties_ = com.google.protobuf.MapField.newMapField(
AdditionalPropertiesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
additionalProperties = input.readMessage(
AdditionalPropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
additionalProperties_.getMutableMap().put(additionalProperties.getKey(), additionalProperties.getValue());
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.Licenses.internal_static_sonarqube_ws_licenses_AdditionalProperties_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetAdditionalProperties();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.Licenses.internal_static_sonarqube_ws_licenses_AdditionalProperties_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.Licenses.AdditionalProperties.class, org.sonarqube.ws.Licenses.AdditionalProperties.Builder.class);
}
public static final int ADDITIONALPROPERTIES_FIELD_NUMBER = 1;
private static final class AdditionalPropertiesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.sonarqube.ws.Licenses.internal_static_sonarqube_ws_licenses_AdditionalProperties_AdditionalPropertiesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> additionalProperties_;
private com.google.protobuf.MapField
internalGetAdditionalProperties() {
if (additionalProperties_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AdditionalPropertiesDefaultEntryHolder.defaultEntry);
}
return additionalProperties_;
}
/**
* map<string, string> additionalProperties = 1;
*/
public java.util.Map getAdditionalProperties() {
return internalGetAdditionalProperties().getMap();
}
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 (java.util.Map.Entry entry
: internalGetAdditionalProperties().getMap().entrySet()) {
com.google.protobuf.MapEntry
additionalProperties = AdditionalPropertiesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
output.writeMessage(1, additionalProperties);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetAdditionalProperties().getMap().entrySet()) {
com.google.protobuf.MapEntry
additionalProperties = AdditionalPropertiesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, additionalProperties);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.sonarqube.ws.Licenses.AdditionalProperties parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.Licenses.AdditionalProperties 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.Licenses.AdditionalProperties parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.Licenses.AdditionalProperties parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.sonarqube.ws.Licenses.AdditionalProperties parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.Licenses.AdditionalProperties parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.Licenses.AdditionalProperties parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.sonarqube.ws.Licenses.AdditionalProperties parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.Licenses.AdditionalProperties parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.Licenses.AdditionalProperties 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.Licenses.AdditionalProperties 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.licenses.AdditionalProperties}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:sonarqube.ws.licenses.AdditionalProperties)
org.sonarqube.ws.Licenses.AdditionalPropertiesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.Licenses.internal_static_sonarqube_ws_licenses_AdditionalProperties_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetAdditionalProperties();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableAdditionalProperties();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.Licenses.internal_static_sonarqube_ws_licenses_AdditionalProperties_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.Licenses.AdditionalProperties.class, org.sonarqube.ws.Licenses.AdditionalProperties.Builder.class);
}
// Construct using org.sonarqube.ws.Licenses.AdditionalProperties.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();
internalGetMutableAdditionalProperties().clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Licenses.internal_static_sonarqube_ws_licenses_AdditionalProperties_descriptor;
}
public org.sonarqube.ws.Licenses.AdditionalProperties getDefaultInstanceForType() {
return org.sonarqube.ws.Licenses.AdditionalProperties.getDefaultInstance();
}
public org.sonarqube.ws.Licenses.AdditionalProperties build() {
org.sonarqube.ws.Licenses.AdditionalProperties result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.sonarqube.ws.Licenses.AdditionalProperties buildPartial() {
org.sonarqube.ws.Licenses.AdditionalProperties result = new org.sonarqube.ws.Licenses.AdditionalProperties(this);
int from_bitField0_ = bitField0_;
result.additionalProperties_ = internalGetAdditionalProperties();
result.additionalProperties_.makeImmutable();
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.sonarqube.ws.Licenses.AdditionalProperties) {
return mergeFrom((org.sonarqube.ws.Licenses.AdditionalProperties)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.sonarqube.ws.Licenses.AdditionalProperties other) {
if (other == org.sonarqube.ws.Licenses.AdditionalProperties.getDefaultInstance()) return this;
internalGetMutableAdditionalProperties().mergeFrom(
other.internalGetAdditionalProperties());
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.Licenses.AdditionalProperties parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.sonarqube.ws.Licenses.AdditionalProperties) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> additionalProperties_;
private com.google.protobuf.MapField
internalGetAdditionalProperties() {
if (additionalProperties_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AdditionalPropertiesDefaultEntryHolder.defaultEntry);
}
return additionalProperties_;
}
private com.google.protobuf.MapField
internalGetMutableAdditionalProperties() {
onChanged();;
if (additionalProperties_ == null) {
additionalProperties_ = com.google.protobuf.MapField.newMapField(
AdditionalPropertiesDefaultEntryHolder.defaultEntry);
}
if (!additionalProperties_.isMutable()) {
additionalProperties_ = additionalProperties_.copy();
}
return additionalProperties_;
}
/**
* map<string, string> additionalProperties = 1;
*/
public java.util.Map getAdditionalProperties() {
return internalGetAdditionalProperties().getMap();
}
/**
* map<string, string> additionalProperties = 1;
*/
public java.util.Map
getMutableAdditionalProperties() {
return internalGetMutableAdditionalProperties().getMutableMap();
}
/**
* map<string, string> additionalProperties = 1;
*/
public Builder putAllAdditionalProperties(
java.util.Map values) {
getMutableAdditionalProperties().putAll(values);
return this;
}
// @@protoc_insertion_point(builder_scope:sonarqube.ws.licenses.AdditionalProperties)
}
// @@protoc_insertion_point(class_scope:sonarqube.ws.licenses.AdditionalProperties)
private static final org.sonarqube.ws.Licenses.AdditionalProperties DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.sonarqube.ws.Licenses.AdditionalProperties();
}
public static org.sonarqube.ws.Licenses.AdditionalProperties getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public AdditionalProperties parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new AdditionalProperties(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.Licenses.AdditionalProperties getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_licenses_ListWsResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_licenses_ListWsResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_licenses_License_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_licenses_License_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_licenses_AdditionalProperties_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_licenses_AdditionalProperties_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_licenses_AdditionalProperties_AdditionalPropertiesEntry_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_licenses_AdditionalProperties_AdditionalPropertiesEntry_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\021ws-licenses.proto\022\025sonarqube.ws.licens" +
"es\"B\n\016ListWsResponse\0220\n\010licenses\030\001 \003(\0132\036" +
".sonarqube.ws.licenses.License\"\245\002\n\007Licen" +
"se\022\013\n\003key\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\r\n\005value\030\003" +
" \001(\t\022\017\n\007product\030\004 \001(\t\022\024\n\014organization\030\005 " +
"\001(\t\022\022\n\nexpiration\030\006 \001(\t\022\020\n\010serverId\030\007 \001(" +
"\t\022\014\n\004type\030\010 \001(\t\022I\n\024additionalProperties\030" +
"\t \001(\0132+.sonarqube.ws.licenses.Additional" +
"Properties\022\026\n\016invalidProduct\030\n \001(\010\022\031\n\021in" +
"validExpiration\030\013 \001(\010\022\027\n\017invalidServerId",
"\030\014 \001(\010\"\270\001\n\024AdditionalProperties\022c\n\024addit" +
"ionalProperties\030\001 \003(\0132E.sonarqube.ws.lic" +
"enses.AdditionalProperties.AdditionalPro" +
"pertiesEntry\032;\n\031AdditionalPropertiesEntr" +
"y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\036\n\020org" +
".sonarqube.wsB\010LicensesH\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_licenses_ListWsResponse_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_sonarqube_ws_licenses_ListWsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_licenses_ListWsResponse_descriptor,
new java.lang.String[] { "Licenses", });
internal_static_sonarqube_ws_licenses_License_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_sonarqube_ws_licenses_License_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_licenses_License_descriptor,
new java.lang.String[] { "Key", "Name", "Value", "Product", "Organization", "Expiration", "ServerId", "Type", "AdditionalProperties", "InvalidProduct", "InvalidExpiration", "InvalidServerId", });
internal_static_sonarqube_ws_licenses_AdditionalProperties_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_sonarqube_ws_licenses_AdditionalProperties_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_licenses_AdditionalProperties_descriptor,
new java.lang.String[] { "AdditionalProperties", });
internal_static_sonarqube_ws_licenses_AdditionalProperties_AdditionalPropertiesEntry_descriptor =
internal_static_sonarqube_ws_licenses_AdditionalProperties_descriptor.getNestedTypes().get(0);
internal_static_sonarqube_ws_licenses_AdditionalProperties_AdditionalPropertiesEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_licenses_AdditionalProperties_AdditionalPropertiesEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy