public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
- public interface MetadataOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface MetadataOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Metadata)
+ com.google.protobuf.MessageOrBuilder {
- // optional int64 analysis_date = 1;
/**
* <code>optional int64 analysis_date = 1;</code>
*/
*/
long getAnalysisDate();
- // optional string project_key = 2;
/**
* <code>optional string project_key = 2;</code>
*/
com.google.protobuf.ByteString
getProjectKeyBytes();
- // optional int32 root_component_ref = 3;
/**
* <code>optional int32 root_component_ref = 3;</code>
*/
*/
int getRootComponentRef();
- // optional int64 snapshot_id = 4;
/**
* <code>optional int64 snapshot_id = 4;</code>
*
*/
long getSnapshotId();
- // optional int32 deleted_components_count = 5;
/**
* <code>optional int32 deleted_components_count = 5;</code>
*/
* Protobuf type {@code Metadata}
*/
public static final class Metadata extends
- com.google.protobuf.GeneratedMessage
- implements MetadataOrBuilder {
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:Metadata)
+ MetadataOrBuilder {
// Use Metadata.newBuilder() to construct.
private Metadata(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
break;
}
case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- projectKey_ = input.readBytes();
+ projectKey_ = bs;
break;
}
case 24: {
}
private int bitField0_;
- // optional int64 analysis_date = 1;
public static final int ANALYSIS_DATE_FIELD_NUMBER = 1;
private long analysisDate_;
/**
return analysisDate_;
}
- // optional string project_key = 2;
public static final int PROJECT_KEY_FIELD_NUMBER = 2;
private java.lang.Object projectKey_;
/**
}
}
- // optional int32 root_component_ref = 3;
public static final int ROOT_COMPONENT_REF_FIELD_NUMBER = 3;
private int rootComponentRef_;
/**
return rootComponentRef_;
}
- // optional int64 snapshot_id = 4;
public static final int SNAPSHOT_ID_FIELD_NUMBER = 4;
private long snapshotId_;
/**
return snapshotId_;
}
- // optional int32 deleted_components_count = 5;
public static final int DELETED_COMPONENTS_COUNT_FIELD_NUMBER = 5;
private int deletedComponentsCount_;
/**
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
* Protobuf type {@code Metadata}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.sonar.batch.protocol.output.BatchReport.MetadataOrBuilder {
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Metadata)
+ org.sonar.batch.protocol.output.BatchReport.MetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_descriptor;
}
private int bitField0_;
- // optional int64 analysis_date = 1;
private long analysisDate_ ;
/**
* <code>optional int64 analysis_date = 1;</code>
return this;
}
- // optional string project_key = 2;
private java.lang.Object projectKey_ = "";
/**
* <code>optional string project_key = 2;</code>
public java.lang.String getProjectKey() {
java.lang.Object ref = projectKey_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- projectKey_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ projectKey_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
return this;
}
- // optional int32 root_component_ref = 3;
private int rootComponentRef_ ;
/**
* <code>optional int32 root_component_ref = 3;</code>
return this;
}
- // optional int64 snapshot_id = 4;
private long snapshotId_ ;
/**
* <code>optional int64 snapshot_id = 4;</code>
return this;
}
- // optional int32 deleted_components_count = 5;
private int deletedComponentsCount_ ;
/**
* <code>optional int32 deleted_components_count = 5;</code>
// @@protoc_insertion_point(class_scope:Metadata)
}
- public interface ComponentLinkOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface ComponentLinkOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:ComponentLink)
+ com.google.protobuf.MessageOrBuilder {
- // optional .ComponentLinkType type = 1;
/**
* <code>optional .ComponentLinkType type = 1;</code>
*/
*/
org.sonar.batch.protocol.Constants.ComponentLinkType getType();
- // optional string href = 2;
/**
* <code>optional string href = 2;</code>
*/
* Protobuf type {@code ComponentLink}
*/
public static final class ComponentLink extends
- com.google.protobuf.GeneratedMessage
- implements ComponentLinkOrBuilder {
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:ComponentLink)
+ ComponentLinkOrBuilder {
// Use ComponentLink.newBuilder() to construct.
private ComponentLink(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
break;
}
case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- href_ = input.readBytes();
+ href_ = bs;
break;
}
}
}
private int bitField0_;
- // optional .ComponentLinkType type = 1;
public static final int TYPE_FIELD_NUMBER = 1;
private org.sonar.batch.protocol.Constants.ComponentLinkType type_;
/**
return type_;
}
- // optional string href = 2;
public static final int HREF_FIELD_NUMBER = 2;
private java.lang.Object href_;
/**
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
* Protobuf type {@code ComponentLink}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder {
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:ComponentLink)
+ org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonar.batch.protocol.output.BatchReport.internal_static_ComponentLink_descriptor;
}
private int bitField0_;
- // optional .ComponentLinkType type = 1;
private org.sonar.batch.protocol.Constants.ComponentLinkType type_ = org.sonar.batch.protocol.Constants.ComponentLinkType.HOME;
/**
* <code>optional .ComponentLinkType type = 1;</code>
return this;
}
- // optional string href = 2;
private java.lang.Object href_ = "";
/**
* <code>optional string href = 2;</code>
public java.lang.String getHref() {
java.lang.Object ref = href_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- href_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ href_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
// @@protoc_insertion_point(class_scope:ComponentLink)
}
- public interface EventOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface EventOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Event)
+ com.google.protobuf.MessageOrBuilder {
- // optional int32 component_ref = 1;
/**
* <code>optional int32 component_ref = 1;</code>
*/
*/
int getComponentRef();
- // optional string name = 2;
/**
* <code>optional string name = 2;</code>
*/
com.google.protobuf.ByteString
getNameBytes();
- // optional string description = 3;
/**
* <code>optional string description = 3;</code>
*/
com.google.protobuf.ByteString
getDescriptionBytes();
- // optional .EventCategory category = 4;
/**
* <code>optional .EventCategory category = 4;</code>
*/
*/
org.sonar.batch.protocol.Constants.EventCategory getCategory();
- // optional string event_data = 5;
/**
* <code>optional string event_data = 5;</code>
*/
* </pre>
*/
public static final class Event extends
- com.google.protobuf.GeneratedMessage
- implements EventOrBuilder {
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:Event)
+ EventOrBuilder {
// Use Event.newBuilder() to construct.
private Event(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
break;
}
case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- name_ = input.readBytes();
+ name_ = bs;
break;
}
case 26: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
- description_ = input.readBytes();
+ description_ = bs;
break;
}
case 32: {
break;
}
case 42: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
- eventData_ = input.readBytes();
+ eventData_ = bs;
break;
}
}
}
private int bitField0_;
- // optional int32 component_ref = 1;
public static final int COMPONENT_REF_FIELD_NUMBER = 1;
private int componentRef_;
/**
return componentRef_;
}
- // optional string name = 2;
public static final int NAME_FIELD_NUMBER = 2;
private java.lang.Object name_;
/**
}
}
- // optional string description = 3;
public static final int DESCRIPTION_FIELD_NUMBER = 3;
private java.lang.Object description_;
/**
}
}
- // optional .EventCategory category = 4;
public static final int CATEGORY_FIELD_NUMBER = 4;
private org.sonar.batch.protocol.Constants.EventCategory category_;
/**
return category_;
}
- // optional string event_data = 5;
public static final int EVENT_DATA_FIELD_NUMBER = 5;
private java.lang.Object eventData_;
/**
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
* </pre>
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.sonar.batch.protocol.output.BatchReport.EventOrBuilder {
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Event)
+ org.sonar.batch.protocol.output.BatchReport.EventOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonar.batch.protocol.output.BatchReport.internal_static_Event_descriptor;
}
private int bitField0_;
- // optional int32 component_ref = 1;
private int componentRef_ ;
/**
* <code>optional int32 component_ref = 1;</code>
return this;
}
- // optional string name = 2;
private java.lang.Object name_ = "";
/**
* <code>optional string name = 2;</code>
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- name_ = s;
+ 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;
return this;
}
- // optional string description = 3;
private java.lang.Object description_ = "";
/**
* <code>optional string description = 3;</code>
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- description_ = s;
+ 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;
return this;
}
- // optional .EventCategory category = 4;
private org.sonar.batch.protocol.Constants.EventCategory category_ = org.sonar.batch.protocol.Constants.EventCategory.ALERT;
/**
* <code>optional .EventCategory category = 4;</code>
return this;
}
- // optional string event_data = 5;
private java.lang.Object eventData_ = "";
/**
* <code>optional string event_data = 5;</code>
public java.lang.String getEventData() {
java.lang.Object ref = eventData_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- eventData_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ eventData_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
// @@protoc_insertion_point(class_scope:Event)
}
- public interface ComponentOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface ComponentOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Component)
+ com.google.protobuf.MessageOrBuilder {
- // optional int32 ref = 1;
/**
* <code>optional int32 ref = 1;</code>
*/
*/
int getRef();
- // optional string path = 2;
/**
* <code>optional string path = 2;</code>
*/
com.google.protobuf.ByteString
getPathBytes();
- // optional string name = 3;
/**
* <code>optional string name = 3;</code>
*/
com.google.protobuf.ByteString
getNameBytes();
- // optional .ComponentType type = 4;
/**
* <code>optional .ComponentType type = 4;</code>
*/
*/
org.sonar.batch.protocol.Constants.ComponentType getType();
- // optional bool is_test = 5;
/**
* <code>optional bool is_test = 5;</code>
*/
*/
boolean getIsTest();
- // optional string language = 6;
/**
* <code>optional string language = 6;</code>
*/
com.google.protobuf.ByteString
getLanguageBytes();
- // repeated int32 child_ref = 7 [packed = true];
/**
* <code>repeated int32 child_ref = 7 [packed = true];</code>
*/
*/
int getChildRef(int index);
- // repeated .ComponentLink link = 10;
/**
* <code>repeated .ComponentLink link = 10;</code>
*/
org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder getLinkOrBuilder(
int index);
- // optional string version = 12;
/**
* <code>optional string version = 12;</code>
*
com.google.protobuf.ByteString
getVersionBytes();
- // optional int64 snapshot_id = 8;
/**
- * <code>optional int64 snapshot_id = 8;</code>
+ * <code>optional int64 id = 13;</code>
*
* <pre>
* temporary fields during development of computation stack
* </pre>
*/
- boolean hasSnapshotId();
+ boolean hasId();
/**
- * <code>optional int64 snapshot_id = 8;</code>
+ * <code>optional int64 id = 13;</code>
*
* <pre>
* temporary fields during development of computation stack
* </pre>
*/
+ long getId();
+
+ /**
+ * <code>optional int64 snapshot_id = 8;</code>
+ */
+ boolean hasSnapshotId();
+ /**
+ * <code>optional int64 snapshot_id = 8;</code>
+ */
long getSnapshotId();
- // optional string uuid = 9;
/**
* <code>optional string uuid = 9;</code>
*/
com.google.protobuf.ByteString
getUuidBytes();
- // repeated .Event event = 11;
/**
* <code>repeated .Event event = 11;</code>
*/
* Protobuf type {@code Component}
*/
public static final class Component extends
- com.google.protobuf.GeneratedMessage
- implements ComponentOrBuilder {
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:Component)
+ ComponentOrBuilder {
// Use Component.newBuilder() to construct.
private Component(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
break;
}
case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- path_ = input.readBytes();
+ path_ = bs;
break;
}
case 26: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
- name_ = input.readBytes();
+ name_ = bs;
break;
}
case 32: {
break;
}
case 50: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
- language_ = input.readBytes();
+ language_ = bs;
break;
}
case 56: {
break;
}
case 64: {
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
snapshotId_ = input.readInt64();
break;
}
case 74: {
- bitField0_ |= 0x00000100;
- uuid_ = input.readBytes();
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000200;
+ uuid_ = bs;
break;
}
case 82: {
break;
}
case 90: {
- if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) {
+ if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) {
event_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Event>();
- mutable_bitField0_ |= 0x00000800;
+ mutable_bitField0_ |= 0x00001000;
}
event_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.Event.PARSER, extensionRegistry));
break;
}
case 98: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000040;
- version_ = input.readBytes();
+ version_ = bs;
+ break;
+ }
+ case 104: {
+ bitField0_ |= 0x00000080;
+ id_ = input.readInt64();
break;
}
}
if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
link_ = java.util.Collections.unmodifiableList(link_);
}
- if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) {
+ if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) {
event_ = java.util.Collections.unmodifiableList(event_);
}
this.unknownFields = unknownFields.build();
}
private int bitField0_;
- // optional int32 ref = 1;
public static final int REF_FIELD_NUMBER = 1;
private int ref_;
/**
return ref_;
}
- // optional string path = 2;
public static final int PATH_FIELD_NUMBER = 2;
private java.lang.Object path_;
/**
}
}
- // optional string name = 3;
public static final int NAME_FIELD_NUMBER = 3;
private java.lang.Object name_;
/**
}
}
- // optional .ComponentType type = 4;
public static final int TYPE_FIELD_NUMBER = 4;
private org.sonar.batch.protocol.Constants.ComponentType type_;
/**
return type_;
}
- // optional bool is_test = 5;
public static final int IS_TEST_FIELD_NUMBER = 5;
private boolean isTest_;
/**
return isTest_;
}
- // optional string language = 6;
public static final int LANGUAGE_FIELD_NUMBER = 6;
private java.lang.Object language_;
/**
}
}
- // repeated int32 child_ref = 7 [packed = true];
public static final int CHILD_REF_FIELD_NUMBER = 7;
private java.util.List<java.lang.Integer> childRef_;
/**
}
private int childRefMemoizedSerializedSize = -1;
- // repeated .ComponentLink link = 10;
public static final int LINK_FIELD_NUMBER = 10;
private java.util.List<org.sonar.batch.protocol.output.BatchReport.ComponentLink> link_;
/**
return link_.get(index);
}
- // optional string version = 12;
public static final int VERSION_FIELD_NUMBER = 12;
private java.lang.Object version_;
/**
}
}
- // optional int64 snapshot_id = 8;
- public static final int SNAPSHOT_ID_FIELD_NUMBER = 8;
- private long snapshotId_;
+ public static final int ID_FIELD_NUMBER = 13;
+ private long id_;
/**
- * <code>optional int64 snapshot_id = 8;</code>
+ * <code>optional int64 id = 13;</code>
*
* <pre>
* temporary fields during development of computation stack
* </pre>
*/
- public boolean hasSnapshotId() {
+ public boolean hasId() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
- * <code>optional int64 snapshot_id = 8;</code>
+ * <code>optional int64 id = 13;</code>
*
* <pre>
* temporary fields during development of computation stack
* </pre>
*/
+ public long getId() {
+ return id_;
+ }
+
+ public static final int SNAPSHOT_ID_FIELD_NUMBER = 8;
+ private long snapshotId_;
+ /**
+ * <code>optional int64 snapshot_id = 8;</code>
+ */
+ public boolean hasSnapshotId() {
+ return ((bitField0_ & 0x00000100) == 0x00000100);
+ }
+ /**
+ * <code>optional int64 snapshot_id = 8;</code>
+ */
public long getSnapshotId() {
return snapshotId_;
}
- // optional string uuid = 9;
public static final int UUID_FIELD_NUMBER = 9;
private java.lang.Object uuid_;
/**
* <code>optional string uuid = 9;</code>
*/
public boolean hasUuid() {
- return ((bitField0_ & 0x00000100) == 0x00000100);
+ return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* <code>optional string uuid = 9;</code>
}
}
- // repeated .Event event = 11;
public static final int EVENT_FIELD_NUMBER = 11;
private java.util.List<org.sonar.batch.protocol.output.BatchReport.Event> event_;
/**
childRef_ = java.util.Collections.emptyList();
link_ = java.util.Collections.emptyList();
version_ = "";
+ id_ = 0L;
snapshotId_ = 0L;
uuid_ = "";
event_ = java.util.Collections.emptyList();
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
for (int i = 0; i < childRef_.size(); i++) {
output.writeInt32NoTag(childRef_.get(i));
}
- if (((bitField0_ & 0x00000080) == 0x00000080)) {
+ if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeInt64(8, snapshotId_);
}
- if (((bitField0_ & 0x00000100) == 0x00000100)) {
+ if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeBytes(9, getUuidBytes());
}
for (int i = 0; i < link_.size(); i++) {
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBytes(12, getVersionBytes());
}
+ if (((bitField0_ & 0x00000080) == 0x00000080)) {
+ output.writeInt64(13, id_);
+ }
getUnknownFields().writeTo(output);
}
}
childRefMemoizedSerializedSize = dataSize;
}
- if (((bitField0_ & 0x00000080) == 0x00000080)) {
+ if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, snapshotId_);
}
- if (((bitField0_ & 0x00000100) == 0x00000100)) {
+ if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(9, getUuidBytes());
}
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(12, getVersionBytes());
}
+ if (((bitField0_ & 0x00000080) == 0x00000080)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(13, id_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
* Protobuf type {@code Component}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.sonar.batch.protocol.output.BatchReport.ComponentOrBuilder {
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Component)
+ org.sonar.batch.protocol.output.BatchReport.ComponentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_descriptor;
}
version_ = "";
bitField0_ = (bitField0_ & ~0x00000100);
- snapshotId_ = 0L;
+ id_ = 0L;
bitField0_ = (bitField0_ & ~0x00000200);
- uuid_ = "";
+ snapshotId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000400);
+ uuid_ = "";
+ bitField0_ = (bitField0_ & ~0x00000800);
if (eventBuilder_ == null) {
event_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000800);
+ bitField0_ = (bitField0_ & ~0x00001000);
} else {
eventBuilder_.clear();
}
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000080;
}
- result.snapshotId_ = snapshotId_;
+ result.id_ = id_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000100;
}
+ result.snapshotId_ = snapshotId_;
+ if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
+ to_bitField0_ |= 0x00000200;
+ }
result.uuid_ = uuid_;
if (eventBuilder_ == null) {
- if (((bitField0_ & 0x00000800) == 0x00000800)) {
+ if (((bitField0_ & 0x00001000) == 0x00001000)) {
event_ = java.util.Collections.unmodifiableList(event_);
- bitField0_ = (bitField0_ & ~0x00000800);
+ bitField0_ = (bitField0_ & ~0x00001000);
}
result.event_ = event_;
} else {
version_ = other.version_;
onChanged();
}
+ if (other.hasId()) {
+ setId(other.getId());
+ }
if (other.hasSnapshotId()) {
setSnapshotId(other.getSnapshotId());
}
if (other.hasUuid()) {
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
uuid_ = other.uuid_;
onChanged();
}
if (!other.event_.isEmpty()) {
if (event_.isEmpty()) {
event_ = other.event_;
- bitField0_ = (bitField0_ & ~0x00000800);
+ bitField0_ = (bitField0_ & ~0x00001000);
} else {
ensureEventIsMutable();
event_.addAll(other.event_);
eventBuilder_.dispose();
eventBuilder_ = null;
event_ = other.event_;
- bitField0_ = (bitField0_ & ~0x00000800);
+ bitField0_ = (bitField0_ & ~0x00001000);
eventBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getEventFieldBuilder() : null;
}
private int bitField0_;
- // optional int32 ref = 1;
private int ref_ ;
/**
* <code>optional int32 ref = 1;</code>
return this;
}
- // optional string path = 2;
private java.lang.Object path_ = "";
/**
* <code>optional string path = 2;</code>
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- path_ = s;
+ 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;
return this;
}
- // optional string name = 3;
private java.lang.Object name_ = "";
/**
* <code>optional string name = 3;</code>
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- name_ = s;
+ 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;
return this;
}
- // optional .ComponentType type = 4;
private org.sonar.batch.protocol.Constants.ComponentType type_ = org.sonar.batch.protocol.Constants.ComponentType.PROJECT;
/**
* <code>optional .ComponentType type = 4;</code>
return this;
}
- // optional bool is_test = 5;
private boolean isTest_ ;
/**
* <code>optional bool is_test = 5;</code>
return this;
}
- // optional string language = 6;
private java.lang.Object language_ = "";
/**
* <code>optional string language = 6;</code>
public java.lang.String getLanguage() {
java.lang.Object ref = language_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- language_ = s;
+ 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;
return this;
}
- // repeated int32 child_ref = 7 [packed = true];
private java.util.List<java.lang.Integer> childRef_ = java.util.Collections.emptyList();
private void ensureChildRefIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
public Builder addAllChildRef(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureChildRefIsMutable();
- super.addAll(values, childRef_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, childRef_);
onChanged();
return this;
}
return this;
}
- // repeated .ComponentLink link = 10;
private java.util.List<org.sonar.batch.protocol.output.BatchReport.ComponentLink> link_ =
java.util.Collections.emptyList();
private void ensureLinkIsMutable() {
java.lang.Iterable<? extends org.sonar.batch.protocol.output.BatchReport.ComponentLink> values) {
if (linkBuilder_ == null) {
ensureLinkIsMutable();
- super.addAll(values, link_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, link_);
onChanged();
} else {
linkBuilder_.addAllMessages(values);
return linkBuilder_;
}
- // optional string version = 12;
private java.lang.Object version_ = "";
/**
* <code>optional string version = 12;</code>
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- version_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ version_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
return this;
}
- // optional int64 snapshot_id = 8;
- private long snapshotId_ ;
+ private long id_ ;
/**
- * <code>optional int64 snapshot_id = 8;</code>
+ * <code>optional int64 id = 13;</code>
*
* <pre>
* temporary fields during development of computation stack
* </pre>
*/
- public boolean hasSnapshotId() {
+ public boolean hasId() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
- * <code>optional int64 snapshot_id = 8;</code>
+ * <code>optional int64 id = 13;</code>
*
* <pre>
* temporary fields during development of computation stack
* </pre>
*/
- public long getSnapshotId() {
- return snapshotId_;
+ public long getId() {
+ return id_;
}
/**
- * <code>optional int64 snapshot_id = 8;</code>
+ * <code>optional int64 id = 13;</code>
*
* <pre>
* temporary fields during development of computation stack
* </pre>
*/
- public Builder setSnapshotId(long value) {
+ public Builder setId(long value) {
bitField0_ |= 0x00000200;
- snapshotId_ = value;
+ id_ = value;
onChanged();
return this;
}
/**
- * <code>optional int64 snapshot_id = 8;</code>
+ * <code>optional int64 id = 13;</code>
*
* <pre>
* temporary fields during development of computation stack
* </pre>
*/
- public Builder clearSnapshotId() {
+ public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000200);
+ id_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long snapshotId_ ;
+ /**
+ * <code>optional int64 snapshot_id = 8;</code>
+ */
+ public boolean hasSnapshotId() {
+ return ((bitField0_ & 0x00000400) == 0x00000400);
+ }
+ /**
+ * <code>optional int64 snapshot_id = 8;</code>
+ */
+ public long getSnapshotId() {
+ return snapshotId_;
+ }
+ /**
+ * <code>optional int64 snapshot_id = 8;</code>
+ */
+ public Builder setSnapshotId(long value) {
+ bitField0_ |= 0x00000400;
+ snapshotId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional int64 snapshot_id = 8;</code>
+ */
+ public Builder clearSnapshotId() {
+ bitField0_ = (bitField0_ & ~0x00000400);
snapshotId_ = 0L;
onChanged();
return this;
}
- // optional string uuid = 9;
- private java.lang.Object uuid_ = "";
- /**
- * <code>optional string uuid = 9;</code>
- */
- public boolean hasUuid() {
- return ((bitField0_ & 0x00000400) == 0x00000400);
+ private java.lang.Object uuid_ = "";
+ /**
+ * <code>optional string uuid = 9;</code>
+ */
+ public boolean hasUuid() {
+ return ((bitField0_ & 0x00000800) == 0x00000800);
+ }
+ /**
+ * <code>optional string uuid = 9;</code>
+ */
+ public java.lang.String getUuid() {
+ java.lang.Object ref = uuid_;
+ 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()) {
+ uuid_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string uuid = 9;</code>
+ */
+ public com.google.protobuf.ByteString
+ getUuidBytes() {
+ java.lang.Object ref = uuid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ uuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <code>optional string uuid = 9;</code>
+ */
+ public Builder setUuid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000800;
+ uuid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string uuid = 9;</code>
+ */
+ public Builder clearUuid() {
+ bitField0_ = (bitField0_ & ~0x00000800);
+ uuid_ = getDefaultInstance().getUuid();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string uuid = 9;</code>
+ */
+ public Builder setUuidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000800;
+ uuid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List<org.sonar.batch.protocol.output.BatchReport.Event> event_ =
+ java.util.Collections.emptyList();
+ private void ensureEventIsMutable() {
+ if (!((bitField0_ & 0x00001000) == 0x00001000)) {
+ event_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Event>(event_);
+ bitField0_ |= 0x00001000;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonar.batch.protocol.output.BatchReport.Event, org.sonar.batch.protocol.output.BatchReport.Event.Builder, org.sonar.batch.protocol.output.BatchReport.EventOrBuilder> eventBuilder_;
+
+ /**
+ * <code>repeated .Event event = 11;</code>
+ */
+ public java.util.List<org.sonar.batch.protocol.output.BatchReport.Event> getEventList() {
+ if (eventBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(event_);
+ } else {
+ return eventBuilder_.getMessageList();
+ }
+ }
+ /**
+ * <code>repeated .Event event = 11;</code>
+ */
+ public int getEventCount() {
+ if (eventBuilder_ == null) {
+ return event_.size();
+ } else {
+ return eventBuilder_.getCount();
+ }
+ }
+ /**
+ * <code>repeated .Event event = 11;</code>
+ */
+ public org.sonar.batch.protocol.output.BatchReport.Event getEvent(int index) {
+ if (eventBuilder_ == null) {
+ return event_.get(index);
+ } else {
+ return eventBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * <code>repeated .Event event = 11;</code>
+ */
+ public Builder setEvent(
+ int index, org.sonar.batch.protocol.output.BatchReport.Event value) {
+ if (eventBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureEventIsMutable();
+ event_.set(index, value);
+ onChanged();
+ } else {
+ eventBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .Event event = 11;</code>
+ */
+ public Builder setEvent(
+ int index, org.sonar.batch.protocol.output.BatchReport.Event.Builder builderForValue) {
+ if (eventBuilder_ == null) {
+ ensureEventIsMutable();
+ event_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ eventBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .Event event = 11;</code>
+ */
+ public Builder addEvent(org.sonar.batch.protocol.output.BatchReport.Event value) {
+ if (eventBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureEventIsMutable();
+ event_.add(value);
+ onChanged();
+ } else {
+ eventBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .Event event = 11;</code>
+ */
+ public Builder addEvent(
+ int index, org.sonar.batch.protocol.output.BatchReport.Event value) {
+ if (eventBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureEventIsMutable();
+ event_.add(index, value);
+ onChanged();
+ } else {
+ eventBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .Event event = 11;</code>
+ */
+ public Builder addEvent(
+ org.sonar.batch.protocol.output.BatchReport.Event.Builder builderForValue) {
+ if (eventBuilder_ == null) {
+ ensureEventIsMutable();
+ event_.add(builderForValue.build());
+ onChanged();
+ } else {
+ eventBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .Event event = 11;</code>
+ */
+ public Builder addEvent(
+ int index, org.sonar.batch.protocol.output.BatchReport.Event.Builder builderForValue) {
+ if (eventBuilder_ == null) {
+ ensureEventIsMutable();
+ event_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ eventBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .Event event = 11;</code>
+ */
+ public Builder addAllEvent(
+ java.lang.Iterable<? extends org.sonar.batch.protocol.output.BatchReport.Event> values) {
+ if (eventBuilder_ == null) {
+ ensureEventIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, event_);
+ onChanged();
+ } else {
+ eventBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .Event event = 11;</code>
+ */
+ public Builder clearEvent() {
+ if (eventBuilder_ == null) {
+ event_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00001000);
+ onChanged();
+ } else {
+ eventBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .Event event = 11;</code>
+ */
+ public Builder removeEvent(int index) {
+ if (eventBuilder_ == null) {
+ ensureEventIsMutable();
+ event_.remove(index);
+ onChanged();
+ } else {
+ eventBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .Event event = 11;</code>
+ */
+ public org.sonar.batch.protocol.output.BatchReport.Event.Builder getEventBuilder(
+ int index) {
+ return getEventFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <code>repeated .Event event = 11;</code>
+ */
+ public org.sonar.batch.protocol.output.BatchReport.EventOrBuilder getEventOrBuilder(
+ int index) {
+ if (eventBuilder_ == null) {
+ return event_.get(index); } else {
+ return eventBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * <code>repeated .Event event = 11;</code>
+ */
+ public java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.EventOrBuilder>
+ getEventOrBuilderList() {
+ if (eventBuilder_ != null) {
+ return eventBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(event_);
+ }
+ }
+ /**
+ * <code>repeated .Event event = 11;</code>
+ */
+ public org.sonar.batch.protocol.output.BatchReport.Event.Builder addEventBuilder() {
+ return getEventFieldBuilder().addBuilder(
+ org.sonar.batch.protocol.output.BatchReport.Event.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .Event event = 11;</code>
+ */
+ public org.sonar.batch.protocol.output.BatchReport.Event.Builder addEventBuilder(
+ int index) {
+ return getEventFieldBuilder().addBuilder(
+ index, org.sonar.batch.protocol.output.BatchReport.Event.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .Event event = 11;</code>
+ */
+ public java.util.List<org.sonar.batch.protocol.output.BatchReport.Event.Builder>
+ getEventBuilderList() {
+ return getEventFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonar.batch.protocol.output.BatchReport.Event, org.sonar.batch.protocol.output.BatchReport.Event.Builder, org.sonar.batch.protocol.output.BatchReport.EventOrBuilder>
+ getEventFieldBuilder() {
+ if (eventBuilder_ == null) {
+ eventBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.sonar.batch.protocol.output.BatchReport.Event, org.sonar.batch.protocol.output.BatchReport.Event.Builder, org.sonar.batch.protocol.output.BatchReport.EventOrBuilder>(
+ event_,
+ ((bitField0_ & 0x00001000) == 0x00001000),
+ getParentForChildren(),
+ isClean());
+ event_ = null;
+ }
+ return eventBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:Component)
+ }
+
+ static {
+ defaultInstance = new Component(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:Component)
+ }
+
+ public interface MeasureOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Measure)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <code>optional .MeasureValueType value_type = 1;</code>
+ */
+ boolean hasValueType();
+ /**
+ * <code>optional .MeasureValueType value_type = 1;</code>
+ */
+ org.sonar.batch.protocol.Constants.MeasureValueType getValueType();
+
+ /**
+ * <code>optional bool boolean_value = 2;</code>
+ */
+ boolean hasBooleanValue();
+ /**
+ * <code>optional bool boolean_value = 2;</code>
+ */
+ boolean getBooleanValue();
+
+ /**
+ * <code>optional int32 int_value = 3;</code>
+ */
+ boolean hasIntValue();
+ /**
+ * <code>optional int32 int_value = 3;</code>
+ */
+ int getIntValue();
+
+ /**
+ * <code>optional int64 long_value = 4;</code>
+ */
+ boolean hasLongValue();
+ /**
+ * <code>optional int64 long_value = 4;</code>
+ */
+ long getLongValue();
+
+ /**
+ * <code>optional double double_value = 5;</code>
+ */
+ boolean hasDoubleValue();
+ /**
+ * <code>optional double double_value = 5;</code>
+ */
+ double getDoubleValue();
+
+ /**
+ * <code>optional string string_value = 6;</code>
+ */
+ boolean hasStringValue();
+ /**
+ * <code>optional string string_value = 6;</code>
+ */
+ java.lang.String getStringValue();
+ /**
+ * <code>optional string string_value = 6;</code>
+ */
+ com.google.protobuf.ByteString
+ getStringValueBytes();
+
+ /**
+ * <code>optional string metric_key = 7;</code>
+ */
+ boolean hasMetricKey();
+ /**
+ * <code>optional string metric_key = 7;</code>
+ */
+ java.lang.String getMetricKey();
+ /**
+ * <code>optional string metric_key = 7;</code>
+ */
+ com.google.protobuf.ByteString
+ getMetricKeyBytes();
+
+ /**
+ * <code>optional string description = 9;</code>
+ *
+ * <pre>
+ * temporary fields during development of computation stack
+ * </pre>
+ */
+ boolean hasDescription();
+ /**
+ * <code>optional string description = 9;</code>
+ *
+ * <pre>
+ * temporary fields during development of computation stack
+ * </pre>
+ */
+ java.lang.String getDescription();
+ /**
+ * <code>optional string description = 9;</code>
+ *
+ * <pre>
+ * temporary fields during development of computation stack
+ * </pre>
+ */
+ com.google.protobuf.ByteString
+ getDescriptionBytes();
+
+ /**
+ * <code>optional string rule_key = 10;</code>
+ */
+ boolean hasRuleKey();
+ /**
+ * <code>optional string rule_key = 10;</code>
+ */
+ java.lang.String getRuleKey();
+ /**
+ * <code>optional string rule_key = 10;</code>
+ */
+ com.google.protobuf.ByteString
+ getRuleKeyBytes();
+
+ /**
+ * <code>optional .Severity severity = 11;</code>
+ */
+ boolean hasSeverity();
+ /**
+ * <code>optional .Severity severity = 11;</code>
+ */
+ org.sonar.batch.protocol.Constants.Severity getSeverity();
+
+ /**
+ * <code>optional string alert_status = 12;</code>
+ */
+ boolean hasAlertStatus();
+ /**
+ * <code>optional string alert_status = 12;</code>
+ */
+ java.lang.String getAlertStatus();
+ /**
+ * <code>optional string alert_status = 12;</code>
+ */
+ com.google.protobuf.ByteString
+ getAlertStatusBytes();
+
+ /**
+ * <code>optional string alert_text = 13;</code>
+ */
+ boolean hasAlertText();
+ /**
+ * <code>optional string alert_text = 13;</code>
+ */
+ java.lang.String getAlertText();
+ /**
+ * <code>optional string alert_text = 13;</code>
+ */
+ com.google.protobuf.ByteString
+ getAlertTextBytes();
+
+ /**
+ * <code>optional double variation_value_1 = 14;</code>
+ */
+ boolean hasVariationValue1();
+ /**
+ * <code>optional double variation_value_1 = 14;</code>
+ */
+ double getVariationValue1();
+
+ /**
+ * <code>optional double variation_value_2 = 15;</code>
+ */
+ boolean hasVariationValue2();
+ /**
+ * <code>optional double variation_value_2 = 15;</code>
+ */
+ double getVariationValue2();
+
+ /**
+ * <code>optional double variation_value_3 = 16;</code>
+ */
+ boolean hasVariationValue3();
+ /**
+ * <code>optional double variation_value_3 = 16;</code>
+ */
+ double getVariationValue3();
+
+ /**
+ * <code>optional double variation_value_4 = 17;</code>
+ */
+ boolean hasVariationValue4();
+ /**
+ * <code>optional double variation_value_4 = 17;</code>
+ */
+ double getVariationValue4();
+
+ /**
+ * <code>optional double variation_value_5 = 18;</code>
+ */
+ boolean hasVariationValue5();
+ /**
+ * <code>optional double variation_value_5 = 18;</code>
+ */
+ double getVariationValue5();
+
+ /**
+ * <code>optional int32 tendency = 19;</code>
+ */
+ boolean hasTendency();
+ /**
+ * <code>optional int32 tendency = 19;</code>
+ */
+ int getTendency();
+
+ /**
+ * <code>optional int32 characteric_id = 20;</code>
+ */
+ boolean hasCharactericId();
+ /**
+ * <code>optional int32 characteric_id = 20;</code>
+ */
+ int getCharactericId();
+ }
+ /**
+ * Protobuf type {@code Measure}
+ */
+ public static final class Measure extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:Measure)
+ MeasureOrBuilder {
+ // Use Measure.newBuilder() to construct.
+ private Measure(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ super(builder);
+ this.unknownFields = builder.getUnknownFields();
+ }
+ private Measure(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+
+ private static final Measure defaultInstance;
+ public static Measure getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public Measure getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @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)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ initFields();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+ int rawValue = input.readEnum();
+ org.sonar.batch.protocol.Constants.MeasureValueType value = org.sonar.batch.protocol.Constants.MeasureValueType.valueOf(rawValue);
+ if (value == null) {
+ unknownFields.mergeVarintField(1, rawValue);
+ } else {
+ bitField0_ |= 0x00000001;
+ valueType_ = value;
+ }
+ break;
+ }
+ case 16: {
+ bitField0_ |= 0x00000002;
+ booleanValue_ = input.readBool();
+ break;
+ }
+ case 24: {
+ bitField0_ |= 0x00000004;
+ intValue_ = input.readInt32();
+ break;
+ }
+ case 32: {
+ bitField0_ |= 0x00000008;
+ longValue_ = input.readInt64();
+ break;
+ }
+ case 41: {
+ bitField0_ |= 0x00000010;
+ doubleValue_ = input.readDouble();
+ break;
+ }
+ case 50: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000020;
+ stringValue_ = bs;
+ break;
+ }
+ case 58: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000040;
+ metricKey_ = bs;
+ break;
+ }
+ case 74: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000080;
+ description_ = bs;
+ break;
+ }
+ case 82: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000100;
+ ruleKey_ = bs;
+ break;
+ }
+ case 88: {
+ int rawValue = input.readEnum();
+ org.sonar.batch.protocol.Constants.Severity value = org.sonar.batch.protocol.Constants.Severity.valueOf(rawValue);
+ if (value == null) {
+ unknownFields.mergeVarintField(11, rawValue);
+ } else {
+ bitField0_ |= 0x00000200;
+ severity_ = value;
+ }
+ break;
+ }
+ case 98: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000400;
+ alertStatus_ = bs;
+ break;
+ }
+ case 106: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000800;
+ alertText_ = bs;
+ break;
+ }
+ case 113: {
+ bitField0_ |= 0x00001000;
+ variationValue1_ = input.readDouble();
+ break;
+ }
+ case 121: {
+ bitField0_ |= 0x00002000;
+ variationValue2_ = input.readDouble();
+ break;
+ }
+ case 129: {
+ bitField0_ |= 0x00004000;
+ variationValue3_ = input.readDouble();
+ break;
+ }
+ case 137: {
+ bitField0_ |= 0x00008000;
+ variationValue4_ = input.readDouble();
+ break;
+ }
+ case 145: {
+ bitField0_ |= 0x00010000;
+ variationValue5_ = input.readDouble();
+ break;
+ }
+ case 152: {
+ bitField0_ |= 0x00020000;
+ tendency_ = input.readInt32();
+ break;
+ }
+ case 160: {
+ bitField0_ |= 0x00040000;
+ charactericId_ = input.readInt32();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw 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.sonar.batch.protocol.output.BatchReport.internal_static_Measure_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonar.batch.protocol.output.BatchReport.internal_static_Measure_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonar.batch.protocol.output.BatchReport.Measure.class, org.sonar.batch.protocol.output.BatchReport.Measure.Builder.class);
+ }
+
+ public static com.google.protobuf.Parser<Measure> PARSER =
+ new com.google.protobuf.AbstractParser<Measure>() {
+ public Measure parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new Measure(input, extensionRegistry);
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Measure> getParserForType() {
+ return PARSER;
+ }
+
+ private int bitField0_;
+ public static final int VALUE_TYPE_FIELD_NUMBER = 1;
+ private org.sonar.batch.protocol.Constants.MeasureValueType valueType_;
+ /**
+ * <code>optional .MeasureValueType value_type = 1;</code>
+ */
+ public boolean hasValueType() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * <code>optional .MeasureValueType value_type = 1;</code>
+ */
+ public org.sonar.batch.protocol.Constants.MeasureValueType getValueType() {
+ return valueType_;
+ }
+
+ public static final int BOOLEAN_VALUE_FIELD_NUMBER = 2;
+ private boolean booleanValue_;
+ /**
+ * <code>optional bool boolean_value = 2;</code>
+ */
+ public boolean hasBooleanValue() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * <code>optional bool boolean_value = 2;</code>
+ */
+ public boolean getBooleanValue() {
+ return booleanValue_;
+ }
+
+ public static final int INT_VALUE_FIELD_NUMBER = 3;
+ private int intValue_;
+ /**
+ * <code>optional int32 int_value = 3;</code>
+ */
+ public boolean hasIntValue() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * <code>optional int32 int_value = 3;</code>
+ */
+ public int getIntValue() {
+ return intValue_;
+ }
+
+ public static final int LONG_VALUE_FIELD_NUMBER = 4;
+ private long longValue_;
+ /**
+ * <code>optional int64 long_value = 4;</code>
+ */
+ public boolean hasLongValue() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * <code>optional int64 long_value = 4;</code>
+ */
+ public long getLongValue() {
+ return longValue_;
+ }
+
+ public static final int DOUBLE_VALUE_FIELD_NUMBER = 5;
+ private double doubleValue_;
+ /**
+ * <code>optional double double_value = 5;</code>
+ */
+ public boolean hasDoubleValue() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+ /**
+ * <code>optional double double_value = 5;</code>
+ */
+ public double getDoubleValue() {
+ return doubleValue_;
+ }
+
+ public static final int STRING_VALUE_FIELD_NUMBER = 6;
+ private java.lang.Object stringValue_;
+ /**
+ * <code>optional string string_value = 6;</code>
+ */
+ public boolean hasStringValue() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+ /**
+ * <code>optional string string_value = 6;</code>
+ */
+ public java.lang.String getStringValue() {
+ java.lang.Object ref = stringValue_;
+ 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()) {
+ stringValue_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string string_value = 6;</code>
+ */
+ public com.google.protobuf.ByteString
+ getStringValueBytes() {
+ java.lang.Object ref = stringValue_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ stringValue_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int METRIC_KEY_FIELD_NUMBER = 7;
+ private java.lang.Object metricKey_;
+ /**
+ * <code>optional string metric_key = 7;</code>
+ */
+ public boolean hasMetricKey() {
+ return ((bitField0_ & 0x00000040) == 0x00000040);
+ }
+ /**
+ * <code>optional string metric_key = 7;</code>
+ */
+ public java.lang.String getMetricKey() {
+ java.lang.Object ref = metricKey_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ metricKey_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string metric_key = 7;</code>
+ */
+ public com.google.protobuf.ByteString
+ getMetricKeyBytes() {
+ java.lang.Object ref = metricKey_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ metricKey_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DESCRIPTION_FIELD_NUMBER = 9;
+ private java.lang.Object description_;
+ /**
+ * <code>optional string description = 9;</code>
+ *
+ * <pre>
+ * temporary fields during development of computation stack
+ * </pre>
+ */
+ public boolean hasDescription() {
+ return ((bitField0_ & 0x00000080) == 0x00000080);
+ }
+ /**
+ * <code>optional string description = 9;</code>
+ *
+ * <pre>
+ * temporary fields during development of computation stack
+ * </pre>
+ */
+ 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;
+ }
+ }
+ /**
+ * <code>optional string description = 9;</code>
+ *
+ * <pre>
+ * temporary fields during development of computation stack
+ * </pre>
+ */
+ 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 RULE_KEY_FIELD_NUMBER = 10;
+ private java.lang.Object ruleKey_;
+ /**
+ * <code>optional string rule_key = 10;</code>
+ */
+ public boolean hasRuleKey() {
+ return ((bitField0_ & 0x00000100) == 0x00000100);
+ }
+ /**
+ * <code>optional string rule_key = 10;</code>
+ */
+ public java.lang.String getRuleKey() {
+ java.lang.Object ref = ruleKey_;
+ 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()) {
+ ruleKey_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string rule_key = 10;</code>
+ */
+ public com.google.protobuf.ByteString
+ getRuleKeyBytes() {
+ java.lang.Object ref = ruleKey_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ ruleKey_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SEVERITY_FIELD_NUMBER = 11;
+ private org.sonar.batch.protocol.Constants.Severity severity_;
+ /**
+ * <code>optional .Severity severity = 11;</code>
+ */
+ public boolean hasSeverity() {
+ return ((bitField0_ & 0x00000200) == 0x00000200);
+ }
+ /**
+ * <code>optional .Severity severity = 11;</code>
+ */
+ public org.sonar.batch.protocol.Constants.Severity getSeverity() {
+ return severity_;
+ }
+
+ public static final int ALERT_STATUS_FIELD_NUMBER = 12;
+ private java.lang.Object alertStatus_;
+ /**
+ * <code>optional string alert_status = 12;</code>
+ */
+ public boolean hasAlertStatus() {
+ return ((bitField0_ & 0x00000400) == 0x00000400);
+ }
+ /**
+ * <code>optional string alert_status = 12;</code>
+ */
+ public java.lang.String getAlertStatus() {
+ java.lang.Object ref = alertStatus_;
+ 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()) {
+ alertStatus_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string alert_status = 12;</code>
+ */
+ public com.google.protobuf.ByteString
+ getAlertStatusBytes() {
+ java.lang.Object ref = alertStatus_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ alertStatus_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ALERT_TEXT_FIELD_NUMBER = 13;
+ private java.lang.Object alertText_;
+ /**
+ * <code>optional string alert_text = 13;</code>
+ */
+ public boolean hasAlertText() {
+ return ((bitField0_ & 0x00000800) == 0x00000800);
+ }
+ /**
+ * <code>optional string alert_text = 13;</code>
+ */
+ public java.lang.String getAlertText() {
+ java.lang.Object ref = alertText_;
+ 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()) {
+ alertText_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string alert_text = 13;</code>
+ */
+ public com.google.protobuf.ByteString
+ getAlertTextBytes() {
+ java.lang.Object ref = alertText_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ alertText_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VARIATION_VALUE_1_FIELD_NUMBER = 14;
+ private double variationValue1_;
+ /**
+ * <code>optional double variation_value_1 = 14;</code>
+ */
+ public boolean hasVariationValue1() {
+ return ((bitField0_ & 0x00001000) == 0x00001000);
+ }
+ /**
+ * <code>optional double variation_value_1 = 14;</code>
+ */
+ public double getVariationValue1() {
+ return variationValue1_;
+ }
+
+ public static final int VARIATION_VALUE_2_FIELD_NUMBER = 15;
+ private double variationValue2_;
+ /**
+ * <code>optional double variation_value_2 = 15;</code>
+ */
+ public boolean hasVariationValue2() {
+ return ((bitField0_ & 0x00002000) == 0x00002000);
+ }
+ /**
+ * <code>optional double variation_value_2 = 15;</code>
+ */
+ public double getVariationValue2() {
+ return variationValue2_;
+ }
+
+ public static final int VARIATION_VALUE_3_FIELD_NUMBER = 16;
+ private double variationValue3_;
+ /**
+ * <code>optional double variation_value_3 = 16;</code>
+ */
+ public boolean hasVariationValue3() {
+ return ((bitField0_ & 0x00004000) == 0x00004000);
+ }
+ /**
+ * <code>optional double variation_value_3 = 16;</code>
+ */
+ public double getVariationValue3() {
+ return variationValue3_;
+ }
+
+ public static final int VARIATION_VALUE_4_FIELD_NUMBER = 17;
+ private double variationValue4_;
+ /**
+ * <code>optional double variation_value_4 = 17;</code>
+ */
+ public boolean hasVariationValue4() {
+ return ((bitField0_ & 0x00008000) == 0x00008000);
+ }
+ /**
+ * <code>optional double variation_value_4 = 17;</code>
+ */
+ public double getVariationValue4() {
+ return variationValue4_;
+ }
+
+ public static final int VARIATION_VALUE_5_FIELD_NUMBER = 18;
+ private double variationValue5_;
+ /**
+ * <code>optional double variation_value_5 = 18;</code>
+ */
+ public boolean hasVariationValue5() {
+ return ((bitField0_ & 0x00010000) == 0x00010000);
+ }
+ /**
+ * <code>optional double variation_value_5 = 18;</code>
+ */
+ public double getVariationValue5() {
+ return variationValue5_;
+ }
+
+ public static final int TENDENCY_FIELD_NUMBER = 19;
+ private int tendency_;
+ /**
+ * <code>optional int32 tendency = 19;</code>
+ */
+ public boolean hasTendency() {
+ return ((bitField0_ & 0x00020000) == 0x00020000);
+ }
+ /**
+ * <code>optional int32 tendency = 19;</code>
+ */
+ public int getTendency() {
+ return tendency_;
+ }
+
+ public static final int CHARACTERIC_ID_FIELD_NUMBER = 20;
+ private int charactericId_;
+ /**
+ * <code>optional int32 characteric_id = 20;</code>
+ */
+ public boolean hasCharactericId() {
+ return ((bitField0_ & 0x00040000) == 0x00040000);
+ }
+ /**
+ * <code>optional int32 characteric_id = 20;</code>
+ */
+ public int getCharactericId() {
+ return charactericId_;
+ }
+
+ private void initFields() {
+ valueType_ = org.sonar.batch.protocol.Constants.MeasureValueType.INT;
+ booleanValue_ = false;
+ intValue_ = 0;
+ longValue_ = 0L;
+ doubleValue_ = 0D;
+ stringValue_ = "";
+ metricKey_ = "";
+ description_ = "";
+ ruleKey_ = "";
+ severity_ = org.sonar.batch.protocol.Constants.Severity.INFO;
+ alertStatus_ = "";
+ alertText_ = "";
+ variationValue1_ = 0D;
+ variationValue2_ = 0D;
+ variationValue3_ = 0D;
+ variationValue4_ = 0D;
+ variationValue5_ = 0D;
+ tendency_ = 0;
+ charactericId_ = 0;
+ }
+ 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 {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeEnum(1, valueType_.getNumber());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeBool(2, booleanValue_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeInt32(3, intValue_);
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ output.writeInt64(4, longValue_);
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ output.writeDouble(5, doubleValue_);
+ }
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ output.writeBytes(6, getStringValueBytes());
+ }
+ if (((bitField0_ & 0x00000040) == 0x00000040)) {
+ output.writeBytes(7, getMetricKeyBytes());
+ }
+ if (((bitField0_ & 0x00000080) == 0x00000080)) {
+ output.writeBytes(9, getDescriptionBytes());
+ }
+ if (((bitField0_ & 0x00000100) == 0x00000100)) {
+ output.writeBytes(10, getRuleKeyBytes());
+ }
+ if (((bitField0_ & 0x00000200) == 0x00000200)) {
+ output.writeEnum(11, severity_.getNumber());
+ }
+ if (((bitField0_ & 0x00000400) == 0x00000400)) {
+ output.writeBytes(12, getAlertStatusBytes());
+ }
+ if (((bitField0_ & 0x00000800) == 0x00000800)) {
+ output.writeBytes(13, getAlertTextBytes());
+ }
+ if (((bitField0_ & 0x00001000) == 0x00001000)) {
+ output.writeDouble(14, variationValue1_);
+ }
+ if (((bitField0_ & 0x00002000) == 0x00002000)) {
+ output.writeDouble(15, variationValue2_);
+ }
+ if (((bitField0_ & 0x00004000) == 0x00004000)) {
+ output.writeDouble(16, variationValue3_);
+ }
+ if (((bitField0_ & 0x00008000) == 0x00008000)) {
+ output.writeDouble(17, variationValue4_);
+ }
+ if (((bitField0_ & 0x00010000) == 0x00010000)) {
+ output.writeDouble(18, variationValue5_);
+ }
+ if (((bitField0_ & 0x00020000) == 0x00020000)) {
+ output.writeInt32(19, tendency_);
+ }
+ if (((bitField0_ & 0x00040000) == 0x00040000)) {
+ output.writeInt32(20, charactericId_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, valueType_.getNumber());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, booleanValue_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(3, intValue_);
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(4, longValue_);
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(5, doubleValue_);
+ }
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(6, getStringValueBytes());
+ }
+ if (((bitField0_ & 0x00000040) == 0x00000040)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(7, getMetricKeyBytes());
+ }
+ if (((bitField0_ & 0x00000080) == 0x00000080)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(9, getDescriptionBytes());
+ }
+ if (((bitField0_ & 0x00000100) == 0x00000100)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(10, getRuleKeyBytes());
+ }
+ if (((bitField0_ & 0x00000200) == 0x00000200)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(11, severity_.getNumber());
+ }
+ if (((bitField0_ & 0x00000400) == 0x00000400)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(12, getAlertStatusBytes());
+ }
+ if (((bitField0_ & 0x00000800) == 0x00000800)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(13, getAlertTextBytes());
+ }
+ if (((bitField0_ & 0x00001000) == 0x00001000)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(14, variationValue1_);
+ }
+ if (((bitField0_ & 0x00002000) == 0x00002000)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(15, variationValue2_);
+ }
+ if (((bitField0_ & 0x00004000) == 0x00004000)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(16, variationValue3_);
+ }
+ if (((bitField0_ & 0x00008000) == 0x00008000)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(17, variationValue4_);
+ }
+ if (((bitField0_ & 0x00010000) == 0x00010000)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(18, variationValue5_);
+ }
+ if (((bitField0_ & 0x00020000) == 0x00020000)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(19, tendency_);
+ }
+ if (((bitField0_ & 0x00040000) == 0x00040000)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(20, charactericId_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ protected java.lang.Object writeReplace()
+ throws java.io.ObjectStreamException {
+ return super.writeReplace();
+ }
+
+ public static org.sonar.batch.protocol.output.BatchReport.Measure parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonar.batch.protocol.output.BatchReport.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.sonar.batch.protocol.output.BatchReport.Measure parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonar.batch.protocol.output.BatchReport.Measure parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonar.batch.protocol.output.BatchReport.Measure parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonar.batch.protocol.output.BatchReport.Measure parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonar.batch.protocol.output.BatchReport.Measure parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonar.batch.protocol.output.BatchReport.Measure parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonar.batch.protocol.output.BatchReport.Measure parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonar.batch.protocol.output.BatchReport.Measure parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Measure prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Measure}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Measure)
+ org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonar.batch.protocol.output.BatchReport.internal_static_Measure_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonar.batch.protocol.output.BatchReport.internal_static_Measure_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonar.batch.protocol.output.BatchReport.Measure.class, org.sonar.batch.protocol.output.BatchReport.Measure.Builder.class);
+ }
+
+ // Construct using org.sonar.batch.protocol.output.BatchReport.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) {
+ }
+ }
+ private static Builder create() {
+ return new Builder();
+ }
+
+ public Builder clear() {
+ super.clear();
+ valueType_ = org.sonar.batch.protocol.Constants.MeasureValueType.INT;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ booleanValue_ = false;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ intValue_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ longValue_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ doubleValue_ = 0D;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ stringValue_ = "";
+ bitField0_ = (bitField0_ & ~0x00000020);
+ metricKey_ = "";
+ bitField0_ = (bitField0_ & ~0x00000040);
+ description_ = "";
+ bitField0_ = (bitField0_ & ~0x00000080);
+ ruleKey_ = "";
+ bitField0_ = (bitField0_ & ~0x00000100);
+ severity_ = org.sonar.batch.protocol.Constants.Severity.INFO;
+ bitField0_ = (bitField0_ & ~0x00000200);
+ alertStatus_ = "";
+ bitField0_ = (bitField0_ & ~0x00000400);
+ alertText_ = "";
+ bitField0_ = (bitField0_ & ~0x00000800);
+ variationValue1_ = 0D;
+ bitField0_ = (bitField0_ & ~0x00001000);
+ variationValue2_ = 0D;
+ bitField0_ = (bitField0_ & ~0x00002000);
+ variationValue3_ = 0D;
+ bitField0_ = (bitField0_ & ~0x00004000);
+ variationValue4_ = 0D;
+ bitField0_ = (bitField0_ & ~0x00008000);
+ variationValue5_ = 0D;
+ bitField0_ = (bitField0_ & ~0x00010000);
+ tendency_ = 0;
+ bitField0_ = (bitField0_ & ~0x00020000);
+ charactericId_ = 0;
+ bitField0_ = (bitField0_ & ~0x00040000);
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonar.batch.protocol.output.BatchReport.internal_static_Measure_descriptor;
+ }
+
+ public org.sonar.batch.protocol.output.BatchReport.Measure getDefaultInstanceForType() {
+ return org.sonar.batch.protocol.output.BatchReport.Measure.getDefaultInstance();
+ }
+
+ public org.sonar.batch.protocol.output.BatchReport.Measure build() {
+ org.sonar.batch.protocol.output.BatchReport.Measure result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonar.batch.protocol.output.BatchReport.Measure buildPartial() {
+ org.sonar.batch.protocol.output.BatchReport.Measure result = new org.sonar.batch.protocol.output.BatchReport.Measure(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.valueType_ = valueType_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.booleanValue_ = booleanValue_;
+ if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ to_bitField0_ |= 0x00000004;
+ }
+ result.intValue_ = intValue_;
+ if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ to_bitField0_ |= 0x00000008;
+ }
+ result.longValue_ = longValue_;
+ if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
+ to_bitField0_ |= 0x00000010;
+ }
+ result.doubleValue_ = doubleValue_;
+ if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
+ to_bitField0_ |= 0x00000020;
+ }
+ result.stringValue_ = stringValue_;
+ if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
+ to_bitField0_ |= 0x00000040;
+ }
+ result.metricKey_ = metricKey_;
+ if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
+ to_bitField0_ |= 0x00000080;
+ }
+ result.description_ = description_;
+ if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
+ to_bitField0_ |= 0x00000100;
+ }
+ result.ruleKey_ = ruleKey_;
+ if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
+ to_bitField0_ |= 0x00000200;
+ }
+ result.severity_ = severity_;
+ if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
+ to_bitField0_ |= 0x00000400;
+ }
+ result.alertStatus_ = alertStatus_;
+ if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
+ to_bitField0_ |= 0x00000800;
+ }
+ result.alertText_ = alertText_;
+ if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
+ to_bitField0_ |= 0x00001000;
+ }
+ result.variationValue1_ = variationValue1_;
+ if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
+ to_bitField0_ |= 0x00002000;
+ }
+ result.variationValue2_ = variationValue2_;
+ if (((from_bitField0_ & 0x00004000) == 0x00004000)) {
+ to_bitField0_ |= 0x00004000;
+ }
+ result.variationValue3_ = variationValue3_;
+ if (((from_bitField0_ & 0x00008000) == 0x00008000)) {
+ to_bitField0_ |= 0x00008000;
+ }
+ result.variationValue4_ = variationValue4_;
+ if (((from_bitField0_ & 0x00010000) == 0x00010000)) {
+ to_bitField0_ |= 0x00010000;
+ }
+ result.variationValue5_ = variationValue5_;
+ if (((from_bitField0_ & 0x00020000) == 0x00020000)) {
+ to_bitField0_ |= 0x00020000;
+ }
+ result.tendency_ = tendency_;
+ if (((from_bitField0_ & 0x00040000) == 0x00040000)) {
+ to_bitField0_ |= 0x00040000;
+ }
+ result.charactericId_ = charactericId_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonar.batch.protocol.output.BatchReport.Measure) {
+ return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Measure)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Measure other) {
+ if (other == org.sonar.batch.protocol.output.BatchReport.Measure.getDefaultInstance()) return this;
+ if (other.hasValueType()) {
+ setValueType(other.getValueType());
+ }
+ if (other.hasBooleanValue()) {
+ setBooleanValue(other.getBooleanValue());
+ }
+ if (other.hasIntValue()) {
+ setIntValue(other.getIntValue());
+ }
+ if (other.hasLongValue()) {
+ setLongValue(other.getLongValue());
+ }
+ if (other.hasDoubleValue()) {
+ setDoubleValue(other.getDoubleValue());
+ }
+ if (other.hasStringValue()) {
+ bitField0_ |= 0x00000020;
+ stringValue_ = other.stringValue_;
+ onChanged();
+ }
+ if (other.hasMetricKey()) {
+ bitField0_ |= 0x00000040;
+ metricKey_ = other.metricKey_;
+ onChanged();
+ }
+ if (other.hasDescription()) {
+ bitField0_ |= 0x00000080;
+ description_ = other.description_;
+ onChanged();
+ }
+ if (other.hasRuleKey()) {
+ bitField0_ |= 0x00000100;
+ ruleKey_ = other.ruleKey_;
+ onChanged();
+ }
+ if (other.hasSeverity()) {
+ setSeverity(other.getSeverity());
+ }
+ if (other.hasAlertStatus()) {
+ bitField0_ |= 0x00000400;
+ alertStatus_ = other.alertStatus_;
+ onChanged();
+ }
+ if (other.hasAlertText()) {
+ bitField0_ |= 0x00000800;
+ alertText_ = other.alertText_;
+ onChanged();
+ }
+ if (other.hasVariationValue1()) {
+ setVariationValue1(other.getVariationValue1());
+ }
+ if (other.hasVariationValue2()) {
+ setVariationValue2(other.getVariationValue2());
+ }
+ if (other.hasVariationValue3()) {
+ setVariationValue3(other.getVariationValue3());
+ }
+ if (other.hasVariationValue4()) {
+ setVariationValue4(other.getVariationValue4());
+ }
+ if (other.hasVariationValue5()) {
+ setVariationValue5(other.getVariationValue5());
+ }
+ if (other.hasTendency()) {
+ setTendency(other.getTendency());
+ }
+ if (other.hasCharactericId()) {
+ setCharactericId(other.getCharactericId());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ 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.sonar.batch.protocol.output.BatchReport.Measure parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonar.batch.protocol.output.BatchReport.Measure) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private org.sonar.batch.protocol.Constants.MeasureValueType valueType_ = org.sonar.batch.protocol.Constants.MeasureValueType.INT;
+ /**
+ * <code>optional .MeasureValueType value_type = 1;</code>
+ */
+ public boolean hasValueType() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * <code>optional .MeasureValueType value_type = 1;</code>
+ */
+ public org.sonar.batch.protocol.Constants.MeasureValueType getValueType() {
+ return valueType_;
+ }
+ /**
+ * <code>optional .MeasureValueType value_type = 1;</code>
+ */
+ public Builder setValueType(org.sonar.batch.protocol.Constants.MeasureValueType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ valueType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional .MeasureValueType value_type = 1;</code>
+ */
+ public Builder clearValueType() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ valueType_ = org.sonar.batch.protocol.Constants.MeasureValueType.INT;
+ onChanged();
+ return this;
+ }
+
+ private boolean booleanValue_ ;
+ /**
+ * <code>optional bool boolean_value = 2;</code>
+ */
+ public boolean hasBooleanValue() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * <code>optional bool boolean_value = 2;</code>
+ */
+ public boolean getBooleanValue() {
+ return booleanValue_;
+ }
+ /**
+ * <code>optional bool boolean_value = 2;</code>
+ */
+ public Builder setBooleanValue(boolean value) {
+ bitField0_ |= 0x00000002;
+ booleanValue_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional bool boolean_value = 2;</code>
+ */
+ public Builder clearBooleanValue() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ booleanValue_ = false;
+ onChanged();
+ return this;
+ }
+
+ private int intValue_ ;
+ /**
+ * <code>optional int32 int_value = 3;</code>
+ */
+ public boolean hasIntValue() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * <code>optional int32 int_value = 3;</code>
+ */
+ public int getIntValue() {
+ return intValue_;
+ }
+ /**
+ * <code>optional int32 int_value = 3;</code>
+ */
+ public Builder setIntValue(int value) {
+ bitField0_ |= 0x00000004;
+ intValue_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional int32 int_value = 3;</code>
+ */
+ public Builder clearIntValue() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ intValue_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private long longValue_ ;
+ /**
+ * <code>optional int64 long_value = 4;</code>
+ */
+ public boolean hasLongValue() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * <code>optional int64 long_value = 4;</code>
+ */
+ public long getLongValue() {
+ return longValue_;
+ }
+ /**
+ * <code>optional int64 long_value = 4;</code>
+ */
+ public Builder setLongValue(long value) {
+ bitField0_ |= 0x00000008;
+ longValue_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional int64 long_value = 4;</code>
+ */
+ public Builder clearLongValue() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ longValue_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private double doubleValue_ ;
+ /**
+ * <code>optional double double_value = 5;</code>
+ */
+ public boolean hasDoubleValue() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+ /**
+ * <code>optional double double_value = 5;</code>
+ */
+ public double getDoubleValue() {
+ return doubleValue_;
+ }
+ /**
+ * <code>optional double double_value = 5;</code>
+ */
+ public Builder setDoubleValue(double value) {
+ bitField0_ |= 0x00000010;
+ doubleValue_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional double double_value = 5;</code>
+ */
+ public Builder clearDoubleValue() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ doubleValue_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object stringValue_ = "";
+ /**
+ * <code>optional string string_value = 6;</code>
+ */
+ public boolean hasStringValue() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+ /**
+ * <code>optional string string_value = 6;</code>
+ */
+ public java.lang.String getStringValue() {
+ java.lang.Object ref = stringValue_;
+ 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()) {
+ stringValue_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string string_value = 6;</code>
+ */
+ public com.google.protobuf.ByteString
+ getStringValueBytes() {
+ java.lang.Object ref = stringValue_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ stringValue_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <code>optional string string_value = 6;</code>
+ */
+ public Builder setStringValue(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000020;
+ stringValue_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string string_value = 6;</code>
+ */
+ public Builder clearStringValue() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ stringValue_ = getDefaultInstance().getStringValue();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string string_value = 6;</code>
+ */
+ public Builder setStringValueBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000020;
+ stringValue_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object metricKey_ = "";
+ /**
+ * <code>optional string metric_key = 7;</code>
+ */
+ public boolean hasMetricKey() {
+ return ((bitField0_ & 0x00000040) == 0x00000040);
+ }
+ /**
+ * <code>optional string metric_key = 7;</code>
+ */
+ public java.lang.String getMetricKey() {
+ java.lang.Object ref = metricKey_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ metricKey_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string metric_key = 7;</code>
+ */
+ public com.google.protobuf.ByteString
+ getMetricKeyBytes() {
+ java.lang.Object ref = metricKey_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ metricKey_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <code>optional string metric_key = 7;</code>
+ */
+ public Builder setMetricKey(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000040;
+ metricKey_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string metric_key = 7;</code>
+ */
+ public Builder clearMetricKey() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ metricKey_ = getDefaultInstance().getMetricKey();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string metric_key = 7;</code>
+ */
+ public Builder setMetricKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000040;
+ metricKey_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object description_ = "";
+ /**
+ * <code>optional string description = 9;</code>
+ *
+ * <pre>
+ * temporary fields during development of computation stack
+ * </pre>
+ */
+ public boolean hasDescription() {
+ return ((bitField0_ & 0x00000080) == 0x00000080);
+ }
+ /**
+ * <code>optional string description = 9;</code>
+ *
+ * <pre>
+ * temporary fields during development of computation stack
+ * </pre>
+ */
+ 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;
+ }
+ }
+ /**
+ * <code>optional string description = 9;</code>
+ *
+ * <pre>
+ * temporary fields during development of computation stack
+ * </pre>
+ */
+ 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;
+ }
+ }
+ /**
+ * <code>optional string description = 9;</code>
+ *
+ * <pre>
+ * temporary fields during development of computation stack
+ * </pre>
+ */
+ public Builder setDescription(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000080;
+ description_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string description = 9;</code>
+ *
+ * <pre>
+ * temporary fields during development of computation stack
+ * </pre>
+ */
+ public Builder clearDescription() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ description_ = getDefaultInstance().getDescription();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string description = 9;</code>
+ *
+ * <pre>
+ * temporary fields during development of computation stack
+ * </pre>
+ */
+ public Builder setDescriptionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000080;
+ description_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object ruleKey_ = "";
+ /**
+ * <code>optional string rule_key = 10;</code>
+ */
+ public boolean hasRuleKey() {
+ return ((bitField0_ & 0x00000100) == 0x00000100);
+ }
+ /**
+ * <code>optional string rule_key = 10;</code>
+ */
+ public java.lang.String getRuleKey() {
+ java.lang.Object ref = ruleKey_;
+ 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()) {
+ ruleKey_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string rule_key = 10;</code>
+ */
+ public com.google.protobuf.ByteString
+ getRuleKeyBytes() {
+ java.lang.Object ref = ruleKey_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ ruleKey_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <code>optional string rule_key = 10;</code>
+ */
+ public Builder setRuleKey(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000100;
+ ruleKey_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string rule_key = 10;</code>
+ */
+ public Builder clearRuleKey() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ ruleKey_ = getDefaultInstance().getRuleKey();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string rule_key = 10;</code>
+ */
+ public Builder setRuleKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000100;
+ ruleKey_ = value;
+ onChanged();
+ return this;
+ }
+
+ private org.sonar.batch.protocol.Constants.Severity severity_ = org.sonar.batch.protocol.Constants.Severity.INFO;
+ /**
+ * <code>optional .Severity severity = 11;</code>
+ */
+ public boolean hasSeverity() {
+ return ((bitField0_ & 0x00000200) == 0x00000200);
+ }
+ /**
+ * <code>optional .Severity severity = 11;</code>
+ */
+ public org.sonar.batch.protocol.Constants.Severity getSeverity() {
+ return severity_;
+ }
+ /**
+ * <code>optional .Severity severity = 11;</code>
+ */
+ public Builder setSeverity(org.sonar.batch.protocol.Constants.Severity value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000200;
+ severity_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional .Severity severity = 11;</code>
+ */
+ public Builder clearSeverity() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ severity_ = org.sonar.batch.protocol.Constants.Severity.INFO;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object alertStatus_ = "";
+ /**
+ * <code>optional string alert_status = 12;</code>
+ */
+ public boolean hasAlertStatus() {
+ return ((bitField0_ & 0x00000400) == 0x00000400);
+ }
+ /**
+ * <code>optional string alert_status = 12;</code>
+ */
+ public java.lang.String getAlertStatus() {
+ java.lang.Object ref = alertStatus_;
+ 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()) {
+ alertStatus_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string alert_status = 12;</code>
+ */
+ public com.google.protobuf.ByteString
+ getAlertStatusBytes() {
+ java.lang.Object ref = alertStatus_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ alertStatus_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <code>optional string alert_status = 12;</code>
+ */
+ public Builder setAlertStatus(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000400;
+ alertStatus_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string alert_status = 12;</code>
+ */
+ public Builder clearAlertStatus() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ alertStatus_ = getDefaultInstance().getAlertStatus();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string alert_status = 12;</code>
+ */
+ public Builder setAlertStatusBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000400;
+ alertStatus_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object alertText_ = "";
+ /**
+ * <code>optional string alert_text = 13;</code>
+ */
+ public boolean hasAlertText() {
+ return ((bitField0_ & 0x00000800) == 0x00000800);
+ }
+ /**
+ * <code>optional string alert_text = 13;</code>
+ */
+ public java.lang.String getAlertText() {
+ java.lang.Object ref = alertText_;
+ 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()) {
+ alertText_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string alert_text = 13;</code>
+ */
+ public com.google.protobuf.ByteString
+ getAlertTextBytes() {
+ java.lang.Object ref = alertText_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ alertText_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <code>optional string alert_text = 13;</code>
+ */
+ public Builder setAlertText(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000800;
+ alertText_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string alert_text = 13;</code>
+ */
+ public Builder clearAlertText() {
+ bitField0_ = (bitField0_ & ~0x00000800);
+ alertText_ = getDefaultInstance().getAlertText();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string alert_text = 13;</code>
+ */
+ public Builder setAlertTextBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000800;
+ alertText_ = value;
+ onChanged();
+ return this;
+ }
+
+ private double variationValue1_ ;
+ /**
+ * <code>optional double variation_value_1 = 14;</code>
+ */
+ public boolean hasVariationValue1() {
+ return ((bitField0_ & 0x00001000) == 0x00001000);
+ }
+ /**
+ * <code>optional double variation_value_1 = 14;</code>
+ */
+ public double getVariationValue1() {
+ return variationValue1_;
+ }
+ /**
+ * <code>optional double variation_value_1 = 14;</code>
+ */
+ public Builder setVariationValue1(double value) {
+ bitField0_ |= 0x00001000;
+ variationValue1_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional double variation_value_1 = 14;</code>
+ */
+ public Builder clearVariationValue1() {
+ bitField0_ = (bitField0_ & ~0x00001000);
+ variationValue1_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double variationValue2_ ;
+ /**
+ * <code>optional double variation_value_2 = 15;</code>
+ */
+ public boolean hasVariationValue2() {
+ return ((bitField0_ & 0x00002000) == 0x00002000);
+ }
+ /**
+ * <code>optional double variation_value_2 = 15;</code>
+ */
+ public double getVariationValue2() {
+ return variationValue2_;
+ }
+ /**
+ * <code>optional double variation_value_2 = 15;</code>
+ */
+ public Builder setVariationValue2(double value) {
+ bitField0_ |= 0x00002000;
+ variationValue2_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional double variation_value_2 = 15;</code>
+ */
+ public Builder clearVariationValue2() {
+ bitField0_ = (bitField0_ & ~0x00002000);
+ variationValue2_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double variationValue3_ ;
+ /**
+ * <code>optional double variation_value_3 = 16;</code>
+ */
+ public boolean hasVariationValue3() {
+ return ((bitField0_ & 0x00004000) == 0x00004000);
+ }
+ /**
+ * <code>optional double variation_value_3 = 16;</code>
+ */
+ public double getVariationValue3() {
+ return variationValue3_;
+ }
+ /**
+ * <code>optional double variation_value_3 = 16;</code>
+ */
+ public Builder setVariationValue3(double value) {
+ bitField0_ |= 0x00004000;
+ variationValue3_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional double variation_value_3 = 16;</code>
+ */
+ public Builder clearVariationValue3() {
+ bitField0_ = (bitField0_ & ~0x00004000);
+ variationValue3_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double variationValue4_ ;
+ /**
+ * <code>optional double variation_value_4 = 17;</code>
+ */
+ public boolean hasVariationValue4() {
+ return ((bitField0_ & 0x00008000) == 0x00008000);
+ }
+ /**
+ * <code>optional double variation_value_4 = 17;</code>
+ */
+ public double getVariationValue4() {
+ return variationValue4_;
+ }
+ /**
+ * <code>optional double variation_value_4 = 17;</code>
+ */
+ public Builder setVariationValue4(double value) {
+ bitField0_ |= 0x00008000;
+ variationValue4_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional double variation_value_4 = 17;</code>
+ */
+ public Builder clearVariationValue4() {
+ bitField0_ = (bitField0_ & ~0x00008000);
+ variationValue4_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double variationValue5_ ;
+ /**
+ * <code>optional double variation_value_5 = 18;</code>
+ */
+ public boolean hasVariationValue5() {
+ return ((bitField0_ & 0x00010000) == 0x00010000);
+ }
+ /**
+ * <code>optional double variation_value_5 = 18;</code>
+ */
+ public double getVariationValue5() {
+ return variationValue5_;
+ }
+ /**
+ * <code>optional double variation_value_5 = 18;</code>
+ */
+ public Builder setVariationValue5(double value) {
+ bitField0_ |= 0x00010000;
+ variationValue5_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional double variation_value_5 = 18;</code>
+ */
+ public Builder clearVariationValue5() {
+ bitField0_ = (bitField0_ & ~0x00010000);
+ variationValue5_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private int tendency_ ;
+ /**
+ * <code>optional int32 tendency = 19;</code>
+ */
+ public boolean hasTendency() {
+ return ((bitField0_ & 0x00020000) == 0x00020000);
+ }
+ /**
+ * <code>optional int32 tendency = 19;</code>
+ */
+ public int getTendency() {
+ return tendency_;
+ }
+ /**
+ * <code>optional int32 tendency = 19;</code>
+ */
+ public Builder setTendency(int value) {
+ bitField0_ |= 0x00020000;
+ tendency_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional int32 tendency = 19;</code>
+ */
+ public Builder clearTendency() {
+ bitField0_ = (bitField0_ & ~0x00020000);
+ tendency_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int charactericId_ ;
+ /**
+ * <code>optional int32 characteric_id = 20;</code>
+ */
+ public boolean hasCharactericId() {
+ return ((bitField0_ & 0x00040000) == 0x00040000);
+ }
+ /**
+ * <code>optional int32 characteric_id = 20;</code>
+ */
+ public int getCharactericId() {
+ return charactericId_;
+ }
+ /**
+ * <code>optional int32 characteric_id = 20;</code>
+ */
+ public Builder setCharactericId(int value) {
+ bitField0_ |= 0x00040000;
+ charactericId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional int32 characteric_id = 20;</code>
+ */
+ public Builder clearCharactericId() {
+ bitField0_ = (bitField0_ & ~0x00040000);
+ charactericId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:Measure)
+ }
+
+ static {
+ defaultInstance = new Measure(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:Measure)
+ }
+
+ public interface MeasuresOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Measures)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <code>optional int32 component_ref = 1;</code>
+ */
+ boolean hasComponentRef();
+ /**
+ * <code>optional int32 component_ref = 1;</code>
+ */
+ int getComponentRef();
+
+ /**
+ * <code>repeated .Measure measure = 2;</code>
+ */
+ java.util.List<org.sonar.batch.protocol.output.BatchReport.Measure>
+ getMeasureList();
+ /**
+ * <code>repeated .Measure measure = 2;</code>
+ */
+ org.sonar.batch.protocol.output.BatchReport.Measure getMeasure(int index);
+ /**
+ * <code>repeated .Measure measure = 2;</code>
+ */
+ int getMeasureCount();
+ /**
+ * <code>repeated .Measure measure = 2;</code>
+ */
+ java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder>
+ getMeasureOrBuilderList();
+ /**
+ * <code>repeated .Measure measure = 2;</code>
+ */
+ org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder getMeasureOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code Measures}
+ */
+ public static final class Measures extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:Measures)
+ MeasuresOrBuilder {
+ // Use Measures.newBuilder() to construct.
+ private Measures(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ super(builder);
+ this.unknownFields = builder.getUnknownFields();
+ }
+ private Measures(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+
+ private static final Measures defaultInstance;
+ public static Measures getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public Measures getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Measures(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ initFields();
+ 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;
+ componentRef_ = input.readInt32();
+ break;
+ }
+ case 18: {
+ if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ measure_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Measure>();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ measure_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.Measure.PARSER, extensionRegistry));
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ measure_ = java.util.Collections.unmodifiableList(measure_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonar.batch.protocol.output.BatchReport.internal_static_Measures_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonar.batch.protocol.output.BatchReport.internal_static_Measures_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonar.batch.protocol.output.BatchReport.Measures.class, org.sonar.batch.protocol.output.BatchReport.Measures.Builder.class);
+ }
+
+ public static com.google.protobuf.Parser<Measures> PARSER =
+ new com.google.protobuf.AbstractParser<Measures>() {
+ public Measures parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new Measures(input, extensionRegistry);
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Measures> getParserForType() {
+ return PARSER;
+ }
+
+ private int bitField0_;
+ public static final int COMPONENT_REF_FIELD_NUMBER = 1;
+ private int componentRef_;
+ /**
+ * <code>optional int32 component_ref = 1;</code>
+ */
+ public boolean hasComponentRef() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * <code>optional int32 component_ref = 1;</code>
+ */
+ public int getComponentRef() {
+ return componentRef_;
+ }
+
+ public static final int MEASURE_FIELD_NUMBER = 2;
+ private java.util.List<org.sonar.batch.protocol.output.BatchReport.Measure> measure_;
+ /**
+ * <code>repeated .Measure measure = 2;</code>
+ */
+ public java.util.List<org.sonar.batch.protocol.output.BatchReport.Measure> getMeasureList() {
+ return measure_;
+ }
+ /**
+ * <code>repeated .Measure measure = 2;</code>
+ */
+ public java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder>
+ getMeasureOrBuilderList() {
+ return measure_;
+ }
+ /**
+ * <code>repeated .Measure measure = 2;</code>
+ */
+ public int getMeasureCount() {
+ return measure_.size();
+ }
+ /**
+ * <code>repeated .Measure measure = 2;</code>
+ */
+ public org.sonar.batch.protocol.output.BatchReport.Measure getMeasure(int index) {
+ return measure_.get(index);
+ }
+ /**
+ * <code>repeated .Measure measure = 2;</code>
+ */
+ public org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder getMeasureOrBuilder(
+ int index) {
+ return measure_.get(index);
+ }
+
+ private void initFields() {
+ componentRef_ = 0;
+ measure_ = java.util.Collections.emptyList();
+ }
+ 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 {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeInt32(1, componentRef_);
+ }
+ for (int i = 0; i < measure_.size(); i++) {
+ output.writeMessage(2, measure_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(1, componentRef_);
+ }
+ for (int i = 0; i < measure_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, measure_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ protected java.lang.Object writeReplace()
+ throws java.io.ObjectStreamException {
+ return super.writeReplace();
+ }
+
+ public static org.sonar.batch.protocol.output.BatchReport.Measures parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonar.batch.protocol.output.BatchReport.Measures parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonar.batch.protocol.output.BatchReport.Measures parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonar.batch.protocol.output.BatchReport.Measures parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonar.batch.protocol.output.BatchReport.Measures parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonar.batch.protocol.output.BatchReport.Measures parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonar.batch.protocol.output.BatchReport.Measures parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonar.batch.protocol.output.BatchReport.Measures parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonar.batch.protocol.output.BatchReport.Measures parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonar.batch.protocol.output.BatchReport.Measures parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Measures prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Measures}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Measures)
+ org.sonar.batch.protocol.output.BatchReport.MeasuresOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonar.batch.protocol.output.BatchReport.internal_static_Measures_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonar.batch.protocol.output.BatchReport.internal_static_Measures_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonar.batch.protocol.output.BatchReport.Measures.class, org.sonar.batch.protocol.output.BatchReport.Measures.Builder.class);
+ }
+
+ // Construct using org.sonar.batch.protocol.output.BatchReport.Measures.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getMeasureFieldBuilder();
+ }
+ }
+ private static Builder create() {
+ return new Builder();
+ }
+
+ public Builder clear() {
+ super.clear();
+ componentRef_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ if (measureBuilder_ == null) {
+ measure_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ measureBuilder_.clear();
+ }
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonar.batch.protocol.output.BatchReport.internal_static_Measures_descriptor;
+ }
+
+ public org.sonar.batch.protocol.output.BatchReport.Measures getDefaultInstanceForType() {
+ return org.sonar.batch.protocol.output.BatchReport.Measures.getDefaultInstance();
+ }
+
+ public org.sonar.batch.protocol.output.BatchReport.Measures build() {
+ org.sonar.batch.protocol.output.BatchReport.Measures result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonar.batch.protocol.output.BatchReport.Measures buildPartial() {
+ org.sonar.batch.protocol.output.BatchReport.Measures result = new org.sonar.batch.protocol.output.BatchReport.Measures(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.componentRef_ = componentRef_;
+ if (measureBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ measure_ = java.util.Collections.unmodifiableList(measure_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.measure_ = measure_;
+ } else {
+ result.measure_ = measureBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonar.batch.protocol.output.BatchReport.Measures) {
+ return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Measures)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Measures other) {
+ if (other == org.sonar.batch.protocol.output.BatchReport.Measures.getDefaultInstance()) return this;
+ if (other.hasComponentRef()) {
+ setComponentRef(other.getComponentRef());
+ }
+ if (measureBuilder_ == null) {
+ if (!other.measure_.isEmpty()) {
+ if (measure_.isEmpty()) {
+ measure_ = other.measure_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureMeasureIsMutable();
+ measure_.addAll(other.measure_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.measure_.isEmpty()) {
+ if (measureBuilder_.isEmpty()) {
+ measureBuilder_.dispose();
+ measureBuilder_ = null;
+ measure_ = other.measure_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ measureBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getMeasureFieldBuilder() : null;
+ } else {
+ measureBuilder_.addAllMessages(other.measure_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
}
- /**
- * <code>optional string uuid = 9;</code>
- */
- public java.lang.String getUuid() {
- java.lang.Object ref = uuid_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- uuid_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonar.batch.protocol.output.BatchReport.Measures parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonar.batch.protocol.output.BatchReport.Measures) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
}
+ return this;
}
+ private int bitField0_;
+
+ private int componentRef_ ;
/**
- * <code>optional string uuid = 9;</code>
+ * <code>optional int32 component_ref = 1;</code>
*/
- public com.google.protobuf.ByteString
- getUuidBytes() {
- java.lang.Object ref = uuid_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- uuid_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
+ public boolean hasComponentRef() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>optional string uuid = 9;</code>
+ * <code>optional int32 component_ref = 1;</code>
*/
- public Builder setUuid(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000400;
- uuid_ = value;
- onChanged();
- return this;
+ public int getComponentRef() {
+ return componentRef_;
}
/**
- * <code>optional string uuid = 9;</code>
+ * <code>optional int32 component_ref = 1;</code>
*/
- public Builder clearUuid() {
- bitField0_ = (bitField0_ & ~0x00000400);
- uuid_ = getDefaultInstance().getUuid();
+ public Builder setComponentRef(int value) {
+ bitField0_ |= 0x00000001;
+ componentRef_ = value;
onChanged();
return this;
}
/**
- * <code>optional string uuid = 9;</code>
+ * <code>optional int32 component_ref = 1;</code>
*/
- public Builder setUuidBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000400;
- uuid_ = value;
+ public Builder clearComponentRef() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ componentRef_ = 0;
onChanged();
return this;
}
- // repeated .Event event = 11;
- private java.util.List<org.sonar.batch.protocol.output.BatchReport.Event> event_ =
+ private java.util.List<org.sonar.batch.protocol.output.BatchReport.Measure> measure_ =
java.util.Collections.emptyList();
- private void ensureEventIsMutable() {
- if (!((bitField0_ & 0x00000800) == 0x00000800)) {
- event_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Event>(event_);
- bitField0_ |= 0x00000800;
+ private void ensureMeasureIsMutable() {
+ if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ measure_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Measure>(measure_);
+ bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.batch.protocol.output.BatchReport.Event, org.sonar.batch.protocol.output.BatchReport.Event.Builder, org.sonar.batch.protocol.output.BatchReport.EventOrBuilder> eventBuilder_;
+ org.sonar.batch.protocol.output.BatchReport.Measure, org.sonar.batch.protocol.output.BatchReport.Measure.Builder, org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder> measureBuilder_;
/**
- * <code>repeated .Event event = 11;</code>
+ * <code>repeated .Measure measure = 2;</code>
*/
- public java.util.List<org.sonar.batch.protocol.output.BatchReport.Event> getEventList() {
- if (eventBuilder_ == null) {
- return java.util.Collections.unmodifiableList(event_);
+ public java.util.List<org.sonar.batch.protocol.output.BatchReport.Measure> getMeasureList() {
+ if (measureBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(measure_);
} else {
- return eventBuilder_.getMessageList();
+ return measureBuilder_.getMessageList();
}
}
/**
- * <code>repeated .Event event = 11;</code>
+ * <code>repeated .Measure measure = 2;</code>
*/
- public int getEventCount() {
- if (eventBuilder_ == null) {
- return event_.size();
+ public int getMeasureCount() {
+ if (measureBuilder_ == null) {
+ return measure_.size();
} else {
- return eventBuilder_.getCount();
+ return measureBuilder_.getCount();
}
}
/**
- * <code>repeated .Event event = 11;</code>
+ * <code>repeated .Measure measure = 2;</code>
*/
- public org.sonar.batch.protocol.output.BatchReport.Event getEvent(int index) {
- if (eventBuilder_ == null) {
- return event_.get(index);
+ public org.sonar.batch.protocol.output.BatchReport.Measure getMeasure(int index) {
+ if (measureBuilder_ == null) {
+ return measure_.get(index);
} else {
- return eventBuilder_.getMessage(index);
+ return measureBuilder_.getMessage(index);
}
}
/**
- * <code>repeated .Event event = 11;</code>
+ * <code>repeated .Measure measure = 2;</code>
*/
- public Builder setEvent(
- int index, org.sonar.batch.protocol.output.BatchReport.Event value) {
- if (eventBuilder_ == null) {
+ public Builder setMeasure(
+ int index, org.sonar.batch.protocol.output.BatchReport.Measure value) {
+ if (measureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureEventIsMutable();
- event_.set(index, value);
+ ensureMeasureIsMutable();
+ measure_.set(index, value);
onChanged();
} else {
- eventBuilder_.setMessage(index, value);
+ measureBuilder_.setMessage(index, value);
}
return this;
}
/**
- * <code>repeated .Event event = 11;</code>
+ * <code>repeated .Measure measure = 2;</code>
*/
- public Builder setEvent(
- int index, org.sonar.batch.protocol.output.BatchReport.Event.Builder builderForValue) {
- if (eventBuilder_ == null) {
- ensureEventIsMutable();
- event_.set(index, builderForValue.build());
+ public Builder setMeasure(
+ int index, org.sonar.batch.protocol.output.BatchReport.Measure.Builder builderForValue) {
+ if (measureBuilder_ == null) {
+ ensureMeasureIsMutable();
+ measure_.set(index, builderForValue.build());
onChanged();
} else {
- eventBuilder_.setMessage(index, builderForValue.build());
+ measureBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
- * <code>repeated .Event event = 11;</code>
+ * <code>repeated .Measure measure = 2;</code>
*/
- public Builder addEvent(org.sonar.batch.protocol.output.BatchReport.Event value) {
- if (eventBuilder_ == null) {
+ public Builder addMeasure(org.sonar.batch.protocol.output.BatchReport.Measure value) {
+ if (measureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureEventIsMutable();
- event_.add(value);
+ ensureMeasureIsMutable();
+ measure_.add(value);
onChanged();
} else {
- eventBuilder_.addMessage(value);
+ measureBuilder_.addMessage(value);
}
return this;
}
/**
- * <code>repeated .Event event = 11;</code>
+ * <code>repeated .Measure measure = 2;</code>
*/
- public Builder addEvent(
- int index, org.sonar.batch.protocol.output.BatchReport.Event value) {
- if (eventBuilder_ == null) {
+ public Builder addMeasure(
+ int index, org.sonar.batch.protocol.output.BatchReport.Measure value) {
+ if (measureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureEventIsMutable();
- event_.add(index, value);
+ ensureMeasureIsMutable();
+ measure_.add(index, value);
onChanged();
} else {
- eventBuilder_.addMessage(index, value);
+ measureBuilder_.addMessage(index, value);
}
return this;
}
/**
- * <code>repeated .Event event = 11;</code>
+ * <code>repeated .Measure measure = 2;</code>
*/
- public Builder addEvent(
- org.sonar.batch.protocol.output.BatchReport.Event.Builder builderForValue) {
- if (eventBuilder_ == null) {
- ensureEventIsMutable();
- event_.add(builderForValue.build());
+ public Builder addMeasure(
+ org.sonar.batch.protocol.output.BatchReport.Measure.Builder builderForValue) {
+ if (measureBuilder_ == null) {
+ ensureMeasureIsMutable();
+ measure_.add(builderForValue.build());
onChanged();
} else {
- eventBuilder_.addMessage(builderForValue.build());
+ measureBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
- * <code>repeated .Event event = 11;</code>
+ * <code>repeated .Measure measure = 2;</code>
*/
- public Builder addEvent(
- int index, org.sonar.batch.protocol.output.BatchReport.Event.Builder builderForValue) {
- if (eventBuilder_ == null) {
- ensureEventIsMutable();
- event_.add(index, builderForValue.build());
+ public Builder addMeasure(
+ int index, org.sonar.batch.protocol.output.BatchReport.Measure.Builder builderForValue) {
+ if (measureBuilder_ == null) {
+ ensureMeasureIsMutable();
+ measure_.add(index, builderForValue.build());
onChanged();
} else {
- eventBuilder_.addMessage(index, builderForValue.build());
+ measureBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
- * <code>repeated .Event event = 11;</code>
+ * <code>repeated .Measure measure = 2;</code>
*/
- public Builder addAllEvent(
- java.lang.Iterable<? extends org.sonar.batch.protocol.output.BatchReport.Event> values) {
- if (eventBuilder_ == null) {
- ensureEventIsMutable();
- super.addAll(values, event_);
+ public Builder addAllMeasure(
+ java.lang.Iterable<? extends org.sonar.batch.protocol.output.BatchReport.Measure> values) {
+ if (measureBuilder_ == null) {
+ ensureMeasureIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, measure_);
onChanged();
} else {
- eventBuilder_.addAllMessages(values);
+ measureBuilder_.addAllMessages(values);
}
return this;
}
/**
- * <code>repeated .Event event = 11;</code>
+ * <code>repeated .Measure measure = 2;</code>
*/
- public Builder clearEvent() {
- if (eventBuilder_ == null) {
- event_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000800);
+ public Builder clearMeasure() {
+ if (measureBuilder_ == null) {
+ measure_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
- eventBuilder_.clear();
+ measureBuilder_.clear();
}
return this;
}
/**
- * <code>repeated .Event event = 11;</code>
+ * <code>repeated .Measure measure = 2;</code>
*/
- public Builder removeEvent(int index) {
- if (eventBuilder_ == null) {
- ensureEventIsMutable();
- event_.remove(index);
+ public Builder removeMeasure(int index) {
+ if (measureBuilder_ == null) {
+ ensureMeasureIsMutable();
+ measure_.remove(index);
onChanged();
} else {
- eventBuilder_.remove(index);
+ measureBuilder_.remove(index);
}
return this;
}
/**
- * <code>repeated .Event event = 11;</code>
+ * <code>repeated .Measure measure = 2;</code>
*/
- public org.sonar.batch.protocol.output.BatchReport.Event.Builder getEventBuilder(
+ public org.sonar.batch.protocol.output.BatchReport.Measure.Builder getMeasureBuilder(
int index) {
- return getEventFieldBuilder().getBuilder(index);
+ return getMeasureFieldBuilder().getBuilder(index);
}
/**
- * <code>repeated .Event event = 11;</code>
+ * <code>repeated .Measure measure = 2;</code>
*/
- public org.sonar.batch.protocol.output.BatchReport.EventOrBuilder getEventOrBuilder(
+ public org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder getMeasureOrBuilder(
int index) {
- if (eventBuilder_ == null) {
- return event_.get(index); } else {
- return eventBuilder_.getMessageOrBuilder(index);
+ if (measureBuilder_ == null) {
+ return measure_.get(index); } else {
+ return measureBuilder_.getMessageOrBuilder(index);
}
}
/**
- * <code>repeated .Event event = 11;</code>
+ * <code>repeated .Measure measure = 2;</code>
*/
- public java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.EventOrBuilder>
- getEventOrBuilderList() {
- if (eventBuilder_ != null) {
- return eventBuilder_.getMessageOrBuilderList();
+ public java.util.List<? extends org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder>
+ getMeasureOrBuilderList() {
+ if (measureBuilder_ != null) {
+ return measureBuilder_.getMessageOrBuilderList();
} else {
- return java.util.Collections.unmodifiableList(event_);
+ return java.util.Collections.unmodifiableList(measure_);
}
}
/**
- * <code>repeated .Event event = 11;</code>
+ * <code>repeated .Measure measure = 2;</code>
*/
- public org.sonar.batch.protocol.output.BatchReport.Event.Builder addEventBuilder() {
- return getEventFieldBuilder().addBuilder(
- org.sonar.batch.protocol.output.BatchReport.Event.getDefaultInstance());
+ public org.sonar.batch.protocol.output.BatchReport.Measure.Builder addMeasureBuilder() {
+ return getMeasureFieldBuilder().addBuilder(
+ org.sonar.batch.protocol.output.BatchReport.Measure.getDefaultInstance());
}
/**
- * <code>repeated .Event event = 11;</code>
+ * <code>repeated .Measure measure = 2;</code>
*/
- public org.sonar.batch.protocol.output.BatchReport.Event.Builder addEventBuilder(
+ public org.sonar.batch.protocol.output.BatchReport.Measure.Builder addMeasureBuilder(
int index) {
- return getEventFieldBuilder().addBuilder(
- index, org.sonar.batch.protocol.output.BatchReport.Event.getDefaultInstance());
+ return getMeasureFieldBuilder().addBuilder(
+ index, org.sonar.batch.protocol.output.BatchReport.Measure.getDefaultInstance());
}
/**
- * <code>repeated .Event event = 11;</code>
+ * <code>repeated .Measure measure = 2;</code>
*/
- public java.util.List<org.sonar.batch.protocol.output.BatchReport.Event.Builder>
- getEventBuilderList() {
- return getEventFieldBuilder().getBuilderList();
+ public java.util.List<org.sonar.batch.protocol.output.BatchReport.Measure.Builder>
+ getMeasureBuilderList() {
+ return getMeasureFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.batch.protocol.output.BatchReport.Event, org.sonar.batch.protocol.output.BatchReport.Event.Builder, org.sonar.batch.protocol.output.BatchReport.EventOrBuilder>
- getEventFieldBuilder() {
- if (eventBuilder_ == null) {
- eventBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.batch.protocol.output.BatchReport.Event, org.sonar.batch.protocol.output.BatchReport.Event.Builder, org.sonar.batch.protocol.output.BatchReport.EventOrBuilder>(
- event_,
- ((bitField0_ & 0x00000800) == 0x00000800),
+ org.sonar.batch.protocol.output.BatchReport.Measure, org.sonar.batch.protocol.output.BatchReport.Measure.Builder, org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder>
+ getMeasureFieldBuilder() {
+ if (measureBuilder_ == null) {
+ measureBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.sonar.batch.protocol.output.BatchReport.Measure, org.sonar.batch.protocol.output.BatchReport.Measure.Builder, org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder>(
+ measure_,
+ ((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
- event_ = null;
+ measure_ = null;
}
- return eventBuilder_;
+ return measureBuilder_;
}
- // @@protoc_insertion_point(builder_scope:Component)
+ // @@protoc_insertion_point(builder_scope:Measures)
}
static {
- defaultInstance = new Component(true);
+ defaultInstance = new Measures(true);
defaultInstance.initFields();
}
- // @@protoc_insertion_point(class_scope:Component)
+ // @@protoc_insertion_point(class_scope:Measures)
}
- public interface IssueOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface IssueOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Issue)
+ com.google.protobuf.MessageOrBuilder {
- // optional string rule_repository = 1;
/**
* <code>optional string rule_repository = 1;</code>
*/
com.google.protobuf.ByteString
getRuleRepositoryBytes();
- // optional string rule_key = 2;
/**
* <code>optional string rule_key = 2;</code>
*/
com.google.protobuf.ByteString
getRuleKeyBytes();
- // optional int32 line = 3;
/**
* <code>optional int32 line = 3;</code>
*/
*/
int getLine();
- // optional string msg = 4;
/**
* <code>optional string msg = 4;</code>
*/
com.google.protobuf.ByteString
getMsgBytes();
- // optional .Severity severity = 5;
/**
* <code>optional .Severity severity = 5;</code>
*/
*/
org.sonar.batch.protocol.Constants.Severity getSeverity();
- // repeated string tag = 6;
/**
* <code>repeated string tag = 6;</code>
*/
- java.util.List<java.lang.String>
- getTagList();
+ com.google.protobuf.ProtocolStringList
+ getTagList();
/**
* <code>repeated string tag = 6;</code>
*/
com.google.protobuf.ByteString
getTagBytes(int index);
- // optional double effort_to_fix = 7;
/**
* <code>optional double effort_to_fix = 7;</code>
*
*/
double getEffortToFix();
- // optional bool is_new = 8;
/**
* <code>optional bool is_new = 8;</code>
*/
*/
boolean getIsNew();
- // optional string uuid = 9;
/**
* <code>optional string uuid = 9;</code>
*/
com.google.protobuf.ByteString
getUuidBytes();
- // optional int64 debt_in_minutes = 10;
/**
* <code>optional int64 debt_in_minutes = 10;</code>
*/
*/
long getDebtInMinutes();
- // optional string resolution = 11;
/**
* <code>optional string resolution = 11;</code>
*/
com.google.protobuf.ByteString
getResolutionBytes();
- // optional string status = 12;
/**
* <code>optional string status = 12;</code>
*/
com.google.protobuf.ByteString
getStatusBytes();
- // optional string checksum = 13;
/**
* <code>optional string checksum = 13;</code>
*/
com.google.protobuf.ByteString
getChecksumBytes();
- // optional bool manual_severity = 14;
/**
* <code>optional bool manual_severity = 14;</code>
*/
*/
boolean getManualSeverity();
- // optional string reporter = 15;
/**
* <code>optional string reporter = 15;</code>
*/
com.google.protobuf.ByteString
getReporterBytes();
- // optional string assignee = 16;
/**
* <code>optional string assignee = 16;</code>
*/
com.google.protobuf.ByteString
getAssigneeBytes();
- // optional string action_plan_key = 17;
/**
* <code>optional string action_plan_key = 17;</code>
*/
com.google.protobuf.ByteString
getActionPlanKeyBytes();
- // optional string attributes = 18;
/**
* <code>optional string attributes = 18;</code>
*/
com.google.protobuf.ByteString
getAttributesBytes();
- // optional string author_login = 19;
/**
* <code>optional string author_login = 19;</code>
*/
com.google.protobuf.ByteString
getAuthorLoginBytes();
- // optional int64 creation_date = 20;
/**
* <code>optional int64 creation_date = 20;</code>
*/
*/
long getCreationDate();
- // optional int64 close_date = 21;
/**
* <code>optional int64 close_date = 21;</code>
*/
*/
long getCloseDate();
- // optional int64 update_date = 22;
/**
* <code>optional int64 update_date = 22;</code>
*/
*/
long getUpdateDate();
- // optional int64 selected_at = 23;
/**
* <code>optional int64 selected_at = 23;</code>
*/
*/
long getSelectedAt();
- // optional string diff_fields = 24;
/**
* <code>optional string diff_fields = 24;</code>
*/
com.google.protobuf.ByteString
getDiffFieldsBytes();
- // optional bool is_changed = 25;
/**
* <code>optional bool is_changed = 25;</code>
*/
*/
boolean getIsChanged();
- // optional bool must_send_notification = 26;
/**
* <code>optional bool must_send_notification = 26;</code>
*/
* Protobuf type {@code Issue}
*/
public static final class Issue extends
- com.google.protobuf.GeneratedMessage
- implements IssueOrBuilder {
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:Issue)
+ IssueOrBuilder {
// Use Issue.newBuilder() to construct.
private Issue(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
break;
}
case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
- ruleRepository_ = input.readBytes();
+ ruleRepository_ = bs;
break;
}
case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- ruleKey_ = input.readBytes();
+ ruleKey_ = bs;
break;
}
case 24: {
break;
}
case 34: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
- msg_ = input.readBytes();
+ msg_ = bs;
break;
}
case 40: {
break;
}
case 50: {
+ com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
tag_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000020;
}
- tag_.add(input.readBytes());
+ tag_.add(bs);
break;
}
case 57: {
break;
}
case 74: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000080;
- uuid_ = input.readBytes();
+ uuid_ = bs;
break;
}
case 80: {
break;
}
case 90: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000200;
- resolution_ = input.readBytes();
+ resolution_ = bs;
break;
}
case 98: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000400;
- status_ = input.readBytes();
+ status_ = bs;
break;
}
case 106: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000800;
- checksum_ = input.readBytes();
+ checksum_ = bs;
break;
}
case 112: {
break;
}
case 122: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00002000;
- reporter_ = input.readBytes();
+ reporter_ = bs;
break;
}
case 130: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00004000;
- assignee_ = input.readBytes();
+ assignee_ = bs;
break;
}
case 138: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00008000;
- actionPlanKey_ = input.readBytes();
+ actionPlanKey_ = bs;
break;
}
case 146: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00010000;
- attributes_ = input.readBytes();
+ attributes_ = bs;
break;
}
case 154: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00020000;
- authorLogin_ = input.readBytes();
+ authorLogin_ = bs;
break;
}
case 160: {
break;
}
case 194: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00400000;
- diffFields_ = input.readBytes();
+ diffFields_ = bs;
break;
}
case 200: {
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
- tag_ = new com.google.protobuf.UnmodifiableLazyStringList(tag_);
+ tag_ = tag_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
private int bitField0_;
- // optional string rule_repository = 1;
public static final int RULE_REPOSITORY_FIELD_NUMBER = 1;
private java.lang.Object ruleRepository_;
/**
}
}
- // optional string rule_key = 2;
public static final int RULE_KEY_FIELD_NUMBER = 2;
private java.lang.Object ruleKey_;
/**
}
}
- // optional int32 line = 3;
public static final int LINE_FIELD_NUMBER = 3;
private int line_;
/**
return line_;
}
- // optional string msg = 4;
public static final int MSG_FIELD_NUMBER = 4;
private java.lang.Object msg_;
/**
}
}
- // optional .Severity severity = 5;
public static final int SEVERITY_FIELD_NUMBER = 5;
private org.sonar.batch.protocol.Constants.Severity severity_;
/**
return severity_;
}
- // repeated string tag = 6;
public static final int TAG_FIELD_NUMBER = 6;
private com.google.protobuf.LazyStringList tag_;
/**
* <code>repeated string tag = 6;</code>
*/
- public java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getTagList() {
return tag_;
}
return tag_.getByteString(index);
}
- // optional double effort_to_fix = 7;
public static final int EFFORT_TO_FIX_FIELD_NUMBER = 7;
private double effortToFix_;
/**
return effortToFix_;
}
- // optional bool is_new = 8;
public static final int IS_NEW_FIELD_NUMBER = 8;
private boolean isNew_;
/**
return isNew_;
}
- // optional string uuid = 9;
public static final int UUID_FIELD_NUMBER = 9;
private java.lang.Object uuid_;
/**
}
}
- // optional int64 debt_in_minutes = 10;
public static final int DEBT_IN_MINUTES_FIELD_NUMBER = 10;
private long debtInMinutes_;
/**
return debtInMinutes_;
}
- // optional string resolution = 11;
public static final int RESOLUTION_FIELD_NUMBER = 11;
private java.lang.Object resolution_;
/**
}
}
- // optional string status = 12;
public static final int STATUS_FIELD_NUMBER = 12;
private java.lang.Object status_;
/**
}
}
- // optional string checksum = 13;
public static final int CHECKSUM_FIELD_NUMBER = 13;
private java.lang.Object checksum_;
/**
}
}
- // optional bool manual_severity = 14;
public static final int MANUAL_SEVERITY_FIELD_NUMBER = 14;
private boolean manualSeverity_;
/**
return manualSeverity_;
}
- // optional string reporter = 15;
public static final int REPORTER_FIELD_NUMBER = 15;
private java.lang.Object reporter_;
/**
}
}
- // optional string assignee = 16;
public static final int ASSIGNEE_FIELD_NUMBER = 16;
private java.lang.Object assignee_;
/**
}
}
- // optional string action_plan_key = 17;
public static final int ACTION_PLAN_KEY_FIELD_NUMBER = 17;
private java.lang.Object actionPlanKey_;
/**
}
}
- // optional string attributes = 18;
public static final int ATTRIBUTES_FIELD_NUMBER = 18;
private java.lang.Object attributes_;
/**
}
}
- // optional string author_login = 19;
public static final int AUTHOR_LOGIN_FIELD_NUMBER = 19;
private java.lang.Object authorLogin_;
/**
}
}
- // optional int64 creation_date = 20;
public static final int CREATION_DATE_FIELD_NUMBER = 20;
private long creationDate_;
/**
return creationDate_;
}
- // optional int64 close_date = 21;
public static final int CLOSE_DATE_FIELD_NUMBER = 21;
private long closeDate_;
/**
return closeDate_;
}
- // optional int64 update_date = 22;
public static final int UPDATE_DATE_FIELD_NUMBER = 22;
private long updateDate_;
/**
return updateDate_;
}
- // optional int64 selected_at = 23;
public static final int SELECTED_AT_FIELD_NUMBER = 23;
private long selectedAt_;
/**
return selectedAt_;
}
- // optional string diff_fields = 24;
public static final int DIFF_FIELDS_FIELD_NUMBER = 24;
private java.lang.Object diffFields_;
/**
}
}
- // optional bool is_changed = 25;
public static final int IS_CHANGED_FIELD_NUMBER = 25;
private boolean isChanged_;
/**
return isChanged_;
}
- // optional bool must_send_notification = 26;
public static final int MUST_SEND_NOTIFICATION_FIELD_NUMBER = 26;
private boolean mustSendNotification_;
/**
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
* Protobuf type {@code Issue}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder {
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Issue)
+ org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_descriptor;
}
result.severity_ = severity_;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
- tag_ = new com.google.protobuf.UnmodifiableLazyStringList(
- tag_);
+ tag_ = tag_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.tag_ = tag_;
}
private int bitField0_;
- // optional string rule_repository = 1;
private java.lang.Object ruleRepository_ = "";
/**
* <code>optional string rule_repository = 1;</code>
public java.lang.String getRuleRepository() {
java.lang.Object ref = ruleRepository_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- ruleRepository_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ ruleRepository_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
return this;
}
- // optional string rule_key = 2;
private java.lang.Object ruleKey_ = "";
/**
* <code>optional string rule_key = 2;</code>
public java.lang.String getRuleKey() {
java.lang.Object ref = ruleKey_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- ruleKey_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ ruleKey_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
return this;
}
- // optional int32 line = 3;
private int line_ ;
/**
* <code>optional int32 line = 3;</code>
return this;
}
- // optional string msg = 4;
private java.lang.Object msg_ = "";
/**
* <code>optional string msg = 4;</code>
public java.lang.String getMsg() {
java.lang.Object ref = msg_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- msg_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ msg_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
return this;
}
- // optional .Severity severity = 5;
private org.sonar.batch.protocol.Constants.Severity severity_ = org.sonar.batch.protocol.Constants.Severity.INFO;
/**
* <code>optional .Severity severity = 5;</code>
return this;
}
- // repeated string tag = 6;
private com.google.protobuf.LazyStringList tag_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureTagIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
/**
* <code>repeated string tag = 6;</code>
*/
- public java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getTagList() {
- return java.util.Collections.unmodifiableList(tag_);
+ return tag_.getUnmodifiableView();
}
/**
* <code>repeated string tag = 6;</code>
public Builder addAllTag(
java.lang.Iterable<java.lang.String> values) {
ensureTagIsMutable();
- super.addAll(values, tag_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, tag_);
onChanged();
return this;
}
return this;
}
- // optional double effort_to_fix = 7;
private double effortToFix_ ;
/**
* <code>optional double effort_to_fix = 7;</code>
return this;
}
- // optional bool is_new = 8;
private boolean isNew_ ;
/**
* <code>optional bool is_new = 8;</code>
return this;
}
- // optional string uuid = 9;
private java.lang.Object uuid_ = "";
/**
* <code>optional string uuid = 9;</code>
public java.lang.String getUuid() {
java.lang.Object ref = uuid_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- uuid_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ uuid_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
return this;
}
- // optional int64 debt_in_minutes = 10;
private long debtInMinutes_ ;
/**
* <code>optional int64 debt_in_minutes = 10;</code>
return this;
}
- // optional string resolution = 11;
private java.lang.Object resolution_ = "";
/**
* <code>optional string resolution = 11;</code>
public java.lang.String getResolution() {
java.lang.Object ref = resolution_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- resolution_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ resolution_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
return this;
}
- // optional string status = 12;
private java.lang.Object status_ = "";
/**
* <code>optional string status = 12;</code>
public java.lang.String getStatus() {
java.lang.Object ref = status_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- status_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ status_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
return this;
}
- // optional string checksum = 13;
private java.lang.Object checksum_ = "";
/**
* <code>optional string checksum = 13;</code>
public java.lang.String getChecksum() {
java.lang.Object ref = checksum_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- checksum_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ checksum_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
return this;
}
- // optional bool manual_severity = 14;
private boolean manualSeverity_ ;
/**
* <code>optional bool manual_severity = 14;</code>
return this;
}
- // optional string reporter = 15;
private java.lang.Object reporter_ = "";
/**
* <code>optional string reporter = 15;</code>
public java.lang.String getReporter() {
java.lang.Object ref = reporter_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- reporter_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ reporter_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
return this;
}
- // optional string assignee = 16;
private java.lang.Object assignee_ = "";
/**
* <code>optional string assignee = 16;</code>
public java.lang.String getAssignee() {
java.lang.Object ref = assignee_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- assignee_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ assignee_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
return this;
}
- // optional string action_plan_key = 17;
private java.lang.Object actionPlanKey_ = "";
/**
* <code>optional string action_plan_key = 17;</code>
public java.lang.String getActionPlanKey() {
java.lang.Object ref = actionPlanKey_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- actionPlanKey_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ actionPlanKey_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
return this;
}
- // optional string attributes = 18;
private java.lang.Object attributes_ = "";
/**
* <code>optional string attributes = 18;</code>
public java.lang.String getAttributes() {
java.lang.Object ref = attributes_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- attributes_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ attributes_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
return this;
}
- // optional string author_login = 19;
private java.lang.Object authorLogin_ = "";
/**
* <code>optional string author_login = 19;</code>
public java.lang.String getAuthorLogin() {
java.lang.Object ref = authorLogin_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- authorLogin_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ authorLogin_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
return this;
}
- // optional int64 creation_date = 20;
private long creationDate_ ;
/**
* <code>optional int64 creation_date = 20;</code>
return this;
}
- // optional int64 close_date = 21;
private long closeDate_ ;
/**
* <code>optional int64 close_date = 21;</code>
return this;
}
- // optional int64 update_date = 22;
private long updateDate_ ;
/**
* <code>optional int64 update_date = 22;</code>
return this;
}
- // optional int64 selected_at = 23;
private long selectedAt_ ;
/**
* <code>optional int64 selected_at = 23;</code>
return this;
}
- // optional string diff_fields = 24;
private java.lang.Object diffFields_ = "";
/**
* <code>optional string diff_fields = 24;</code>
public java.lang.String getDiffFields() {
java.lang.Object ref = diffFields_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- diffFields_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ diffFields_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
return this;
}
- // optional bool is_changed = 25;
private boolean isChanged_ ;
/**
* <code>optional bool is_changed = 25;</code>
return this;
}
- // optional bool must_send_notification = 26;
private boolean mustSendNotification_ ;
/**
* <code>optional bool must_send_notification = 26;</code>
// @@protoc_insertion_point(class_scope:Issue)
}
- public interface IssuesOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface IssuesOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Issues)
+ com.google.protobuf.MessageOrBuilder {
- // optional int32 component_ref = 1;
/**
* <code>optional int32 component_ref = 1;</code>
*/
*/
int getComponentRef();
- // repeated .Issue issue = 2;
/**
* <code>repeated .Issue issue = 2;</code>
*/
org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder getIssueOrBuilder(
int index);
- // optional string component_uuid = 3;
/**
* <code>optional string component_uuid = 3;</code>
*
* Protobuf type {@code Issues}
*/
public static final class Issues extends
- com.google.protobuf.GeneratedMessage
- implements IssuesOrBuilder {
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:Issues)
+ IssuesOrBuilder {
// Use Issues.newBuilder() to construct.
private Issues(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
break;
}
case 26: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- componentUuid_ = input.readBytes();
+ componentUuid_ = bs;
break;
}
}
}
private int bitField0_;
- // optional int32 component_ref = 1;
public static final int COMPONENT_REF_FIELD_NUMBER = 1;
private int componentRef_;
/**
return componentRef_;
}
- // repeated .Issue issue = 2;
public static final int ISSUE_FIELD_NUMBER = 2;
private java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue> issue_;
/**
return issue_.get(index);
}
- // optional string component_uuid = 3;
public static final int COMPONENT_UUID_FIELD_NUMBER = 3;
private java.lang.Object componentUuid_;
/**
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
* Protobuf type {@code Issues}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.sonar.batch.protocol.output.BatchReport.IssuesOrBuilder {
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Issues)
+ org.sonar.batch.protocol.output.BatchReport.IssuesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.sonar.batch.protocol.output.BatchReport.internal_static_Issues_descriptor;
}
private int bitField0_;
- // optional int32 component_ref = 1;
private int componentRef_ ;
/**
* <code>optional int32 component_ref = 1;</code>
return this;
}
- // repeated .Issue issue = 2;
private java.util.List<org.sonar.batch.protocol.output.BatchReport.Issue> issue_ =
java.util.Collections.emptyList();
private void ensureIssueIsMutable() {
java.lang.Iterable<? extends org.sonar.batch.protocol.output.BatchReport.Issue> values) {
if (issueBuilder_ == null) {
ensureIssueIsMutable();
- super.addAll(values, issue_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, issue_);
onChanged();
} else {
issueBuilder_.addAllMessages(values);
return issueBuilder_;
}
- // optional string component_uuid = 3;
private java.lang.Object componentUuid_ = "";
/**
* <code>optional string component_uuid = 3;</code>
public java.lang.String getComponentUuid() {
java.lang.Object ref = componentUuid_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- componentUuid_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ componentUuid_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
// @@protoc_insertion_point(class_scope:Issues)
}
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Metadata_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_Metadata_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ComponentLink_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_ComponentLink_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Event_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_Event_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Component_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_Component_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Measure_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_Measure_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Measures_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_Measures_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Issue_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_Issue_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Issues_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
"(\t\"w\n\005Event\022\025\n\rcomponent_ref\030\001 \001(\005\022\014\n\004na" +
"me\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022 \n\010categor" +
"y\030\004 \001(\0162\016.EventCategory\022\022\n\nevent_data\030\005 " +
- "\001(\t\"\365\001\n\tComponent\022\013\n\003ref\030\001 \001(\005\022\014\n\004path\030\002",
+ "\001(\t\"\201\002\n\tComponent\022\013\n\003ref\030\001 \001(\005\022\014\n\004path\030\002",
" \001(\t\022\014\n\004name\030\003 \001(\t\022\034\n\004type\030\004 \001(\0162\016.Compo" +
"nentType\022\017\n\007is_test\030\005 \001(\010\022\020\n\010language\030\006 " +
"\001(\t\022\025\n\tchild_ref\030\007 \003(\005B\002\020\001\022\034\n\004link\030\n \003(\013" +
- "2\016.ComponentLink\022\017\n\007version\030\014 \001(\t\022\023\n\013sna" +
- "pshot_id\030\010 \001(\003\022\014\n\004uuid\030\t \001(\t\022\025\n\005event\030\013 " +
- "\003(\0132\006.Event\"\231\004\n\005Issue\022\027\n\017rule_repository" +
- "\030\001 \001(\t\022\020\n\010rule_key\030\002 \001(\t\022\014\n\004line\030\003 \001(\005\022\013" +
- "\n\003msg\030\004 \001(\t\022\033\n\010severity\030\005 \001(\0162\t.Severity" +
- "\022\013\n\003tag\030\006 \003(\t\022\025\n\reffort_to_fix\030\007 \001(\001\022\016\n\006" +
- "is_new\030\010 \001(\010\022\014\n\004uuid\030\t \001(\t\022\027\n\017debt_in_mi",
- "nutes\030\n \001(\003\022\022\n\nresolution\030\013 \001(\t\022\016\n\006statu" +
- "s\030\014 \001(\t\022\020\n\010checksum\030\r \001(\t\022\027\n\017manual_seve" +
- "rity\030\016 \001(\010\022\020\n\010reporter\030\017 \001(\t\022\020\n\010assignee" +
- "\030\020 \001(\t\022\027\n\017action_plan_key\030\021 \001(\t\022\022\n\nattri" +
- "butes\030\022 \001(\t\022\024\n\014author_login\030\023 \001(\t\022\025\n\rcre" +
- "ation_date\030\024 \001(\003\022\022\n\nclose_date\030\025 \001(\003\022\023\n\013" +
- "update_date\030\026 \001(\003\022\023\n\013selected_at\030\027 \001(\003\022\023" +
- "\n\013diff_fields\030\030 \001(\t\022\022\n\nis_changed\030\031 \001(\010\022" +
- "\036\n\026must_send_notification\030\032 \001(\010\"N\n\006Issue" +
- "s\022\025\n\rcomponent_ref\030\001 \001(\005\022\025\n\005issue\030\002 \003(\0132",
- "\006.Issue\022\026\n\016component_uuid\030\003 \001(\tB#\n\037org.s" +
- "onar.batch.protocol.outputH\001"
+ "2\016.ComponentLink\022\017\n\007version\030\014 \001(\t\022\n\n\002id\030" +
+ "\r \001(\003\022\023\n\013snapshot_id\030\010 \001(\003\022\014\n\004uuid\030\t \001(\t" +
+ "\022\025\n\005event\030\013 \003(\0132\006.Event\"\315\003\n\007Measure\022%\n\nv" +
+ "alue_type\030\001 \001(\0162\021.MeasureValueType\022\025\n\rbo" +
+ "olean_value\030\002 \001(\010\022\021\n\tint_value\030\003 \001(\005\022\022\n\n" +
+ "long_value\030\004 \001(\003\022\024\n\014double_value\030\005 \001(\001\022\024" +
+ "\n\014string_value\030\006 \001(\t\022\022\n\nmetric_key\030\007 \001(\t",
+ "\022\023\n\013description\030\t \001(\t\022\020\n\010rule_key\030\n \001(\t\022" +
+ "\033\n\010severity\030\013 \001(\0162\t.Severity\022\024\n\014alert_st" +
+ "atus\030\014 \001(\t\022\022\n\nalert_text\030\r \001(\t\022\031\n\021variat" +
+ "ion_value_1\030\016 \001(\001\022\031\n\021variation_value_2\030\017" +
+ " \001(\001\022\031\n\021variation_value_3\030\020 \001(\001\022\031\n\021varia" +
+ "tion_value_4\030\021 \001(\001\022\031\n\021variation_value_5\030" +
+ "\022 \001(\001\022\020\n\010tendency\030\023 \001(\005\022\026\n\016characteric_i" +
+ "d\030\024 \001(\005\"<\n\010Measures\022\025\n\rcomponent_ref\030\001 \001" +
+ "(\005\022\031\n\007measure\030\002 \003(\0132\010.Measure\"\231\004\n\005Issue\022" +
+ "\027\n\017rule_repository\030\001 \001(\t\022\020\n\010rule_key\030\002 \001",
+ "(\t\022\014\n\004line\030\003 \001(\005\022\013\n\003msg\030\004 \001(\t\022\033\n\010severit" +
+ "y\030\005 \001(\0162\t.Severity\022\013\n\003tag\030\006 \003(\t\022\025\n\reffor" +
+ "t_to_fix\030\007 \001(\001\022\016\n\006is_new\030\010 \001(\010\022\014\n\004uuid\030\t" +
+ " \001(\t\022\027\n\017debt_in_minutes\030\n \001(\003\022\022\n\nresolut" +
+ "ion\030\013 \001(\t\022\016\n\006status\030\014 \001(\t\022\020\n\010checksum\030\r " +
+ "\001(\t\022\027\n\017manual_severity\030\016 \001(\010\022\020\n\010reporter" +
+ "\030\017 \001(\t\022\020\n\010assignee\030\020 \001(\t\022\027\n\017action_plan_" +
+ "key\030\021 \001(\t\022\022\n\nattributes\030\022 \001(\t\022\024\n\014author_" +
+ "login\030\023 \001(\t\022\025\n\rcreation_date\030\024 \001(\003\022\022\n\ncl" +
+ "ose_date\030\025 \001(\003\022\023\n\013update_date\030\026 \001(\003\022\023\n\013s",
+ "elected_at\030\027 \001(\003\022\023\n\013diff_fields\030\030 \001(\t\022\022\n" +
+ "\nis_changed\030\031 \001(\010\022\036\n\026must_send_notificat" +
+ "ion\030\032 \001(\010\"N\n\006Issues\022\025\n\rcomponent_ref\030\001 \001" +
+ "(\005\022\025\n\005issue\030\002 \003(\0132\006.Issue\022\026\n\016component_u" +
+ "uid\030\003 \001(\tB#\n\037org.sonar.batch.protocol.ou" +
+ "tputH\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;
- internal_static_Metadata_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_Metadata_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_Metadata_descriptor,
- new java.lang.String[] { "AnalysisDate", "ProjectKey", "RootComponentRef", "SnapshotId", "DeletedComponentsCount", });
- internal_static_ComponentLink_descriptor =
- getDescriptor().getMessageTypes().get(1);
- internal_static_ComponentLink_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_ComponentLink_descriptor,
- new java.lang.String[] { "Type", "Href", });
- internal_static_Event_descriptor =
- getDescriptor().getMessageTypes().get(2);
- internal_static_Event_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_Event_descriptor,
- new java.lang.String[] { "ComponentRef", "Name", "Description", "Category", "EventData", });
- internal_static_Component_descriptor =
- getDescriptor().getMessageTypes().get(3);
- internal_static_Component_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_Component_descriptor,
- new java.lang.String[] { "Ref", "Path", "Name", "Type", "IsTest", "Language", "ChildRef", "Link", "Version", "SnapshotId", "Uuid", "Event", });
- internal_static_Issue_descriptor =
- getDescriptor().getMessageTypes().get(4);
- internal_static_Issue_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_Issue_descriptor,
- new java.lang.String[] { "RuleRepository", "RuleKey", "Line", "Msg", "Severity", "Tag", "EffortToFix", "IsNew", "Uuid", "DebtInMinutes", "Resolution", "Status", "Checksum", "ManualSeverity", "Reporter", "Assignee", "ActionPlanKey", "Attributes", "AuthorLogin", "CreationDate", "CloseDate", "UpdateDate", "SelectedAt", "DiffFields", "IsChanged", "MustSendNotification", });
- internal_static_Issues_descriptor =
- getDescriptor().getMessageTypes().get(5);
- internal_static_Issues_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_Issues_descriptor,
- new java.lang.String[] { "ComponentRef", "Issue", "ComponentUuid", });
- return null;
- }
- };
+ 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.sonar.batch.protocol.Constants.getDescriptor(),
}, assigner);
+ internal_static_Metadata_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Metadata_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_Metadata_descriptor,
+ new java.lang.String[] { "AnalysisDate", "ProjectKey", "RootComponentRef", "SnapshotId", "DeletedComponentsCount", });
+ internal_static_ComponentLink_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_ComponentLink_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_ComponentLink_descriptor,
+ new java.lang.String[] { "Type", "Href", });
+ internal_static_Event_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_Event_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_Event_descriptor,
+ new java.lang.String[] { "ComponentRef", "Name", "Description", "Category", "EventData", });
+ internal_static_Component_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_Component_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_Component_descriptor,
+ new java.lang.String[] { "Ref", "Path", "Name", "Type", "IsTest", "Language", "ChildRef", "Link", "Version", "Id", "SnapshotId", "Uuid", "Event", });
+ internal_static_Measure_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_Measure_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_Measure_descriptor,
+ new java.lang.String[] { "ValueType", "BooleanValue", "IntValue", "LongValue", "DoubleValue", "StringValue", "MetricKey", "Description", "RuleKey", "Severity", "AlertStatus", "AlertText", "VariationValue1", "VariationValue2", "VariationValue3", "VariationValue4", "VariationValue5", "Tendency", "CharactericId", });
+ internal_static_Measures_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_Measures_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_Measures_descriptor,
+ new java.lang.String[] { "ComponentRef", "Measure", });
+ internal_static_Issue_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_Issue_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_Issue_descriptor,
+ new java.lang.String[] { "RuleRepository", "RuleKey", "Line", "Msg", "Severity", "Tag", "EffortToFix", "IsNew", "Uuid", "DebtInMinutes", "Resolution", "Status", "Checksum", "ManualSeverity", "Reporter", "Assignee", "ActionPlanKey", "Attributes", "AuthorLogin", "CreationDate", "CloseDate", "UpdateDate", "SelectedAt", "DiffFields", "IsChanged", "MustSendNotification", });
+ internal_static_Issues_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_Issues_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_Issues_descriptor,
+ new java.lang.String[] { "ComponentRef", "Issue", "ComponentUuid", });
+ org.sonar.batch.protocol.Constants.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)