aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/gen-java/org/sonarqube/ws/WsCe.java4898
-rw-r--r--sonar-ws/src/main/protobuf/ws-ce.proto72
2 files changed, 4970 insertions, 0 deletions
diff --git a/sonar-ws/src/main/gen-java/org/sonarqube/ws/WsCe.java b/sonar-ws/src/main/gen-java/org/sonarqube/ws/WsCe.java
new file mode 100644
index 00000000000..0ddc5912d5d
--- /dev/null
+++ b/sonar-ws/src/main/gen-java/org/sonarqube/ws/WsCe.java
@@ -0,0 +1,4898 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: ws-ce.proto
+
+package org.sonarqube.ws;
+
+public final class WsCe {
+ private WsCe() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ }
+ /**
+ * Protobuf enum {@code sonarqube.ws.ce.TaskStatus}
+ */
+ public enum TaskStatus
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * <code>PENDING = 0;</code>
+ */
+ PENDING(0, 0),
+ /**
+ * <code>IN_PROGRESS = 1;</code>
+ */
+ IN_PROGRESS(1, 1),
+ /**
+ * <code>SUCCESS = 2;</code>
+ */
+ SUCCESS(2, 2),
+ /**
+ * <code>FAILED = 3;</code>
+ */
+ FAILED(3, 3),
+ /**
+ * <code>CANCELED = 4;</code>
+ */
+ CANCELED(4, 4),
+ ;
+
+ /**
+ * <code>PENDING = 0;</code>
+ */
+ public static final int PENDING_VALUE = 0;
+ /**
+ * <code>IN_PROGRESS = 1;</code>
+ */
+ public static final int IN_PROGRESS_VALUE = 1;
+ /**
+ * <code>SUCCESS = 2;</code>
+ */
+ public static final int SUCCESS_VALUE = 2;
+ /**
+ * <code>FAILED = 3;</code>
+ */
+ public static final int FAILED_VALUE = 3;
+ /**
+ * <code>CANCELED = 4;</code>
+ */
+ public static final int CANCELED_VALUE = 4;
+
+
+ public final int getNumber() {
+ return value;
+ }
+
+ public static TaskStatus valueOf(int value) {
+ switch (value) {
+ case 0: return PENDING;
+ case 1: return IN_PROGRESS;
+ case 2: return SUCCESS;
+ case 3: return FAILED;
+ case 4: return CANCELED;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<TaskStatus>
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static com.google.protobuf.Internal.EnumLiteMap<TaskStatus>
+ internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap<TaskStatus>() {
+ public TaskStatus findValueByNumber(int number) {
+ return TaskStatus.valueOf(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ return getDescriptor().getValues().get(index);
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsCe.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final TaskStatus[] VALUES = values();
+
+ public static TaskStatus valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int index;
+ private final int value;
+
+ private TaskStatus(int index, int value) {
+ this.index = index;
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:sonarqube.ws.ce.TaskStatus)
+ }
+
+ public interface SubmitResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:sonarqube.ws.ce.SubmitResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <code>optional string taskId = 1;</code>
+ */
+ boolean hasTaskId();
+ /**
+ * <code>optional string taskId = 1;</code>
+ */
+ java.lang.String getTaskId();
+ /**
+ * <code>optional string taskId = 1;</code>
+ */
+ com.google.protobuf.ByteString
+ getTaskIdBytes();
+
+ /**
+ * <code>optional string projectId = 2;</code>
+ */
+ boolean hasProjectId();
+ /**
+ * <code>optional string projectId = 2;</code>
+ */
+ java.lang.String getProjectId();
+ /**
+ * <code>optional string projectId = 2;</code>
+ */
+ com.google.protobuf.ByteString
+ getProjectIdBytes();
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.ce.SubmitResponse}
+ *
+ * <pre>
+ * POST api/ce/submit
+ * </pre>
+ */
+ public static final class SubmitResponse extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:sonarqube.ws.ce.SubmitResponse)
+ SubmitResponseOrBuilder {
+ // Use SubmitResponse.newBuilder() to construct.
+ private SubmitResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private SubmitResponse() {
+ taskId_ = "";
+ projectId_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private SubmitResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000001;
+ taskId_ = bs;
+ break;
+ }
+ case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000002;
+ projectId_ = bs;
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_SubmitResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_SubmitResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsCe.SubmitResponse.class, org.sonarqube.ws.WsCe.SubmitResponse.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int TASKID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object taskId_;
+ /**
+ * <code>optional string taskId = 1;</code>
+ */
+ public boolean hasTaskId() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * <code>optional string taskId = 1;</code>
+ */
+ public java.lang.String getTaskId() {
+ java.lang.Object ref = taskId_;
+ 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()) {
+ taskId_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string taskId = 1;</code>
+ */
+ public com.google.protobuf.ByteString
+ getTaskIdBytes() {
+ java.lang.Object ref = taskId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ taskId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PROJECTID_FIELD_NUMBER = 2;
+ private volatile java.lang.Object projectId_;
+ /**
+ * <code>optional string projectId = 2;</code>
+ */
+ public boolean hasProjectId() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * <code>optional string projectId = 2;</code>
+ */
+ public java.lang.String getProjectId() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ projectId_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string projectId = 2;</code>
+ */
+ public com.google.protobuf.ByteString
+ getProjectIdBytes() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ projectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getTaskIdBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeBytes(2, getProjectIdBytes());
+ }
+ unknownFields.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
+ .computeBytesSize(1, getTaskIdBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(2, getProjectIdBytes());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static org.sonarqube.ws.WsCe.SubmitResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsCe.SubmitResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsCe.SubmitResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsCe.SubmitResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsCe.SubmitResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsCe.SubmitResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsCe.SubmitResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.WsCe.SubmitResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsCe.SubmitResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsCe.SubmitResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.WsCe.SubmitResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.ce.SubmitResponse}
+ *
+ * <pre>
+ * POST api/ce/submit
+ * </pre>
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:sonarqube.ws.ce.SubmitResponse)
+ org.sonarqube.ws.WsCe.SubmitResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_SubmitResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_SubmitResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsCe.SubmitResponse.class, org.sonarqube.ws.WsCe.SubmitResponse.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.WsCe.SubmitResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ taskId_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ projectId_ = "";
+ bitField0_ = (bitField0_ & ~0x00000002);
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_SubmitResponse_descriptor;
+ }
+
+ public org.sonarqube.ws.WsCe.SubmitResponse getDefaultInstanceForType() {
+ return org.sonarqube.ws.WsCe.SubmitResponse.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.WsCe.SubmitResponse build() {
+ org.sonarqube.ws.WsCe.SubmitResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.WsCe.SubmitResponse buildPartial() {
+ org.sonarqube.ws.WsCe.SubmitResponse result = new org.sonarqube.ws.WsCe.SubmitResponse(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.taskId_ = taskId_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.projectId_ = projectId_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.WsCe.SubmitResponse) {
+ return mergeFrom((org.sonarqube.ws.WsCe.SubmitResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.WsCe.SubmitResponse other) {
+ if (other == org.sonarqube.ws.WsCe.SubmitResponse.getDefaultInstance()) return this;
+ if (other.hasTaskId()) {
+ bitField0_ |= 0x00000001;
+ taskId_ = other.taskId_;
+ onChanged();
+ }
+ if (other.hasProjectId()) {
+ bitField0_ |= 0x00000002;
+ projectId_ = other.projectId_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.WsCe.SubmitResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.WsCe.SubmitResponse) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object taskId_ = "";
+ /**
+ * <code>optional string taskId = 1;</code>
+ */
+ public boolean hasTaskId() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * <code>optional string taskId = 1;</code>
+ */
+ public java.lang.String getTaskId() {
+ java.lang.Object ref = taskId_;
+ 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()) {
+ taskId_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string taskId = 1;</code>
+ */
+ public com.google.protobuf.ByteString
+ getTaskIdBytes() {
+ java.lang.Object ref = taskId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ taskId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <code>optional string taskId = 1;</code>
+ */
+ public Builder setTaskId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ taskId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string taskId = 1;</code>
+ */
+ public Builder clearTaskId() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ taskId_ = getDefaultInstance().getTaskId();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string taskId = 1;</code>
+ */
+ public Builder setTaskIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ taskId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object projectId_ = "";
+ /**
+ * <code>optional string projectId = 2;</code>
+ */
+ public boolean hasProjectId() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * <code>optional string projectId = 2;</code>
+ */
+ public java.lang.String getProjectId() {
+ java.lang.Object ref = projectId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ projectId_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string projectId = 2;</code>
+ */
+ public com.google.protobuf.ByteString
+ getProjectIdBytes() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ projectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <code>optional string projectId = 2;</code>
+ */
+ public Builder setProjectId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ projectId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string projectId = 2;</code>
+ */
+ public Builder clearProjectId() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ projectId_ = getDefaultInstance().getProjectId();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string projectId = 2;</code>
+ */
+ public Builder setProjectIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ projectId_ = value;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:sonarqube.ws.ce.SubmitResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.ce.SubmitResponse)
+ private static final org.sonarqube.ws.WsCe.SubmitResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.WsCe.SubmitResponse();
+ }
+
+ public static org.sonarqube.ws.WsCe.SubmitResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<SubmitResponse> PARSER =
+ new com.google.protobuf.AbstractParser<SubmitResponse>() {
+ public SubmitResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new SubmitResponse(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<SubmitResponse> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.WsCe.SubmitResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface TaskResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:sonarqube.ws.ce.TaskResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <code>optional .sonarqube.ws.ce.Task task = 1;</code>
+ */
+ boolean hasTask();
+ /**
+ * <code>optional .sonarqube.ws.ce.Task task = 1;</code>
+ */
+ org.sonarqube.ws.WsCe.Task getTask();
+ /**
+ * <code>optional .sonarqube.ws.ce.Task task = 1;</code>
+ */
+ org.sonarqube.ws.WsCe.TaskOrBuilder getTaskOrBuilder();
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.ce.TaskResponse}
+ *
+ * <pre>
+ * GET api/ce/task
+ * </pre>
+ */
+ public static final class TaskResponse extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:sonarqube.ws.ce.TaskResponse)
+ TaskResponseOrBuilder {
+ // Use TaskResponse.newBuilder() to construct.
+ private TaskResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private TaskResponse() {
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private TaskResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ org.sonarqube.ws.WsCe.Task.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ subBuilder = task_.toBuilder();
+ }
+ task_ = input.readMessage(org.sonarqube.ws.WsCe.Task.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(task_);
+ task_ = subBuilder.buildPartial();
+ }
+ bitField0_ |= 0x00000001;
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_TaskResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_TaskResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsCe.TaskResponse.class, org.sonarqube.ws.WsCe.TaskResponse.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int TASK_FIELD_NUMBER = 1;
+ private org.sonarqube.ws.WsCe.Task task_;
+ /**
+ * <code>optional .sonarqube.ws.ce.Task task = 1;</code>
+ */
+ public boolean hasTask() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * <code>optional .sonarqube.ws.ce.Task task = 1;</code>
+ */
+ public org.sonarqube.ws.WsCe.Task getTask() {
+ return task_ == null ? org.sonarqube.ws.WsCe.Task.getDefaultInstance() : task_;
+ }
+ /**
+ * <code>optional .sonarqube.ws.ce.Task task = 1;</code>
+ */
+ public org.sonarqube.ws.WsCe.TaskOrBuilder getTaskOrBuilder() {
+ return task_ == null ? org.sonarqube.ws.WsCe.Task.getDefaultInstance() : task_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeMessage(1, getTask());
+ }
+ unknownFields.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
+ .computeMessageSize(1, getTask());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static org.sonarqube.ws.WsCe.TaskResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsCe.TaskResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsCe.TaskResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsCe.TaskResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsCe.TaskResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsCe.TaskResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsCe.TaskResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.WsCe.TaskResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsCe.TaskResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsCe.TaskResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.WsCe.TaskResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.ce.TaskResponse}
+ *
+ * <pre>
+ * GET api/ce/task
+ * </pre>
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:sonarqube.ws.ce.TaskResponse)
+ org.sonarqube.ws.WsCe.TaskResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_TaskResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_TaskResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsCe.TaskResponse.class, org.sonarqube.ws.WsCe.TaskResponse.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.WsCe.TaskResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getTaskFieldBuilder();
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ if (taskBuilder_ == null) {
+ task_ = null;
+ } else {
+ taskBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_TaskResponse_descriptor;
+ }
+
+ public org.sonarqube.ws.WsCe.TaskResponse getDefaultInstanceForType() {
+ return org.sonarqube.ws.WsCe.TaskResponse.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.WsCe.TaskResponse build() {
+ org.sonarqube.ws.WsCe.TaskResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.WsCe.TaskResponse buildPartial() {
+ org.sonarqube.ws.WsCe.TaskResponse result = new org.sonarqube.ws.WsCe.TaskResponse(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ if (taskBuilder_ == null) {
+ result.task_ = task_;
+ } else {
+ result.task_ = taskBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.WsCe.TaskResponse) {
+ return mergeFrom((org.sonarqube.ws.WsCe.TaskResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.WsCe.TaskResponse other) {
+ if (other == org.sonarqube.ws.WsCe.TaskResponse.getDefaultInstance()) return this;
+ if (other.hasTask()) {
+ mergeTask(other.getTask());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.WsCe.TaskResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.WsCe.TaskResponse) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private org.sonarqube.ws.WsCe.Task task_ = null;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.WsCe.Task, org.sonarqube.ws.WsCe.Task.Builder, org.sonarqube.ws.WsCe.TaskOrBuilder> taskBuilder_;
+ /**
+ * <code>optional .sonarqube.ws.ce.Task task = 1;</code>
+ */
+ public boolean hasTask() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * <code>optional .sonarqube.ws.ce.Task task = 1;</code>
+ */
+ public org.sonarqube.ws.WsCe.Task getTask() {
+ if (taskBuilder_ == null) {
+ return task_ == null ? org.sonarqube.ws.WsCe.Task.getDefaultInstance() : task_;
+ } else {
+ return taskBuilder_.getMessage();
+ }
+ }
+ /**
+ * <code>optional .sonarqube.ws.ce.Task task = 1;</code>
+ */
+ public Builder setTask(org.sonarqube.ws.WsCe.Task value) {
+ if (taskBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ task_ = value;
+ onChanged();
+ } else {
+ taskBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * <code>optional .sonarqube.ws.ce.Task task = 1;</code>
+ */
+ public Builder setTask(
+ org.sonarqube.ws.WsCe.Task.Builder builderForValue) {
+ if (taskBuilder_ == null) {
+ task_ = builderForValue.build();
+ onChanged();
+ } else {
+ taskBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * <code>optional .sonarqube.ws.ce.Task task = 1;</code>
+ */
+ public Builder mergeTask(org.sonarqube.ws.WsCe.Task value) {
+ if (taskBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ task_ != null &&
+ task_ != org.sonarqube.ws.WsCe.Task.getDefaultInstance()) {
+ task_ =
+ org.sonarqube.ws.WsCe.Task.newBuilder(task_).mergeFrom(value).buildPartial();
+ } else {
+ task_ = value;
+ }
+ onChanged();
+ } else {
+ taskBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * <code>optional .sonarqube.ws.ce.Task task = 1;</code>
+ */
+ public Builder clearTask() {
+ if (taskBuilder_ == null) {
+ task_ = null;
+ onChanged();
+ } else {
+ taskBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+ /**
+ * <code>optional .sonarqube.ws.ce.Task task = 1;</code>
+ */
+ public org.sonarqube.ws.WsCe.Task.Builder getTaskBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getTaskFieldBuilder().getBuilder();
+ }
+ /**
+ * <code>optional .sonarqube.ws.ce.Task task = 1;</code>
+ */
+ public org.sonarqube.ws.WsCe.TaskOrBuilder getTaskOrBuilder() {
+ if (taskBuilder_ != null) {
+ return taskBuilder_.getMessageOrBuilder();
+ } else {
+ return task_ == null ?
+ org.sonarqube.ws.WsCe.Task.getDefaultInstance() : task_;
+ }
+ }
+ /**
+ * <code>optional .sonarqube.ws.ce.Task task = 1;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.WsCe.Task, org.sonarqube.ws.WsCe.Task.Builder, org.sonarqube.ws.WsCe.TaskOrBuilder>
+ getTaskFieldBuilder() {
+ if (taskBuilder_ == null) {
+ taskBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.WsCe.Task, org.sonarqube.ws.WsCe.Task.Builder, org.sonarqube.ws.WsCe.TaskOrBuilder>(
+ getTask(),
+ getParentForChildren(),
+ isClean());
+ task_ = null;
+ }
+ return taskBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:sonarqube.ws.ce.TaskResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.ce.TaskResponse)
+ private static final org.sonarqube.ws.WsCe.TaskResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.WsCe.TaskResponse();
+ }
+
+ public static org.sonarqube.ws.WsCe.TaskResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<TaskResponse> PARSER =
+ new com.google.protobuf.AbstractParser<TaskResponse>() {
+ public TaskResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new TaskResponse(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<TaskResponse> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.WsCe.TaskResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface QueueResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:sonarqube.ws.ce.QueueResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ java.util.List<org.sonarqube.ws.WsCe.Task>
+ getTasksList();
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ org.sonarqube.ws.WsCe.Task getTasks(int index);
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ int getTasksCount();
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ java.util.List<? extends org.sonarqube.ws.WsCe.TaskOrBuilder>
+ getTasksOrBuilderList();
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ org.sonarqube.ws.WsCe.TaskOrBuilder getTasksOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.ce.QueueResponse}
+ *
+ * <pre>
+ * GET api/ce/queue
+ * </pre>
+ */
+ public static final class QueueResponse extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:sonarqube.ws.ce.QueueResponse)
+ QueueResponseOrBuilder {
+ // Use QueueResponse.newBuilder() to construct.
+ private QueueResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private QueueResponse() {
+ tasks_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private QueueResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ tasks_ = new java.util.ArrayList<org.sonarqube.ws.WsCe.Task>();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ tasks_.add(input.readMessage(org.sonarqube.ws.WsCe.Task.PARSER, extensionRegistry));
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ tasks_ = java.util.Collections.unmodifiableList(tasks_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_QueueResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_QueueResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsCe.QueueResponse.class, org.sonarqube.ws.WsCe.QueueResponse.Builder.class);
+ }
+
+ public static final int TASKS_FIELD_NUMBER = 1;
+ private java.util.List<org.sonarqube.ws.WsCe.Task> tasks_;
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsCe.Task> getTasksList() {
+ return tasks_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.WsCe.TaskOrBuilder>
+ getTasksOrBuilderList() {
+ return tasks_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ public int getTasksCount() {
+ return tasks_.size();
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ public org.sonarqube.ws.WsCe.Task getTasks(int index) {
+ return tasks_.get(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ public org.sonarqube.ws.WsCe.TaskOrBuilder getTasksOrBuilder(
+ int index) {
+ return tasks_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < tasks_.size(); i++) {
+ output.writeMessage(1, tasks_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < tasks_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, tasks_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static org.sonarqube.ws.WsCe.QueueResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsCe.QueueResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsCe.QueueResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsCe.QueueResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsCe.QueueResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsCe.QueueResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsCe.QueueResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.WsCe.QueueResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsCe.QueueResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsCe.QueueResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.WsCe.QueueResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.ce.QueueResponse}
+ *
+ * <pre>
+ * GET api/ce/queue
+ * </pre>
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:sonarqube.ws.ce.QueueResponse)
+ org.sonarqube.ws.WsCe.QueueResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_QueueResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_QueueResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsCe.QueueResponse.class, org.sonarqube.ws.WsCe.QueueResponse.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.WsCe.QueueResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getTasksFieldBuilder();
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ if (tasksBuilder_ == null) {
+ tasks_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ tasksBuilder_.clear();
+ }
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_QueueResponse_descriptor;
+ }
+
+ public org.sonarqube.ws.WsCe.QueueResponse getDefaultInstanceForType() {
+ return org.sonarqube.ws.WsCe.QueueResponse.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.WsCe.QueueResponse build() {
+ org.sonarqube.ws.WsCe.QueueResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.WsCe.QueueResponse buildPartial() {
+ org.sonarqube.ws.WsCe.QueueResponse result = new org.sonarqube.ws.WsCe.QueueResponse(this);
+ int from_bitField0_ = bitField0_;
+ if (tasksBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ tasks_ = java.util.Collections.unmodifiableList(tasks_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.tasks_ = tasks_;
+ } else {
+ result.tasks_ = tasksBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.WsCe.QueueResponse) {
+ return mergeFrom((org.sonarqube.ws.WsCe.QueueResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.WsCe.QueueResponse other) {
+ if (other == org.sonarqube.ws.WsCe.QueueResponse.getDefaultInstance()) return this;
+ if (tasksBuilder_ == null) {
+ if (!other.tasks_.isEmpty()) {
+ if (tasks_.isEmpty()) {
+ tasks_ = other.tasks_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureTasksIsMutable();
+ tasks_.addAll(other.tasks_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.tasks_.isEmpty()) {
+ if (tasksBuilder_.isEmpty()) {
+ tasksBuilder_.dispose();
+ tasksBuilder_ = null;
+ tasks_ = other.tasks_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ tasksBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getTasksFieldBuilder() : null;
+ } else {
+ tasksBuilder_.addAllMessages(other.tasks_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.WsCe.QueueResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.WsCe.QueueResponse) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List<org.sonarqube.ws.WsCe.Task> tasks_ =
+ java.util.Collections.emptyList();
+ private void ensureTasksIsMutable() {
+ if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ tasks_ = new java.util.ArrayList<org.sonarqube.ws.WsCe.Task>(tasks_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsCe.Task, org.sonarqube.ws.WsCe.Task.Builder, org.sonarqube.ws.WsCe.TaskOrBuilder> tasksBuilder_;
+
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsCe.Task> getTasksList() {
+ if (tasksBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(tasks_);
+ } else {
+ return tasksBuilder_.getMessageList();
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ public int getTasksCount() {
+ if (tasksBuilder_ == null) {
+ return tasks_.size();
+ } else {
+ return tasksBuilder_.getCount();
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ public org.sonarqube.ws.WsCe.Task getTasks(int index) {
+ if (tasksBuilder_ == null) {
+ return tasks_.get(index);
+ } else {
+ return tasksBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ public Builder setTasks(
+ int index, org.sonarqube.ws.WsCe.Task value) {
+ if (tasksBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTasksIsMutable();
+ tasks_.set(index, value);
+ onChanged();
+ } else {
+ tasksBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ public Builder setTasks(
+ int index, org.sonarqube.ws.WsCe.Task.Builder builderForValue) {
+ if (tasksBuilder_ == null) {
+ ensureTasksIsMutable();
+ tasks_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ tasksBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ public Builder addTasks(org.sonarqube.ws.WsCe.Task value) {
+ if (tasksBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTasksIsMutable();
+ tasks_.add(value);
+ onChanged();
+ } else {
+ tasksBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ public Builder addTasks(
+ int index, org.sonarqube.ws.WsCe.Task value) {
+ if (tasksBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTasksIsMutable();
+ tasks_.add(index, value);
+ onChanged();
+ } else {
+ tasksBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ public Builder addTasks(
+ org.sonarqube.ws.WsCe.Task.Builder builderForValue) {
+ if (tasksBuilder_ == null) {
+ ensureTasksIsMutable();
+ tasks_.add(builderForValue.build());
+ onChanged();
+ } else {
+ tasksBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ public Builder addTasks(
+ int index, org.sonarqube.ws.WsCe.Task.Builder builderForValue) {
+ if (tasksBuilder_ == null) {
+ ensureTasksIsMutable();
+ tasks_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ tasksBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ public Builder addAllTasks(
+ java.lang.Iterable<? extends org.sonarqube.ws.WsCe.Task> values) {
+ if (tasksBuilder_ == null) {
+ ensureTasksIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, tasks_);
+ onChanged();
+ } else {
+ tasksBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ public Builder clearTasks() {
+ if (tasksBuilder_ == null) {
+ tasks_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ tasksBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ public Builder removeTasks(int index) {
+ if (tasksBuilder_ == null) {
+ ensureTasksIsMutable();
+ tasks_.remove(index);
+ onChanged();
+ } else {
+ tasksBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ public org.sonarqube.ws.WsCe.Task.Builder getTasksBuilder(
+ int index) {
+ return getTasksFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ public org.sonarqube.ws.WsCe.TaskOrBuilder getTasksOrBuilder(
+ int index) {
+ if (tasksBuilder_ == null) {
+ return tasks_.get(index); } else {
+ return tasksBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.WsCe.TaskOrBuilder>
+ getTasksOrBuilderList() {
+ if (tasksBuilder_ != null) {
+ return tasksBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(tasks_);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ public org.sonarqube.ws.WsCe.Task.Builder addTasksBuilder() {
+ return getTasksFieldBuilder().addBuilder(
+ org.sonarqube.ws.WsCe.Task.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ public org.sonarqube.ws.WsCe.Task.Builder addTasksBuilder(
+ int index) {
+ return getTasksFieldBuilder().addBuilder(
+ index, org.sonarqube.ws.WsCe.Task.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsCe.Task.Builder>
+ getTasksBuilderList() {
+ return getTasksFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsCe.Task, org.sonarqube.ws.WsCe.Task.Builder, org.sonarqube.ws.WsCe.TaskOrBuilder>
+ getTasksFieldBuilder() {
+ if (tasksBuilder_ == null) {
+ tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsCe.Task, org.sonarqube.ws.WsCe.Task.Builder, org.sonarqube.ws.WsCe.TaskOrBuilder>(
+ tasks_,
+ ((bitField0_ & 0x00000001) == 0x00000001),
+ getParentForChildren(),
+ isClean());
+ tasks_ = null;
+ }
+ return tasksBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:sonarqube.ws.ce.QueueResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.ce.QueueResponse)
+ private static final org.sonarqube.ws.WsCe.QueueResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.WsCe.QueueResponse();
+ }
+
+ public static org.sonarqube.ws.WsCe.QueueResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<QueueResponse> PARSER =
+ new com.google.protobuf.AbstractParser<QueueResponse>() {
+ public QueueResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new QueueResponse(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<QueueResponse> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.WsCe.QueueResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface ActivityResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:sonarqube.ws.ce.ActivityResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
+ */
+ boolean hasPaging();
+ /**
+ * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
+ */
+ org.sonarqube.ws.Common.Paging getPaging();
+ /**
+ * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
+ */
+ org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder();
+
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ java.util.List<org.sonarqube.ws.WsCe.Task>
+ getTasksList();
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ org.sonarqube.ws.WsCe.Task getTasks(int index);
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ int getTasksCount();
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ java.util.List<? extends org.sonarqube.ws.WsCe.TaskOrBuilder>
+ getTasksOrBuilderList();
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ org.sonarqube.ws.WsCe.TaskOrBuilder getTasksOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.ce.ActivityResponse}
+ *
+ * <pre>
+ * GET api/ce/activity
+ * </pre>
+ */
+ public static final class ActivityResponse extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:sonarqube.ws.ce.ActivityResponse)
+ ActivityResponseOrBuilder {
+ // Use ActivityResponse.newBuilder() to construct.
+ private ActivityResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private ActivityResponse() {
+ tasks_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ActivityResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ org.sonarqube.ws.Common.Paging.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ subBuilder = paging_.toBuilder();
+ }
+ paging_ = input.readMessage(org.sonarqube.ws.Common.Paging.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(paging_);
+ paging_ = subBuilder.buildPartial();
+ }
+ bitField0_ |= 0x00000001;
+ break;
+ }
+ case 18: {
+ if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ tasks_ = new java.util.ArrayList<org.sonarqube.ws.WsCe.Task>();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ tasks_.add(input.readMessage(org.sonarqube.ws.WsCe.Task.PARSER, extensionRegistry));
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ tasks_ = java.util.Collections.unmodifiableList(tasks_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_ActivityResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_ActivityResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsCe.ActivityResponse.class, org.sonarqube.ws.WsCe.ActivityResponse.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int PAGING_FIELD_NUMBER = 1;
+ private org.sonarqube.ws.Common.Paging paging_;
+ /**
+ * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
+ */
+ public boolean hasPaging() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
+ */
+ public org.sonarqube.ws.Common.Paging getPaging() {
+ return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
+ }
+ /**
+ * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
+ */
+ public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() {
+ return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
+ }
+
+ public static final int TASKS_FIELD_NUMBER = 2;
+ private java.util.List<org.sonarqube.ws.WsCe.Task> tasks_;
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsCe.Task> getTasksList() {
+ return tasks_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.WsCe.TaskOrBuilder>
+ getTasksOrBuilderList() {
+ return tasks_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ public int getTasksCount() {
+ return tasks_.size();
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ public org.sonarqube.ws.WsCe.Task getTasks(int index) {
+ return tasks_.get(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ public org.sonarqube.ws.WsCe.TaskOrBuilder getTasksOrBuilder(
+ int index) {
+ return tasks_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeMessage(1, getPaging());
+ }
+ for (int i = 0; i < tasks_.size(); i++) {
+ output.writeMessage(2, tasks_.get(i));
+ }
+ unknownFields.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
+ .computeMessageSize(1, getPaging());
+ }
+ for (int i = 0; i < tasks_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, tasks_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static org.sonarqube.ws.WsCe.ActivityResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsCe.ActivityResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsCe.ActivityResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsCe.ActivityResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsCe.ActivityResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsCe.ActivityResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsCe.ActivityResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.WsCe.ActivityResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsCe.ActivityResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsCe.ActivityResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.WsCe.ActivityResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.ce.ActivityResponse}
+ *
+ * <pre>
+ * GET api/ce/activity
+ * </pre>
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:sonarqube.ws.ce.ActivityResponse)
+ org.sonarqube.ws.WsCe.ActivityResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_ActivityResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_ActivityResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsCe.ActivityResponse.class, org.sonarqube.ws.WsCe.ActivityResponse.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.WsCe.ActivityResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getPagingFieldBuilder();
+ getTasksFieldBuilder();
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ if (pagingBuilder_ == null) {
+ paging_ = null;
+ } else {
+ pagingBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ if (tasksBuilder_ == null) {
+ tasks_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ tasksBuilder_.clear();
+ }
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_ActivityResponse_descriptor;
+ }
+
+ public org.sonarqube.ws.WsCe.ActivityResponse getDefaultInstanceForType() {
+ return org.sonarqube.ws.WsCe.ActivityResponse.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.WsCe.ActivityResponse build() {
+ org.sonarqube.ws.WsCe.ActivityResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.WsCe.ActivityResponse buildPartial() {
+ org.sonarqube.ws.WsCe.ActivityResponse result = new org.sonarqube.ws.WsCe.ActivityResponse(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ if (pagingBuilder_ == null) {
+ result.paging_ = paging_;
+ } else {
+ result.paging_ = pagingBuilder_.build();
+ }
+ if (tasksBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ tasks_ = java.util.Collections.unmodifiableList(tasks_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.tasks_ = tasks_;
+ } else {
+ result.tasks_ = tasksBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.WsCe.ActivityResponse) {
+ return mergeFrom((org.sonarqube.ws.WsCe.ActivityResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.WsCe.ActivityResponse other) {
+ if (other == org.sonarqube.ws.WsCe.ActivityResponse.getDefaultInstance()) return this;
+ if (other.hasPaging()) {
+ mergePaging(other.getPaging());
+ }
+ if (tasksBuilder_ == null) {
+ if (!other.tasks_.isEmpty()) {
+ if (tasks_.isEmpty()) {
+ tasks_ = other.tasks_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureTasksIsMutable();
+ tasks_.addAll(other.tasks_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.tasks_.isEmpty()) {
+ if (tasksBuilder_.isEmpty()) {
+ tasksBuilder_.dispose();
+ tasksBuilder_ = null;
+ tasks_ = other.tasks_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ tasksBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getTasksFieldBuilder() : null;
+ } else {
+ tasksBuilder_.addAllMessages(other.tasks_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.WsCe.ActivityResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.WsCe.ActivityResponse) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private org.sonarqube.ws.Common.Paging paging_ = null;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_;
+ /**
+ * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
+ */
+ public boolean hasPaging() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
+ */
+ public org.sonarqube.ws.Common.Paging getPaging() {
+ if (pagingBuilder_ == null) {
+ return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
+ } else {
+ return pagingBuilder_.getMessage();
+ }
+ }
+ /**
+ * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
+ */
+ public Builder setPaging(org.sonarqube.ws.Common.Paging value) {
+ if (pagingBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ paging_ = value;
+ onChanged();
+ } else {
+ pagingBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
+ */
+ public Builder setPaging(
+ org.sonarqube.ws.Common.Paging.Builder builderForValue) {
+ if (pagingBuilder_ == null) {
+ paging_ = builderForValue.build();
+ onChanged();
+ } else {
+ pagingBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
+ */
+ public Builder mergePaging(org.sonarqube.ws.Common.Paging value) {
+ if (pagingBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ paging_ != null &&
+ paging_ != org.sonarqube.ws.Common.Paging.getDefaultInstance()) {
+ paging_ =
+ org.sonarqube.ws.Common.Paging.newBuilder(paging_).mergeFrom(value).buildPartial();
+ } else {
+ paging_ = value;
+ }
+ onChanged();
+ } else {
+ pagingBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
+ */
+ public Builder clearPaging() {
+ if (pagingBuilder_ == null) {
+ paging_ = null;
+ onChanged();
+ } else {
+ pagingBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+ /**
+ * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
+ */
+ public org.sonarqube.ws.Common.Paging.Builder getPagingBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getPagingFieldBuilder().getBuilder();
+ }
+ /**
+ * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
+ */
+ public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() {
+ if (pagingBuilder_ != null) {
+ return pagingBuilder_.getMessageOrBuilder();
+ } else {
+ return paging_ == null ?
+ org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
+ }
+ }
+ /**
+ * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder>
+ getPagingFieldBuilder() {
+ if (pagingBuilder_ == null) {
+ pagingBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder>(
+ getPaging(),
+ getParentForChildren(),
+ isClean());
+ paging_ = null;
+ }
+ return pagingBuilder_;
+ }
+
+ private java.util.List<org.sonarqube.ws.WsCe.Task> tasks_ =
+ java.util.Collections.emptyList();
+ private void ensureTasksIsMutable() {
+ if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ tasks_ = new java.util.ArrayList<org.sonarqube.ws.WsCe.Task>(tasks_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsCe.Task, org.sonarqube.ws.WsCe.Task.Builder, org.sonarqube.ws.WsCe.TaskOrBuilder> tasksBuilder_;
+
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsCe.Task> getTasksList() {
+ if (tasksBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(tasks_);
+ } else {
+ return tasksBuilder_.getMessageList();
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ public int getTasksCount() {
+ if (tasksBuilder_ == null) {
+ return tasks_.size();
+ } else {
+ return tasksBuilder_.getCount();
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ public org.sonarqube.ws.WsCe.Task getTasks(int index) {
+ if (tasksBuilder_ == null) {
+ return tasks_.get(index);
+ } else {
+ return tasksBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ public Builder setTasks(
+ int index, org.sonarqube.ws.WsCe.Task value) {
+ if (tasksBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTasksIsMutable();
+ tasks_.set(index, value);
+ onChanged();
+ } else {
+ tasksBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ public Builder setTasks(
+ int index, org.sonarqube.ws.WsCe.Task.Builder builderForValue) {
+ if (tasksBuilder_ == null) {
+ ensureTasksIsMutable();
+ tasks_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ tasksBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ public Builder addTasks(org.sonarqube.ws.WsCe.Task value) {
+ if (tasksBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTasksIsMutable();
+ tasks_.add(value);
+ onChanged();
+ } else {
+ tasksBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ public Builder addTasks(
+ int index, org.sonarqube.ws.WsCe.Task value) {
+ if (tasksBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTasksIsMutable();
+ tasks_.add(index, value);
+ onChanged();
+ } else {
+ tasksBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ public Builder addTasks(
+ org.sonarqube.ws.WsCe.Task.Builder builderForValue) {
+ if (tasksBuilder_ == null) {
+ ensureTasksIsMutable();
+ tasks_.add(builderForValue.build());
+ onChanged();
+ } else {
+ tasksBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ public Builder addTasks(
+ int index, org.sonarqube.ws.WsCe.Task.Builder builderForValue) {
+ if (tasksBuilder_ == null) {
+ ensureTasksIsMutable();
+ tasks_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ tasksBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ public Builder addAllTasks(
+ java.lang.Iterable<? extends org.sonarqube.ws.WsCe.Task> values) {
+ if (tasksBuilder_ == null) {
+ ensureTasksIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, tasks_);
+ onChanged();
+ } else {
+ tasksBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ public Builder clearTasks() {
+ if (tasksBuilder_ == null) {
+ tasks_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ tasksBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ public Builder removeTasks(int index) {
+ if (tasksBuilder_ == null) {
+ ensureTasksIsMutable();
+ tasks_.remove(index);
+ onChanged();
+ } else {
+ tasksBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ public org.sonarqube.ws.WsCe.Task.Builder getTasksBuilder(
+ int index) {
+ return getTasksFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ public org.sonarqube.ws.WsCe.TaskOrBuilder getTasksOrBuilder(
+ int index) {
+ if (tasksBuilder_ == null) {
+ return tasks_.get(index); } else {
+ return tasksBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.WsCe.TaskOrBuilder>
+ getTasksOrBuilderList() {
+ if (tasksBuilder_ != null) {
+ return tasksBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(tasks_);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ public org.sonarqube.ws.WsCe.Task.Builder addTasksBuilder() {
+ return getTasksFieldBuilder().addBuilder(
+ org.sonarqube.ws.WsCe.Task.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ public org.sonarqube.ws.WsCe.Task.Builder addTasksBuilder(
+ int index) {
+ return getTasksFieldBuilder().addBuilder(
+ index, org.sonarqube.ws.WsCe.Task.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.ce.Task tasks = 2;</code>
+ */
+ public java.util.List<org.sonarqube.ws.WsCe.Task.Builder>
+ getTasksBuilderList() {
+ return getTasksFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsCe.Task, org.sonarqube.ws.WsCe.Task.Builder, org.sonarqube.ws.WsCe.TaskOrBuilder>
+ getTasksFieldBuilder() {
+ if (tasksBuilder_ == null) {
+ tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.WsCe.Task, org.sonarqube.ws.WsCe.Task.Builder, org.sonarqube.ws.WsCe.TaskOrBuilder>(
+ tasks_,
+ ((bitField0_ & 0x00000002) == 0x00000002),
+ getParentForChildren(),
+ isClean());
+ tasks_ = null;
+ }
+ return tasksBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:sonarqube.ws.ce.ActivityResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.ce.ActivityResponse)
+ private static final org.sonarqube.ws.WsCe.ActivityResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.WsCe.ActivityResponse();
+ }
+
+ public static org.sonarqube.ws.WsCe.ActivityResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<ActivityResponse> PARSER =
+ new com.google.protobuf.AbstractParser<ActivityResponse>() {
+ public ActivityResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new ActivityResponse(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<ActivityResponse> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.WsCe.ActivityResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface TaskOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:sonarqube.ws.ce.Task)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <code>optional string id = 1;</code>
+ */
+ boolean hasId();
+ /**
+ * <code>optional string id = 1;</code>
+ */
+ java.lang.String getId();
+ /**
+ * <code>optional string id = 1;</code>
+ */
+ com.google.protobuf.ByteString
+ getIdBytes();
+
+ /**
+ * <code>optional string taskType = 2;</code>
+ */
+ boolean hasTaskType();
+ /**
+ * <code>optional string taskType = 2;</code>
+ */
+ java.lang.String getTaskType();
+ /**
+ * <code>optional string taskType = 2;</code>
+ */
+ com.google.protobuf.ByteString
+ getTaskTypeBytes();
+
+ /**
+ * <code>optional string componentId = 3;</code>
+ */
+ boolean hasComponentId();
+ /**
+ * <code>optional string componentId = 3;</code>
+ */
+ java.lang.String getComponentId();
+ /**
+ * <code>optional string componentId = 3;</code>
+ */
+ com.google.protobuf.ByteString
+ getComponentIdBytes();
+
+ /**
+ * <code>optional string componentKey = 4;</code>
+ */
+ boolean hasComponentKey();
+ /**
+ * <code>optional string componentKey = 4;</code>
+ */
+ java.lang.String getComponentKey();
+ /**
+ * <code>optional string componentKey = 4;</code>
+ */
+ com.google.protobuf.ByteString
+ getComponentKeyBytes();
+
+ /**
+ * <code>optional string componentName = 5;</code>
+ */
+ boolean hasComponentName();
+ /**
+ * <code>optional string componentName = 5;</code>
+ */
+ java.lang.String getComponentName();
+ /**
+ * <code>optional string componentName = 5;</code>
+ */
+ com.google.protobuf.ByteString
+ getComponentNameBytes();
+
+ /**
+ * <code>optional .sonarqube.ws.ce.TaskStatus status = 6;</code>
+ */
+ boolean hasStatus();
+ /**
+ * <code>optional .sonarqube.ws.ce.TaskStatus status = 6;</code>
+ */
+ org.sonarqube.ws.WsCe.TaskStatus getStatus();
+
+ /**
+ * <code>optional string submittedAt = 7;</code>
+ */
+ boolean hasSubmittedAt();
+ /**
+ * <code>optional string submittedAt = 7;</code>
+ */
+ java.lang.String getSubmittedAt();
+ /**
+ * <code>optional string submittedAt = 7;</code>
+ */
+ com.google.protobuf.ByteString
+ getSubmittedAtBytes();
+
+ /**
+ * <code>optional string submitterLogin = 8;</code>
+ */
+ boolean hasSubmitterLogin();
+ /**
+ * <code>optional string submitterLogin = 8;</code>
+ */
+ java.lang.String getSubmitterLogin();
+ /**
+ * <code>optional string submitterLogin = 8;</code>
+ */
+ com.google.protobuf.ByteString
+ getSubmitterLoginBytes();
+
+ /**
+ * <code>optional string startedAt = 9;</code>
+ */
+ boolean hasStartedAt();
+ /**
+ * <code>optional string startedAt = 9;</code>
+ */
+ java.lang.String getStartedAt();
+ /**
+ * <code>optional string startedAt = 9;</code>
+ */
+ com.google.protobuf.ByteString
+ getStartedAtBytes();
+
+ /**
+ * <code>optional string finishedAt = 10;</code>
+ */
+ boolean hasFinishedAt();
+ /**
+ * <code>optional string finishedAt = 10;</code>
+ */
+ java.lang.String getFinishedAt();
+ /**
+ * <code>optional string finishedAt = 10;</code>
+ */
+ com.google.protobuf.ByteString
+ getFinishedAtBytes();
+
+ /**
+ * <code>optional bool isLastFinished = 11;</code>
+ */
+ boolean hasIsLastFinished();
+ /**
+ * <code>optional bool isLastFinished = 11;</code>
+ */
+ boolean getIsLastFinished();
+
+ /**
+ * <code>optional int64 executionTimeMs = 12;</code>
+ */
+ boolean hasExecutionTimeMs();
+ /**
+ * <code>optional int64 executionTimeMs = 12;</code>
+ */
+ long getExecutionTimeMs();
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.ce.Task}
+ */
+ public static final class Task extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:sonarqube.ws.ce.Task)
+ TaskOrBuilder {
+ // Use Task.newBuilder() to construct.
+ private Task(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private Task() {
+ id_ = "";
+ taskType_ = "";
+ componentId_ = "";
+ componentKey_ = "";
+ componentName_ = "";
+ status_ = 0;
+ submittedAt_ = "";
+ submitterLogin_ = "";
+ startedAt_ = "";
+ finishedAt_ = "";
+ isLastFinished_ = false;
+ executionTimeMs_ = 0L;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Task(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000001;
+ id_ = bs;
+ break;
+ }
+ case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000002;
+ taskType_ = bs;
+ break;
+ }
+ case 26: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000004;
+ componentId_ = bs;
+ break;
+ }
+ case 34: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000008;
+ componentKey_ = bs;
+ break;
+ }
+ case 42: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000010;
+ componentName_ = bs;
+ break;
+ }
+ case 48: {
+ int rawValue = input.readEnum();
+ org.sonarqube.ws.WsCe.TaskStatus value = org.sonarqube.ws.WsCe.TaskStatus.valueOf(rawValue);
+ if (value == null) {
+ unknownFields.mergeVarintField(6, rawValue);
+ } else {
+ bitField0_ |= 0x00000020;
+ status_ = rawValue;
+ }
+ break;
+ }
+ case 58: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000040;
+ submittedAt_ = bs;
+ break;
+ }
+ case 66: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000080;
+ submitterLogin_ = bs;
+ break;
+ }
+ case 74: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000100;
+ startedAt_ = bs;
+ break;
+ }
+ case 82: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000200;
+ finishedAt_ = bs;
+ break;
+ }
+ case 88: {
+ bitField0_ |= 0x00000400;
+ isLastFinished_ = input.readBool();
+ break;
+ }
+ case 96: {
+ bitField0_ |= 0x00000800;
+ executionTimeMs_ = input.readInt64();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_Task_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_Task_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsCe.Task.class, org.sonarqube.ws.WsCe.Task.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int ID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object id_;
+ /**
+ * <code>optional string id = 1;</code>
+ */
+ public boolean hasId() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * <code>optional string id = 1;</code>
+ */
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ id_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string id = 1;</code>
+ */
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TASKTYPE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object taskType_;
+ /**
+ * <code>optional string taskType = 2;</code>
+ */
+ public boolean hasTaskType() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * <code>optional string taskType = 2;</code>
+ */
+ public java.lang.String getTaskType() {
+ java.lang.Object ref = taskType_;
+ 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()) {
+ taskType_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string taskType = 2;</code>
+ */
+ public com.google.protobuf.ByteString
+ getTaskTypeBytes() {
+ java.lang.Object ref = taskType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ taskType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int COMPONENTID_FIELD_NUMBER = 3;
+ private volatile java.lang.Object componentId_;
+ /**
+ * <code>optional string componentId = 3;</code>
+ */
+ public boolean hasComponentId() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * <code>optional string componentId = 3;</code>
+ */
+ public java.lang.String getComponentId() {
+ java.lang.Object ref = componentId_;
+ 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()) {
+ componentId_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string componentId = 3;</code>
+ */
+ public com.google.protobuf.ByteString
+ getComponentIdBytes() {
+ java.lang.Object ref = componentId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ componentId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int COMPONENTKEY_FIELD_NUMBER = 4;
+ private volatile java.lang.Object componentKey_;
+ /**
+ * <code>optional string componentKey = 4;</code>
+ */
+ public boolean hasComponentKey() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * <code>optional string componentKey = 4;</code>
+ */
+ public java.lang.String getComponentKey() {
+ java.lang.Object ref = componentKey_;
+ 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()) {
+ componentKey_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string componentKey = 4;</code>
+ */
+ public com.google.protobuf.ByteString
+ getComponentKeyBytes() {
+ java.lang.Object ref = componentKey_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ componentKey_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int COMPONENTNAME_FIELD_NUMBER = 5;
+ private volatile java.lang.Object componentName_;
+ /**
+ * <code>optional string componentName = 5;</code>
+ */
+ public boolean hasComponentName() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+ /**
+ * <code>optional string componentName = 5;</code>
+ */
+ public java.lang.String getComponentName() {
+ java.lang.Object ref = componentName_;
+ 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()) {
+ componentName_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string componentName = 5;</code>
+ */
+ public com.google.protobuf.ByteString
+ getComponentNameBytes() {
+ java.lang.Object ref = componentName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ componentName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 6;
+ private int status_;
+ /**
+ * <code>optional .sonarqube.ws.ce.TaskStatus status = 6;</code>
+ */
+ public boolean hasStatus() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+ /**
+ * <code>optional .sonarqube.ws.ce.TaskStatus status = 6;</code>
+ */
+ public org.sonarqube.ws.WsCe.TaskStatus getStatus() {
+ org.sonarqube.ws.WsCe.TaskStatus result = org.sonarqube.ws.WsCe.TaskStatus.valueOf(status_);
+ return result == null ? org.sonarqube.ws.WsCe.TaskStatus.PENDING : result;
+ }
+
+ public static final int SUBMITTEDAT_FIELD_NUMBER = 7;
+ private volatile java.lang.Object submittedAt_;
+ /**
+ * <code>optional string submittedAt = 7;</code>
+ */
+ public boolean hasSubmittedAt() {
+ return ((bitField0_ & 0x00000040) == 0x00000040);
+ }
+ /**
+ * <code>optional string submittedAt = 7;</code>
+ */
+ public java.lang.String getSubmittedAt() {
+ java.lang.Object ref = submittedAt_;
+ 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()) {
+ submittedAt_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string submittedAt = 7;</code>
+ */
+ public com.google.protobuf.ByteString
+ getSubmittedAtBytes() {
+ java.lang.Object ref = submittedAt_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ submittedAt_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SUBMITTERLOGIN_FIELD_NUMBER = 8;
+ private volatile java.lang.Object submitterLogin_;
+ /**
+ * <code>optional string submitterLogin = 8;</code>
+ */
+ public boolean hasSubmitterLogin() {
+ return ((bitField0_ & 0x00000080) == 0x00000080);
+ }
+ /**
+ * <code>optional string submitterLogin = 8;</code>
+ */
+ public java.lang.String getSubmitterLogin() {
+ java.lang.Object ref = submitterLogin_;
+ 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()) {
+ submitterLogin_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string submitterLogin = 8;</code>
+ */
+ public com.google.protobuf.ByteString
+ getSubmitterLoginBytes() {
+ java.lang.Object ref = submitterLogin_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ submitterLogin_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int STARTEDAT_FIELD_NUMBER = 9;
+ private volatile java.lang.Object startedAt_;
+ /**
+ * <code>optional string startedAt = 9;</code>
+ */
+ public boolean hasStartedAt() {
+ return ((bitField0_ & 0x00000100) == 0x00000100);
+ }
+ /**
+ * <code>optional string startedAt = 9;</code>
+ */
+ public java.lang.String getStartedAt() {
+ java.lang.Object ref = startedAt_;
+ 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()) {
+ startedAt_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string startedAt = 9;</code>
+ */
+ public com.google.protobuf.ByteString
+ getStartedAtBytes() {
+ java.lang.Object ref = startedAt_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ startedAt_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FINISHEDAT_FIELD_NUMBER = 10;
+ private volatile java.lang.Object finishedAt_;
+ /**
+ * <code>optional string finishedAt = 10;</code>
+ */
+ public boolean hasFinishedAt() {
+ return ((bitField0_ & 0x00000200) == 0x00000200);
+ }
+ /**
+ * <code>optional string finishedAt = 10;</code>
+ */
+ public java.lang.String getFinishedAt() {
+ java.lang.Object ref = finishedAt_;
+ 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()) {
+ finishedAt_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>optional string finishedAt = 10;</code>
+ */
+ public com.google.protobuf.ByteString
+ getFinishedAtBytes() {
+ java.lang.Object ref = finishedAt_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ finishedAt_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ISLASTFINISHED_FIELD_NUMBER = 11;
+ private boolean isLastFinished_;
+ /**
+ * <code>optional bool isLastFinished = 11;</code>
+ */
+ public boolean hasIsLastFinished() {
+ return ((bitField0_ & 0x00000400) == 0x00000400);
+ }
+ /**
+ * <code>optional bool isLastFinished = 11;</code>
+ */
+ public boolean getIsLastFinished() {
+ return isLastFinished_;
+ }
+
+ public static final int EXECUTIONTIMEMS_FIELD_NUMBER = 12;
+ private long executionTimeMs_;
+ /**
+ * <code>optional int64 executionTimeMs = 12;</code>
+ */
+ public boolean hasExecutionTimeMs() {
+ return ((bitField0_ & 0x00000800) == 0x00000800);
+ }
+ /**
+ * <code>optional int64 executionTimeMs = 12;</code>
+ */
+ public long getExecutionTimeMs() {
+ return executionTimeMs_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getIdBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeBytes(2, getTaskTypeBytes());
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeBytes(3, getComponentIdBytes());
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ output.writeBytes(4, getComponentKeyBytes());
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ output.writeBytes(5, getComponentNameBytes());
+ }
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ output.writeEnum(6, status_);
+ }
+ if (((bitField0_ & 0x00000040) == 0x00000040)) {
+ output.writeBytes(7, getSubmittedAtBytes());
+ }
+ if (((bitField0_ & 0x00000080) == 0x00000080)) {
+ output.writeBytes(8, getSubmitterLoginBytes());
+ }
+ if (((bitField0_ & 0x00000100) == 0x00000100)) {
+ output.writeBytes(9, getStartedAtBytes());
+ }
+ if (((bitField0_ & 0x00000200) == 0x00000200)) {
+ output.writeBytes(10, getFinishedAtBytes());
+ }
+ if (((bitField0_ & 0x00000400) == 0x00000400)) {
+ output.writeBool(11, isLastFinished_);
+ }
+ if (((bitField0_ & 0x00000800) == 0x00000800)) {
+ output.writeInt64(12, executionTimeMs_);
+ }
+ unknownFields.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
+ .computeBytesSize(1, getIdBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(2, getTaskTypeBytes());
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(3, getComponentIdBytes());
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(4, getComponentKeyBytes());
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(5, getComponentNameBytes());
+ }
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(6, status_);
+ }
+ if (((bitField0_ & 0x00000040) == 0x00000040)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(7, getSubmittedAtBytes());
+ }
+ if (((bitField0_ & 0x00000080) == 0x00000080)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(8, getSubmitterLoginBytes());
+ }
+ if (((bitField0_ & 0x00000100) == 0x00000100)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(9, getStartedAtBytes());
+ }
+ if (((bitField0_ & 0x00000200) == 0x00000200)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(10, getFinishedAtBytes());
+ }
+ if (((bitField0_ & 0x00000400) == 0x00000400)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(11, isLastFinished_);
+ }
+ if (((bitField0_ & 0x00000800) == 0x00000800)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(12, executionTimeMs_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static org.sonarqube.ws.WsCe.Task parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsCe.Task parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsCe.Task parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.WsCe.Task parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsCe.Task parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsCe.Task parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsCe.Task parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.WsCe.Task parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.WsCe.Task parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.WsCe.Task parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.WsCe.Task prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.ce.Task}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:sonarqube.ws.ce.Task)
+ org.sonarqube.ws.WsCe.TaskOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_Task_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_Task_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.WsCe.Task.class, org.sonarqube.ws.WsCe.Task.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.WsCe.Task.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ id_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ taskType_ = "";
+ bitField0_ = (bitField0_ & ~0x00000002);
+ componentId_ = "";
+ bitField0_ = (bitField0_ & ~0x00000004);
+ componentKey_ = "";
+ bitField0_ = (bitField0_ & ~0x00000008);
+ componentName_ = "";
+ bitField0_ = (bitField0_ & ~0x00000010);
+ status_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ submittedAt_ = "";
+ bitField0_ = (bitField0_ & ~0x00000040);
+ submitterLogin_ = "";
+ bitField0_ = (bitField0_ & ~0x00000080);
+ startedAt_ = "";
+ bitField0_ = (bitField0_ & ~0x00000100);
+ finishedAt_ = "";
+ bitField0_ = (bitField0_ & ~0x00000200);
+ isLastFinished_ = false;
+ bitField0_ = (bitField0_ & ~0x00000400);
+ executionTimeMs_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00000800);
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_Task_descriptor;
+ }
+
+ public org.sonarqube.ws.WsCe.Task getDefaultInstanceForType() {
+ return org.sonarqube.ws.WsCe.Task.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.WsCe.Task build() {
+ org.sonarqube.ws.WsCe.Task result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.WsCe.Task buildPartial() {
+ org.sonarqube.ws.WsCe.Task result = new org.sonarqube.ws.WsCe.Task(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.id_ = id_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.taskType_ = taskType_;
+ if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ to_bitField0_ |= 0x00000004;
+ }
+ result.componentId_ = componentId_;
+ if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ to_bitField0_ |= 0x00000008;
+ }
+ result.componentKey_ = componentKey_;
+ if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
+ to_bitField0_ |= 0x00000010;
+ }
+ result.componentName_ = componentName_;
+ if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
+ to_bitField0_ |= 0x00000020;
+ }
+ result.status_ = status_;
+ if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
+ to_bitField0_ |= 0x00000040;
+ }
+ result.submittedAt_ = submittedAt_;
+ if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
+ to_bitField0_ |= 0x00000080;
+ }
+ result.submitterLogin_ = submitterLogin_;
+ if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
+ to_bitField0_ |= 0x00000100;
+ }
+ result.startedAt_ = startedAt_;
+ if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
+ to_bitField0_ |= 0x00000200;
+ }
+ result.finishedAt_ = finishedAt_;
+ if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
+ to_bitField0_ |= 0x00000400;
+ }
+ result.isLastFinished_ = isLastFinished_;
+ if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
+ to_bitField0_ |= 0x00000800;
+ }
+ result.executionTimeMs_ = executionTimeMs_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.WsCe.Task) {
+ return mergeFrom((org.sonarqube.ws.WsCe.Task)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.WsCe.Task other) {
+ if (other == org.sonarqube.ws.WsCe.Task.getDefaultInstance()) return this;
+ if (other.hasId()) {
+ bitField0_ |= 0x00000001;
+ id_ = other.id_;
+ onChanged();
+ }
+ if (other.hasTaskType()) {
+ bitField0_ |= 0x00000002;
+ taskType_ = other.taskType_;
+ onChanged();
+ }
+ if (other.hasComponentId()) {
+ bitField0_ |= 0x00000004;
+ componentId_ = other.componentId_;
+ onChanged();
+ }
+ if (other.hasComponentKey()) {
+ bitField0_ |= 0x00000008;
+ componentKey_ = other.componentKey_;
+ onChanged();
+ }
+ if (other.hasComponentName()) {
+ bitField0_ |= 0x00000010;
+ componentName_ = other.componentName_;
+ onChanged();
+ }
+ if (other.hasStatus()) {
+ setStatus(other.getStatus());
+ }
+ if (other.hasSubmittedAt()) {
+ bitField0_ |= 0x00000040;
+ submittedAt_ = other.submittedAt_;
+ onChanged();
+ }
+ if (other.hasSubmitterLogin()) {
+ bitField0_ |= 0x00000080;
+ submitterLogin_ = other.submitterLogin_;
+ onChanged();
+ }
+ if (other.hasStartedAt()) {
+ bitField0_ |= 0x00000100;
+ startedAt_ = other.startedAt_;
+ onChanged();
+ }
+ if (other.hasFinishedAt()) {
+ bitField0_ |= 0x00000200;
+ finishedAt_ = other.finishedAt_;
+ onChanged();
+ }
+ if (other.hasIsLastFinished()) {
+ setIsLastFinished(other.getIsLastFinished());
+ }
+ if (other.hasExecutionTimeMs()) {
+ setExecutionTimeMs(other.getExecutionTimeMs());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.WsCe.Task parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.WsCe.Task) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object id_ = "";
+ /**
+ * <code>optional string id = 1;</code>
+ */
+ public boolean hasId() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * <code>optional string id = 1;</code>
+ */
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ id_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string id = 1;</code>
+ */
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <code>optional string id = 1;</code>
+ */
+ public Builder setId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ id_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string id = 1;</code>
+ */
+ public Builder clearId() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ id_ = getDefaultInstance().getId();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string id = 1;</code>
+ */
+ public Builder setIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ id_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object taskType_ = "";
+ /**
+ * <code>optional string taskType = 2;</code>
+ */
+ public boolean hasTaskType() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * <code>optional string taskType = 2;</code>
+ */
+ public java.lang.String getTaskType() {
+ java.lang.Object ref = taskType_;
+ 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()) {
+ taskType_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string taskType = 2;</code>
+ */
+ public com.google.protobuf.ByteString
+ getTaskTypeBytes() {
+ java.lang.Object ref = taskType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ taskType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <code>optional string taskType = 2;</code>
+ */
+ public Builder setTaskType(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ taskType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string taskType = 2;</code>
+ */
+ public Builder clearTaskType() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ taskType_ = getDefaultInstance().getTaskType();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string taskType = 2;</code>
+ */
+ public Builder setTaskTypeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ taskType_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object componentId_ = "";
+ /**
+ * <code>optional string componentId = 3;</code>
+ */
+ public boolean hasComponentId() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * <code>optional string componentId = 3;</code>
+ */
+ public java.lang.String getComponentId() {
+ java.lang.Object ref = componentId_;
+ 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()) {
+ componentId_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string componentId = 3;</code>
+ */
+ public com.google.protobuf.ByteString
+ getComponentIdBytes() {
+ java.lang.Object ref = componentId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ componentId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <code>optional string componentId = 3;</code>
+ */
+ public Builder setComponentId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ componentId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string componentId = 3;</code>
+ */
+ public Builder clearComponentId() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ componentId_ = getDefaultInstance().getComponentId();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string componentId = 3;</code>
+ */
+ public Builder setComponentIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ componentId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object componentKey_ = "";
+ /**
+ * <code>optional string componentKey = 4;</code>
+ */
+ public boolean hasComponentKey() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * <code>optional string componentKey = 4;</code>
+ */
+ public java.lang.String getComponentKey() {
+ java.lang.Object ref = componentKey_;
+ 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()) {
+ componentKey_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string componentKey = 4;</code>
+ */
+ public com.google.protobuf.ByteString
+ getComponentKeyBytes() {
+ java.lang.Object ref = componentKey_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ componentKey_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <code>optional string componentKey = 4;</code>
+ */
+ public Builder setComponentKey(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ componentKey_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string componentKey = 4;</code>
+ */
+ public Builder clearComponentKey() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ componentKey_ = getDefaultInstance().getComponentKey();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string componentKey = 4;</code>
+ */
+ public Builder setComponentKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ componentKey_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object componentName_ = "";
+ /**
+ * <code>optional string componentName = 5;</code>
+ */
+ public boolean hasComponentName() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+ /**
+ * <code>optional string componentName = 5;</code>
+ */
+ public java.lang.String getComponentName() {
+ java.lang.Object ref = componentName_;
+ 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()) {
+ componentName_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string componentName = 5;</code>
+ */
+ public com.google.protobuf.ByteString
+ getComponentNameBytes() {
+ java.lang.Object ref = componentName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ componentName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <code>optional string componentName = 5;</code>
+ */
+ public Builder setComponentName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000010;
+ componentName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string componentName = 5;</code>
+ */
+ public Builder clearComponentName() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ componentName_ = getDefaultInstance().getComponentName();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string componentName = 5;</code>
+ */
+ public Builder setComponentNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000010;
+ componentName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int status_ = 0;
+ /**
+ * <code>optional .sonarqube.ws.ce.TaskStatus status = 6;</code>
+ */
+ public boolean hasStatus() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+ /**
+ * <code>optional .sonarqube.ws.ce.TaskStatus status = 6;</code>
+ */
+ public org.sonarqube.ws.WsCe.TaskStatus getStatus() {
+ org.sonarqube.ws.WsCe.TaskStatus result = org.sonarqube.ws.WsCe.TaskStatus.valueOf(status_);
+ return result == null ? org.sonarqube.ws.WsCe.TaskStatus.PENDING : result;
+ }
+ /**
+ * <code>optional .sonarqube.ws.ce.TaskStatus status = 6;</code>
+ */
+ public Builder setStatus(org.sonarqube.ws.WsCe.TaskStatus value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000020;
+ status_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional .sonarqube.ws.ce.TaskStatus status = 6;</code>
+ */
+ public Builder clearStatus() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ status_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object submittedAt_ = "";
+ /**
+ * <code>optional string submittedAt = 7;</code>
+ */
+ public boolean hasSubmittedAt() {
+ return ((bitField0_ & 0x00000040) == 0x00000040);
+ }
+ /**
+ * <code>optional string submittedAt = 7;</code>
+ */
+ public java.lang.String getSubmittedAt() {
+ java.lang.Object ref = submittedAt_;
+ 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()) {
+ submittedAt_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string submittedAt = 7;</code>
+ */
+ public com.google.protobuf.ByteString
+ getSubmittedAtBytes() {
+ java.lang.Object ref = submittedAt_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ submittedAt_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <code>optional string submittedAt = 7;</code>
+ */
+ public Builder setSubmittedAt(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000040;
+ submittedAt_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string submittedAt = 7;</code>
+ */
+ public Builder clearSubmittedAt() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ submittedAt_ = getDefaultInstance().getSubmittedAt();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string submittedAt = 7;</code>
+ */
+ public Builder setSubmittedAtBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000040;
+ submittedAt_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object submitterLogin_ = "";
+ /**
+ * <code>optional string submitterLogin = 8;</code>
+ */
+ public boolean hasSubmitterLogin() {
+ return ((bitField0_ & 0x00000080) == 0x00000080);
+ }
+ /**
+ * <code>optional string submitterLogin = 8;</code>
+ */
+ public java.lang.String getSubmitterLogin() {
+ java.lang.Object ref = submitterLogin_;
+ 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()) {
+ submitterLogin_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string submitterLogin = 8;</code>
+ */
+ public com.google.protobuf.ByteString
+ getSubmitterLoginBytes() {
+ java.lang.Object ref = submitterLogin_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ submitterLogin_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <code>optional string submitterLogin = 8;</code>
+ */
+ public Builder setSubmitterLogin(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000080;
+ submitterLogin_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string submitterLogin = 8;</code>
+ */
+ public Builder clearSubmitterLogin() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ submitterLogin_ = getDefaultInstance().getSubmitterLogin();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string submitterLogin = 8;</code>
+ */
+ public Builder setSubmitterLoginBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000080;
+ submitterLogin_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object startedAt_ = "";
+ /**
+ * <code>optional string startedAt = 9;</code>
+ */
+ public boolean hasStartedAt() {
+ return ((bitField0_ & 0x00000100) == 0x00000100);
+ }
+ /**
+ * <code>optional string startedAt = 9;</code>
+ */
+ public java.lang.String getStartedAt() {
+ java.lang.Object ref = startedAt_;
+ 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()) {
+ startedAt_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string startedAt = 9;</code>
+ */
+ public com.google.protobuf.ByteString
+ getStartedAtBytes() {
+ java.lang.Object ref = startedAt_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ startedAt_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <code>optional string startedAt = 9;</code>
+ */
+ public Builder setStartedAt(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000100;
+ startedAt_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string startedAt = 9;</code>
+ */
+ public Builder clearStartedAt() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ startedAt_ = getDefaultInstance().getStartedAt();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string startedAt = 9;</code>
+ */
+ public Builder setStartedAtBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000100;
+ startedAt_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object finishedAt_ = "";
+ /**
+ * <code>optional string finishedAt = 10;</code>
+ */
+ public boolean hasFinishedAt() {
+ return ((bitField0_ & 0x00000200) == 0x00000200);
+ }
+ /**
+ * <code>optional string finishedAt = 10;</code>
+ */
+ public java.lang.String getFinishedAt() {
+ java.lang.Object ref = finishedAt_;
+ 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()) {
+ finishedAt_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * <code>optional string finishedAt = 10;</code>
+ */
+ public com.google.protobuf.ByteString
+ getFinishedAtBytes() {
+ java.lang.Object ref = finishedAt_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ finishedAt_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * <code>optional string finishedAt = 10;</code>
+ */
+ public Builder setFinishedAt(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000200;
+ finishedAt_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string finishedAt = 10;</code>
+ */
+ public Builder clearFinishedAt() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ finishedAt_ = getDefaultInstance().getFinishedAt();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string finishedAt = 10;</code>
+ */
+ public Builder setFinishedAtBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000200;
+ finishedAt_ = value;
+ onChanged();
+ return this;
+ }
+
+ private boolean isLastFinished_ ;
+ /**
+ * <code>optional bool isLastFinished = 11;</code>
+ */
+ public boolean hasIsLastFinished() {
+ return ((bitField0_ & 0x00000400) == 0x00000400);
+ }
+ /**
+ * <code>optional bool isLastFinished = 11;</code>
+ */
+ public boolean getIsLastFinished() {
+ return isLastFinished_;
+ }
+ /**
+ * <code>optional bool isLastFinished = 11;</code>
+ */
+ public Builder setIsLastFinished(boolean value) {
+ bitField0_ |= 0x00000400;
+ isLastFinished_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional bool isLastFinished = 11;</code>
+ */
+ public Builder clearIsLastFinished() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ isLastFinished_ = false;
+ onChanged();
+ return this;
+ }
+
+ private long executionTimeMs_ ;
+ /**
+ * <code>optional int64 executionTimeMs = 12;</code>
+ */
+ public boolean hasExecutionTimeMs() {
+ return ((bitField0_ & 0x00000800) == 0x00000800);
+ }
+ /**
+ * <code>optional int64 executionTimeMs = 12;</code>
+ */
+ public long getExecutionTimeMs() {
+ return executionTimeMs_;
+ }
+ /**
+ * <code>optional int64 executionTimeMs = 12;</code>
+ */
+ public Builder setExecutionTimeMs(long value) {
+ bitField0_ |= 0x00000800;
+ executionTimeMs_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional int64 executionTimeMs = 12;</code>
+ */
+ public Builder clearExecutionTimeMs() {
+ bitField0_ = (bitField0_ & ~0x00000800);
+ executionTimeMs_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:sonarqube.ws.ce.Task)
+ }
+
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.ce.Task)
+ private static final org.sonarqube.ws.WsCe.Task DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.WsCe.Task();
+ }
+
+ public static org.sonarqube.ws.WsCe.Task getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<Task> PARSER =
+ new com.google.protobuf.AbstractParser<Task>() {
+ public Task parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new Task(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Task> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.WsCe.Task getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_sonarqube_ws_ce_SubmitResponse_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_sonarqube_ws_ce_SubmitResponse_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_sonarqube_ws_ce_TaskResponse_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_sonarqube_ws_ce_TaskResponse_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_sonarqube_ws_ce_QueueResponse_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_sonarqube_ws_ce_QueueResponse_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_sonarqube_ws_ce_ActivityResponse_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_sonarqube_ws_ce_ActivityResponse_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_sonarqube_ws_ce_Task_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_sonarqube_ws_ce_Task_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\013ws-ce.proto\022\017sonarqube.ws.ce\032\020ws-commo" +
+ "ns.proto\"3\n\016SubmitResponse\022\016\n\006taskId\030\001 \001" +
+ "(\t\022\021\n\tprojectId\030\002 \001(\t\"3\n\014TaskResponse\022#\n" +
+ "\004task\030\001 \001(\0132\025.sonarqube.ws.ce.Task\"5\n\rQu" +
+ "eueResponse\022$\n\005tasks\030\001 \003(\0132\025.sonarqube.w" +
+ "s.ce.Task\"f\n\020ActivityResponse\022,\n\006paging\030" +
+ "\001 \001(\0132\034.sonarqube.ws.commons.Paging\022$\n\005t" +
+ "asks\030\002 \003(\0132\025.sonarqube.ws.ce.Task\"\230\002\n\004Ta" +
+ "sk\022\n\n\002id\030\001 \001(\t\022\020\n\010taskType\030\002 \001(\t\022\023\n\013comp" +
+ "onentId\030\003 \001(\t\022\024\n\014componentKey\030\004 \001(\t\022\025\n\rc",
+ "omponentName\030\005 \001(\t\022+\n\006status\030\006 \001(\0162\033.son" +
+ "arqube.ws.ce.TaskStatus\022\023\n\013submittedAt\030\007" +
+ " \001(\t\022\026\n\016submitterLogin\030\010 \001(\t\022\021\n\tstartedA" +
+ "t\030\t \001(\t\022\022\n\nfinishedAt\030\n \001(\t\022\026\n\016isLastFin" +
+ "ished\030\013 \001(\010\022\027\n\017executionTimeMs\030\014 \001(\003*Q\n\n" +
+ "TaskStatus\022\013\n\007PENDING\020\000\022\017\n\013IN_PROGRESS\020\001" +
+ "\022\013\n\007SUCCESS\020\002\022\n\n\006FAILED\020\003\022\014\n\010CANCELED\020\004B" +
+ "\032\n\020org.sonarqube.wsB\004WsCeH\001"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ org.sonarqube.ws.Common.getDescriptor(),
+ }, assigner);
+ internal_static_sonarqube_ws_ce_SubmitResponse_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_sonarqube_ws_ce_SubmitResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_sonarqube_ws_ce_SubmitResponse_descriptor,
+ new java.lang.String[] { "TaskId", "ProjectId", });
+ internal_static_sonarqube_ws_ce_TaskResponse_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_sonarqube_ws_ce_TaskResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_sonarqube_ws_ce_TaskResponse_descriptor,
+ new java.lang.String[] { "Task", });
+ internal_static_sonarqube_ws_ce_QueueResponse_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_sonarqube_ws_ce_QueueResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_sonarqube_ws_ce_QueueResponse_descriptor,
+ new java.lang.String[] { "Tasks", });
+ internal_static_sonarqube_ws_ce_ActivityResponse_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_sonarqube_ws_ce_ActivityResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_sonarqube_ws_ce_ActivityResponse_descriptor,
+ new java.lang.String[] { "Paging", "Tasks", });
+ internal_static_sonarqube_ws_ce_Task_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_sonarqube_ws_ce_Task_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_sonarqube_ws_ce_Task_descriptor,
+ new java.lang.String[] { "Id", "TaskType", "ComponentId", "ComponentKey", "ComponentName", "Status", "SubmittedAt", "SubmitterLogin", "StartedAt", "FinishedAt", "IsLastFinished", "ExecutionTimeMs", });
+ org.sonarqube.ws.Common.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/sonar-ws/src/main/protobuf/ws-ce.proto b/sonar-ws/src/main/protobuf/ws-ce.proto
new file mode 100644
index 00000000000..fa558dd598c
--- /dev/null
+++ b/sonar-ws/src/main/protobuf/ws-ce.proto
@@ -0,0 +1,72 @@
+// SonarQube, open source software quality management tool.
+// Copyright (C) 2008-2015 SonarSource
+// mailto:contact AT sonarsource DOT com
+//
+// SonarQube is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 3 of the License, or (at your option) any later version.
+//
+// SonarQube is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program; if not, write to the Free Software Foundation,
+// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+syntax = "proto2";
+
+package sonarqube.ws.ce;
+
+import "ws-commons.proto";
+
+option java_package = "org.sonarqube.ws";
+option java_outer_classname = "WsCe";
+option optimize_for = SPEED;
+
+// POST api/ce/submit
+message SubmitResponse {
+ optional string taskId = 1;
+ optional string projectId = 2;
+}
+
+// GET api/ce/task
+message TaskResponse {
+ optional Task task = 1;
+}
+
+// GET api/ce/queue
+message QueueResponse {
+ repeated Task tasks = 1;
+}
+
+// GET api/ce/activity
+message ActivityResponse {
+ optional sonarqube.ws.commons.Paging paging = 1;
+ repeated Task tasks = 2;
+}
+
+message Task {
+ optional string id = 1;
+ optional string taskType = 2;
+ optional string componentId = 3;
+ optional string componentKey = 4;
+ optional string componentName = 5;
+ optional TaskStatus status = 6;
+ optional string submittedAt = 7;
+ optional string submitterLogin = 8;
+ optional string startedAt = 9;
+ optional string finishedAt = 10;
+ optional bool isLastFinished = 11;
+ optional int64 executionTimeMs = 12;
+}
+
+enum TaskStatus {
+ PENDING = 0;
+ IN_PROGRESS = 1;
+ SUCCESS = 2;
+ FAILED = 3;
+ CANCELED = 4;
+}