
org.sonarqube.ws.WsQualityGates 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-qualitygates.proto
package org.sonarqube.ws;
public final class WsQualityGates {
private WsQualityGates() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface ProjectStatusWsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.qualitygate.ProjectStatusWsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.ProjectStatus projectStatus = 1;
*/
boolean hasProjectStatus();
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.ProjectStatus projectStatus = 1;
*/
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus getProjectStatus();
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.ProjectStatus projectStatus = 1;
*/
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatusOrBuilder getProjectStatusOrBuilder();
}
/**
* Protobuf type {@code sonarqube.ws.qualitygate.ProjectStatusWsResponse}
*
*
* GET api/qualitygates/project_status
*
*/
public static final class ProjectStatusWsResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.qualitygate.ProjectStatusWsResponse)
ProjectStatusWsResponseOrBuilder {
// Use ProjectStatusWsResponse.newBuilder() to construct.
private ProjectStatusWsResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ProjectStatusWsResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProjectStatusWsResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = projectStatus_.toBuilder();
}
projectStatus_ = input.readMessage(org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(projectStatus_);
projectStatus_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.WsQualityGates.internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsQualityGates.internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.class, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Builder.class);
}
/**
* Protobuf enum {@code sonarqube.ws.qualitygate.ProjectStatusWsResponse.Status}
*/
public enum Status
implements com.google.protobuf.ProtocolMessageEnum {
/**
* OK = 1;
*/
OK(0, 1),
/**
* WARN = 2;
*/
WARN(1, 2),
/**
* ERROR = 3;
*/
ERROR(2, 3),
/**
* NONE = 4;
*/
NONE(3, 4),
;
/**
* OK = 1;
*/
public static final int OK_VALUE = 1;
/**
* WARN = 2;
*/
public static final int WARN_VALUE = 2;
/**
* ERROR = 3;
*/
public static final int ERROR_VALUE = 3;
/**
* NONE = 4;
*/
public static final int NONE_VALUE = 4;
public final int getNumber() {
return value;
}
public static Status valueOf(int value) {
switch (value) {
case 1: return OK;
case 2: return WARN;
case 3: return ERROR;
case 4: return NONE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Status> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Status findValueByNumber(int number) {
return Status.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.getDescriptor().getEnumTypes().get(0);
}
private static final Status[] VALUES = values();
public static Status valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private Status(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:sonarqube.ws.qualitygate.ProjectStatusWsResponse.Status)
}
/**
* Protobuf enum {@code sonarqube.ws.qualitygate.ProjectStatusWsResponse.Comparator}
*/
public enum Comparator
implements com.google.protobuf.ProtocolMessageEnum {
/**
* GT = 1;
*/
GT(0, 1),
/**
* LT = 2;
*/
LT(1, 2),
/**
* EQ = 3;
*/
EQ(2, 3),
/**
* NE = 4;
*/
NE(3, 4),
;
/**
* GT = 1;
*/
public static final int GT_VALUE = 1;
/**
* LT = 2;
*/
public static final int LT_VALUE = 2;
/**
* EQ = 3;
*/
public static final int EQ_VALUE = 3;
/**
* NE = 4;
*/
public static final int NE_VALUE = 4;
public final int getNumber() {
return value;
}
public static Comparator valueOf(int value) {
switch (value) {
case 1: return GT;
case 2: return LT;
case 3: return EQ;
case 4: return NE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Comparator> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Comparator findValueByNumber(int number) {
return Comparator.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.getDescriptor().getEnumTypes().get(1);
}
private static final Comparator[] VALUES = values();
public static Comparator valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private Comparator(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:sonarqube.ws.qualitygate.ProjectStatusWsResponse.Comparator)
}
public interface ProjectStatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.qualitygate.ProjectStatusWsResponse.ProjectStatus)
com.google.protobuf.MessageOrBuilder {
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Status status = 1;
*/
boolean hasStatus();
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Status status = 1;
*/
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Status getStatus();
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
java.util.List
getConditionsList();
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition getConditions(int index);
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
int getConditionsCount();
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
java.util.List extends org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ConditionOrBuilder>
getConditionsOrBuilderList();
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ConditionOrBuilder getConditionsOrBuilder(
int index);
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
java.util.List
getPeriodsList();
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period getPeriods(int index);
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
int getPeriodsCount();
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
java.util.List extends org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.PeriodOrBuilder>
getPeriodsOrBuilderList();
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.PeriodOrBuilder getPeriodsOrBuilder(
int index);
}
/**
* Protobuf type {@code sonarqube.ws.qualitygate.ProjectStatusWsResponse.ProjectStatus}
*/
public static final class ProjectStatus extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.qualitygate.ProjectStatusWsResponse.ProjectStatus)
ProjectStatusOrBuilder {
// Use ProjectStatus.newBuilder() to construct.
private ProjectStatus(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ProjectStatus() {
status_ = 1;
conditions_ = java.util.Collections.emptyList();
periods_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProjectStatus(
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 8: {
int rawValue = input.readEnum();
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Status value = org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Status.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
status_ = rawValue;
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
conditions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
conditions_.add(input.readMessage(org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
periods_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
periods_.add(input.readMessage(org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
conditions_ = java.util.Collections.unmodifiableList(conditions_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
periods_ = java.util.Collections.unmodifiableList(periods_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.WsQualityGates.internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_ProjectStatus_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsQualityGates.internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_ProjectStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus.class, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus.Builder.class);
}
private int bitField0_;
public static final int STATUS_FIELD_NUMBER = 1;
private int status_;
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Status status = 1;
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Status status = 1;
*/
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Status getStatus() {
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Status result = org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Status.valueOf(status_);
return result == null ? org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Status.OK : result;
}
public static final int CONDITIONS_FIELD_NUMBER = 2;
private java.util.List conditions_;
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
public java.util.List getConditionsList() {
return conditions_;
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
public java.util.List extends org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ConditionOrBuilder>
getConditionsOrBuilderList() {
return conditions_;
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
public int getConditionsCount() {
return conditions_.size();
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition getConditions(int index) {
return conditions_.get(index);
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ConditionOrBuilder getConditionsOrBuilder(
int index) {
return conditions_.get(index);
}
public static final int PERIODS_FIELD_NUMBER = 3;
private java.util.List periods_;
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
public java.util.List getPeriodsList() {
return periods_;
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
public java.util.List extends org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.PeriodOrBuilder>
getPeriodsOrBuilderList() {
return periods_;
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
public int getPeriodsCount() {
return periods_.size();
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period getPeriods(int index) {
return periods_.get(index);
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.PeriodOrBuilder getPeriodsOrBuilder(
int index) {
return periods_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, status_);
}
for (int i = 0; i < conditions_.size(); i++) {
output.writeMessage(2, conditions_.get(i));
}
for (int i = 0; i < periods_.size(); i++) {
output.writeMessage(3, periods_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, status_);
}
for (int i = 0; i < conditions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, conditions_.get(i));
}
for (int i = 0; i < periods_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, periods_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus 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.WsQualityGates.ProjectStatusWsResponse.ProjectStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus 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.WsQualityGates.ProjectStatusWsResponse.ProjectStatus 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.qualitygate.ProjectStatusWsResponse.ProjectStatus}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:sonarqube.ws.qualitygate.ProjectStatusWsResponse.ProjectStatus)
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.WsQualityGates.internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_ProjectStatus_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsQualityGates.internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_ProjectStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus.class, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus.Builder.class);
}
// Construct using org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getConditionsFieldBuilder();
getPeriodsFieldBuilder();
}
}
public Builder clear() {
super.clear();
status_ = 1;
bitField0_ = (bitField0_ & ~0x00000001);
if (conditionsBuilder_ == null) {
conditions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
conditionsBuilder_.clear();
}
if (periodsBuilder_ == null) {
periods_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
periodsBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.WsQualityGates.internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_ProjectStatus_descriptor;
}
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus getDefaultInstanceForType() {
return org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus.getDefaultInstance();
}
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus build() {
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus buildPartial() {
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus result = new org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.status_ = status_;
if (conditionsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
conditions_ = java.util.Collections.unmodifiableList(conditions_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.conditions_ = conditions_;
} else {
result.conditions_ = conditionsBuilder_.build();
}
if (periodsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
periods_ = java.util.Collections.unmodifiableList(periods_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.periods_ = periods_;
} else {
result.periods_ = periodsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus) {
return mergeFrom((org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus other) {
if (other == org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus.getDefaultInstance()) return this;
if (other.hasStatus()) {
setStatus(other.getStatus());
}
if (conditionsBuilder_ == null) {
if (!other.conditions_.isEmpty()) {
if (conditions_.isEmpty()) {
conditions_ = other.conditions_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureConditionsIsMutable();
conditions_.addAll(other.conditions_);
}
onChanged();
}
} else {
if (!other.conditions_.isEmpty()) {
if (conditionsBuilder_.isEmpty()) {
conditionsBuilder_.dispose();
conditionsBuilder_ = null;
conditions_ = other.conditions_;
bitField0_ = (bitField0_ & ~0x00000002);
conditionsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getConditionsFieldBuilder() : null;
} else {
conditionsBuilder_.addAllMessages(other.conditions_);
}
}
}
if (periodsBuilder_ == null) {
if (!other.periods_.isEmpty()) {
if (periods_.isEmpty()) {
periods_ = other.periods_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensurePeriodsIsMutable();
periods_.addAll(other.periods_);
}
onChanged();
}
} else {
if (!other.periods_.isEmpty()) {
if (periodsBuilder_.isEmpty()) {
periodsBuilder_.dispose();
periodsBuilder_ = null;
periods_ = other.periods_;
bitField0_ = (bitField0_ & ~0x00000004);
periodsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getPeriodsFieldBuilder() : null;
} else {
periodsBuilder_.addAllMessages(other.periods_);
}
}
}
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.WsQualityGates.ProjectStatusWsResponse.ProjectStatus parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int status_ = 1;
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Status status = 1;
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Status status = 1;
*/
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Status getStatus() {
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Status result = org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Status.valueOf(status_);
return result == null ? org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Status.OK : result;
}
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Status status = 1;
*/
public Builder setStatus(org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Status value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
status_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Status status = 1;
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
status_ = 1;
onChanged();
return this;
}
private java.util.List conditions_ =
java.util.Collections.emptyList();
private void ensureConditionsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
conditions_ = new java.util.ArrayList(conditions_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition.Builder, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ConditionOrBuilder> conditionsBuilder_;
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
public java.util.List getConditionsList() {
if (conditionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(conditions_);
} else {
return conditionsBuilder_.getMessageList();
}
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
public int getConditionsCount() {
if (conditionsBuilder_ == null) {
return conditions_.size();
} else {
return conditionsBuilder_.getCount();
}
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition getConditions(int index) {
if (conditionsBuilder_ == null) {
return conditions_.get(index);
} else {
return conditionsBuilder_.getMessage(index);
}
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
public Builder setConditions(
int index, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition value) {
if (conditionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConditionsIsMutable();
conditions_.set(index, value);
onChanged();
} else {
conditionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
public Builder setConditions(
int index, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition.Builder builderForValue) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
conditions_.set(index, builderForValue.build());
onChanged();
} else {
conditionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
public Builder addConditions(org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition value) {
if (conditionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConditionsIsMutable();
conditions_.add(value);
onChanged();
} else {
conditionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
public Builder addConditions(
int index, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition value) {
if (conditionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConditionsIsMutable();
conditions_.add(index, value);
onChanged();
} else {
conditionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
public Builder addConditions(
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition.Builder builderForValue) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
conditions_.add(builderForValue.build());
onChanged();
} else {
conditionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
public Builder addConditions(
int index, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition.Builder builderForValue) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
conditions_.add(index, builderForValue.build());
onChanged();
} else {
conditionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
public Builder addAllConditions(
java.lang.Iterable extends org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition> values) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, conditions_);
onChanged();
} else {
conditionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
public Builder clearConditions() {
if (conditionsBuilder_ == null) {
conditions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
conditionsBuilder_.clear();
}
return this;
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
public Builder removeConditions(int index) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
conditions_.remove(index);
onChanged();
} else {
conditionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition.Builder getConditionsBuilder(
int index) {
return getConditionsFieldBuilder().getBuilder(index);
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ConditionOrBuilder getConditionsOrBuilder(
int index) {
if (conditionsBuilder_ == null) {
return conditions_.get(index); } else {
return conditionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
public java.util.List extends org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ConditionOrBuilder>
getConditionsOrBuilderList() {
if (conditionsBuilder_ != null) {
return conditionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(conditions_);
}
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition.Builder addConditionsBuilder() {
return getConditionsFieldBuilder().addBuilder(
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition.getDefaultInstance());
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition.Builder addConditionsBuilder(
int index) {
return getConditionsFieldBuilder().addBuilder(
index, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition.getDefaultInstance());
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition conditions = 2;
*/
public java.util.List
getConditionsBuilderList() {
return getConditionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition.Builder, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ConditionOrBuilder>
getConditionsFieldBuilder() {
if (conditionsBuilder_ == null) {
conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition.Builder, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ConditionOrBuilder>(
conditions_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
conditions_ = null;
}
return conditionsBuilder_;
}
private java.util.List periods_ =
java.util.Collections.emptyList();
private void ensurePeriodsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
periods_ = new java.util.ArrayList(periods_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period.Builder, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.PeriodOrBuilder> periodsBuilder_;
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
public java.util.List getPeriodsList() {
if (periodsBuilder_ == null) {
return java.util.Collections.unmodifiableList(periods_);
} else {
return periodsBuilder_.getMessageList();
}
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
public int getPeriodsCount() {
if (periodsBuilder_ == null) {
return periods_.size();
} else {
return periodsBuilder_.getCount();
}
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period getPeriods(int index) {
if (periodsBuilder_ == null) {
return periods_.get(index);
} else {
return periodsBuilder_.getMessage(index);
}
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
public Builder setPeriods(
int index, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period value) {
if (periodsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePeriodsIsMutable();
periods_.set(index, value);
onChanged();
} else {
periodsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
public Builder setPeriods(
int index, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period.Builder builderForValue) {
if (periodsBuilder_ == null) {
ensurePeriodsIsMutable();
periods_.set(index, builderForValue.build());
onChanged();
} else {
periodsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
public Builder addPeriods(org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period value) {
if (periodsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePeriodsIsMutable();
periods_.add(value);
onChanged();
} else {
periodsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
public Builder addPeriods(
int index, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period value) {
if (periodsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePeriodsIsMutable();
periods_.add(index, value);
onChanged();
} else {
periodsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
public Builder addPeriods(
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period.Builder builderForValue) {
if (periodsBuilder_ == null) {
ensurePeriodsIsMutable();
periods_.add(builderForValue.build());
onChanged();
} else {
periodsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
public Builder addPeriods(
int index, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period.Builder builderForValue) {
if (periodsBuilder_ == null) {
ensurePeriodsIsMutable();
periods_.add(index, builderForValue.build());
onChanged();
} else {
periodsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
public Builder addAllPeriods(
java.lang.Iterable extends org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period> values) {
if (periodsBuilder_ == null) {
ensurePeriodsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, periods_);
onChanged();
} else {
periodsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
public Builder clearPeriods() {
if (periodsBuilder_ == null) {
periods_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
periodsBuilder_.clear();
}
return this;
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
public Builder removePeriods(int index) {
if (periodsBuilder_ == null) {
ensurePeriodsIsMutable();
periods_.remove(index);
onChanged();
} else {
periodsBuilder_.remove(index);
}
return this;
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period.Builder getPeriodsBuilder(
int index) {
return getPeriodsFieldBuilder().getBuilder(index);
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.PeriodOrBuilder getPeriodsOrBuilder(
int index) {
if (periodsBuilder_ == null) {
return periods_.get(index); } else {
return periodsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
public java.util.List extends org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.PeriodOrBuilder>
getPeriodsOrBuilderList() {
if (periodsBuilder_ != null) {
return periodsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(periods_);
}
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period.Builder addPeriodsBuilder() {
return getPeriodsFieldBuilder().addBuilder(
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period.getDefaultInstance());
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period.Builder addPeriodsBuilder(
int index) {
return getPeriodsFieldBuilder().addBuilder(
index, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period.getDefaultInstance());
}
/**
* repeated .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period periods = 3;
*/
public java.util.List
getPeriodsBuilderList() {
return getPeriodsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period.Builder, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.PeriodOrBuilder>
getPeriodsFieldBuilder() {
if (periodsBuilder_ == null) {
periodsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period.Builder, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.PeriodOrBuilder>(
periods_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
periods_ = null;
}
return periodsBuilder_;
}
// @@protoc_insertion_point(builder_scope:sonarqube.ws.qualitygate.ProjectStatusWsResponse.ProjectStatus)
}
// @@protoc_insertion_point(class_scope:sonarqube.ws.qualitygate.ProjectStatusWsResponse.ProjectStatus)
private static final org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus();
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ProjectStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new ProjectStatus(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.WsQualityGates.ProjectStatusWsResponse.ProjectStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConditionOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition)
com.google.protobuf.MessageOrBuilder {
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Status status = 1;
*/
boolean hasStatus();
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Status status = 1;
*/
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Status getStatus();
/**
* optional string metricKey = 2;
*/
boolean hasMetricKey();
/**
* optional string metricKey = 2;
*/
java.lang.String getMetricKey();
/**
* optional string metricKey = 2;
*/
com.google.protobuf.ByteString
getMetricKeyBytes();
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Comparator comparator = 3;
*/
boolean hasComparator();
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Comparator comparator = 3;
*/
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Comparator getComparator();
/**
* optional int32 periodIndex = 4;
*/
boolean hasPeriodIndex();
/**
* optional int32 periodIndex = 4;
*/
int getPeriodIndex();
/**
* optional string warningThreshold = 5;
*/
boolean hasWarningThreshold();
/**
* optional string warningThreshold = 5;
*/
java.lang.String getWarningThreshold();
/**
* optional string warningThreshold = 5;
*/
com.google.protobuf.ByteString
getWarningThresholdBytes();
/**
* optional string errorThreshold = 6;
*/
boolean hasErrorThreshold();
/**
* optional string errorThreshold = 6;
*/
java.lang.String getErrorThreshold();
/**
* optional string errorThreshold = 6;
*/
com.google.protobuf.ByteString
getErrorThresholdBytes();
/**
* optional string actualValue = 7;
*/
boolean hasActualValue();
/**
* optional string actualValue = 7;
*/
java.lang.String getActualValue();
/**
* optional string actualValue = 7;
*/
com.google.protobuf.ByteString
getActualValueBytes();
}
/**
* Protobuf type {@code sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition}
*/
public static final class Condition extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition)
ConditionOrBuilder {
// Use Condition.newBuilder() to construct.
private Condition(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Condition() {
status_ = 1;
metricKey_ = "";
comparator_ = 1;
periodIndex_ = 0;
warningThreshold_ = "";
errorThreshold_ = "";
actualValue_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Condition(
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 8: {
int rawValue = input.readEnum();
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Status value = org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Status.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
status_ = rawValue;
}
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
metricKey_ = bs;
break;
}
case 24: {
int rawValue = input.readEnum();
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Comparator value = org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Comparator.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(3, rawValue);
} else {
bitField0_ |= 0x00000004;
comparator_ = rawValue;
}
break;
}
case 32: {
bitField0_ |= 0x00000008;
periodIndex_ = input.readInt32();
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
warningThreshold_ = bs;
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
errorThreshold_ = bs;
break;
}
case 58: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000040;
actualValue_ = 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.WsQualityGates.internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_Condition_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsQualityGates.internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_Condition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition.class, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition.Builder.class);
}
private int bitField0_;
public static final int STATUS_FIELD_NUMBER = 1;
private int status_;
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Status status = 1;
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Status status = 1;
*/
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Status getStatus() {
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Status result = org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Status.valueOf(status_);
return result == null ? org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Status.OK : result;
}
public static final int METRICKEY_FIELD_NUMBER = 2;
private volatile java.lang.Object metricKey_;
/**
* optional string metricKey = 2;
*/
public boolean hasMetricKey() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string metricKey = 2;
*/
public java.lang.String getMetricKey() {
java.lang.Object ref = metricKey_;
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()) {
metricKey_ = s;
}
return s;
}
}
/**
* optional string metricKey = 2;
*/
public com.google.protobuf.ByteString
getMetricKeyBytes() {
java.lang.Object ref = metricKey_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
metricKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMPARATOR_FIELD_NUMBER = 3;
private int comparator_;
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Comparator comparator = 3;
*/
public boolean hasComparator() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Comparator comparator = 3;
*/
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Comparator getComparator() {
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Comparator result = org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Comparator.valueOf(comparator_);
return result == null ? org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Comparator.GT : result;
}
public static final int PERIODINDEX_FIELD_NUMBER = 4;
private int periodIndex_;
/**
* optional int32 periodIndex = 4;
*/
public boolean hasPeriodIndex() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional int32 periodIndex = 4;
*/
public int getPeriodIndex() {
return periodIndex_;
}
public static final int WARNINGTHRESHOLD_FIELD_NUMBER = 5;
private volatile java.lang.Object warningThreshold_;
/**
* optional string warningThreshold = 5;
*/
public boolean hasWarningThreshold() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string warningThreshold = 5;
*/
public java.lang.String getWarningThreshold() {
java.lang.Object ref = warningThreshold_;
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()) {
warningThreshold_ = s;
}
return s;
}
}
/**
* optional string warningThreshold = 5;
*/
public com.google.protobuf.ByteString
getWarningThresholdBytes() {
java.lang.Object ref = warningThreshold_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
warningThreshold_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ERRORTHRESHOLD_FIELD_NUMBER = 6;
private volatile java.lang.Object errorThreshold_;
/**
* optional string errorThreshold = 6;
*/
public boolean hasErrorThreshold() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string errorThreshold = 6;
*/
public java.lang.String getErrorThreshold() {
java.lang.Object ref = errorThreshold_;
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()) {
errorThreshold_ = s;
}
return s;
}
}
/**
* optional string errorThreshold = 6;
*/
public com.google.protobuf.ByteString
getErrorThresholdBytes() {
java.lang.Object ref = errorThreshold_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorThreshold_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ACTUALVALUE_FIELD_NUMBER = 7;
private volatile java.lang.Object actualValue_;
/**
* optional string actualValue = 7;
*/
public boolean hasActualValue() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional string actualValue = 7;
*/
public java.lang.String getActualValue() {
java.lang.Object ref = actualValue_;
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()) {
actualValue_ = s;
}
return s;
}
}
/**
* optional string actualValue = 7;
*/
public com.google.protobuf.ByteString
getActualValueBytes() {
java.lang.Object ref = actualValue_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
actualValue_ = 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)) {
output.writeEnum(1, status_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, metricKey_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeEnum(3, comparator_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(4, periodIndex_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
com.google.protobuf.GeneratedMessage.writeString(output, 5, warningThreshold_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
com.google.protobuf.GeneratedMessage.writeString(output, 6, errorThreshold_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
com.google.protobuf.GeneratedMessage.writeString(output, 7, actualValue_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, status_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, metricKey_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, comparator_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, periodIndex_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(5, warningThreshold_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(6, errorThreshold_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(7, actualValue_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition 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.WsQualityGates.ProjectStatusWsResponse.Condition parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition 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.WsQualityGates.ProjectStatusWsResponse.Condition 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.qualitygate.ProjectStatusWsResponse.Condition}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition)
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ConditionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.WsQualityGates.internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_Condition_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsQualityGates.internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_Condition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition.class, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition.Builder.class);
}
// Construct using org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition.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();
status_ = 1;
bitField0_ = (bitField0_ & ~0x00000001);
metricKey_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
comparator_ = 1;
bitField0_ = (bitField0_ & ~0x00000004);
periodIndex_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
warningThreshold_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
errorThreshold_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
actualValue_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.WsQualityGates.internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_Condition_descriptor;
}
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition getDefaultInstanceForType() {
return org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition.getDefaultInstance();
}
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition build() {
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition buildPartial() {
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition result = new org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.status_ = status_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.metricKey_ = metricKey_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.comparator_ = comparator_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.periodIndex_ = periodIndex_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.warningThreshold_ = warningThreshold_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.errorThreshold_ = errorThreshold_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.actualValue_ = actualValue_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition) {
return mergeFrom((org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition other) {
if (other == org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition.getDefaultInstance()) return this;
if (other.hasStatus()) {
setStatus(other.getStatus());
}
if (other.hasMetricKey()) {
bitField0_ |= 0x00000002;
metricKey_ = other.metricKey_;
onChanged();
}
if (other.hasComparator()) {
setComparator(other.getComparator());
}
if (other.hasPeriodIndex()) {
setPeriodIndex(other.getPeriodIndex());
}
if (other.hasWarningThreshold()) {
bitField0_ |= 0x00000010;
warningThreshold_ = other.warningThreshold_;
onChanged();
}
if (other.hasErrorThreshold()) {
bitField0_ |= 0x00000020;
errorThreshold_ = other.errorThreshold_;
onChanged();
}
if (other.hasActualValue()) {
bitField0_ |= 0x00000040;
actualValue_ = other.actualValue_;
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.WsQualityGates.ProjectStatusWsResponse.Condition parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int status_ = 1;
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Status status = 1;
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Status status = 1;
*/
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Status getStatus() {
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Status result = org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Status.valueOf(status_);
return result == null ? org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Status.OK : result;
}
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Status status = 1;
*/
public Builder setStatus(org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Status value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
status_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Status status = 1;
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
status_ = 1;
onChanged();
return this;
}
private java.lang.Object metricKey_ = "";
/**
* optional string metricKey = 2;
*/
public boolean hasMetricKey() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string metricKey = 2;
*/
public java.lang.String getMetricKey() {
java.lang.Object ref = metricKey_;
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()) {
metricKey_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string metricKey = 2;
*/
public com.google.protobuf.ByteString
getMetricKeyBytes() {
java.lang.Object ref = metricKey_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
metricKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string metricKey = 2;
*/
public Builder setMetricKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
metricKey_ = value;
onChanged();
return this;
}
/**
* optional string metricKey = 2;
*/
public Builder clearMetricKey() {
bitField0_ = (bitField0_ & ~0x00000002);
metricKey_ = getDefaultInstance().getMetricKey();
onChanged();
return this;
}
/**
* optional string metricKey = 2;
*/
public Builder setMetricKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
metricKey_ = value;
onChanged();
return this;
}
private int comparator_ = 1;
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Comparator comparator = 3;
*/
public boolean hasComparator() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Comparator comparator = 3;
*/
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Comparator getComparator() {
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Comparator result = org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Comparator.valueOf(comparator_);
return result == null ? org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Comparator.GT : result;
}
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Comparator comparator = 3;
*/
public Builder setComparator(org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Comparator value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
comparator_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.Comparator comparator = 3;
*/
public Builder clearComparator() {
bitField0_ = (bitField0_ & ~0x00000004);
comparator_ = 1;
onChanged();
return this;
}
private int periodIndex_ ;
/**
* optional int32 periodIndex = 4;
*/
public boolean hasPeriodIndex() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional int32 periodIndex = 4;
*/
public int getPeriodIndex() {
return periodIndex_;
}
/**
* optional int32 periodIndex = 4;
*/
public Builder setPeriodIndex(int value) {
bitField0_ |= 0x00000008;
periodIndex_ = value;
onChanged();
return this;
}
/**
* optional int32 periodIndex = 4;
*/
public Builder clearPeriodIndex() {
bitField0_ = (bitField0_ & ~0x00000008);
periodIndex_ = 0;
onChanged();
return this;
}
private java.lang.Object warningThreshold_ = "";
/**
* optional string warningThreshold = 5;
*/
public boolean hasWarningThreshold() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string warningThreshold = 5;
*/
public java.lang.String getWarningThreshold() {
java.lang.Object ref = warningThreshold_;
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()) {
warningThreshold_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string warningThreshold = 5;
*/
public com.google.protobuf.ByteString
getWarningThresholdBytes() {
java.lang.Object ref = warningThreshold_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
warningThreshold_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string warningThreshold = 5;
*/
public Builder setWarningThreshold(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
warningThreshold_ = value;
onChanged();
return this;
}
/**
* optional string warningThreshold = 5;
*/
public Builder clearWarningThreshold() {
bitField0_ = (bitField0_ & ~0x00000010);
warningThreshold_ = getDefaultInstance().getWarningThreshold();
onChanged();
return this;
}
/**
* optional string warningThreshold = 5;
*/
public Builder setWarningThresholdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
warningThreshold_ = value;
onChanged();
return this;
}
private java.lang.Object errorThreshold_ = "";
/**
* optional string errorThreshold = 6;
*/
public boolean hasErrorThreshold() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string errorThreshold = 6;
*/
public java.lang.String getErrorThreshold() {
java.lang.Object ref = errorThreshold_;
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()) {
errorThreshold_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string errorThreshold = 6;
*/
public com.google.protobuf.ByteString
getErrorThresholdBytes() {
java.lang.Object ref = errorThreshold_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorThreshold_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string errorThreshold = 6;
*/
public Builder setErrorThreshold(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
errorThreshold_ = value;
onChanged();
return this;
}
/**
* optional string errorThreshold = 6;
*/
public Builder clearErrorThreshold() {
bitField0_ = (bitField0_ & ~0x00000020);
errorThreshold_ = getDefaultInstance().getErrorThreshold();
onChanged();
return this;
}
/**
* optional string errorThreshold = 6;
*/
public Builder setErrorThresholdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
errorThreshold_ = value;
onChanged();
return this;
}
private java.lang.Object actualValue_ = "";
/**
* optional string actualValue = 7;
*/
public boolean hasActualValue() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional string actualValue = 7;
*/
public java.lang.String getActualValue() {
java.lang.Object ref = actualValue_;
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()) {
actualValue_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string actualValue = 7;
*/
public com.google.protobuf.ByteString
getActualValueBytes() {
java.lang.Object ref = actualValue_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
actualValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string actualValue = 7;
*/
public Builder setActualValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
actualValue_ = value;
onChanged();
return this;
}
/**
* optional string actualValue = 7;
*/
public Builder clearActualValue() {
bitField0_ = (bitField0_ & ~0x00000040);
actualValue_ = getDefaultInstance().getActualValue();
onChanged();
return this;
}
/**
* optional string actualValue = 7;
*/
public Builder setActualValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
actualValue_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition)
}
// @@protoc_insertion_point(class_scope:sonarqube.ws.qualitygate.ProjectStatusWsResponse.Condition)
private static final org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition();
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Condition getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Condition parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new Condition(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.WsQualityGates.ProjectStatusWsResponse.Condition getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PeriodOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 index = 1;
*/
boolean hasIndex();
/**
* optional int32 index = 1;
*/
int getIndex();
/**
* optional string mode = 2;
*/
boolean hasMode();
/**
* optional string mode = 2;
*/
java.lang.String getMode();
/**
* optional string mode = 2;
*/
com.google.protobuf.ByteString
getModeBytes();
/**
* optional string date = 3;
*/
boolean hasDate();
/**
* optional string date = 3;
*/
java.lang.String getDate();
/**
* optional string date = 3;
*/
com.google.protobuf.ByteString
getDateBytes();
/**
* optional string parameter = 4;
*/
boolean hasParameter();
/**
* optional string parameter = 4;
*/
java.lang.String getParameter();
/**
* optional string parameter = 4;
*/
com.google.protobuf.ByteString
getParameterBytes();
}
/**
* Protobuf type {@code sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period}
*/
public static final class Period extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period)
PeriodOrBuilder {
// Use Period.newBuilder() to construct.
private Period(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Period() {
index_ = 0;
mode_ = "";
date_ = "";
parameter_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Period(
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 8: {
bitField0_ |= 0x00000001;
index_ = input.readInt32();
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
mode_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
date_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
parameter_ = 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.WsQualityGates.internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_Period_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsQualityGates.internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_Period_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period.class, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period.Builder.class);
}
private int bitField0_;
public static final int INDEX_FIELD_NUMBER = 1;
private int index_;
/**
* optional int32 index = 1;
*/
public boolean hasIndex() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 index = 1;
*/
public int getIndex() {
return index_;
}
public static final int MODE_FIELD_NUMBER = 2;
private volatile java.lang.Object mode_;
/**
* optional string mode = 2;
*/
public boolean hasMode() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string mode = 2;
*/
public java.lang.String getMode() {
java.lang.Object ref = mode_;
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()) {
mode_ = s;
}
return s;
}
}
/**
* optional string mode = 2;
*/
public com.google.protobuf.ByteString
getModeBytes() {
java.lang.Object ref = mode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATE_FIELD_NUMBER = 3;
private volatile java.lang.Object date_;
/**
* optional string date = 3;
*/
public boolean hasDate() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string date = 3;
*/
public java.lang.String getDate() {
java.lang.Object ref = date_;
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()) {
date_ = s;
}
return s;
}
}
/**
* optional string date = 3;
*/
public com.google.protobuf.ByteString
getDateBytes() {
java.lang.Object ref = date_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
date_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARAMETER_FIELD_NUMBER = 4;
private volatile java.lang.Object parameter_;
/**
* optional string parameter = 4;
*/
public boolean hasParameter() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string parameter = 4;
*/
public java.lang.String getParameter() {
java.lang.Object ref = parameter_;
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()) {
parameter_ = s;
}
return s;
}
}
/**
* optional string parameter = 4;
*/
public com.google.protobuf.ByteString
getParameterBytes() {
java.lang.Object ref = parameter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
parameter_ = 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)) {
output.writeInt32(1, index_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, mode_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, date_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
com.google.protobuf.GeneratedMessage.writeString(output, 4, parameter_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, index_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, mode_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(3, date_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(4, parameter_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period 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.WsQualityGates.ProjectStatusWsResponse.Period parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period 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.WsQualityGates.ProjectStatusWsResponse.Period 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.qualitygate.ProjectStatusWsResponse.Period}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period)
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.PeriodOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.WsQualityGates.internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_Period_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsQualityGates.internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_Period_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period.class, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period.Builder.class);
}
// Construct using org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period.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();
index_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
mode_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
date_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
parameter_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.WsQualityGates.internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_Period_descriptor;
}
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period getDefaultInstanceForType() {
return org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period.getDefaultInstance();
}
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period build() {
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period buildPartial() {
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period result = new org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.index_ = index_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.mode_ = mode_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.date_ = date_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.parameter_ = parameter_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period) {
return mergeFrom((org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period other) {
if (other == org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period.getDefaultInstance()) return this;
if (other.hasIndex()) {
setIndex(other.getIndex());
}
if (other.hasMode()) {
bitField0_ |= 0x00000002;
mode_ = other.mode_;
onChanged();
}
if (other.hasDate()) {
bitField0_ |= 0x00000004;
date_ = other.date_;
onChanged();
}
if (other.hasParameter()) {
bitField0_ |= 0x00000008;
parameter_ = other.parameter_;
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.WsQualityGates.ProjectStatusWsResponse.Period parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int index_ ;
/**
* optional int32 index = 1;
*/
public boolean hasIndex() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 index = 1;
*/
public int getIndex() {
return index_;
}
/**
* optional int32 index = 1;
*/
public Builder setIndex(int value) {
bitField0_ |= 0x00000001;
index_ = value;
onChanged();
return this;
}
/**
* optional int32 index = 1;
*/
public Builder clearIndex() {
bitField0_ = (bitField0_ & ~0x00000001);
index_ = 0;
onChanged();
return this;
}
private java.lang.Object mode_ = "";
/**
* optional string mode = 2;
*/
public boolean hasMode() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string mode = 2;
*/
public java.lang.String getMode() {
java.lang.Object ref = mode_;
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()) {
mode_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string mode = 2;
*/
public com.google.protobuf.ByteString
getModeBytes() {
java.lang.Object ref = mode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string mode = 2;
*/
public Builder setMode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
mode_ = value;
onChanged();
return this;
}
/**
* optional string mode = 2;
*/
public Builder clearMode() {
bitField0_ = (bitField0_ & ~0x00000002);
mode_ = getDefaultInstance().getMode();
onChanged();
return this;
}
/**
* optional string mode = 2;
*/
public Builder setModeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
mode_ = value;
onChanged();
return this;
}
private java.lang.Object date_ = "";
/**
* optional string date = 3;
*/
public boolean hasDate() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string date = 3;
*/
public java.lang.String getDate() {
java.lang.Object ref = date_;
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()) {
date_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string date = 3;
*/
public com.google.protobuf.ByteString
getDateBytes() {
java.lang.Object ref = date_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
date_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string date = 3;
*/
public Builder setDate(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
date_ = value;
onChanged();
return this;
}
/**
* optional string date = 3;
*/
public Builder clearDate() {
bitField0_ = (bitField0_ & ~0x00000004);
date_ = getDefaultInstance().getDate();
onChanged();
return this;
}
/**
* optional string date = 3;
*/
public Builder setDateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
date_ = value;
onChanged();
return this;
}
private java.lang.Object parameter_ = "";
/**
* optional string parameter = 4;
*/
public boolean hasParameter() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string parameter = 4;
*/
public java.lang.String getParameter() {
java.lang.Object ref = parameter_;
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()) {
parameter_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string parameter = 4;
*/
public com.google.protobuf.ByteString
getParameterBytes() {
java.lang.Object ref = parameter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
parameter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string parameter = 4;
*/
public Builder setParameter(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
parameter_ = value;
onChanged();
return this;
}
/**
* optional string parameter = 4;
*/
public Builder clearParameter() {
bitField0_ = (bitField0_ & ~0x00000008);
parameter_ = getDefaultInstance().getParameter();
onChanged();
return this;
}
/**
* optional string parameter = 4;
*/
public Builder setParameterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
parameter_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period)
}
// @@protoc_insertion_point(class_scope:sonarqube.ws.qualitygate.ProjectStatusWsResponse.Period)
private static final org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period();
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Period getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Period parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new Period(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.WsQualityGates.ProjectStatusWsResponse.Period getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int PROJECTSTATUS_FIELD_NUMBER = 1;
private org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus projectStatus_;
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.ProjectStatus projectStatus = 1;
*/
public boolean hasProjectStatus() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.ProjectStatus projectStatus = 1;
*/
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus getProjectStatus() {
return projectStatus_ == null ? org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus.getDefaultInstance() : projectStatus_;
}
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.ProjectStatus projectStatus = 1;
*/
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatusOrBuilder getProjectStatusOrBuilder() {
return projectStatus_ == null ? org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus.getDefaultInstance() : projectStatus_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getProjectStatus());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getProjectStatus());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse 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.WsQualityGates.ProjectStatusWsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse 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.WsQualityGates.ProjectStatusWsResponse 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.qualitygate.ProjectStatusWsResponse}
*
*
* GET api/qualitygates/project_status
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:sonarqube.ws.qualitygate.ProjectStatusWsResponse)
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.WsQualityGates.internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsQualityGates.internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.class, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.Builder.class);
}
// Construct using org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getProjectStatusFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (projectStatusBuilder_ == null) {
projectStatus_ = null;
} else {
projectStatusBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.WsQualityGates.internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_descriptor;
}
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse getDefaultInstanceForType() {
return org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.getDefaultInstance();
}
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse build() {
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse buildPartial() {
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse result = new org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (projectStatusBuilder_ == null) {
result.projectStatus_ = projectStatus_;
} else {
result.projectStatus_ = projectStatusBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse) {
return mergeFrom((org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse other) {
if (other == org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.getDefaultInstance()) return this;
if (other.hasProjectStatus()) {
mergeProjectStatus(other.getProjectStatus());
}
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.WsQualityGates.ProjectStatusWsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus projectStatus_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus.Builder, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatusOrBuilder> projectStatusBuilder_;
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.ProjectStatus projectStatus = 1;
*/
public boolean hasProjectStatus() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.ProjectStatus projectStatus = 1;
*/
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus getProjectStatus() {
if (projectStatusBuilder_ == null) {
return projectStatus_ == null ? org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus.getDefaultInstance() : projectStatus_;
} else {
return projectStatusBuilder_.getMessage();
}
}
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.ProjectStatus projectStatus = 1;
*/
public Builder setProjectStatus(org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus value) {
if (projectStatusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
projectStatus_ = value;
onChanged();
} else {
projectStatusBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.ProjectStatus projectStatus = 1;
*/
public Builder setProjectStatus(
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus.Builder builderForValue) {
if (projectStatusBuilder_ == null) {
projectStatus_ = builderForValue.build();
onChanged();
} else {
projectStatusBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.ProjectStatus projectStatus = 1;
*/
public Builder mergeProjectStatus(org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus value) {
if (projectStatusBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
projectStatus_ != null &&
projectStatus_ != org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus.getDefaultInstance()) {
projectStatus_ =
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus.newBuilder(projectStatus_).mergeFrom(value).buildPartial();
} else {
projectStatus_ = value;
}
onChanged();
} else {
projectStatusBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.ProjectStatus projectStatus = 1;
*/
public Builder clearProjectStatus() {
if (projectStatusBuilder_ == null) {
projectStatus_ = null;
onChanged();
} else {
projectStatusBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.ProjectStatus projectStatus = 1;
*/
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus.Builder getProjectStatusBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getProjectStatusFieldBuilder().getBuilder();
}
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.ProjectStatus projectStatus = 1;
*/
public org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatusOrBuilder getProjectStatusOrBuilder() {
if (projectStatusBuilder_ != null) {
return projectStatusBuilder_.getMessageOrBuilder();
} else {
return projectStatus_ == null ?
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus.getDefaultInstance() : projectStatus_;
}
}
/**
* optional .sonarqube.ws.qualitygate.ProjectStatusWsResponse.ProjectStatus projectStatus = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus.Builder, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatusOrBuilder>
getProjectStatusFieldBuilder() {
if (projectStatusBuilder_ == null) {
projectStatusBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatus.Builder, org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse.ProjectStatusOrBuilder>(
getProjectStatus(),
getParentForChildren(),
isClean());
projectStatus_ = null;
}
return projectStatusBuilder_;
}
// @@protoc_insertion_point(builder_scope:sonarqube.ws.qualitygate.ProjectStatusWsResponse)
}
// @@protoc_insertion_point(class_scope:sonarqube.ws.qualitygate.ProjectStatusWsResponse)
private static final org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse();
}
public static org.sonarqube.ws.WsQualityGates.ProjectStatusWsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ProjectStatusWsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new ProjectStatusWsResponse(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.WsQualityGates.ProjectStatusWsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_ProjectStatus_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_ProjectStatus_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_Condition_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_Condition_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_Period_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_Period_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\025ws-qualitygates.proto\022\030sonarqube.ws.qu" +
"alitygate\"\251\006\n\027ProjectStatusWsResponse\022V\n" +
"\rprojectStatus\030\001 \001(\0132?.sonarqube.ws.qual" +
"itygate.ProjectStatusWsResponse.ProjectS" +
"tatus\032\365\001\n\rProjectStatus\022H\n\006status\030\001 \001(\0162" +
"8.sonarqube.ws.qualitygate.ProjectStatus" +
"WsResponse.Status\022O\n\nconditions\030\002 \003(\0132;." +
"sonarqube.ws.qualitygate.ProjectStatusWs" +
"Response.Condition\022I\n\007periods\030\003 \003(\01328.so" +
"narqube.ws.qualitygate.ProjectStatusWsRe",
"sponse.Period\032\226\002\n\tCondition\022H\n\006status\030\001 " +
"\001(\01628.sonarqube.ws.qualitygate.ProjectSt" +
"atusWsResponse.Status\022\021\n\tmetricKey\030\002 \001(\t" +
"\022P\n\ncomparator\030\003 \001(\0162<.sonarqube.ws.qual" +
"itygate.ProjectStatusWsResponse.Comparat" +
"or\022\023\n\013periodIndex\030\004 \001(\005\022\030\n\020warningThresh" +
"old\030\005 \001(\t\022\026\n\016errorThreshold\030\006 \001(\t\022\023\n\013act" +
"ualValue\030\007 \001(\t\032F\n\006Period\022\r\n\005index\030\001 \001(\005\022" +
"\014\n\004mode\030\002 \001(\t\022\014\n\004date\030\003 \001(\t\022\021\n\tparameter" +
"\030\004 \001(\t\"/\n\006Status\022\006\n\002OK\020\001\022\010\n\004WARN\020\002\022\t\n\005ER",
"ROR\020\003\022\010\n\004NONE\020\004\",\n\nComparator\022\006\n\002GT\020\001\022\006\n" +
"\002LT\020\002\022\006\n\002EQ\020\003\022\006\n\002NE\020\004B$\n\020org.sonarqube.w" +
"sB\016WsQualityGatesH\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_qualitygate_ProjectStatusWsResponse_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_descriptor,
new java.lang.String[] { "ProjectStatus", });
internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_ProjectStatus_descriptor =
internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_descriptor.getNestedTypes().get(0);
internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_ProjectStatus_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_ProjectStatus_descriptor,
new java.lang.String[] { "Status", "Conditions", "Periods", });
internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_Condition_descriptor =
internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_descriptor.getNestedTypes().get(1);
internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_Condition_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_Condition_descriptor,
new java.lang.String[] { "Status", "MetricKey", "Comparator", "PeriodIndex", "WarningThreshold", "ErrorThreshold", "ActualValue", });
internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_Period_descriptor =
internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_descriptor.getNestedTypes().get(2);
internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_Period_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_qualitygate_ProjectStatusWsResponse_Period_descriptor,
new java.lang.String[] { "Index", "Mode", "Date", "Parameter", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy