
org.sonarqube.ws.WsMeasures 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-measures.proto
package org.sonarqube.ws;
public final class WsMeasures {
private WsMeasures() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface ComponentTreeWsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.measures.ComponentTreeWsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* optional .sonarqube.ws.commons.Paging paging = 1;
*/
boolean hasPaging();
/**
* optional .sonarqube.ws.commons.Paging paging = 1;
*/
org.sonarqube.ws.Common.Paging getPaging();
/**
* optional .sonarqube.ws.commons.Paging paging = 1;
*/
org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder();
/**
* optional .sonarqube.ws.measures.Component baseComponent = 2;
*/
boolean hasBaseComponent();
/**
* optional .sonarqube.ws.measures.Component baseComponent = 2;
*/
org.sonarqube.ws.WsMeasures.Component getBaseComponent();
/**
* optional .sonarqube.ws.measures.Component baseComponent = 2;
*/
org.sonarqube.ws.WsMeasures.ComponentOrBuilder getBaseComponentOrBuilder();
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
java.util.List
getComponentsList();
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
org.sonarqube.ws.WsMeasures.Component getComponents(int index);
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
int getComponentsCount();
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
java.util.List extends org.sonarqube.ws.WsMeasures.ComponentOrBuilder>
getComponentsOrBuilderList();
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
org.sonarqube.ws.WsMeasures.ComponentOrBuilder getComponentsOrBuilder(
int index);
/**
* optional .sonarqube.ws.measures.Metrics metrics = 4;
*/
boolean hasMetrics();
/**
* optional .sonarqube.ws.measures.Metrics metrics = 4;
*/
org.sonarqube.ws.WsMeasures.Metrics getMetrics();
/**
* optional .sonarqube.ws.measures.Metrics metrics = 4;
*/
org.sonarqube.ws.WsMeasures.MetricsOrBuilder getMetricsOrBuilder();
/**
* optional .sonarqube.ws.measures.Periods periods = 5;
*/
boolean hasPeriods();
/**
* optional .sonarqube.ws.measures.Periods periods = 5;
*/
org.sonarqube.ws.WsMeasures.Periods getPeriods();
/**
* optional .sonarqube.ws.measures.Periods periods = 5;
*/
org.sonarqube.ws.WsMeasures.PeriodsOrBuilder getPeriodsOrBuilder();
}
/**
* Protobuf type {@code sonarqube.ws.measures.ComponentTreeWsResponse}
*
*
* WS api/measures/component_tree
*
*/
public static final class ComponentTreeWsResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.measures.ComponentTreeWsResponse)
ComponentTreeWsResponseOrBuilder {
// Use ComponentTreeWsResponse.newBuilder() to construct.
private ComponentTreeWsResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ComponentTreeWsResponse() {
components_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ComponentTreeWsResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.sonarqube.ws.Common.Paging.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = paging_.toBuilder();
}
paging_ = input.readMessage(org.sonarqube.ws.Common.Paging.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(paging_);
paging_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.sonarqube.ws.WsMeasures.Component.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = baseComponent_.toBuilder();
}
baseComponent_ = input.readMessage(org.sonarqube.ws.WsMeasures.Component.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(baseComponent_);
baseComponent_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
components_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
components_.add(input.readMessage(org.sonarqube.ws.WsMeasures.Component.parser(), extensionRegistry));
break;
}
case 34: {
org.sonarqube.ws.WsMeasures.Metrics.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = metrics_.toBuilder();
}
metrics_ = input.readMessage(org.sonarqube.ws.WsMeasures.Metrics.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metrics_);
metrics_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 42: {
org.sonarqube.ws.WsMeasures.Periods.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = periods_.toBuilder();
}
periods_ = input.readMessage(org.sonarqube.ws.WsMeasures.Periods.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(periods_);
periods_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
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_ & 0x00000004) == 0x00000004)) {
components_ = java.util.Collections.unmodifiableList(components_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_ComponentTreeWsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_ComponentTreeWsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse.class, org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse.Builder.class);
}
private int bitField0_;
public static final int PAGING_FIELD_NUMBER = 1;
private org.sonarqube.ws.Common.Paging paging_;
/**
* optional .sonarqube.ws.commons.Paging paging = 1;
*/
public boolean hasPaging() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .sonarqube.ws.commons.Paging paging = 1;
*/
public org.sonarqube.ws.Common.Paging getPaging() {
return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
}
/**
* optional .sonarqube.ws.commons.Paging paging = 1;
*/
public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() {
return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
}
public static final int BASECOMPONENT_FIELD_NUMBER = 2;
private org.sonarqube.ws.WsMeasures.Component baseComponent_;
/**
* optional .sonarqube.ws.measures.Component baseComponent = 2;
*/
public boolean hasBaseComponent() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .sonarqube.ws.measures.Component baseComponent = 2;
*/
public org.sonarqube.ws.WsMeasures.Component getBaseComponent() {
return baseComponent_ == null ? org.sonarqube.ws.WsMeasures.Component.getDefaultInstance() : baseComponent_;
}
/**
* optional .sonarqube.ws.measures.Component baseComponent = 2;
*/
public org.sonarqube.ws.WsMeasures.ComponentOrBuilder getBaseComponentOrBuilder() {
return baseComponent_ == null ? org.sonarqube.ws.WsMeasures.Component.getDefaultInstance() : baseComponent_;
}
public static final int COMPONENTS_FIELD_NUMBER = 3;
private java.util.List components_;
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
public java.util.List getComponentsList() {
return components_;
}
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
public java.util.List extends org.sonarqube.ws.WsMeasures.ComponentOrBuilder>
getComponentsOrBuilderList() {
return components_;
}
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
public int getComponentsCount() {
return components_.size();
}
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
public org.sonarqube.ws.WsMeasures.Component getComponents(int index) {
return components_.get(index);
}
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
public org.sonarqube.ws.WsMeasures.ComponentOrBuilder getComponentsOrBuilder(
int index) {
return components_.get(index);
}
public static final int METRICS_FIELD_NUMBER = 4;
private org.sonarqube.ws.WsMeasures.Metrics metrics_;
/**
* optional .sonarqube.ws.measures.Metrics metrics = 4;
*/
public boolean hasMetrics() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .sonarqube.ws.measures.Metrics metrics = 4;
*/
public org.sonarqube.ws.WsMeasures.Metrics getMetrics() {
return metrics_ == null ? org.sonarqube.ws.WsMeasures.Metrics.getDefaultInstance() : metrics_;
}
/**
* optional .sonarqube.ws.measures.Metrics metrics = 4;
*/
public org.sonarqube.ws.WsMeasures.MetricsOrBuilder getMetricsOrBuilder() {
return metrics_ == null ? org.sonarqube.ws.WsMeasures.Metrics.getDefaultInstance() : metrics_;
}
public static final int PERIODS_FIELD_NUMBER = 5;
private org.sonarqube.ws.WsMeasures.Periods periods_;
/**
* optional .sonarqube.ws.measures.Periods periods = 5;
*/
public boolean hasPeriods() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .sonarqube.ws.measures.Periods periods = 5;
*/
public org.sonarqube.ws.WsMeasures.Periods getPeriods() {
return periods_ == null ? org.sonarqube.ws.WsMeasures.Periods.getDefaultInstance() : periods_;
}
/**
* optional .sonarqube.ws.measures.Periods periods = 5;
*/
public org.sonarqube.ws.WsMeasures.PeriodsOrBuilder getPeriodsOrBuilder() {
return periods_ == null ? org.sonarqube.ws.WsMeasures.Periods.getDefaultInstance() : periods_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getPaging());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getBaseComponent());
}
for (int i = 0; i < components_.size(); i++) {
output.writeMessage(3, components_.get(i));
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(4, getMetrics());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(5, getPeriods());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getPaging());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getBaseComponent());
}
for (int i = 0; i < components_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, components_.get(i));
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getMetrics());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getPeriods());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse 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.WsMeasures.ComponentTreeWsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse 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.WsMeasures.ComponentTreeWsResponse 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.measures.ComponentTreeWsResponse}
*
*
* WS api/measures/component_tree
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:sonarqube.ws.measures.ComponentTreeWsResponse)
org.sonarqube.ws.WsMeasures.ComponentTreeWsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_ComponentTreeWsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_ComponentTreeWsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse.class, org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse.Builder.class);
}
// Construct using org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getPagingFieldBuilder();
getBaseComponentFieldBuilder();
getComponentsFieldBuilder();
getMetricsFieldBuilder();
getPeriodsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (pagingBuilder_ == null) {
paging_ = null;
} else {
pagingBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (baseComponentBuilder_ == null) {
baseComponent_ = null;
} else {
baseComponentBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (componentsBuilder_ == null) {
components_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
componentsBuilder_.clear();
}
if (metricsBuilder_ == null) {
metrics_ = null;
} else {
metricsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (periodsBuilder_ == null) {
periods_ = null;
} else {
periodsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_ComponentTreeWsResponse_descriptor;
}
public org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse getDefaultInstanceForType() {
return org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse.getDefaultInstance();
}
public org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse build() {
org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse buildPartial() {
org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse result = new org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (pagingBuilder_ == null) {
result.paging_ = paging_;
} else {
result.paging_ = pagingBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (baseComponentBuilder_ == null) {
result.baseComponent_ = baseComponent_;
} else {
result.baseComponent_ = baseComponentBuilder_.build();
}
if (componentsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
components_ = java.util.Collections.unmodifiableList(components_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.components_ = components_;
} else {
result.components_ = componentsBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000004;
}
if (metricsBuilder_ == null) {
result.metrics_ = metrics_;
} else {
result.metrics_ = metricsBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000008;
}
if (periodsBuilder_ == null) {
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.WsMeasures.ComponentTreeWsResponse) {
return mergeFrom((org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse other) {
if (other == org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse.getDefaultInstance()) return this;
if (other.hasPaging()) {
mergePaging(other.getPaging());
}
if (other.hasBaseComponent()) {
mergeBaseComponent(other.getBaseComponent());
}
if (componentsBuilder_ == null) {
if (!other.components_.isEmpty()) {
if (components_.isEmpty()) {
components_ = other.components_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureComponentsIsMutable();
components_.addAll(other.components_);
}
onChanged();
}
} else {
if (!other.components_.isEmpty()) {
if (componentsBuilder_.isEmpty()) {
componentsBuilder_.dispose();
componentsBuilder_ = null;
components_ = other.components_;
bitField0_ = (bitField0_ & ~0x00000004);
componentsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getComponentsFieldBuilder() : null;
} else {
componentsBuilder_.addAllMessages(other.components_);
}
}
}
if (other.hasMetrics()) {
mergeMetrics(other.getMetrics());
}
if (other.hasPeriods()) {
mergePeriods(other.getPeriods());
}
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.WsMeasures.ComponentTreeWsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.sonarqube.ws.Common.Paging paging_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_;
/**
* optional .sonarqube.ws.commons.Paging paging = 1;
*/
public boolean hasPaging() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .sonarqube.ws.commons.Paging paging = 1;
*/
public org.sonarqube.ws.Common.Paging getPaging() {
if (pagingBuilder_ == null) {
return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
} else {
return pagingBuilder_.getMessage();
}
}
/**
* optional .sonarqube.ws.commons.Paging paging = 1;
*/
public Builder setPaging(org.sonarqube.ws.Common.Paging value) {
if (pagingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
paging_ = value;
onChanged();
} else {
pagingBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .sonarqube.ws.commons.Paging paging = 1;
*/
public Builder setPaging(
org.sonarqube.ws.Common.Paging.Builder builderForValue) {
if (pagingBuilder_ == null) {
paging_ = builderForValue.build();
onChanged();
} else {
pagingBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .sonarqube.ws.commons.Paging paging = 1;
*/
public Builder mergePaging(org.sonarqube.ws.Common.Paging value) {
if (pagingBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
paging_ != null &&
paging_ != org.sonarqube.ws.Common.Paging.getDefaultInstance()) {
paging_ =
org.sonarqube.ws.Common.Paging.newBuilder(paging_).mergeFrom(value).buildPartial();
} else {
paging_ = value;
}
onChanged();
} else {
pagingBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .sonarqube.ws.commons.Paging paging = 1;
*/
public Builder clearPaging() {
if (pagingBuilder_ == null) {
paging_ = null;
onChanged();
} else {
pagingBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .sonarqube.ws.commons.Paging paging = 1;
*/
public org.sonarqube.ws.Common.Paging.Builder getPagingBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getPagingFieldBuilder().getBuilder();
}
/**
* optional .sonarqube.ws.commons.Paging paging = 1;
*/
public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() {
if (pagingBuilder_ != null) {
return pagingBuilder_.getMessageOrBuilder();
} else {
return paging_ == null ?
org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
}
}
/**
* optional .sonarqube.ws.commons.Paging paging = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder>
getPagingFieldBuilder() {
if (pagingBuilder_ == null) {
pagingBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder>(
getPaging(),
getParentForChildren(),
isClean());
paging_ = null;
}
return pagingBuilder_;
}
private org.sonarqube.ws.WsMeasures.Component baseComponent_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.WsMeasures.Component, org.sonarqube.ws.WsMeasures.Component.Builder, org.sonarqube.ws.WsMeasures.ComponentOrBuilder> baseComponentBuilder_;
/**
* optional .sonarqube.ws.measures.Component baseComponent = 2;
*/
public boolean hasBaseComponent() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .sonarqube.ws.measures.Component baseComponent = 2;
*/
public org.sonarqube.ws.WsMeasures.Component getBaseComponent() {
if (baseComponentBuilder_ == null) {
return baseComponent_ == null ? org.sonarqube.ws.WsMeasures.Component.getDefaultInstance() : baseComponent_;
} else {
return baseComponentBuilder_.getMessage();
}
}
/**
* optional .sonarqube.ws.measures.Component baseComponent = 2;
*/
public Builder setBaseComponent(org.sonarqube.ws.WsMeasures.Component value) {
if (baseComponentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
baseComponent_ = value;
onChanged();
} else {
baseComponentBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .sonarqube.ws.measures.Component baseComponent = 2;
*/
public Builder setBaseComponent(
org.sonarqube.ws.WsMeasures.Component.Builder builderForValue) {
if (baseComponentBuilder_ == null) {
baseComponent_ = builderForValue.build();
onChanged();
} else {
baseComponentBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .sonarqube.ws.measures.Component baseComponent = 2;
*/
public Builder mergeBaseComponent(org.sonarqube.ws.WsMeasures.Component value) {
if (baseComponentBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
baseComponent_ != null &&
baseComponent_ != org.sonarqube.ws.WsMeasures.Component.getDefaultInstance()) {
baseComponent_ =
org.sonarqube.ws.WsMeasures.Component.newBuilder(baseComponent_).mergeFrom(value).buildPartial();
} else {
baseComponent_ = value;
}
onChanged();
} else {
baseComponentBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .sonarqube.ws.measures.Component baseComponent = 2;
*/
public Builder clearBaseComponent() {
if (baseComponentBuilder_ == null) {
baseComponent_ = null;
onChanged();
} else {
baseComponentBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .sonarqube.ws.measures.Component baseComponent = 2;
*/
public org.sonarqube.ws.WsMeasures.Component.Builder getBaseComponentBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getBaseComponentFieldBuilder().getBuilder();
}
/**
* optional .sonarqube.ws.measures.Component baseComponent = 2;
*/
public org.sonarqube.ws.WsMeasures.ComponentOrBuilder getBaseComponentOrBuilder() {
if (baseComponentBuilder_ != null) {
return baseComponentBuilder_.getMessageOrBuilder();
} else {
return baseComponent_ == null ?
org.sonarqube.ws.WsMeasures.Component.getDefaultInstance() : baseComponent_;
}
}
/**
* optional .sonarqube.ws.measures.Component baseComponent = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.WsMeasures.Component, org.sonarqube.ws.WsMeasures.Component.Builder, org.sonarqube.ws.WsMeasures.ComponentOrBuilder>
getBaseComponentFieldBuilder() {
if (baseComponentBuilder_ == null) {
baseComponentBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.WsMeasures.Component, org.sonarqube.ws.WsMeasures.Component.Builder, org.sonarqube.ws.WsMeasures.ComponentOrBuilder>(
getBaseComponent(),
getParentForChildren(),
isClean());
baseComponent_ = null;
}
return baseComponentBuilder_;
}
private java.util.List components_ =
java.util.Collections.emptyList();
private void ensureComponentsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
components_ = new java.util.ArrayList(components_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.WsMeasures.Component, org.sonarqube.ws.WsMeasures.Component.Builder, org.sonarqube.ws.WsMeasures.ComponentOrBuilder> componentsBuilder_;
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
public java.util.List getComponentsList() {
if (componentsBuilder_ == null) {
return java.util.Collections.unmodifiableList(components_);
} else {
return componentsBuilder_.getMessageList();
}
}
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
public int getComponentsCount() {
if (componentsBuilder_ == null) {
return components_.size();
} else {
return componentsBuilder_.getCount();
}
}
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
public org.sonarqube.ws.WsMeasures.Component getComponents(int index) {
if (componentsBuilder_ == null) {
return components_.get(index);
} else {
return componentsBuilder_.getMessage(index);
}
}
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
public Builder setComponents(
int index, org.sonarqube.ws.WsMeasures.Component value) {
if (componentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComponentsIsMutable();
components_.set(index, value);
onChanged();
} else {
componentsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
public Builder setComponents(
int index, org.sonarqube.ws.WsMeasures.Component.Builder builderForValue) {
if (componentsBuilder_ == null) {
ensureComponentsIsMutable();
components_.set(index, builderForValue.build());
onChanged();
} else {
componentsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
public Builder addComponents(org.sonarqube.ws.WsMeasures.Component value) {
if (componentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComponentsIsMutable();
components_.add(value);
onChanged();
} else {
componentsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
public Builder addComponents(
int index, org.sonarqube.ws.WsMeasures.Component value) {
if (componentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComponentsIsMutable();
components_.add(index, value);
onChanged();
} else {
componentsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
public Builder addComponents(
org.sonarqube.ws.WsMeasures.Component.Builder builderForValue) {
if (componentsBuilder_ == null) {
ensureComponentsIsMutable();
components_.add(builderForValue.build());
onChanged();
} else {
componentsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
public Builder addComponents(
int index, org.sonarqube.ws.WsMeasures.Component.Builder builderForValue) {
if (componentsBuilder_ == null) {
ensureComponentsIsMutable();
components_.add(index, builderForValue.build());
onChanged();
} else {
componentsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
public Builder addAllComponents(
java.lang.Iterable extends org.sonarqube.ws.WsMeasures.Component> values) {
if (componentsBuilder_ == null) {
ensureComponentsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, components_);
onChanged();
} else {
componentsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
public Builder clearComponents() {
if (componentsBuilder_ == null) {
components_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
componentsBuilder_.clear();
}
return this;
}
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
public Builder removeComponents(int index) {
if (componentsBuilder_ == null) {
ensureComponentsIsMutable();
components_.remove(index);
onChanged();
} else {
componentsBuilder_.remove(index);
}
return this;
}
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
public org.sonarqube.ws.WsMeasures.Component.Builder getComponentsBuilder(
int index) {
return getComponentsFieldBuilder().getBuilder(index);
}
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
public org.sonarqube.ws.WsMeasures.ComponentOrBuilder getComponentsOrBuilder(
int index) {
if (componentsBuilder_ == null) {
return components_.get(index); } else {
return componentsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
public java.util.List extends org.sonarqube.ws.WsMeasures.ComponentOrBuilder>
getComponentsOrBuilderList() {
if (componentsBuilder_ != null) {
return componentsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(components_);
}
}
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
public org.sonarqube.ws.WsMeasures.Component.Builder addComponentsBuilder() {
return getComponentsFieldBuilder().addBuilder(
org.sonarqube.ws.WsMeasures.Component.getDefaultInstance());
}
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
public org.sonarqube.ws.WsMeasures.Component.Builder addComponentsBuilder(
int index) {
return getComponentsFieldBuilder().addBuilder(
index, org.sonarqube.ws.WsMeasures.Component.getDefaultInstance());
}
/**
* repeated .sonarqube.ws.measures.Component components = 3;
*/
public java.util.List
getComponentsBuilderList() {
return getComponentsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.WsMeasures.Component, org.sonarqube.ws.WsMeasures.Component.Builder, org.sonarqube.ws.WsMeasures.ComponentOrBuilder>
getComponentsFieldBuilder() {
if (componentsBuilder_ == null) {
componentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.WsMeasures.Component, org.sonarqube.ws.WsMeasures.Component.Builder, org.sonarqube.ws.WsMeasures.ComponentOrBuilder>(
components_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
components_ = null;
}
return componentsBuilder_;
}
private org.sonarqube.ws.WsMeasures.Metrics metrics_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.WsMeasures.Metrics, org.sonarqube.ws.WsMeasures.Metrics.Builder, org.sonarqube.ws.WsMeasures.MetricsOrBuilder> metricsBuilder_;
/**
* optional .sonarqube.ws.measures.Metrics metrics = 4;
*/
public boolean hasMetrics() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .sonarqube.ws.measures.Metrics metrics = 4;
*/
public org.sonarqube.ws.WsMeasures.Metrics getMetrics() {
if (metricsBuilder_ == null) {
return metrics_ == null ? org.sonarqube.ws.WsMeasures.Metrics.getDefaultInstance() : metrics_;
} else {
return metricsBuilder_.getMessage();
}
}
/**
* optional .sonarqube.ws.measures.Metrics metrics = 4;
*/
public Builder setMetrics(org.sonarqube.ws.WsMeasures.Metrics value) {
if (metricsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metrics_ = value;
onChanged();
} else {
metricsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .sonarqube.ws.measures.Metrics metrics = 4;
*/
public Builder setMetrics(
org.sonarqube.ws.WsMeasures.Metrics.Builder builderForValue) {
if (metricsBuilder_ == null) {
metrics_ = builderForValue.build();
onChanged();
} else {
metricsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .sonarqube.ws.measures.Metrics metrics = 4;
*/
public Builder mergeMetrics(org.sonarqube.ws.WsMeasures.Metrics value) {
if (metricsBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
metrics_ != null &&
metrics_ != org.sonarqube.ws.WsMeasures.Metrics.getDefaultInstance()) {
metrics_ =
org.sonarqube.ws.WsMeasures.Metrics.newBuilder(metrics_).mergeFrom(value).buildPartial();
} else {
metrics_ = value;
}
onChanged();
} else {
metricsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .sonarqube.ws.measures.Metrics metrics = 4;
*/
public Builder clearMetrics() {
if (metricsBuilder_ == null) {
metrics_ = null;
onChanged();
} else {
metricsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .sonarqube.ws.measures.Metrics metrics = 4;
*/
public org.sonarqube.ws.WsMeasures.Metrics.Builder getMetricsBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getMetricsFieldBuilder().getBuilder();
}
/**
* optional .sonarqube.ws.measures.Metrics metrics = 4;
*/
public org.sonarqube.ws.WsMeasures.MetricsOrBuilder getMetricsOrBuilder() {
if (metricsBuilder_ != null) {
return metricsBuilder_.getMessageOrBuilder();
} else {
return metrics_ == null ?
org.sonarqube.ws.WsMeasures.Metrics.getDefaultInstance() : metrics_;
}
}
/**
* optional .sonarqube.ws.measures.Metrics metrics = 4;
*/
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.WsMeasures.Metrics, org.sonarqube.ws.WsMeasures.Metrics.Builder, org.sonarqube.ws.WsMeasures.MetricsOrBuilder>
getMetricsFieldBuilder() {
if (metricsBuilder_ == null) {
metricsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.WsMeasures.Metrics, org.sonarqube.ws.WsMeasures.Metrics.Builder, org.sonarqube.ws.WsMeasures.MetricsOrBuilder>(
getMetrics(),
getParentForChildren(),
isClean());
metrics_ = null;
}
return metricsBuilder_;
}
private org.sonarqube.ws.WsMeasures.Periods periods_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.WsMeasures.Periods, org.sonarqube.ws.WsMeasures.Periods.Builder, org.sonarqube.ws.WsMeasures.PeriodsOrBuilder> periodsBuilder_;
/**
* optional .sonarqube.ws.measures.Periods periods = 5;
*/
public boolean hasPeriods() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .sonarqube.ws.measures.Periods periods = 5;
*/
public org.sonarqube.ws.WsMeasures.Periods getPeriods() {
if (periodsBuilder_ == null) {
return periods_ == null ? org.sonarqube.ws.WsMeasures.Periods.getDefaultInstance() : periods_;
} else {
return periodsBuilder_.getMessage();
}
}
/**
* optional .sonarqube.ws.measures.Periods periods = 5;
*/
public Builder setPeriods(org.sonarqube.ws.WsMeasures.Periods value) {
if (periodsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
periods_ = value;
onChanged();
} else {
periodsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .sonarqube.ws.measures.Periods periods = 5;
*/
public Builder setPeriods(
org.sonarqube.ws.WsMeasures.Periods.Builder builderForValue) {
if (periodsBuilder_ == null) {
periods_ = builderForValue.build();
onChanged();
} else {
periodsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .sonarqube.ws.measures.Periods periods = 5;
*/
public Builder mergePeriods(org.sonarqube.ws.WsMeasures.Periods value) {
if (periodsBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
periods_ != null &&
periods_ != org.sonarqube.ws.WsMeasures.Periods.getDefaultInstance()) {
periods_ =
org.sonarqube.ws.WsMeasures.Periods.newBuilder(periods_).mergeFrom(value).buildPartial();
} else {
periods_ = value;
}
onChanged();
} else {
periodsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .sonarqube.ws.measures.Periods periods = 5;
*/
public Builder clearPeriods() {
if (periodsBuilder_ == null) {
periods_ = null;
onChanged();
} else {
periodsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* optional .sonarqube.ws.measures.Periods periods = 5;
*/
public org.sonarqube.ws.WsMeasures.Periods.Builder getPeriodsBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getPeriodsFieldBuilder().getBuilder();
}
/**
* optional .sonarqube.ws.measures.Periods periods = 5;
*/
public org.sonarqube.ws.WsMeasures.PeriodsOrBuilder getPeriodsOrBuilder() {
if (periodsBuilder_ != null) {
return periodsBuilder_.getMessageOrBuilder();
} else {
return periods_ == null ?
org.sonarqube.ws.WsMeasures.Periods.getDefaultInstance() : periods_;
}
}
/**
* optional .sonarqube.ws.measures.Periods periods = 5;
*/
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.WsMeasures.Periods, org.sonarqube.ws.WsMeasures.Periods.Builder, org.sonarqube.ws.WsMeasures.PeriodsOrBuilder>
getPeriodsFieldBuilder() {
if (periodsBuilder_ == null) {
periodsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.WsMeasures.Periods, org.sonarqube.ws.WsMeasures.Periods.Builder, org.sonarqube.ws.WsMeasures.PeriodsOrBuilder>(
getPeriods(),
getParentForChildren(),
isClean());
periods_ = null;
}
return periodsBuilder_;
}
// @@protoc_insertion_point(builder_scope:sonarqube.ws.measures.ComponentTreeWsResponse)
}
// @@protoc_insertion_point(class_scope:sonarqube.ws.measures.ComponentTreeWsResponse)
private static final org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse();
}
public static org.sonarqube.ws.WsMeasures.ComponentTreeWsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ComponentTreeWsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new ComponentTreeWsResponse(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.WsMeasures.ComponentTreeWsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ComponentWsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.measures.ComponentWsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* optional .sonarqube.ws.measures.Component component = 1;
*/
boolean hasComponent();
/**
* optional .sonarqube.ws.measures.Component component = 1;
*/
org.sonarqube.ws.WsMeasures.Component getComponent();
/**
* optional .sonarqube.ws.measures.Component component = 1;
*/
org.sonarqube.ws.WsMeasures.ComponentOrBuilder getComponentOrBuilder();
/**
* optional .sonarqube.ws.measures.Metrics metrics = 2;
*/
boolean hasMetrics();
/**
* optional .sonarqube.ws.measures.Metrics metrics = 2;
*/
org.sonarqube.ws.WsMeasures.Metrics getMetrics();
/**
* optional .sonarqube.ws.measures.Metrics metrics = 2;
*/
org.sonarqube.ws.WsMeasures.MetricsOrBuilder getMetricsOrBuilder();
/**
* optional .sonarqube.ws.measures.Periods periods = 3;
*/
boolean hasPeriods();
/**
* optional .sonarqube.ws.measures.Periods periods = 3;
*/
org.sonarqube.ws.WsMeasures.Periods getPeriods();
/**
* optional .sonarqube.ws.measures.Periods periods = 3;
*/
org.sonarqube.ws.WsMeasures.PeriodsOrBuilder getPeriodsOrBuilder();
}
/**
* Protobuf type {@code sonarqube.ws.measures.ComponentWsResponse}
*
*
* WS api/measures/component
*
*/
public static final class ComponentWsResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.measures.ComponentWsResponse)
ComponentWsResponseOrBuilder {
// Use ComponentWsResponse.newBuilder() to construct.
private ComponentWsResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ComponentWsResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ComponentWsResponse(
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.WsMeasures.Component.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = component_.toBuilder();
}
component_ = input.readMessage(org.sonarqube.ws.WsMeasures.Component.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(component_);
component_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.sonarqube.ws.WsMeasures.Metrics.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = metrics_.toBuilder();
}
metrics_ = input.readMessage(org.sonarqube.ws.WsMeasures.Metrics.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metrics_);
metrics_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
org.sonarqube.ws.WsMeasures.Periods.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = periods_.toBuilder();
}
periods_ = input.readMessage(org.sonarqube.ws.WsMeasures.Periods.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(periods_);
periods_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
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.WsMeasures.internal_static_sonarqube_ws_measures_ComponentWsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_ComponentWsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsMeasures.ComponentWsResponse.class, org.sonarqube.ws.WsMeasures.ComponentWsResponse.Builder.class);
}
private int bitField0_;
public static final int COMPONENT_FIELD_NUMBER = 1;
private org.sonarqube.ws.WsMeasures.Component component_;
/**
* optional .sonarqube.ws.measures.Component component = 1;
*/
public boolean hasComponent() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .sonarqube.ws.measures.Component component = 1;
*/
public org.sonarqube.ws.WsMeasures.Component getComponent() {
return component_ == null ? org.sonarqube.ws.WsMeasures.Component.getDefaultInstance() : component_;
}
/**
* optional .sonarqube.ws.measures.Component component = 1;
*/
public org.sonarqube.ws.WsMeasures.ComponentOrBuilder getComponentOrBuilder() {
return component_ == null ? org.sonarqube.ws.WsMeasures.Component.getDefaultInstance() : component_;
}
public static final int METRICS_FIELD_NUMBER = 2;
private org.sonarqube.ws.WsMeasures.Metrics metrics_;
/**
* optional .sonarqube.ws.measures.Metrics metrics = 2;
*/
public boolean hasMetrics() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .sonarqube.ws.measures.Metrics metrics = 2;
*/
public org.sonarqube.ws.WsMeasures.Metrics getMetrics() {
return metrics_ == null ? org.sonarqube.ws.WsMeasures.Metrics.getDefaultInstance() : metrics_;
}
/**
* optional .sonarqube.ws.measures.Metrics metrics = 2;
*/
public org.sonarqube.ws.WsMeasures.MetricsOrBuilder getMetricsOrBuilder() {
return metrics_ == null ? org.sonarqube.ws.WsMeasures.Metrics.getDefaultInstance() : metrics_;
}
public static final int PERIODS_FIELD_NUMBER = 3;
private org.sonarqube.ws.WsMeasures.Periods periods_;
/**
* optional .sonarqube.ws.measures.Periods periods = 3;
*/
public boolean hasPeriods() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .sonarqube.ws.measures.Periods periods = 3;
*/
public org.sonarqube.ws.WsMeasures.Periods getPeriods() {
return periods_ == null ? org.sonarqube.ws.WsMeasures.Periods.getDefaultInstance() : periods_;
}
/**
* optional .sonarqube.ws.measures.Periods periods = 3;
*/
public org.sonarqube.ws.WsMeasures.PeriodsOrBuilder getPeriodsOrBuilder() {
return periods_ == null ? org.sonarqube.ws.WsMeasures.Periods.getDefaultInstance() : periods_;
}
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, getComponent());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getMetrics());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getPeriods());
}
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, getComponent());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMetrics());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getPeriods());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.sonarqube.ws.WsMeasures.ComponentWsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsMeasures.ComponentWsResponse 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.WsMeasures.ComponentWsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsMeasures.ComponentWsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.sonarqube.ws.WsMeasures.ComponentWsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsMeasures.ComponentWsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.WsMeasures.ComponentWsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.sonarqube.ws.WsMeasures.ComponentWsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.WsMeasures.ComponentWsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsMeasures.ComponentWsResponse 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.WsMeasures.ComponentWsResponse 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.measures.ComponentWsResponse}
*
*
* WS api/measures/component
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:sonarqube.ws.measures.ComponentWsResponse)
org.sonarqube.ws.WsMeasures.ComponentWsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_ComponentWsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_ComponentWsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsMeasures.ComponentWsResponse.class, org.sonarqube.ws.WsMeasures.ComponentWsResponse.Builder.class);
}
// Construct using org.sonarqube.ws.WsMeasures.ComponentWsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getComponentFieldBuilder();
getMetricsFieldBuilder();
getPeriodsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (componentBuilder_ == null) {
component_ = null;
} else {
componentBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (metricsBuilder_ == null) {
metrics_ = null;
} else {
metricsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (periodsBuilder_ == null) {
periods_ = null;
} else {
periodsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_ComponentWsResponse_descriptor;
}
public org.sonarqube.ws.WsMeasures.ComponentWsResponse getDefaultInstanceForType() {
return org.sonarqube.ws.WsMeasures.ComponentWsResponse.getDefaultInstance();
}
public org.sonarqube.ws.WsMeasures.ComponentWsResponse build() {
org.sonarqube.ws.WsMeasures.ComponentWsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.sonarqube.ws.WsMeasures.ComponentWsResponse buildPartial() {
org.sonarqube.ws.WsMeasures.ComponentWsResponse result = new org.sonarqube.ws.WsMeasures.ComponentWsResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (componentBuilder_ == null) {
result.component_ = component_;
} else {
result.component_ = componentBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (metricsBuilder_ == null) {
result.metrics_ = metrics_;
} else {
result.metrics_ = metricsBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (periodsBuilder_ == null) {
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.WsMeasures.ComponentWsResponse) {
return mergeFrom((org.sonarqube.ws.WsMeasures.ComponentWsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.sonarqube.ws.WsMeasures.ComponentWsResponse other) {
if (other == org.sonarqube.ws.WsMeasures.ComponentWsResponse.getDefaultInstance()) return this;
if (other.hasComponent()) {
mergeComponent(other.getComponent());
}
if (other.hasMetrics()) {
mergeMetrics(other.getMetrics());
}
if (other.hasPeriods()) {
mergePeriods(other.getPeriods());
}
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.WsMeasures.ComponentWsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.sonarqube.ws.WsMeasures.ComponentWsResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.sonarqube.ws.WsMeasures.Component component_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.WsMeasures.Component, org.sonarqube.ws.WsMeasures.Component.Builder, org.sonarqube.ws.WsMeasures.ComponentOrBuilder> componentBuilder_;
/**
* optional .sonarqube.ws.measures.Component component = 1;
*/
public boolean hasComponent() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .sonarqube.ws.measures.Component component = 1;
*/
public org.sonarqube.ws.WsMeasures.Component getComponent() {
if (componentBuilder_ == null) {
return component_ == null ? org.sonarqube.ws.WsMeasures.Component.getDefaultInstance() : component_;
} else {
return componentBuilder_.getMessage();
}
}
/**
* optional .sonarqube.ws.measures.Component component = 1;
*/
public Builder setComponent(org.sonarqube.ws.WsMeasures.Component value) {
if (componentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
component_ = value;
onChanged();
} else {
componentBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .sonarqube.ws.measures.Component component = 1;
*/
public Builder setComponent(
org.sonarqube.ws.WsMeasures.Component.Builder builderForValue) {
if (componentBuilder_ == null) {
component_ = builderForValue.build();
onChanged();
} else {
componentBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .sonarqube.ws.measures.Component component = 1;
*/
public Builder mergeComponent(org.sonarqube.ws.WsMeasures.Component value) {
if (componentBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
component_ != null &&
component_ != org.sonarqube.ws.WsMeasures.Component.getDefaultInstance()) {
component_ =
org.sonarqube.ws.WsMeasures.Component.newBuilder(component_).mergeFrom(value).buildPartial();
} else {
component_ = value;
}
onChanged();
} else {
componentBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .sonarqube.ws.measures.Component component = 1;
*/
public Builder clearComponent() {
if (componentBuilder_ == null) {
component_ = null;
onChanged();
} else {
componentBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .sonarqube.ws.measures.Component component = 1;
*/
public org.sonarqube.ws.WsMeasures.Component.Builder getComponentBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getComponentFieldBuilder().getBuilder();
}
/**
* optional .sonarqube.ws.measures.Component component = 1;
*/
public org.sonarqube.ws.WsMeasures.ComponentOrBuilder getComponentOrBuilder() {
if (componentBuilder_ != null) {
return componentBuilder_.getMessageOrBuilder();
} else {
return component_ == null ?
org.sonarqube.ws.WsMeasures.Component.getDefaultInstance() : component_;
}
}
/**
* optional .sonarqube.ws.measures.Component component = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.WsMeasures.Component, org.sonarqube.ws.WsMeasures.Component.Builder, org.sonarqube.ws.WsMeasures.ComponentOrBuilder>
getComponentFieldBuilder() {
if (componentBuilder_ == null) {
componentBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.WsMeasures.Component, org.sonarqube.ws.WsMeasures.Component.Builder, org.sonarqube.ws.WsMeasures.ComponentOrBuilder>(
getComponent(),
getParentForChildren(),
isClean());
component_ = null;
}
return componentBuilder_;
}
private org.sonarqube.ws.WsMeasures.Metrics metrics_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.WsMeasures.Metrics, org.sonarqube.ws.WsMeasures.Metrics.Builder, org.sonarqube.ws.WsMeasures.MetricsOrBuilder> metricsBuilder_;
/**
* optional .sonarqube.ws.measures.Metrics metrics = 2;
*/
public boolean hasMetrics() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .sonarqube.ws.measures.Metrics metrics = 2;
*/
public org.sonarqube.ws.WsMeasures.Metrics getMetrics() {
if (metricsBuilder_ == null) {
return metrics_ == null ? org.sonarqube.ws.WsMeasures.Metrics.getDefaultInstance() : metrics_;
} else {
return metricsBuilder_.getMessage();
}
}
/**
* optional .sonarqube.ws.measures.Metrics metrics = 2;
*/
public Builder setMetrics(org.sonarqube.ws.WsMeasures.Metrics value) {
if (metricsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metrics_ = value;
onChanged();
} else {
metricsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .sonarqube.ws.measures.Metrics metrics = 2;
*/
public Builder setMetrics(
org.sonarqube.ws.WsMeasures.Metrics.Builder builderForValue) {
if (metricsBuilder_ == null) {
metrics_ = builderForValue.build();
onChanged();
} else {
metricsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .sonarqube.ws.measures.Metrics metrics = 2;
*/
public Builder mergeMetrics(org.sonarqube.ws.WsMeasures.Metrics value) {
if (metricsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
metrics_ != null &&
metrics_ != org.sonarqube.ws.WsMeasures.Metrics.getDefaultInstance()) {
metrics_ =
org.sonarqube.ws.WsMeasures.Metrics.newBuilder(metrics_).mergeFrom(value).buildPartial();
} else {
metrics_ = value;
}
onChanged();
} else {
metricsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .sonarqube.ws.measures.Metrics metrics = 2;
*/
public Builder clearMetrics() {
if (metricsBuilder_ == null) {
metrics_ = null;
onChanged();
} else {
metricsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .sonarqube.ws.measures.Metrics metrics = 2;
*/
public org.sonarqube.ws.WsMeasures.Metrics.Builder getMetricsBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getMetricsFieldBuilder().getBuilder();
}
/**
* optional .sonarqube.ws.measures.Metrics metrics = 2;
*/
public org.sonarqube.ws.WsMeasures.MetricsOrBuilder getMetricsOrBuilder() {
if (metricsBuilder_ != null) {
return metricsBuilder_.getMessageOrBuilder();
} else {
return metrics_ == null ?
org.sonarqube.ws.WsMeasures.Metrics.getDefaultInstance() : metrics_;
}
}
/**
* optional .sonarqube.ws.measures.Metrics metrics = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.WsMeasures.Metrics, org.sonarqube.ws.WsMeasures.Metrics.Builder, org.sonarqube.ws.WsMeasures.MetricsOrBuilder>
getMetricsFieldBuilder() {
if (metricsBuilder_ == null) {
metricsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.WsMeasures.Metrics, org.sonarqube.ws.WsMeasures.Metrics.Builder, org.sonarqube.ws.WsMeasures.MetricsOrBuilder>(
getMetrics(),
getParentForChildren(),
isClean());
metrics_ = null;
}
return metricsBuilder_;
}
private org.sonarqube.ws.WsMeasures.Periods periods_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.WsMeasures.Periods, org.sonarqube.ws.WsMeasures.Periods.Builder, org.sonarqube.ws.WsMeasures.PeriodsOrBuilder> periodsBuilder_;
/**
* optional .sonarqube.ws.measures.Periods periods = 3;
*/
public boolean hasPeriods() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .sonarqube.ws.measures.Periods periods = 3;
*/
public org.sonarqube.ws.WsMeasures.Periods getPeriods() {
if (periodsBuilder_ == null) {
return periods_ == null ? org.sonarqube.ws.WsMeasures.Periods.getDefaultInstance() : periods_;
} else {
return periodsBuilder_.getMessage();
}
}
/**
* optional .sonarqube.ws.measures.Periods periods = 3;
*/
public Builder setPeriods(org.sonarqube.ws.WsMeasures.Periods value) {
if (periodsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
periods_ = value;
onChanged();
} else {
periodsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .sonarqube.ws.measures.Periods periods = 3;
*/
public Builder setPeriods(
org.sonarqube.ws.WsMeasures.Periods.Builder builderForValue) {
if (periodsBuilder_ == null) {
periods_ = builderForValue.build();
onChanged();
} else {
periodsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .sonarqube.ws.measures.Periods periods = 3;
*/
public Builder mergePeriods(org.sonarqube.ws.WsMeasures.Periods value) {
if (periodsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
periods_ != null &&
periods_ != org.sonarqube.ws.WsMeasures.Periods.getDefaultInstance()) {
periods_ =
org.sonarqube.ws.WsMeasures.Periods.newBuilder(periods_).mergeFrom(value).buildPartial();
} else {
periods_ = value;
}
onChanged();
} else {
periodsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .sonarqube.ws.measures.Periods periods = 3;
*/
public Builder clearPeriods() {
if (periodsBuilder_ == null) {
periods_ = null;
onChanged();
} else {
periodsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .sonarqube.ws.measures.Periods periods = 3;
*/
public org.sonarqube.ws.WsMeasures.Periods.Builder getPeriodsBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getPeriodsFieldBuilder().getBuilder();
}
/**
* optional .sonarqube.ws.measures.Periods periods = 3;
*/
public org.sonarqube.ws.WsMeasures.PeriodsOrBuilder getPeriodsOrBuilder() {
if (periodsBuilder_ != null) {
return periodsBuilder_.getMessageOrBuilder();
} else {
return periods_ == null ?
org.sonarqube.ws.WsMeasures.Periods.getDefaultInstance() : periods_;
}
}
/**
* optional .sonarqube.ws.measures.Periods periods = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.WsMeasures.Periods, org.sonarqube.ws.WsMeasures.Periods.Builder, org.sonarqube.ws.WsMeasures.PeriodsOrBuilder>
getPeriodsFieldBuilder() {
if (periodsBuilder_ == null) {
periodsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.WsMeasures.Periods, org.sonarqube.ws.WsMeasures.Periods.Builder, org.sonarqube.ws.WsMeasures.PeriodsOrBuilder>(
getPeriods(),
getParentForChildren(),
isClean());
periods_ = null;
}
return periodsBuilder_;
}
// @@protoc_insertion_point(builder_scope:sonarqube.ws.measures.ComponentWsResponse)
}
// @@protoc_insertion_point(class_scope:sonarqube.ws.measures.ComponentWsResponse)
private static final org.sonarqube.ws.WsMeasures.ComponentWsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.sonarqube.ws.WsMeasures.ComponentWsResponse();
}
public static org.sonarqube.ws.WsMeasures.ComponentWsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ComponentWsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new ComponentWsResponse(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.WsMeasures.ComponentWsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ComponentOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.measures.Component)
com.google.protobuf.MessageOrBuilder {
/**
* optional string id = 1;
*/
boolean hasId();
/**
* optional string id = 1;
*/
java.lang.String getId();
/**
* optional string id = 1;
*/
com.google.protobuf.ByteString
getIdBytes();
/**
* optional string key = 2;
*/
boolean hasKey();
/**
* optional string key = 2;
*/
java.lang.String getKey();
/**
* optional string key = 2;
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
* optional string refId = 3;
*/
boolean hasRefId();
/**
* optional string refId = 3;
*/
java.lang.String getRefId();
/**
* optional string refId = 3;
*/
com.google.protobuf.ByteString
getRefIdBytes();
/**
* optional string refKey = 4;
*/
boolean hasRefKey();
/**
* optional string refKey = 4;
*/
java.lang.String getRefKey();
/**
* optional string refKey = 4;
*/
com.google.protobuf.ByteString
getRefKeyBytes();
/**
* optional string projectId = 5;
*/
boolean hasProjectId();
/**
* optional string projectId = 5;
*/
java.lang.String getProjectId();
/**
* optional string projectId = 5;
*/
com.google.protobuf.ByteString
getProjectIdBytes();
/**
* optional string name = 6;
*/
boolean hasName();
/**
* optional string name = 6;
*/
java.lang.String getName();
/**
* optional string name = 6;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* optional string description = 7;
*/
boolean hasDescription();
/**
* optional string description = 7;
*/
java.lang.String getDescription();
/**
* optional string description = 7;
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
* optional string qualifier = 8;
*/
boolean hasQualifier();
/**
* optional string qualifier = 8;
*/
java.lang.String getQualifier();
/**
* optional string qualifier = 8;
*/
com.google.protobuf.ByteString
getQualifierBytes();
/**
* optional string path = 9;
*/
boolean hasPath();
/**
* optional string path = 9;
*/
java.lang.String getPath();
/**
* optional string path = 9;
*/
com.google.protobuf.ByteString
getPathBytes();
/**
* optional string language = 10;
*/
boolean hasLanguage();
/**
* optional string language = 10;
*/
java.lang.String getLanguage();
/**
* optional string language = 10;
*/
com.google.protobuf.ByteString
getLanguageBytes();
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
java.util.List
getMeasuresList();
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
org.sonarqube.ws.WsMeasures.Measure getMeasures(int index);
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
int getMeasuresCount();
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
java.util.List extends org.sonarqube.ws.WsMeasures.MeasureOrBuilder>
getMeasuresOrBuilderList();
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
org.sonarqube.ws.WsMeasures.MeasureOrBuilder getMeasuresOrBuilder(
int index);
}
/**
* Protobuf type {@code sonarqube.ws.measures.Component}
*/
public static final class Component extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.measures.Component)
ComponentOrBuilder {
// Use Component.newBuilder() to construct.
private Component(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Component() {
id_ = "";
key_ = "";
refId_ = "";
refKey_ = "";
projectId_ = "";
name_ = "";
description_ = "";
qualifier_ = "";
path_ = "";
language_ = "";
measures_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Component(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
id_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
key_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
refId_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
refKey_ = bs;
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
projectId_ = bs;
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
name_ = bs;
break;
}
case 58: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000040;
description_ = bs;
break;
}
case 66: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000080;
qualifier_ = bs;
break;
}
case 74: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000100;
path_ = bs;
break;
}
case 82: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000200;
language_ = bs;
break;
}
case 90: {
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
measures_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000400;
}
measures_.add(input.readMessage(org.sonarqube.ws.WsMeasures.Measure.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_ & 0x00000400) == 0x00000400)) {
measures_ = java.util.Collections.unmodifiableList(measures_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_Component_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_Component_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsMeasures.Component.class, org.sonarqube.ws.WsMeasures.Component.Builder.class);
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
* optional string id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
id_ = s;
}
return s;
}
}
/**
* optional string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KEY_FIELD_NUMBER = 2;
private volatile java.lang.Object key_;
/**
* optional string key = 2;
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string key = 2;
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
key_ = s;
}
return s;
}
}
/**
* optional string key = 2;
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REFID_FIELD_NUMBER = 3;
private volatile java.lang.Object refId_;
/**
* optional string refId = 3;
*/
public boolean hasRefId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string refId = 3;
*/
public java.lang.String getRefId() {
java.lang.Object ref = refId_;
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()) {
refId_ = s;
}
return s;
}
}
/**
* optional string refId = 3;
*/
public com.google.protobuf.ByteString
getRefIdBytes() {
java.lang.Object ref = refId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
refId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REFKEY_FIELD_NUMBER = 4;
private volatile java.lang.Object refKey_;
/**
* optional string refKey = 4;
*/
public boolean hasRefKey() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string refKey = 4;
*/
public java.lang.String getRefKey() {
java.lang.Object ref = refKey_;
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()) {
refKey_ = s;
}
return s;
}
}
/**
* optional string refKey = 4;
*/
public com.google.protobuf.ByteString
getRefKeyBytes() {
java.lang.Object ref = refKey_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
refKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROJECTID_FIELD_NUMBER = 5;
private volatile java.lang.Object projectId_;
/**
* optional string projectId = 5;
*/
public boolean hasProjectId() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string projectId = 5;
*/
public java.lang.String getProjectId() {
java.lang.Object ref = projectId_;
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()) {
projectId_ = s;
}
return s;
}
}
/**
* optional string projectId = 5;
*/
public com.google.protobuf.ByteString
getProjectIdBytes() {
java.lang.Object ref = projectId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
projectId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 6;
private volatile java.lang.Object name_;
/**
* optional string name = 6;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string name = 6;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* optional string name = 6;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 7;
private volatile java.lang.Object description_;
/**
* optional string description = 7;
*/
public boolean hasDescription() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional string description = 7;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
description_ = s;
}
return s;
}
}
/**
* optional string description = 7;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int QUALIFIER_FIELD_NUMBER = 8;
private volatile java.lang.Object qualifier_;
/**
* optional string qualifier = 8;
*/
public boolean hasQualifier() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional string qualifier = 8;
*/
public java.lang.String getQualifier() {
java.lang.Object ref = qualifier_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
qualifier_ = s;
}
return s;
}
}
/**
* optional string qualifier = 8;
*/
public com.google.protobuf.ByteString
getQualifierBytes() {
java.lang.Object ref = qualifier_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
qualifier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PATH_FIELD_NUMBER = 9;
private volatile java.lang.Object path_;
/**
* optional string path = 9;
*/
public boolean hasPath() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional string path = 9;
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
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()) {
path_ = s;
}
return s;
}
}
/**
* optional string path = 9;
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LANGUAGE_FIELD_NUMBER = 10;
private volatile java.lang.Object language_;
/**
* optional string language = 10;
*/
public boolean hasLanguage() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional string language = 10;
*/
public java.lang.String getLanguage() {
java.lang.Object ref = language_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
language_ = s;
}
return s;
}
}
/**
* optional string language = 10;
*/
public com.google.protobuf.ByteString
getLanguageBytes() {
java.lang.Object ref = language_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
language_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MEASURES_FIELD_NUMBER = 11;
private java.util.List measures_;
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
public java.util.List getMeasuresList() {
return measures_;
}
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
public java.util.List extends org.sonarqube.ws.WsMeasures.MeasureOrBuilder>
getMeasuresOrBuilderList() {
return measures_;
}
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
public int getMeasuresCount() {
return measures_.size();
}
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
public org.sonarqube.ws.WsMeasures.Measure getMeasures(int index) {
return measures_.get(index);
}
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
public org.sonarqube.ws.WsMeasures.MeasureOrBuilder getMeasuresOrBuilder(
int index) {
return measures_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, key_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, refId_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
com.google.protobuf.GeneratedMessage.writeString(output, 4, refKey_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
com.google.protobuf.GeneratedMessage.writeString(output, 5, projectId_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
com.google.protobuf.GeneratedMessage.writeString(output, 6, name_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
com.google.protobuf.GeneratedMessage.writeString(output, 7, description_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
com.google.protobuf.GeneratedMessage.writeString(output, 8, qualifier_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
com.google.protobuf.GeneratedMessage.writeString(output, 9, path_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
com.google.protobuf.GeneratedMessage.writeString(output, 10, language_);
}
for (int i = 0; i < measures_.size(); i++) {
output.writeMessage(11, measures_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, key_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(3, refId_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(4, refKey_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(5, projectId_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(6, name_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(7, description_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(8, qualifier_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(9, path_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(10, language_);
}
for (int i = 0; i < measures_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, measures_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.sonarqube.ws.WsMeasures.Component parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsMeasures.Component 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.WsMeasures.Component parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsMeasures.Component parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.sonarqube.ws.WsMeasures.Component parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsMeasures.Component parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.WsMeasures.Component parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.sonarqube.ws.WsMeasures.Component parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.WsMeasures.Component parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsMeasures.Component 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.WsMeasures.Component 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.measures.Component}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:sonarqube.ws.measures.Component)
org.sonarqube.ws.WsMeasures.ComponentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_Component_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_Component_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsMeasures.Component.class, org.sonarqube.ws.WsMeasures.Component.Builder.class);
}
// Construct using org.sonarqube.ws.WsMeasures.Component.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getMeasuresFieldBuilder();
}
}
public Builder clear() {
super.clear();
id_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
key_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
refId_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
refKey_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
projectId_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
description_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
qualifier_ = "";
bitField0_ = (bitField0_ & ~0x00000080);
path_ = "";
bitField0_ = (bitField0_ & ~0x00000100);
language_ = "";
bitField0_ = (bitField0_ & ~0x00000200);
if (measuresBuilder_ == null) {
measures_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
} else {
measuresBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_Component_descriptor;
}
public org.sonarqube.ws.WsMeasures.Component getDefaultInstanceForType() {
return org.sonarqube.ws.WsMeasures.Component.getDefaultInstance();
}
public org.sonarqube.ws.WsMeasures.Component build() {
org.sonarqube.ws.WsMeasures.Component result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.sonarqube.ws.WsMeasures.Component buildPartial() {
org.sonarqube.ws.WsMeasures.Component result = new org.sonarqube.ws.WsMeasures.Component(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.id_ = id_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.key_ = key_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.refId_ = refId_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.refKey_ = refKey_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.projectId_ = projectId_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.description_ = description_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.qualifier_ = qualifier_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.path_ = path_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
result.language_ = language_;
if (measuresBuilder_ == null) {
if (((bitField0_ & 0x00000400) == 0x00000400)) {
measures_ = java.util.Collections.unmodifiableList(measures_);
bitField0_ = (bitField0_ & ~0x00000400);
}
result.measures_ = measures_;
} else {
result.measures_ = measuresBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.sonarqube.ws.WsMeasures.Component) {
return mergeFrom((org.sonarqube.ws.WsMeasures.Component)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.sonarqube.ws.WsMeasures.Component other) {
if (other == org.sonarqube.ws.WsMeasures.Component.getDefaultInstance()) return this;
if (other.hasId()) {
bitField0_ |= 0x00000001;
id_ = other.id_;
onChanged();
}
if (other.hasKey()) {
bitField0_ |= 0x00000002;
key_ = other.key_;
onChanged();
}
if (other.hasRefId()) {
bitField0_ |= 0x00000004;
refId_ = other.refId_;
onChanged();
}
if (other.hasRefKey()) {
bitField0_ |= 0x00000008;
refKey_ = other.refKey_;
onChanged();
}
if (other.hasProjectId()) {
bitField0_ |= 0x00000010;
projectId_ = other.projectId_;
onChanged();
}
if (other.hasName()) {
bitField0_ |= 0x00000020;
name_ = other.name_;
onChanged();
}
if (other.hasDescription()) {
bitField0_ |= 0x00000040;
description_ = other.description_;
onChanged();
}
if (other.hasQualifier()) {
bitField0_ |= 0x00000080;
qualifier_ = other.qualifier_;
onChanged();
}
if (other.hasPath()) {
bitField0_ |= 0x00000100;
path_ = other.path_;
onChanged();
}
if (other.hasLanguage()) {
bitField0_ |= 0x00000200;
language_ = other.language_;
onChanged();
}
if (measuresBuilder_ == null) {
if (!other.measures_.isEmpty()) {
if (measures_.isEmpty()) {
measures_ = other.measures_;
bitField0_ = (bitField0_ & ~0x00000400);
} else {
ensureMeasuresIsMutable();
measures_.addAll(other.measures_);
}
onChanged();
}
} else {
if (!other.measures_.isEmpty()) {
if (measuresBuilder_.isEmpty()) {
measuresBuilder_.dispose();
measuresBuilder_ = null;
measures_ = other.measures_;
bitField0_ = (bitField0_ & ~0x00000400);
measuresBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getMeasuresFieldBuilder() : null;
} else {
measuresBuilder_.addAllMessages(other.measures_);
}
}
}
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.WsMeasures.Component parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.sonarqube.ws.WsMeasures.Component) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
* optional string id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
id_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string id = 1;
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
/**
* optional string id = 1;
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* optional string id = 1;
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
private java.lang.Object key_ = "";
/**
* optional string key = 2;
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string key = 2;
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
key_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string key = 2;
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string key = 2;
*/
public Builder setKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
key_ = value;
onChanged();
return this;
}
/**
* optional string key = 2;
*/
public Builder clearKey() {
bitField0_ = (bitField0_ & ~0x00000002);
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
* optional string key = 2;
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
key_ = value;
onChanged();
return this;
}
private java.lang.Object refId_ = "";
/**
* optional string refId = 3;
*/
public boolean hasRefId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string refId = 3;
*/
public java.lang.String getRefId() {
java.lang.Object ref = refId_;
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()) {
refId_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string refId = 3;
*/
public com.google.protobuf.ByteString
getRefIdBytes() {
java.lang.Object ref = refId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
refId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string refId = 3;
*/
public Builder setRefId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
refId_ = value;
onChanged();
return this;
}
/**
* optional string refId = 3;
*/
public Builder clearRefId() {
bitField0_ = (bitField0_ & ~0x00000004);
refId_ = getDefaultInstance().getRefId();
onChanged();
return this;
}
/**
* optional string refId = 3;
*/
public Builder setRefIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
refId_ = value;
onChanged();
return this;
}
private java.lang.Object refKey_ = "";
/**
* optional string refKey = 4;
*/
public boolean hasRefKey() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string refKey = 4;
*/
public java.lang.String getRefKey() {
java.lang.Object ref = refKey_;
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()) {
refKey_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string refKey = 4;
*/
public com.google.protobuf.ByteString
getRefKeyBytes() {
java.lang.Object ref = refKey_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
refKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string refKey = 4;
*/
public Builder setRefKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
refKey_ = value;
onChanged();
return this;
}
/**
* optional string refKey = 4;
*/
public Builder clearRefKey() {
bitField0_ = (bitField0_ & ~0x00000008);
refKey_ = getDefaultInstance().getRefKey();
onChanged();
return this;
}
/**
* optional string refKey = 4;
*/
public Builder setRefKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
refKey_ = value;
onChanged();
return this;
}
private java.lang.Object projectId_ = "";
/**
* optional string projectId = 5;
*/
public boolean hasProjectId() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string projectId = 5;
*/
public java.lang.String getProjectId() {
java.lang.Object ref = projectId_;
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()) {
projectId_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string projectId = 5;
*/
public com.google.protobuf.ByteString
getProjectIdBytes() {
java.lang.Object ref = projectId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
projectId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string projectId = 5;
*/
public Builder setProjectId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
projectId_ = value;
onChanged();
return this;
}
/**
* optional string projectId = 5;
*/
public Builder clearProjectId() {
bitField0_ = (bitField0_ & ~0x00000010);
projectId_ = getDefaultInstance().getProjectId();
onChanged();
return this;
}
/**
* optional string projectId = 5;
*/
public Builder setProjectIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
projectId_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* optional string name = 6;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string name = 6;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 6;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string name = 6;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 6;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000020);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 6;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
name_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
* optional string description = 7;
*/
public boolean hasDescription() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional string description = 7;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
description_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string description = 7;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string description = 7;
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
description_ = value;
onChanged();
return this;
}
/**
* optional string description = 7;
*/
public Builder clearDescription() {
bitField0_ = (bitField0_ & ~0x00000040);
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
* optional string description = 7;
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
description_ = value;
onChanged();
return this;
}
private java.lang.Object qualifier_ = "";
/**
* optional string qualifier = 8;
*/
public boolean hasQualifier() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional string qualifier = 8;
*/
public java.lang.String getQualifier() {
java.lang.Object ref = qualifier_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
qualifier_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string qualifier = 8;
*/
public com.google.protobuf.ByteString
getQualifierBytes() {
java.lang.Object ref = qualifier_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
qualifier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string qualifier = 8;
*/
public Builder setQualifier(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
qualifier_ = value;
onChanged();
return this;
}
/**
* optional string qualifier = 8;
*/
public Builder clearQualifier() {
bitField0_ = (bitField0_ & ~0x00000080);
qualifier_ = getDefaultInstance().getQualifier();
onChanged();
return this;
}
/**
* optional string qualifier = 8;
*/
public Builder setQualifierBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
qualifier_ = value;
onChanged();
return this;
}
private java.lang.Object path_ = "";
/**
* optional string path = 9;
*/
public boolean hasPath() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional string path = 9;
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
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()) {
path_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string path = 9;
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string path = 9;
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
path_ = value;
onChanged();
return this;
}
/**
* optional string path = 9;
*/
public Builder clearPath() {
bitField0_ = (bitField0_ & ~0x00000100);
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
* optional string path = 9;
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
path_ = value;
onChanged();
return this;
}
private java.lang.Object language_ = "";
/**
* optional string language = 10;
*/
public boolean hasLanguage() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional string language = 10;
*/
public java.lang.String getLanguage() {
java.lang.Object ref = language_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
language_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string language = 10;
*/
public com.google.protobuf.ByteString
getLanguageBytes() {
java.lang.Object ref = language_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
language_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string language = 10;
*/
public Builder setLanguage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
language_ = value;
onChanged();
return this;
}
/**
* optional string language = 10;
*/
public Builder clearLanguage() {
bitField0_ = (bitField0_ & ~0x00000200);
language_ = getDefaultInstance().getLanguage();
onChanged();
return this;
}
/**
* optional string language = 10;
*/
public Builder setLanguageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
language_ = value;
onChanged();
return this;
}
private java.util.List measures_ =
java.util.Collections.emptyList();
private void ensureMeasuresIsMutable() {
if (!((bitField0_ & 0x00000400) == 0x00000400)) {
measures_ = new java.util.ArrayList(measures_);
bitField0_ |= 0x00000400;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.WsMeasures.Measure, org.sonarqube.ws.WsMeasures.Measure.Builder, org.sonarqube.ws.WsMeasures.MeasureOrBuilder> measuresBuilder_;
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
public java.util.List getMeasuresList() {
if (measuresBuilder_ == null) {
return java.util.Collections.unmodifiableList(measures_);
} else {
return measuresBuilder_.getMessageList();
}
}
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
public int getMeasuresCount() {
if (measuresBuilder_ == null) {
return measures_.size();
} else {
return measuresBuilder_.getCount();
}
}
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
public org.sonarqube.ws.WsMeasures.Measure getMeasures(int index) {
if (measuresBuilder_ == null) {
return measures_.get(index);
} else {
return measuresBuilder_.getMessage(index);
}
}
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
public Builder setMeasures(
int index, org.sonarqube.ws.WsMeasures.Measure value) {
if (measuresBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMeasuresIsMutable();
measures_.set(index, value);
onChanged();
} else {
measuresBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
public Builder setMeasures(
int index, org.sonarqube.ws.WsMeasures.Measure.Builder builderForValue) {
if (measuresBuilder_ == null) {
ensureMeasuresIsMutable();
measures_.set(index, builderForValue.build());
onChanged();
} else {
measuresBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
public Builder addMeasures(org.sonarqube.ws.WsMeasures.Measure value) {
if (measuresBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMeasuresIsMutable();
measures_.add(value);
onChanged();
} else {
measuresBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
public Builder addMeasures(
int index, org.sonarqube.ws.WsMeasures.Measure value) {
if (measuresBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMeasuresIsMutable();
measures_.add(index, value);
onChanged();
} else {
measuresBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
public Builder addMeasures(
org.sonarqube.ws.WsMeasures.Measure.Builder builderForValue) {
if (measuresBuilder_ == null) {
ensureMeasuresIsMutable();
measures_.add(builderForValue.build());
onChanged();
} else {
measuresBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
public Builder addMeasures(
int index, org.sonarqube.ws.WsMeasures.Measure.Builder builderForValue) {
if (measuresBuilder_ == null) {
ensureMeasuresIsMutable();
measures_.add(index, builderForValue.build());
onChanged();
} else {
measuresBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
public Builder addAllMeasures(
java.lang.Iterable extends org.sonarqube.ws.WsMeasures.Measure> values) {
if (measuresBuilder_ == null) {
ensureMeasuresIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, measures_);
onChanged();
} else {
measuresBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
public Builder clearMeasures() {
if (measuresBuilder_ == null) {
measures_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
} else {
measuresBuilder_.clear();
}
return this;
}
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
public Builder removeMeasures(int index) {
if (measuresBuilder_ == null) {
ensureMeasuresIsMutable();
measures_.remove(index);
onChanged();
} else {
measuresBuilder_.remove(index);
}
return this;
}
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
public org.sonarqube.ws.WsMeasures.Measure.Builder getMeasuresBuilder(
int index) {
return getMeasuresFieldBuilder().getBuilder(index);
}
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
public org.sonarqube.ws.WsMeasures.MeasureOrBuilder getMeasuresOrBuilder(
int index) {
if (measuresBuilder_ == null) {
return measures_.get(index); } else {
return measuresBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
public java.util.List extends org.sonarqube.ws.WsMeasures.MeasureOrBuilder>
getMeasuresOrBuilderList() {
if (measuresBuilder_ != null) {
return measuresBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(measures_);
}
}
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
public org.sonarqube.ws.WsMeasures.Measure.Builder addMeasuresBuilder() {
return getMeasuresFieldBuilder().addBuilder(
org.sonarqube.ws.WsMeasures.Measure.getDefaultInstance());
}
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
public org.sonarqube.ws.WsMeasures.Measure.Builder addMeasuresBuilder(
int index) {
return getMeasuresFieldBuilder().addBuilder(
index, org.sonarqube.ws.WsMeasures.Measure.getDefaultInstance());
}
/**
* repeated .sonarqube.ws.measures.Measure measures = 11;
*/
public java.util.List
getMeasuresBuilderList() {
return getMeasuresFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.WsMeasures.Measure, org.sonarqube.ws.WsMeasures.Measure.Builder, org.sonarqube.ws.WsMeasures.MeasureOrBuilder>
getMeasuresFieldBuilder() {
if (measuresBuilder_ == null) {
measuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.WsMeasures.Measure, org.sonarqube.ws.WsMeasures.Measure.Builder, org.sonarqube.ws.WsMeasures.MeasureOrBuilder>(
measures_,
((bitField0_ & 0x00000400) == 0x00000400),
getParentForChildren(),
isClean());
measures_ = null;
}
return measuresBuilder_;
}
// @@protoc_insertion_point(builder_scope:sonarqube.ws.measures.Component)
}
// @@protoc_insertion_point(class_scope:sonarqube.ws.measures.Component)
private static final org.sonarqube.ws.WsMeasures.Component DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.sonarqube.ws.WsMeasures.Component();
}
public static org.sonarqube.ws.WsMeasures.Component getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Component parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new Component(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.WsMeasures.Component getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PeriodOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.measures.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.measures.Period}
*/
public static final class Period extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.measures.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.WsMeasures.internal_static_sonarqube_ws_measures_Period_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_Period_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsMeasures.Period.class, org.sonarqube.ws.WsMeasures.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.WsMeasures.Period parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsMeasures.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.WsMeasures.Period parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsMeasures.Period parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.sonarqube.ws.WsMeasures.Period parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsMeasures.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.WsMeasures.Period parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.sonarqube.ws.WsMeasures.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.WsMeasures.Period parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsMeasures.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.WsMeasures.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.measures.Period}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:sonarqube.ws.measures.Period)
org.sonarqube.ws.WsMeasures.PeriodOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_Period_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_Period_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsMeasures.Period.class, org.sonarqube.ws.WsMeasures.Period.Builder.class);
}
// Construct using org.sonarqube.ws.WsMeasures.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.WsMeasures.internal_static_sonarqube_ws_measures_Period_descriptor;
}
public org.sonarqube.ws.WsMeasures.Period getDefaultInstanceForType() {
return org.sonarqube.ws.WsMeasures.Period.getDefaultInstance();
}
public org.sonarqube.ws.WsMeasures.Period build() {
org.sonarqube.ws.WsMeasures.Period result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.sonarqube.ws.WsMeasures.Period buildPartial() {
org.sonarqube.ws.WsMeasures.Period result = new org.sonarqube.ws.WsMeasures.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.WsMeasures.Period) {
return mergeFrom((org.sonarqube.ws.WsMeasures.Period)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.sonarqube.ws.WsMeasures.Period other) {
if (other == org.sonarqube.ws.WsMeasures.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.WsMeasures.Period parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.sonarqube.ws.WsMeasures.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.measures.Period)
}
// @@protoc_insertion_point(class_scope:sonarqube.ws.measures.Period)
private static final org.sonarqube.ws.WsMeasures.Period DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.sonarqube.ws.WsMeasures.Period();
}
public static org.sonarqube.ws.WsMeasures.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.WsMeasures.Period getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PeriodsOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.measures.Periods)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .sonarqube.ws.measures.Period periods = 1;
*/
java.util.List
getPeriodsList();
/**
* repeated .sonarqube.ws.measures.Period periods = 1;
*/
org.sonarqube.ws.WsMeasures.Period getPeriods(int index);
/**
* repeated .sonarqube.ws.measures.Period periods = 1;
*/
int getPeriodsCount();
/**
* repeated .sonarqube.ws.measures.Period periods = 1;
*/
java.util.List extends org.sonarqube.ws.WsMeasures.PeriodOrBuilder>
getPeriodsOrBuilderList();
/**
* repeated .sonarqube.ws.measures.Period periods = 1;
*/
org.sonarqube.ws.WsMeasures.PeriodOrBuilder getPeriodsOrBuilder(
int index);
}
/**
* Protobuf type {@code sonarqube.ws.measures.Periods}
*/
public static final class Periods extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.measures.Periods)
PeriodsOrBuilder {
// Use Periods.newBuilder() to construct.
private Periods(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Periods() {
periods_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Periods(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
periods_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
periods_.add(input.readMessage(org.sonarqube.ws.WsMeasures.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_ & 0x00000001) == 0x00000001)) {
periods_ = java.util.Collections.unmodifiableList(periods_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_Periods_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_Periods_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsMeasures.Periods.class, org.sonarqube.ws.WsMeasures.Periods.Builder.class);
}
public static final int PERIODS_FIELD_NUMBER = 1;
private java.util.List periods_;
/**
* repeated .sonarqube.ws.measures.Period periods = 1;
*/
public java.util.List getPeriodsList() {
return periods_;
}
/**
* repeated .sonarqube.ws.measures.Period periods = 1;
*/
public java.util.List extends org.sonarqube.ws.WsMeasures.PeriodOrBuilder>
getPeriodsOrBuilderList() {
return periods_;
}
/**
* repeated .sonarqube.ws.measures.Period periods = 1;
*/
public int getPeriodsCount() {
return periods_.size();
}
/**
* repeated .sonarqube.ws.measures.Period periods = 1;
*/
public org.sonarqube.ws.WsMeasures.Period getPeriods(int index) {
return periods_.get(index);
}
/**
* repeated .sonarqube.ws.measures.Period periods = 1;
*/
public org.sonarqube.ws.WsMeasures.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 {
for (int i = 0; i < periods_.size(); i++) {
output.writeMessage(1, periods_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < periods_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, periods_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.sonarqube.ws.WsMeasures.Periods parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsMeasures.Periods 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.WsMeasures.Periods parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsMeasures.Periods parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.sonarqube.ws.WsMeasures.Periods parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsMeasures.Periods parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.WsMeasures.Periods parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.sonarqube.ws.WsMeasures.Periods parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.WsMeasures.Periods parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsMeasures.Periods 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.WsMeasures.Periods 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.measures.Periods}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:sonarqube.ws.measures.Periods)
org.sonarqube.ws.WsMeasures.PeriodsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_Periods_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_Periods_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsMeasures.Periods.class, org.sonarqube.ws.WsMeasures.Periods.Builder.class);
}
// Construct using org.sonarqube.ws.WsMeasures.Periods.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getPeriodsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (periodsBuilder_ == null) {
periods_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
periodsBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_Periods_descriptor;
}
public org.sonarqube.ws.WsMeasures.Periods getDefaultInstanceForType() {
return org.sonarqube.ws.WsMeasures.Periods.getDefaultInstance();
}
public org.sonarqube.ws.WsMeasures.Periods build() {
org.sonarqube.ws.WsMeasures.Periods result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.sonarqube.ws.WsMeasures.Periods buildPartial() {
org.sonarqube.ws.WsMeasures.Periods result = new org.sonarqube.ws.WsMeasures.Periods(this);
int from_bitField0_ = bitField0_;
if (periodsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
periods_ = java.util.Collections.unmodifiableList(periods_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.periods_ = periods_;
} else {
result.periods_ = periodsBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.sonarqube.ws.WsMeasures.Periods) {
return mergeFrom((org.sonarqube.ws.WsMeasures.Periods)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.sonarqube.ws.WsMeasures.Periods other) {
if (other == org.sonarqube.ws.WsMeasures.Periods.getDefaultInstance()) return this;
if (periodsBuilder_ == null) {
if (!other.periods_.isEmpty()) {
if (periods_.isEmpty()) {
periods_ = other.periods_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePeriodsIsMutable();
periods_.addAll(other.periods_);
}
onChanged();
}
} else {
if (!other.periods_.isEmpty()) {
if (periodsBuilder_.isEmpty()) {
periodsBuilder_.dispose();
periodsBuilder_ = null;
periods_ = other.periods_;
bitField0_ = (bitField0_ & ~0x00000001);
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.WsMeasures.Periods parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.sonarqube.ws.WsMeasures.Periods) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List periods_ =
java.util.Collections.emptyList();
private void ensurePeriodsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
periods_ = new java.util.ArrayList(periods_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.WsMeasures.Period, org.sonarqube.ws.WsMeasures.Period.Builder, org.sonarqube.ws.WsMeasures.PeriodOrBuilder> periodsBuilder_;
/**
* repeated .sonarqube.ws.measures.Period periods = 1;
*/
public java.util.List getPeriodsList() {
if (periodsBuilder_ == null) {
return java.util.Collections.unmodifiableList(periods_);
} else {
return periodsBuilder_.getMessageList();
}
}
/**
* repeated .sonarqube.ws.measures.Period periods = 1;
*/
public int getPeriodsCount() {
if (periodsBuilder_ == null) {
return periods_.size();
} else {
return periodsBuilder_.getCount();
}
}
/**
* repeated .sonarqube.ws.measures.Period periods = 1;
*/
public org.sonarqube.ws.WsMeasures.Period getPeriods(int index) {
if (periodsBuilder_ == null) {
return periods_.get(index);
} else {
return periodsBuilder_.getMessage(index);
}
}
/**
* repeated .sonarqube.ws.measures.Period periods = 1;
*/
public Builder setPeriods(
int index, org.sonarqube.ws.WsMeasures.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.measures.Period periods = 1;
*/
public Builder setPeriods(
int index, org.sonarqube.ws.WsMeasures.Period.Builder builderForValue) {
if (periodsBuilder_ == null) {
ensurePeriodsIsMutable();
periods_.set(index, builderForValue.build());
onChanged();
} else {
periodsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.measures.Period periods = 1;
*/
public Builder addPeriods(org.sonarqube.ws.WsMeasures.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.measures.Period periods = 1;
*/
public Builder addPeriods(
int index, org.sonarqube.ws.WsMeasures.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.measures.Period periods = 1;
*/
public Builder addPeriods(
org.sonarqube.ws.WsMeasures.Period.Builder builderForValue) {
if (periodsBuilder_ == null) {
ensurePeriodsIsMutable();
periods_.add(builderForValue.build());
onChanged();
} else {
periodsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.measures.Period periods = 1;
*/
public Builder addPeriods(
int index, org.sonarqube.ws.WsMeasures.Period.Builder builderForValue) {
if (periodsBuilder_ == null) {
ensurePeriodsIsMutable();
periods_.add(index, builderForValue.build());
onChanged();
} else {
periodsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.measures.Period periods = 1;
*/
public Builder addAllPeriods(
java.lang.Iterable extends org.sonarqube.ws.WsMeasures.Period> values) {
if (periodsBuilder_ == null) {
ensurePeriodsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, periods_);
onChanged();
} else {
periodsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .sonarqube.ws.measures.Period periods = 1;
*/
public Builder clearPeriods() {
if (periodsBuilder_ == null) {
periods_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
periodsBuilder_.clear();
}
return this;
}
/**
* repeated .sonarqube.ws.measures.Period periods = 1;
*/
public Builder removePeriods(int index) {
if (periodsBuilder_ == null) {
ensurePeriodsIsMutable();
periods_.remove(index);
onChanged();
} else {
periodsBuilder_.remove(index);
}
return this;
}
/**
* repeated .sonarqube.ws.measures.Period periods = 1;
*/
public org.sonarqube.ws.WsMeasures.Period.Builder getPeriodsBuilder(
int index) {
return getPeriodsFieldBuilder().getBuilder(index);
}
/**
* repeated .sonarqube.ws.measures.Period periods = 1;
*/
public org.sonarqube.ws.WsMeasures.PeriodOrBuilder getPeriodsOrBuilder(
int index) {
if (periodsBuilder_ == null) {
return periods_.get(index); } else {
return periodsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .sonarqube.ws.measures.Period periods = 1;
*/
public java.util.List extends org.sonarqube.ws.WsMeasures.PeriodOrBuilder>
getPeriodsOrBuilderList() {
if (periodsBuilder_ != null) {
return periodsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(periods_);
}
}
/**
* repeated .sonarqube.ws.measures.Period periods = 1;
*/
public org.sonarqube.ws.WsMeasures.Period.Builder addPeriodsBuilder() {
return getPeriodsFieldBuilder().addBuilder(
org.sonarqube.ws.WsMeasures.Period.getDefaultInstance());
}
/**
* repeated .sonarqube.ws.measures.Period periods = 1;
*/
public org.sonarqube.ws.WsMeasures.Period.Builder addPeriodsBuilder(
int index) {
return getPeriodsFieldBuilder().addBuilder(
index, org.sonarqube.ws.WsMeasures.Period.getDefaultInstance());
}
/**
* repeated .sonarqube.ws.measures.Period periods = 1;
*/
public java.util.List
getPeriodsBuilderList() {
return getPeriodsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.WsMeasures.Period, org.sonarqube.ws.WsMeasures.Period.Builder, org.sonarqube.ws.WsMeasures.PeriodOrBuilder>
getPeriodsFieldBuilder() {
if (periodsBuilder_ == null) {
periodsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.WsMeasures.Period, org.sonarqube.ws.WsMeasures.Period.Builder, org.sonarqube.ws.WsMeasures.PeriodOrBuilder>(
periods_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
periods_ = null;
}
return periodsBuilder_;
}
// @@protoc_insertion_point(builder_scope:sonarqube.ws.measures.Periods)
}
// @@protoc_insertion_point(class_scope:sonarqube.ws.measures.Periods)
private static final org.sonarqube.ws.WsMeasures.Periods DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.sonarqube.ws.WsMeasures.Periods();
}
public static org.sonarqube.ws.WsMeasures.Periods getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Periods parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new Periods(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.WsMeasures.Periods getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MetricsOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.measures.Metrics)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
java.util.List
getMetricsList();
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
org.sonarqube.ws.Common.Metric getMetrics(int index);
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
int getMetricsCount();
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
java.util.List extends org.sonarqube.ws.Common.MetricOrBuilder>
getMetricsOrBuilderList();
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
org.sonarqube.ws.Common.MetricOrBuilder getMetricsOrBuilder(
int index);
}
/**
* Protobuf type {@code sonarqube.ws.measures.Metrics}
*/
public static final class Metrics extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.measures.Metrics)
MetricsOrBuilder {
// Use Metrics.newBuilder() to construct.
private Metrics(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Metrics() {
metrics_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Metrics(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
metrics_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
metrics_.add(input.readMessage(org.sonarqube.ws.Common.Metric.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
metrics_ = java.util.Collections.unmodifiableList(metrics_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_Metrics_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_Metrics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsMeasures.Metrics.class, org.sonarqube.ws.WsMeasures.Metrics.Builder.class);
}
public static final int METRICS_FIELD_NUMBER = 1;
private java.util.List metrics_;
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
public java.util.List getMetricsList() {
return metrics_;
}
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
public java.util.List extends org.sonarqube.ws.Common.MetricOrBuilder>
getMetricsOrBuilderList() {
return metrics_;
}
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
public int getMetricsCount() {
return metrics_.size();
}
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
public org.sonarqube.ws.Common.Metric getMetrics(int index) {
return metrics_.get(index);
}
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
public org.sonarqube.ws.Common.MetricOrBuilder getMetricsOrBuilder(
int index) {
return metrics_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < metrics_.size(); i++) {
output.writeMessage(1, metrics_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < metrics_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, metrics_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.sonarqube.ws.WsMeasures.Metrics parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsMeasures.Metrics 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.WsMeasures.Metrics parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsMeasures.Metrics parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.sonarqube.ws.WsMeasures.Metrics parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsMeasures.Metrics parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.WsMeasures.Metrics parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.sonarqube.ws.WsMeasures.Metrics parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.WsMeasures.Metrics parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsMeasures.Metrics 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.WsMeasures.Metrics 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.measures.Metrics}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:sonarqube.ws.measures.Metrics)
org.sonarqube.ws.WsMeasures.MetricsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_Metrics_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_Metrics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsMeasures.Metrics.class, org.sonarqube.ws.WsMeasures.Metrics.Builder.class);
}
// Construct using org.sonarqube.ws.WsMeasures.Metrics.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getMetricsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (metricsBuilder_ == null) {
metrics_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
metricsBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_Metrics_descriptor;
}
public org.sonarqube.ws.WsMeasures.Metrics getDefaultInstanceForType() {
return org.sonarqube.ws.WsMeasures.Metrics.getDefaultInstance();
}
public org.sonarqube.ws.WsMeasures.Metrics build() {
org.sonarqube.ws.WsMeasures.Metrics result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.sonarqube.ws.WsMeasures.Metrics buildPartial() {
org.sonarqube.ws.WsMeasures.Metrics result = new org.sonarqube.ws.WsMeasures.Metrics(this);
int from_bitField0_ = bitField0_;
if (metricsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
metrics_ = java.util.Collections.unmodifiableList(metrics_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.metrics_ = metrics_;
} else {
result.metrics_ = metricsBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.sonarqube.ws.WsMeasures.Metrics) {
return mergeFrom((org.sonarqube.ws.WsMeasures.Metrics)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.sonarqube.ws.WsMeasures.Metrics other) {
if (other == org.sonarqube.ws.WsMeasures.Metrics.getDefaultInstance()) return this;
if (metricsBuilder_ == null) {
if (!other.metrics_.isEmpty()) {
if (metrics_.isEmpty()) {
metrics_ = other.metrics_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureMetricsIsMutable();
metrics_.addAll(other.metrics_);
}
onChanged();
}
} else {
if (!other.metrics_.isEmpty()) {
if (metricsBuilder_.isEmpty()) {
metricsBuilder_.dispose();
metricsBuilder_ = null;
metrics_ = other.metrics_;
bitField0_ = (bitField0_ & ~0x00000001);
metricsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getMetricsFieldBuilder() : null;
} else {
metricsBuilder_.addAllMessages(other.metrics_);
}
}
}
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.WsMeasures.Metrics parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.sonarqube.ws.WsMeasures.Metrics) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List metrics_ =
java.util.Collections.emptyList();
private void ensureMetricsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
metrics_ = new java.util.ArrayList(metrics_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.Common.Metric, org.sonarqube.ws.Common.Metric.Builder, org.sonarqube.ws.Common.MetricOrBuilder> metricsBuilder_;
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
public java.util.List getMetricsList() {
if (metricsBuilder_ == null) {
return java.util.Collections.unmodifiableList(metrics_);
} else {
return metricsBuilder_.getMessageList();
}
}
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
public int getMetricsCount() {
if (metricsBuilder_ == null) {
return metrics_.size();
} else {
return metricsBuilder_.getCount();
}
}
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
public org.sonarqube.ws.Common.Metric getMetrics(int index) {
if (metricsBuilder_ == null) {
return metrics_.get(index);
} else {
return metricsBuilder_.getMessage(index);
}
}
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
public Builder setMetrics(
int index, org.sonarqube.ws.Common.Metric value) {
if (metricsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMetricsIsMutable();
metrics_.set(index, value);
onChanged();
} else {
metricsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
public Builder setMetrics(
int index, org.sonarqube.ws.Common.Metric.Builder builderForValue) {
if (metricsBuilder_ == null) {
ensureMetricsIsMutable();
metrics_.set(index, builderForValue.build());
onChanged();
} else {
metricsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
public Builder addMetrics(org.sonarqube.ws.Common.Metric value) {
if (metricsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMetricsIsMutable();
metrics_.add(value);
onChanged();
} else {
metricsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
public Builder addMetrics(
int index, org.sonarqube.ws.Common.Metric value) {
if (metricsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMetricsIsMutable();
metrics_.add(index, value);
onChanged();
} else {
metricsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
public Builder addMetrics(
org.sonarqube.ws.Common.Metric.Builder builderForValue) {
if (metricsBuilder_ == null) {
ensureMetricsIsMutable();
metrics_.add(builderForValue.build());
onChanged();
} else {
metricsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
public Builder addMetrics(
int index, org.sonarqube.ws.Common.Metric.Builder builderForValue) {
if (metricsBuilder_ == null) {
ensureMetricsIsMutable();
metrics_.add(index, builderForValue.build());
onChanged();
} else {
metricsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
public Builder addAllMetrics(
java.lang.Iterable extends org.sonarqube.ws.Common.Metric> values) {
if (metricsBuilder_ == null) {
ensureMetricsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, metrics_);
onChanged();
} else {
metricsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
public Builder clearMetrics() {
if (metricsBuilder_ == null) {
metrics_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
metricsBuilder_.clear();
}
return this;
}
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
public Builder removeMetrics(int index) {
if (metricsBuilder_ == null) {
ensureMetricsIsMutable();
metrics_.remove(index);
onChanged();
} else {
metricsBuilder_.remove(index);
}
return this;
}
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
public org.sonarqube.ws.Common.Metric.Builder getMetricsBuilder(
int index) {
return getMetricsFieldBuilder().getBuilder(index);
}
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
public org.sonarqube.ws.Common.MetricOrBuilder getMetricsOrBuilder(
int index) {
if (metricsBuilder_ == null) {
return metrics_.get(index); } else {
return metricsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
public java.util.List extends org.sonarqube.ws.Common.MetricOrBuilder>
getMetricsOrBuilderList() {
if (metricsBuilder_ != null) {
return metricsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(metrics_);
}
}
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
public org.sonarqube.ws.Common.Metric.Builder addMetricsBuilder() {
return getMetricsFieldBuilder().addBuilder(
org.sonarqube.ws.Common.Metric.getDefaultInstance());
}
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
public org.sonarqube.ws.Common.Metric.Builder addMetricsBuilder(
int index) {
return getMetricsFieldBuilder().addBuilder(
index, org.sonarqube.ws.Common.Metric.getDefaultInstance());
}
/**
* repeated .sonarqube.ws.commons.Metric metrics = 1;
*/
public java.util.List
getMetricsBuilderList() {
return getMetricsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.Common.Metric, org.sonarqube.ws.Common.Metric.Builder, org.sonarqube.ws.Common.MetricOrBuilder>
getMetricsFieldBuilder() {
if (metricsBuilder_ == null) {
metricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.Common.Metric, org.sonarqube.ws.Common.Metric.Builder, org.sonarqube.ws.Common.MetricOrBuilder>(
metrics_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
metrics_ = null;
}
return metricsBuilder_;
}
// @@protoc_insertion_point(builder_scope:sonarqube.ws.measures.Metrics)
}
// @@protoc_insertion_point(class_scope:sonarqube.ws.measures.Metrics)
private static final org.sonarqube.ws.WsMeasures.Metrics DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.sonarqube.ws.WsMeasures.Metrics();
}
public static org.sonarqube.ws.WsMeasures.Metrics getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Metrics parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new Metrics(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.WsMeasures.Metrics getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MeasureOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.measures.Measure)
com.google.protobuf.MessageOrBuilder {
/**
* optional string metric = 1;
*/
boolean hasMetric();
/**
* optional string metric = 1;
*/
java.lang.String getMetric();
/**
* optional string metric = 1;
*/
com.google.protobuf.ByteString
getMetricBytes();
/**
* optional string value = 2;
*/
boolean hasValue();
/**
* optional string value = 2;
*/
java.lang.String getValue();
/**
* optional string value = 2;
*/
com.google.protobuf.ByteString
getValueBytes();
/**
* optional .sonarqube.ws.measures.PeriodsValue periods = 3;
*/
boolean hasPeriods();
/**
* optional .sonarqube.ws.measures.PeriodsValue periods = 3;
*/
org.sonarqube.ws.WsMeasures.PeriodsValue getPeriods();
/**
* optional .sonarqube.ws.measures.PeriodsValue periods = 3;
*/
org.sonarqube.ws.WsMeasures.PeriodsValueOrBuilder getPeriodsOrBuilder();
}
/**
* Protobuf type {@code sonarqube.ws.measures.Measure}
*/
public static final class Measure extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.measures.Measure)
MeasureOrBuilder {
// Use Measure.newBuilder() to construct.
private Measure(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Measure() {
metric_ = "";
value_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Measure(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
metric_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
value_ = bs;
break;
}
case 26: {
org.sonarqube.ws.WsMeasures.PeriodsValue.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = periods_.toBuilder();
}
periods_ = input.readMessage(org.sonarqube.ws.WsMeasures.PeriodsValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(periods_);
periods_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
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.WsMeasures.internal_static_sonarqube_ws_measures_Measure_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_Measure_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsMeasures.Measure.class, org.sonarqube.ws.WsMeasures.Measure.Builder.class);
}
private int bitField0_;
public static final int METRIC_FIELD_NUMBER = 1;
private volatile java.lang.Object metric_;
/**
* optional string metric = 1;
*/
public boolean hasMetric() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string metric = 1;
*/
public java.lang.String getMetric() {
java.lang.Object ref = metric_;
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()) {
metric_ = s;
}
return s;
}
}
/**
* optional string metric = 1;
*/
public com.google.protobuf.ByteString
getMetricBytes() {
java.lang.Object ref = metric_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
metric_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 2;
private volatile java.lang.Object value_;
/**
* optional string value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string value = 2;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
}
}
/**
* optional string value = 2;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PERIODS_FIELD_NUMBER = 3;
private org.sonarqube.ws.WsMeasures.PeriodsValue periods_;
/**
* optional .sonarqube.ws.measures.PeriodsValue periods = 3;
*/
public boolean hasPeriods() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .sonarqube.ws.measures.PeriodsValue periods = 3;
*/
public org.sonarqube.ws.WsMeasures.PeriodsValue getPeriods() {
return periods_ == null ? org.sonarqube.ws.WsMeasures.PeriodsValue.getDefaultInstance() : periods_;
}
/**
* optional .sonarqube.ws.measures.PeriodsValue periods = 3;
*/
public org.sonarqube.ws.WsMeasures.PeriodsValueOrBuilder getPeriodsOrBuilder() {
return periods_ == null ? org.sonarqube.ws.WsMeasures.PeriodsValue.getDefaultInstance() : periods_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, metric_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, value_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getPeriods());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, metric_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, value_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getPeriods());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.sonarqube.ws.WsMeasures.Measure parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsMeasures.Measure 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.WsMeasures.Measure parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsMeasures.Measure parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.sonarqube.ws.WsMeasures.Measure parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsMeasures.Measure parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.WsMeasures.Measure parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.sonarqube.ws.WsMeasures.Measure parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.WsMeasures.Measure parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsMeasures.Measure 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.WsMeasures.Measure 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.measures.Measure}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:sonarqube.ws.measures.Measure)
org.sonarqube.ws.WsMeasures.MeasureOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_Measure_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_Measure_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsMeasures.Measure.class, org.sonarqube.ws.WsMeasures.Measure.Builder.class);
}
// Construct using org.sonarqube.ws.WsMeasures.Measure.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getPeriodsFieldBuilder();
}
}
public Builder clear() {
super.clear();
metric_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
value_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
if (periodsBuilder_ == null) {
periods_ = null;
} else {
periodsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_Measure_descriptor;
}
public org.sonarqube.ws.WsMeasures.Measure getDefaultInstanceForType() {
return org.sonarqube.ws.WsMeasures.Measure.getDefaultInstance();
}
public org.sonarqube.ws.WsMeasures.Measure build() {
org.sonarqube.ws.WsMeasures.Measure result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.sonarqube.ws.WsMeasures.Measure buildPartial() {
org.sonarqube.ws.WsMeasures.Measure result = new org.sonarqube.ws.WsMeasures.Measure(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.metric_ = metric_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.value_ = value_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (periodsBuilder_ == null) {
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.WsMeasures.Measure) {
return mergeFrom((org.sonarqube.ws.WsMeasures.Measure)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.sonarqube.ws.WsMeasures.Measure other) {
if (other == org.sonarqube.ws.WsMeasures.Measure.getDefaultInstance()) return this;
if (other.hasMetric()) {
bitField0_ |= 0x00000001;
metric_ = other.metric_;
onChanged();
}
if (other.hasValue()) {
bitField0_ |= 0x00000002;
value_ = other.value_;
onChanged();
}
if (other.hasPeriods()) {
mergePeriods(other.getPeriods());
}
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.WsMeasures.Measure parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.sonarqube.ws.WsMeasures.Measure) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object metric_ = "";
/**
* optional string metric = 1;
*/
public boolean hasMetric() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string metric = 1;
*/
public java.lang.String getMetric() {
java.lang.Object ref = metric_;
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()) {
metric_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string metric = 1;
*/
public com.google.protobuf.ByteString
getMetricBytes() {
java.lang.Object ref = metric_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
metric_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string metric = 1;
*/
public Builder setMetric(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
metric_ = value;
onChanged();
return this;
}
/**
* optional string metric = 1;
*/
public Builder clearMetric() {
bitField0_ = (bitField0_ & ~0x00000001);
metric_ = getDefaultInstance().getMetric();
onChanged();
return this;
}
/**
* optional string metric = 1;
*/
public Builder setMetricBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
metric_ = value;
onChanged();
return this;
}
private java.lang.Object value_ = "";
/**
* optional string value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string value = 2;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string value = 2;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string value = 2;
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
/**
* optional string value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* optional string value = 2;
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
private org.sonarqube.ws.WsMeasures.PeriodsValue periods_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.WsMeasures.PeriodsValue, org.sonarqube.ws.WsMeasures.PeriodsValue.Builder, org.sonarqube.ws.WsMeasures.PeriodsValueOrBuilder> periodsBuilder_;
/**
* optional .sonarqube.ws.measures.PeriodsValue periods = 3;
*/
public boolean hasPeriods() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .sonarqube.ws.measures.PeriodsValue periods = 3;
*/
public org.sonarqube.ws.WsMeasures.PeriodsValue getPeriods() {
if (periodsBuilder_ == null) {
return periods_ == null ? org.sonarqube.ws.WsMeasures.PeriodsValue.getDefaultInstance() : periods_;
} else {
return periodsBuilder_.getMessage();
}
}
/**
* optional .sonarqube.ws.measures.PeriodsValue periods = 3;
*/
public Builder setPeriods(org.sonarqube.ws.WsMeasures.PeriodsValue value) {
if (periodsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
periods_ = value;
onChanged();
} else {
periodsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .sonarqube.ws.measures.PeriodsValue periods = 3;
*/
public Builder setPeriods(
org.sonarqube.ws.WsMeasures.PeriodsValue.Builder builderForValue) {
if (periodsBuilder_ == null) {
periods_ = builderForValue.build();
onChanged();
} else {
periodsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .sonarqube.ws.measures.PeriodsValue periods = 3;
*/
public Builder mergePeriods(org.sonarqube.ws.WsMeasures.PeriodsValue value) {
if (periodsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
periods_ != null &&
periods_ != org.sonarqube.ws.WsMeasures.PeriodsValue.getDefaultInstance()) {
periods_ =
org.sonarqube.ws.WsMeasures.PeriodsValue.newBuilder(periods_).mergeFrom(value).buildPartial();
} else {
periods_ = value;
}
onChanged();
} else {
periodsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .sonarqube.ws.measures.PeriodsValue periods = 3;
*/
public Builder clearPeriods() {
if (periodsBuilder_ == null) {
periods_ = null;
onChanged();
} else {
periodsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .sonarqube.ws.measures.PeriodsValue periods = 3;
*/
public org.sonarqube.ws.WsMeasures.PeriodsValue.Builder getPeriodsBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getPeriodsFieldBuilder().getBuilder();
}
/**
* optional .sonarqube.ws.measures.PeriodsValue periods = 3;
*/
public org.sonarqube.ws.WsMeasures.PeriodsValueOrBuilder getPeriodsOrBuilder() {
if (periodsBuilder_ != null) {
return periodsBuilder_.getMessageOrBuilder();
} else {
return periods_ == null ?
org.sonarqube.ws.WsMeasures.PeriodsValue.getDefaultInstance() : periods_;
}
}
/**
* optional .sonarqube.ws.measures.PeriodsValue periods = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.WsMeasures.PeriodsValue, org.sonarqube.ws.WsMeasures.PeriodsValue.Builder, org.sonarqube.ws.WsMeasures.PeriodsValueOrBuilder>
getPeriodsFieldBuilder() {
if (periodsBuilder_ == null) {
periodsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.WsMeasures.PeriodsValue, org.sonarqube.ws.WsMeasures.PeriodsValue.Builder, org.sonarqube.ws.WsMeasures.PeriodsValueOrBuilder>(
getPeriods(),
getParentForChildren(),
isClean());
periods_ = null;
}
return periodsBuilder_;
}
// @@protoc_insertion_point(builder_scope:sonarqube.ws.measures.Measure)
}
// @@protoc_insertion_point(class_scope:sonarqube.ws.measures.Measure)
private static final org.sonarqube.ws.WsMeasures.Measure DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.sonarqube.ws.WsMeasures.Measure();
}
public static org.sonarqube.ws.WsMeasures.Measure getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Measure parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new Measure(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.WsMeasures.Measure getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PeriodsValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.measures.PeriodsValue)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
java.util.List
getPeriodsValueList();
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
org.sonarqube.ws.WsMeasures.PeriodValue getPeriodsValue(int index);
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
int getPeriodsValueCount();
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
java.util.List extends org.sonarqube.ws.WsMeasures.PeriodValueOrBuilder>
getPeriodsValueOrBuilderList();
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
org.sonarqube.ws.WsMeasures.PeriodValueOrBuilder getPeriodsValueOrBuilder(
int index);
}
/**
* Protobuf type {@code sonarqube.ws.measures.PeriodsValue}
*/
public static final class PeriodsValue extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.measures.PeriodsValue)
PeriodsValueOrBuilder {
// Use PeriodsValue.newBuilder() to construct.
private PeriodsValue(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private PeriodsValue() {
periodsValue_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PeriodsValue(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
periodsValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
periodsValue_.add(input.readMessage(org.sonarqube.ws.WsMeasures.PeriodValue.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
periodsValue_ = java.util.Collections.unmodifiableList(periodsValue_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_PeriodsValue_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_PeriodsValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsMeasures.PeriodsValue.class, org.sonarqube.ws.WsMeasures.PeriodsValue.Builder.class);
}
public static final int PERIODSVALUE_FIELD_NUMBER = 1;
private java.util.List periodsValue_;
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
public java.util.List getPeriodsValueList() {
return periodsValue_;
}
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
public java.util.List extends org.sonarqube.ws.WsMeasures.PeriodValueOrBuilder>
getPeriodsValueOrBuilderList() {
return periodsValue_;
}
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
public int getPeriodsValueCount() {
return periodsValue_.size();
}
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
public org.sonarqube.ws.WsMeasures.PeriodValue getPeriodsValue(int index) {
return periodsValue_.get(index);
}
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
public org.sonarqube.ws.WsMeasures.PeriodValueOrBuilder getPeriodsValueOrBuilder(
int index) {
return periodsValue_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < periodsValue_.size(); i++) {
output.writeMessage(1, periodsValue_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < periodsValue_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, periodsValue_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.sonarqube.ws.WsMeasures.PeriodsValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsMeasures.PeriodsValue 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.WsMeasures.PeriodsValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsMeasures.PeriodsValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.sonarqube.ws.WsMeasures.PeriodsValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsMeasures.PeriodsValue parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.WsMeasures.PeriodsValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.sonarqube.ws.WsMeasures.PeriodsValue parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.WsMeasures.PeriodsValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsMeasures.PeriodsValue 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.WsMeasures.PeriodsValue 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.measures.PeriodsValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:sonarqube.ws.measures.PeriodsValue)
org.sonarqube.ws.WsMeasures.PeriodsValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_PeriodsValue_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_PeriodsValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsMeasures.PeriodsValue.class, org.sonarqube.ws.WsMeasures.PeriodsValue.Builder.class);
}
// Construct using org.sonarqube.ws.WsMeasures.PeriodsValue.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getPeriodsValueFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (periodsValueBuilder_ == null) {
periodsValue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
periodsValueBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_PeriodsValue_descriptor;
}
public org.sonarqube.ws.WsMeasures.PeriodsValue getDefaultInstanceForType() {
return org.sonarqube.ws.WsMeasures.PeriodsValue.getDefaultInstance();
}
public org.sonarqube.ws.WsMeasures.PeriodsValue build() {
org.sonarqube.ws.WsMeasures.PeriodsValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.sonarqube.ws.WsMeasures.PeriodsValue buildPartial() {
org.sonarqube.ws.WsMeasures.PeriodsValue result = new org.sonarqube.ws.WsMeasures.PeriodsValue(this);
int from_bitField0_ = bitField0_;
if (periodsValueBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
periodsValue_ = java.util.Collections.unmodifiableList(periodsValue_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.periodsValue_ = periodsValue_;
} else {
result.periodsValue_ = periodsValueBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.sonarqube.ws.WsMeasures.PeriodsValue) {
return mergeFrom((org.sonarqube.ws.WsMeasures.PeriodsValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.sonarqube.ws.WsMeasures.PeriodsValue other) {
if (other == org.sonarqube.ws.WsMeasures.PeriodsValue.getDefaultInstance()) return this;
if (periodsValueBuilder_ == null) {
if (!other.periodsValue_.isEmpty()) {
if (periodsValue_.isEmpty()) {
periodsValue_ = other.periodsValue_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePeriodsValueIsMutable();
periodsValue_.addAll(other.periodsValue_);
}
onChanged();
}
} else {
if (!other.periodsValue_.isEmpty()) {
if (periodsValueBuilder_.isEmpty()) {
periodsValueBuilder_.dispose();
periodsValueBuilder_ = null;
periodsValue_ = other.periodsValue_;
bitField0_ = (bitField0_ & ~0x00000001);
periodsValueBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getPeriodsValueFieldBuilder() : null;
} else {
periodsValueBuilder_.addAllMessages(other.periodsValue_);
}
}
}
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.WsMeasures.PeriodsValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.sonarqube.ws.WsMeasures.PeriodsValue) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List periodsValue_ =
java.util.Collections.emptyList();
private void ensurePeriodsValueIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
periodsValue_ = new java.util.ArrayList(periodsValue_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.WsMeasures.PeriodValue, org.sonarqube.ws.WsMeasures.PeriodValue.Builder, org.sonarqube.ws.WsMeasures.PeriodValueOrBuilder> periodsValueBuilder_;
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
public java.util.List getPeriodsValueList() {
if (periodsValueBuilder_ == null) {
return java.util.Collections.unmodifiableList(periodsValue_);
} else {
return periodsValueBuilder_.getMessageList();
}
}
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
public int getPeriodsValueCount() {
if (periodsValueBuilder_ == null) {
return periodsValue_.size();
} else {
return periodsValueBuilder_.getCount();
}
}
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
public org.sonarqube.ws.WsMeasures.PeriodValue getPeriodsValue(int index) {
if (periodsValueBuilder_ == null) {
return periodsValue_.get(index);
} else {
return periodsValueBuilder_.getMessage(index);
}
}
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
public Builder setPeriodsValue(
int index, org.sonarqube.ws.WsMeasures.PeriodValue value) {
if (periodsValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePeriodsValueIsMutable();
periodsValue_.set(index, value);
onChanged();
} else {
periodsValueBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
public Builder setPeriodsValue(
int index, org.sonarqube.ws.WsMeasures.PeriodValue.Builder builderForValue) {
if (periodsValueBuilder_ == null) {
ensurePeriodsValueIsMutable();
periodsValue_.set(index, builderForValue.build());
onChanged();
} else {
periodsValueBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
public Builder addPeriodsValue(org.sonarqube.ws.WsMeasures.PeriodValue value) {
if (periodsValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePeriodsValueIsMutable();
periodsValue_.add(value);
onChanged();
} else {
periodsValueBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
public Builder addPeriodsValue(
int index, org.sonarqube.ws.WsMeasures.PeriodValue value) {
if (periodsValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePeriodsValueIsMutable();
periodsValue_.add(index, value);
onChanged();
} else {
periodsValueBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
public Builder addPeriodsValue(
org.sonarqube.ws.WsMeasures.PeriodValue.Builder builderForValue) {
if (periodsValueBuilder_ == null) {
ensurePeriodsValueIsMutable();
periodsValue_.add(builderForValue.build());
onChanged();
} else {
periodsValueBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
public Builder addPeriodsValue(
int index, org.sonarqube.ws.WsMeasures.PeriodValue.Builder builderForValue) {
if (periodsValueBuilder_ == null) {
ensurePeriodsValueIsMutable();
periodsValue_.add(index, builderForValue.build());
onChanged();
} else {
periodsValueBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
public Builder addAllPeriodsValue(
java.lang.Iterable extends org.sonarqube.ws.WsMeasures.PeriodValue> values) {
if (periodsValueBuilder_ == null) {
ensurePeriodsValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, periodsValue_);
onChanged();
} else {
periodsValueBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
public Builder clearPeriodsValue() {
if (periodsValueBuilder_ == null) {
periodsValue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
periodsValueBuilder_.clear();
}
return this;
}
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
public Builder removePeriodsValue(int index) {
if (periodsValueBuilder_ == null) {
ensurePeriodsValueIsMutable();
periodsValue_.remove(index);
onChanged();
} else {
periodsValueBuilder_.remove(index);
}
return this;
}
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
public org.sonarqube.ws.WsMeasures.PeriodValue.Builder getPeriodsValueBuilder(
int index) {
return getPeriodsValueFieldBuilder().getBuilder(index);
}
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
public org.sonarqube.ws.WsMeasures.PeriodValueOrBuilder getPeriodsValueOrBuilder(
int index) {
if (periodsValueBuilder_ == null) {
return periodsValue_.get(index); } else {
return periodsValueBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
public java.util.List extends org.sonarqube.ws.WsMeasures.PeriodValueOrBuilder>
getPeriodsValueOrBuilderList() {
if (periodsValueBuilder_ != null) {
return periodsValueBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(periodsValue_);
}
}
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
public org.sonarqube.ws.WsMeasures.PeriodValue.Builder addPeriodsValueBuilder() {
return getPeriodsValueFieldBuilder().addBuilder(
org.sonarqube.ws.WsMeasures.PeriodValue.getDefaultInstance());
}
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
public org.sonarqube.ws.WsMeasures.PeriodValue.Builder addPeriodsValueBuilder(
int index) {
return getPeriodsValueFieldBuilder().addBuilder(
index, org.sonarqube.ws.WsMeasures.PeriodValue.getDefaultInstance());
}
/**
* repeated .sonarqube.ws.measures.PeriodValue periodsValue = 1;
*/
public java.util.List
getPeriodsValueBuilderList() {
return getPeriodsValueFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.WsMeasures.PeriodValue, org.sonarqube.ws.WsMeasures.PeriodValue.Builder, org.sonarqube.ws.WsMeasures.PeriodValueOrBuilder>
getPeriodsValueFieldBuilder() {
if (periodsValueBuilder_ == null) {
periodsValueBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.sonarqube.ws.WsMeasures.PeriodValue, org.sonarqube.ws.WsMeasures.PeriodValue.Builder, org.sonarqube.ws.WsMeasures.PeriodValueOrBuilder>(
periodsValue_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
periodsValue_ = null;
}
return periodsValueBuilder_;
}
// @@protoc_insertion_point(builder_scope:sonarqube.ws.measures.PeriodsValue)
}
// @@protoc_insertion_point(class_scope:sonarqube.ws.measures.PeriodsValue)
private static final org.sonarqube.ws.WsMeasures.PeriodsValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.sonarqube.ws.WsMeasures.PeriodsValue();
}
public static org.sonarqube.ws.WsMeasures.PeriodsValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public PeriodsValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new PeriodsValue(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.WsMeasures.PeriodsValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PeriodValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.measures.PeriodValue)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 index = 1;
*/
boolean hasIndex();
/**
* optional int32 index = 1;
*/
int getIndex();
/**
* optional string value = 2;
*/
boolean hasValue();
/**
* optional string value = 2;
*/
java.lang.String getValue();
/**
* optional string value = 2;
*/
com.google.protobuf.ByteString
getValueBytes();
}
/**
* Protobuf type {@code sonarqube.ws.measures.PeriodValue}
*/
public static final class PeriodValue extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.measures.PeriodValue)
PeriodValueOrBuilder {
// Use PeriodValue.newBuilder() to construct.
private PeriodValue(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private PeriodValue() {
index_ = 0;
value_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PeriodValue(
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;
value_ = 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.WsMeasures.internal_static_sonarqube_ws_measures_PeriodValue_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_PeriodValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsMeasures.PeriodValue.class, org.sonarqube.ws.WsMeasures.PeriodValue.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 VALUE_FIELD_NUMBER = 2;
private volatile java.lang.Object value_;
/**
* optional string value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string value = 2;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
}
}
/**
* optional string value = 2;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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, value_);
}
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, value_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.sonarqube.ws.WsMeasures.PeriodValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsMeasures.PeriodValue 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.WsMeasures.PeriodValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.sonarqube.ws.WsMeasures.PeriodValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.sonarqube.ws.WsMeasures.PeriodValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsMeasures.PeriodValue parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.WsMeasures.PeriodValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.sonarqube.ws.WsMeasures.PeriodValue parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.sonarqube.ws.WsMeasures.PeriodValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.sonarqube.ws.WsMeasures.PeriodValue 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.WsMeasures.PeriodValue 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.measures.PeriodValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:sonarqube.ws.measures.PeriodValue)
org.sonarqube.ws.WsMeasures.PeriodValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_PeriodValue_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_PeriodValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.sonarqube.ws.WsMeasures.PeriodValue.class, org.sonarqube.ws.WsMeasures.PeriodValue.Builder.class);
}
// Construct using org.sonarqube.ws.WsMeasures.PeriodValue.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);
value_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.WsMeasures.internal_static_sonarqube_ws_measures_PeriodValue_descriptor;
}
public org.sonarqube.ws.WsMeasures.PeriodValue getDefaultInstanceForType() {
return org.sonarqube.ws.WsMeasures.PeriodValue.getDefaultInstance();
}
public org.sonarqube.ws.WsMeasures.PeriodValue build() {
org.sonarqube.ws.WsMeasures.PeriodValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.sonarqube.ws.WsMeasures.PeriodValue buildPartial() {
org.sonarqube.ws.WsMeasures.PeriodValue result = new org.sonarqube.ws.WsMeasures.PeriodValue(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.value_ = value_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.sonarqube.ws.WsMeasures.PeriodValue) {
return mergeFrom((org.sonarqube.ws.WsMeasures.PeriodValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.sonarqube.ws.WsMeasures.PeriodValue other) {
if (other == org.sonarqube.ws.WsMeasures.PeriodValue.getDefaultInstance()) return this;
if (other.hasIndex()) {
setIndex(other.getIndex());
}
if (other.hasValue()) {
bitField0_ |= 0x00000002;
value_ = other.value_;
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.WsMeasures.PeriodValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.sonarqube.ws.WsMeasures.PeriodValue) 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 value_ = "";
/**
* optional string value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string value = 2;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string value = 2;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string value = 2;
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
/**
* optional string value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* optional string value = 2;
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:sonarqube.ws.measures.PeriodValue)
}
// @@protoc_insertion_point(class_scope:sonarqube.ws.measures.PeriodValue)
private static final org.sonarqube.ws.WsMeasures.PeriodValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.sonarqube.ws.WsMeasures.PeriodValue();
}
public static org.sonarqube.ws.WsMeasures.PeriodValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public PeriodValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new PeriodValue(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.WsMeasures.PeriodValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_measures_ComponentTreeWsResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_measures_ComponentTreeWsResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_measures_ComponentWsResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_measures_ComponentWsResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_measures_Component_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_measures_Component_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_measures_Period_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_measures_Period_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_measures_Periods_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_measures_Periods_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_measures_Metrics_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_measures_Metrics_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_measures_Measure_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_measures_Measure_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_measures_PeriodsValue_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_measures_PeriodsValue_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_measures_PeriodValue_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_measures_PeriodValue_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\021ws-measures.proto\022\025sonarqube.ws.measur" +
"es\032\020ws-commons.proto\"\230\002\n\027ComponentTreeWs" +
"Response\022,\n\006paging\030\001 \001(\0132\034.sonarqube.ws." +
"commons.Paging\0227\n\rbaseComponent\030\002 \001(\0132 ." +
"sonarqube.ws.measures.Component\0224\n\ncompo" +
"nents\030\003 \003(\0132 .sonarqube.ws.measures.Comp" +
"onent\022/\n\007metrics\030\004 \001(\0132\036.sonarqube.ws.me" +
"asures.Metrics\022/\n\007periods\030\005 \001(\0132\036.sonarq" +
"ube.ws.measures.Periods\"\254\001\n\023ComponentWsR" +
"esponse\0223\n\tcomponent\030\001 \001(\0132 .sonarqube.w",
"s.measures.Component\022/\n\007metrics\030\002 \001(\0132\036." +
"sonarqube.ws.measures.Metrics\022/\n\007periods" +
"\030\003 \001(\0132\036.sonarqube.ws.measures.Periods\"\336" +
"\001\n\tComponent\022\n\n\002id\030\001 \001(\t\022\013\n\003key\030\002 \001(\t\022\r\n" +
"\005refId\030\003 \001(\t\022\016\n\006refKey\030\004 \001(\t\022\021\n\tprojectI" +
"d\030\005 \001(\t\022\014\n\004name\030\006 \001(\t\022\023\n\013description\030\007 \001" +
"(\t\022\021\n\tqualifier\030\010 \001(\t\022\014\n\004path\030\t \001(\t\022\020\n\010l" +
"anguage\030\n \001(\t\0220\n\010measures\030\013 \003(\0132\036.sonarq" +
"ube.ws.measures.Measure\"F\n\006Period\022\r\n\005ind" +
"ex\030\001 \001(\005\022\014\n\004mode\030\002 \001(\t\022\014\n\004date\030\003 \001(\t\022\021\n\t",
"parameter\030\004 \001(\t\"9\n\007Periods\022.\n\007periods\030\001 " +
"\003(\0132\035.sonarqube.ws.measures.Period\"8\n\007Me" +
"trics\022-\n\007metrics\030\001 \003(\0132\034.sonarqube.ws.co" +
"mmons.Metric\"^\n\007Measure\022\016\n\006metric\030\001 \001(\t\022" +
"\r\n\005value\030\002 \001(\t\0224\n\007periods\030\003 \001(\0132#.sonarq" +
"ube.ws.measures.PeriodsValue\"H\n\014PeriodsV" +
"alue\0228\n\014periodsValue\030\001 \003(\0132\".sonarqube.w" +
"s.measures.PeriodValue\"+\n\013PeriodValue\022\r\n" +
"\005index\030\001 \001(\005\022\r\n\005value\030\002 \001(\tB \n\020org.sonar" +
"qube.wsB\nWsMeasuresH\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.sonarqube.ws.Common.getDescriptor(),
}, assigner);
internal_static_sonarqube_ws_measures_ComponentTreeWsResponse_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_sonarqube_ws_measures_ComponentTreeWsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_measures_ComponentTreeWsResponse_descriptor,
new java.lang.String[] { "Paging", "BaseComponent", "Components", "Metrics", "Periods", });
internal_static_sonarqube_ws_measures_ComponentWsResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_sonarqube_ws_measures_ComponentWsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_measures_ComponentWsResponse_descriptor,
new java.lang.String[] { "Component", "Metrics", "Periods", });
internal_static_sonarqube_ws_measures_Component_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_sonarqube_ws_measures_Component_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_measures_Component_descriptor,
new java.lang.String[] { "Id", "Key", "RefId", "RefKey", "ProjectId", "Name", "Description", "Qualifier", "Path", "Language", "Measures", });
internal_static_sonarqube_ws_measures_Period_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_sonarqube_ws_measures_Period_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_measures_Period_descriptor,
new java.lang.String[] { "Index", "Mode", "Date", "Parameter", });
internal_static_sonarqube_ws_measures_Periods_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_sonarqube_ws_measures_Periods_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_measures_Periods_descriptor,
new java.lang.String[] { "Periods", });
internal_static_sonarqube_ws_measures_Metrics_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_sonarqube_ws_measures_Metrics_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_measures_Metrics_descriptor,
new java.lang.String[] { "Metrics", });
internal_static_sonarqube_ws_measures_Measure_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_sonarqube_ws_measures_Measure_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_measures_Measure_descriptor,
new java.lang.String[] { "Metric", "Value", "Periods", });
internal_static_sonarqube_ws_measures_PeriodsValue_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_sonarqube_ws_measures_PeriodsValue_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_measures_PeriodsValue_descriptor,
new java.lang.String[] { "PeriodsValue", });
internal_static_sonarqube_ws_measures_PeriodValue_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_sonarqube_ws_measures_PeriodValue_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_measures_PeriodValue_descriptor,
new java.lang.String[] { "Index", "Value", });
org.sonarqube.ws.Common.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy