Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* Task was too large. As of 04-29-2009 we enforce a maximum task size of
* 10K. This may change over time. Note that for tasks larger than 1MB such
* API calls will instead see a APIResponse::REQUEST_TOO_LARGE error.
*
* Task was scheduled to run too far into the future, or was negative.
*
*
* INVALID_ETA = 12;
*/
INVALID_ETA(12),
/**
*
* Unexpected invalid request. The most common reasons for invalid
* requests are covered by other INVALID_* codes, but this code
* is reserved for the most pathological situations.
*
* Explicitly list the shifted datastore error codes. A test will detect if
* the values here get out of sync with the original ones in
* datastore_v3.proto. By listing the error codes we ensure that they can
* safely be translated into Java enum values.
*
*
* OK = 0;
*/
public static final int OK_VALUE = 0;
/**
*
* Unknown queue. Queues must be created before tasks can be added to them.
*
*
* UNKNOWN_QUEUE = 1;
*/
public static final int UNKNOWN_QUEUE_VALUE = 1;
/**
*
* Transient failure.
*
*
* TRANSIENT_ERROR = 2;
*/
public static final int TRANSIENT_ERROR_VALUE = 2;
/**
*
* Unexpected internal error.
*
*
* INTERNAL_ERROR = 3;
*/
public static final int INTERNAL_ERROR_VALUE = 3;
/**
*
* Task was too large. As of 04-29-2009 we enforce a maximum task size of
* 10K. This may change over time. Note that for tasks larger than 1MB such
* API calls will instead see a APIResponse::REQUEST_TOO_LARGE error.
*
*
* TASK_TOO_LARGE = 4;
*/
public static final int TASK_TOO_LARGE_VALUE = 4;
/**
*
* The task name was too long, or contained illegal characters.
*
*
* INVALID_TASK_NAME = 5;
*/
public static final int INVALID_TASK_NAME_VALUE = 5;
/**
*
* The task name was too long, or contained illegal characters.
*
*
* INVALID_QUEUE_NAME = 6;
*/
public static final int INVALID_QUEUE_NAME_VALUE = 6;
/**
*
* The URL was too long, or was not a relative URL.
*
*
* INVALID_URL = 7;
*/
public static final int INVALID_URL_VALUE = 7;
/**
*
* Invalid queue throttling parameters.
*
*
* INVALID_QUEUE_RATE = 8;
*/
public static final int INVALID_QUEUE_RATE_VALUE = 8;
/**
*
* App is not allowed to perform the requested operation.
*
*
* PERMISSION_DENIED = 9;
*/
public static final int PERMISSION_DENIED_VALUE = 9;
/**
*
* Task already exists. It has not yet run.
*
*
* TASK_ALREADY_EXISTS = 10;
*/
public static final int TASK_ALREADY_EXISTS_VALUE = 10;
/**
*
* Task has been tombstoned.
*
*
* TOMBSTONED_TASK = 11;
*/
public static final int TOMBSTONED_TASK_VALUE = 11;
/**
*
* Task was scheduled to run too far into the future, or was negative.
*
*
* INVALID_ETA = 12;
*/
public static final int INVALID_ETA_VALUE = 12;
/**
*
* Unexpected invalid request. The most common reasons for invalid
* requests are covered by other INVALID_* codes, but this code
* is reserved for the most pathological situations.
*
*
* INVALID_REQUEST = 13;
*/
public static final int INVALID_REQUEST_VALUE = 13;
/**
*
* Unknown Task Name.
*
*
* UNKNOWN_TASK = 14;
*/
public static final int UNKNOWN_TASK_VALUE = 14;
/**
*
* Queue has been tombstoned.
*
*
* TOMBSTONED_QUEUE = 15;
*/
public static final int TOMBSTONED_QUEUE_VALUE = 15;
/**
*
* A task with an identical name appears in the same bulk task creation
* request.
*
*
* DUPLICATE_TASK_NAME = 16;
*/
public static final int DUPLICATE_TASK_NAME_VALUE = 16;
/**
*
* A component in a bulk operation was skipped because another component
* failed.
*
*
* SKIPPED = 17;
*/
public static final int SKIPPED_VALUE = 17;
/**
*
* A bulk operation involves more than the allowed number of tasks.
*
*
* TOO_MANY_TASKS = 18;
*/
public static final int TOO_MANY_TASKS_VALUE = 18;
/**
*
* Payload was not recognized.
*
*
* INVALID_PAYLOAD = 19;
*/
public static final int INVALID_PAYLOAD_VALUE = 19;
/**
*
* RetryParameters were not valid.
*
*
* INVALID_RETRY_PARAMETERS = 20;
*/
public static final int INVALID_RETRY_PARAMETERS_VALUE = 20;
/**
*
* Invoking PULL queue operations when mode is PUSH or vice versa.
*
*
* INVALID_QUEUE_MODE = 21;
*/
public static final int INVALID_QUEUE_MODE_VALUE = 21;
/**
*
* A Gaia lookup error occured.
*
*
* ACL_LOOKUP_ERROR = 22;
*/
public static final int ACL_LOOKUP_ERROR_VALUE = 22;
/**
*
* A transactional task queue operation was too large.
*
*
* TRANSACTIONAL_REQUEST_TOO_LARGE = 23;
*/
public static final int TRANSACTIONAL_REQUEST_TOO_LARGE_VALUE = 23;
/**
*
* The queue creator name does not match
*
*
* INCORRECT_CREATOR_NAME = 24;
*/
public static final int INCORRECT_CREATOR_NAME_VALUE = 24;
/**
*
* The lease for the task has expired
*
*
* TASK_LEASE_EXPIRED = 25;
*/
public static final int TASK_LEASE_EXPIRED_VALUE = 25;
/**
*
* The queue has been paused and leases cannot be modified.
*
*
* QUEUE_PAUSED = 26;
*/
public static final int QUEUE_PAUSED_VALUE = 26;
/**
*
* Task has an invalid tag.
*
*
* INVALID_TAG = 27;
*/
public static final int INVALID_TAG_VALUE = 27;
/**
*
* The queue logging configuration is invalid.
*
*
* INVALID_LOGGING_CONFIG = 28;
*/
public static final int INVALID_LOGGING_CONFIG_VALUE = 28;
/**
*
* The value of dispatch deadline is invalid or is exceeding the limits.
*
*
* INVALID_DISPATCH_DEADLINE = 29;
*/
public static final int INVALID_DISPATCH_DEADLINE_VALUE = 29;
/**
*
* Reserved range for the Datastore error codes.
* Original Datastore error code is shifted by DATASTORE_ERROR offset.
*
*
* DATASTORE_ERROR = 10000;
*/
public static final int DATASTORE_ERROR_VALUE = 10000;
/**
*
* Explicitly list the shifted datastore error codes. A test will detect if
* the values here get out of sync with the original ones in
* datastore_v3.proto. By listing the error codes we ensure that they can
* safely be translated into Java enum values.
*
*
* DATASTORE_BAD_REQUEST = 10001;
*/
public static final int DATASTORE_BAD_REQUEST_VALUE = 10001;
/**
* DATASTORE_CONCURRENT_TRANSACTION = 10002;
*/
public static final int DATASTORE_CONCURRENT_TRANSACTION_VALUE = 10002;
/**
* DATASTORE_INTERNAL_ERROR = 10003;
*/
public static final int DATASTORE_INTERNAL_ERROR_VALUE = 10003;
/**
* DATASTORE_NEED_INDEX = 10004;
*/
public static final int DATASTORE_NEED_INDEX_VALUE = 10004;
/**
* DATASTORE_TIMEOUT = 10005;
*/
public static final int DATASTORE_TIMEOUT_VALUE = 10005;
/**
* DATASTORE_PERMISSION_DENIED = 10006;
*/
public static final int DATASTORE_PERMISSION_DENIED_VALUE = 10006;
/**
* DATASTORE_BIGTABLE_ERROR = 10007;
*/
public static final int DATASTORE_BIGTABLE_ERROR_VALUE = 10007;
/**
* DATASTORE_COMMITTED_BUT_STILL_APPLYING = 10008;
*/
public static final int DATASTORE_COMMITTED_BUT_STILL_APPLYING_VALUE = 10008;
/**
* DATASTORE_CAPABILITY_DISABLED = 10009;
*/
public static final int DATASTORE_CAPABILITY_DISABLED_VALUE = 10009;
/**
* DATASTORE_TRY_ALTERNATE_BACKEND = 10010;
*/
public static final int DATASTORE_TRY_ALTERNATE_BACKEND_VALUE = 10010;
/**
* DATASTORE_SAFE_TIME_TOO_OLD = 10011;
*/
public static final int DATASTORE_SAFE_TIME_TOO_OLD_VALUE = 10011;
/**
* DATASTORE_RESOURCE_EXHAUSTED = 10012;
*/
public static final int DATASTORE_RESOURCE_EXHAUSTED_VALUE = 10012;
/**
* DATASTORE_NOT_FOUND = 10013;
*/
public static final int DATASTORE_NOT_FOUND_VALUE = 10013;
/**
* DATASTORE_ALREADY_EXISTS = 10014;
*/
public static final int DATASTORE_ALREADY_EXISTS_VALUE = 10014;
/**
* DATASTORE_FAILED_PRECONDITION = 10015;
*/
public static final int DATASTORE_FAILED_PRECONDITION_VALUE = 10015;
/**
* DATASTORE_UNAUTHENTICATED = 10016;
*/
public static final int DATASTORE_UNAUTHENTICATED_VALUE = 10016;
/**
* DATASTORE_ABORTED = 10017;
*/
public static final int DATASTORE_ABORTED_VALUE = 10017;
/**
* DATASTORE_SNAPSHOT_VERSION_TOO_OLD = 10018;
*/
public static final int DATASTORE_SNAPSHOT_VERSION_TOO_OLD_VALUE = 10018;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ErrorCode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ErrorCode forNumber(int value) {
switch (value) {
case 0: return OK;
case 1: return UNKNOWN_QUEUE;
case 2: return TRANSIENT_ERROR;
case 3: return INTERNAL_ERROR;
case 4: return TASK_TOO_LARGE;
case 5: return INVALID_TASK_NAME;
case 6: return INVALID_QUEUE_NAME;
case 7: return INVALID_URL;
case 8: return INVALID_QUEUE_RATE;
case 9: return PERMISSION_DENIED;
case 10: return TASK_ALREADY_EXISTS;
case 11: return TOMBSTONED_TASK;
case 12: return INVALID_ETA;
case 13: return INVALID_REQUEST;
case 14: return UNKNOWN_TASK;
case 15: return TOMBSTONED_QUEUE;
case 16: return DUPLICATE_TASK_NAME;
case 17: return SKIPPED;
case 18: return TOO_MANY_TASKS;
case 19: return INVALID_PAYLOAD;
case 20: return INVALID_RETRY_PARAMETERS;
case 21: return INVALID_QUEUE_MODE;
case 22: return ACL_LOOKUP_ERROR;
case 23: return TRANSACTIONAL_REQUEST_TOO_LARGE;
case 24: return INCORRECT_CREATOR_NAME;
case 25: return TASK_LEASE_EXPIRED;
case 26: return QUEUE_PAUSED;
case 27: return INVALID_TAG;
case 28: return INVALID_LOGGING_CONFIG;
case 29: return INVALID_DISPATCH_DEADLINE;
case 10000: return DATASTORE_ERROR;
case 10001: return DATASTORE_BAD_REQUEST;
case 10002: return DATASTORE_CONCURRENT_TRANSACTION;
case 10003: return DATASTORE_INTERNAL_ERROR;
case 10004: return DATASTORE_NEED_INDEX;
case 10005: return DATASTORE_TIMEOUT;
case 10006: return DATASTORE_PERMISSION_DENIED;
case 10007: return DATASTORE_BIGTABLE_ERROR;
case 10008: return DATASTORE_COMMITTED_BUT_STILL_APPLYING;
case 10009: return DATASTORE_CAPABILITY_DISABLED;
case 10010: return DATASTORE_TRY_ALTERNATE_BACKEND;
case 10011: return DATASTORE_SAFE_TIME_TOO_OLD;
case 10012: return DATASTORE_RESOURCE_EXHAUSTED;
case 10013: return DATASTORE_NOT_FOUND;
case 10014: return DATASTORE_ALREADY_EXISTS;
case 10015: return DATASTORE_FAILED_PRECONDITION;
case 10016: return DATASTORE_UNAUTHENTICATED;
case 10017: return DATASTORE_ABORTED;
case 10018: return DATASTORE_SNAPSHOT_VERSION_TOO_OLD;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ErrorCode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ErrorCode findValueByNumber(int number) {
return ErrorCode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.getDescriptor().getEnumTypes().get(0);
}
private static final ErrorCode[] VALUES = values();
public static ErrorCode 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 value;
private ErrorCode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:java.apphosting.TaskQueueServiceError.ErrorCode)
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError)) {
return super.equals(obj);
}
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError other = (com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code java.apphosting.TaskQueueServiceError}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.TaskQueueServiceError)
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceErrorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueServiceError_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueServiceError_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.Builder.class);
}
// Construct using com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueServiceError_descriptor;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError getDefaultInstanceForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError build() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError buildPartial() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError result = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError) {
return mergeFrom((com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError other) {
if (other == com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.TaskQueueServiceError)
}
// @@protoc_insertion_point(class_scope:java.apphosting.TaskQueueServiceError)
private static final com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError();
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaskQueueServiceError parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TaskPayloadOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.TaskPayload)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* Base message for generic task payload. Http & cron payloads haven't been
* refactored yet.
*
*
* Protobuf type {@code java.apphosting.TaskPayload}
*/
public static final class TaskPayload extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.TaskPayload)
TaskPayloadOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaskPayload.newBuilder() to construct.
private TaskPayload(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TaskPayload() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TaskPayload();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskPayload_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskPayload_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload.Builder.class);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getUnknownFields().writeAsMessageSetTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSizeAsMessageSet();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload)) {
return super.equals(obj);
}
com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload other = (com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Base message for generic task payload. Http & cron payloads haven't been
* refactored yet.
*
*
* Protobuf type {@code java.apphosting.TaskPayload}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.TaskPayload)
com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayloadOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskPayload_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskPayload_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload.Builder.class);
}
// Construct using com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskPayload_descriptor;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload getDefaultInstanceForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload build() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload buildPartial() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload result = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload) {
return mergeFrom((com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload other) {
if (other == com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.TaskPayload)
}
// @@protoc_insertion_point(class_scope:java.apphosting.TaskPayload)
private static final com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload();
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaskPayload parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TaskQueueRetryParametersOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.TaskQueueRetryParameters)
com.google.protobuf.MessageOrBuilder {
/**
*
* The maxiumum number of times this operation can be retried before failing
* permanently. Note: if both retry_limit and age_limit_sec are
* present, then we fail permanently only when both limits have been reached.
*
*
* optional int32 retry_limit = 1;
* @return Whether the retryLimit field is set.
*/
boolean hasRetryLimit();
/**
*
* The maxiumum number of times this operation can be retried before failing
* permanently. Note: if both retry_limit and age_limit_sec are
* present, then we fail permanently only when both limits have been reached.
*
*
* optional int32 retry_limit = 1;
* @return The retryLimit.
*/
int getRetryLimit();
/**
*
* The maximum time since the first try of this operation that can pass before
* failing permanently. Note: if both retry_limit and age_limit_sec are
* present, then we fail permanently only when both limits have been reached.
*
*
* optional int64 age_limit_sec = 2;
* @return Whether the ageLimitSec field is set.
*/
boolean hasAgeLimitSec();
/**
*
* The maximum time since the first try of this operation that can pass before
* failing permanently. Note: if both retry_limit and age_limit_sec are
* present, then we fail permanently only when both limits have been reached.
*
*
* optional int64 age_limit_sec = 2;
* @return The ageLimitSec.
*/
long getAgeLimitSec();
/**
*
* The minimum time interval after a failure of an operation at which we can
* schudule a retry of that operation.
*
*
* optional double min_backoff_sec = 3 [default = 0.1];
* @return Whether the minBackoffSec field is set.
*/
boolean hasMinBackoffSec();
/**
*
* The minimum time interval after a failure of an operation at which we can
* schudule a retry of that operation.
*
* The maximum number of times the current retry interval will be
* doubled before the interval increases linearly.
* A task's retry interval starts at min_backoff_sec, then doubles
* max_doublings times, then increases linearly, and finally retries
* are made at intervals of max_backoff_sec until the retry_limit is
* reached. Thus after max_doublings intervals, the retry interval
* will be 2^(max_doublings - 1) * min_backoff_sec, and then the
* retry interval will be linearly increased by 2^max_doublings *
* min_backoff_sec, until max_backoff_sec is reached.
* For example, if min_backoff_sec is 10s, max_backoff_sec is 300s,
* and max_doublings is 3, then the a task will first be retried in
* 10s. The retry interval will double three times, and then
* increase linearly by 2^3 * 10s, and then stay constant at
* 300s. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
* 240s, 300s, 300s, ....
*
*
* optional int32 max_doublings = 5 [default = 16];
* @return Whether the maxDoublings field is set.
*/
boolean hasMaxDoublings();
/**
*
* The maximum number of times the current retry interval will be
* doubled before the interval increases linearly.
* A task's retry interval starts at min_backoff_sec, then doubles
* max_doublings times, then increases linearly, and finally retries
* are made at intervals of max_backoff_sec until the retry_limit is
* reached. Thus after max_doublings intervals, the retry interval
* will be 2^(max_doublings - 1) * min_backoff_sec, and then the
* retry interval will be linearly increased by 2^max_doublings *
* min_backoff_sec, until max_backoff_sec is reached.
* For example, if min_backoff_sec is 10s, max_backoff_sec is 300s,
* and max_doublings is 3, then the a task will first be retried in
* 10s. The retry interval will double three times, and then
* increase linearly by 2^3 * 10s, and then stay constant at
* 300s. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
* 240s, 300s, 300s, ....
*
*
* optional int32 max_doublings = 5 [default = 16];
* @return The maxDoublings.
*/
int getMaxDoublings();
}
/**
* Protobuf type {@code java.apphosting.TaskQueueRetryParameters}
*/
public static final class TaskQueueRetryParameters extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.TaskQueueRetryParameters)
TaskQueueRetryParametersOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaskQueueRetryParameters.newBuilder() to construct.
private TaskQueueRetryParameters(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TaskQueueRetryParameters() {
minBackoffSec_ = 0.1D;
maxBackoffSec_ = 3600D;
maxDoublings_ = 16;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TaskQueueRetryParameters();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueRetryParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueRetryParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters.Builder.class);
}
private int bitField0_;
public static final int RETRY_LIMIT_FIELD_NUMBER = 1;
private int retryLimit_ = 0;
/**
*
* The maxiumum number of times this operation can be retried before failing
* permanently. Note: if both retry_limit and age_limit_sec are
* present, then we fail permanently only when both limits have been reached.
*
*
* optional int32 retry_limit = 1;
* @return Whether the retryLimit field is set.
*/
@java.lang.Override
public boolean hasRetryLimit() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The maxiumum number of times this operation can be retried before failing
* permanently. Note: if both retry_limit and age_limit_sec are
* present, then we fail permanently only when both limits have been reached.
*
*
* optional int32 retry_limit = 1;
* @return The retryLimit.
*/
@java.lang.Override
public int getRetryLimit() {
return retryLimit_;
}
public static final int AGE_LIMIT_SEC_FIELD_NUMBER = 2;
private long ageLimitSec_ = 0L;
/**
*
* The maximum time since the first try of this operation that can pass before
* failing permanently. Note: if both retry_limit and age_limit_sec are
* present, then we fail permanently only when both limits have been reached.
*
*
* optional int64 age_limit_sec = 2;
* @return Whether the ageLimitSec field is set.
*/
@java.lang.Override
public boolean hasAgeLimitSec() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The maximum time since the first try of this operation that can pass before
* failing permanently. Note: if both retry_limit and age_limit_sec are
* present, then we fail permanently only when both limits have been reached.
*
*
* optional int64 age_limit_sec = 2;
* @return The ageLimitSec.
*/
@java.lang.Override
public long getAgeLimitSec() {
return ageLimitSec_;
}
public static final int MIN_BACKOFF_SEC_FIELD_NUMBER = 3;
private double minBackoffSec_ = 0.1D;
/**
*
* The minimum time interval after a failure of an operation at which we can
* schudule a retry of that operation.
*
*
* optional double min_backoff_sec = 3 [default = 0.1];
* @return Whether the minBackoffSec field is set.
*/
@java.lang.Override
public boolean hasMinBackoffSec() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The minimum time interval after a failure of an operation at which we can
* schudule a retry of that operation.
*
*
* optional double min_backoff_sec = 3 [default = 0.1];
* @return The minBackoffSec.
*/
@java.lang.Override
public double getMinBackoffSec() {
return minBackoffSec_;
}
public static final int MAX_BACKOFF_SEC_FIELD_NUMBER = 4;
private double maxBackoffSec_ = 3600D;
/**
*
* The maximum time interval after a failure of an operation at which we can
* schudule a retry of that operation.
*
*
* optional double max_backoff_sec = 4 [default = 3600];
* @return Whether the maxBackoffSec field is set.
*/
@java.lang.Override
public boolean hasMaxBackoffSec() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The maximum time interval after a failure of an operation at which we can
* schudule a retry of that operation.
*
*
* optional double max_backoff_sec = 4 [default = 3600];
* @return The maxBackoffSec.
*/
@java.lang.Override
public double getMaxBackoffSec() {
return maxBackoffSec_;
}
public static final int MAX_DOUBLINGS_FIELD_NUMBER = 5;
private int maxDoublings_ = 16;
/**
*
* The maximum number of times the current retry interval will be
* doubled before the interval increases linearly.
* A task's retry interval starts at min_backoff_sec, then doubles
* max_doublings times, then increases linearly, and finally retries
* are made at intervals of max_backoff_sec until the retry_limit is
* reached. Thus after max_doublings intervals, the retry interval
* will be 2^(max_doublings - 1) * min_backoff_sec, and then the
* retry interval will be linearly increased by 2^max_doublings *
* min_backoff_sec, until max_backoff_sec is reached.
* For example, if min_backoff_sec is 10s, max_backoff_sec is 300s,
* and max_doublings is 3, then the a task will first be retried in
* 10s. The retry interval will double three times, and then
* increase linearly by 2^3 * 10s, and then stay constant at
* 300s. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
* 240s, 300s, 300s, ....
*
*
* optional int32 max_doublings = 5 [default = 16];
* @return Whether the maxDoublings field is set.
*/
@java.lang.Override
public boolean hasMaxDoublings() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* The maximum number of times the current retry interval will be
* doubled before the interval increases linearly.
* A task's retry interval starts at min_backoff_sec, then doubles
* max_doublings times, then increases linearly, and finally retries
* are made at intervals of max_backoff_sec until the retry_limit is
* reached. Thus after max_doublings intervals, the retry interval
* will be 2^(max_doublings - 1) * min_backoff_sec, and then the
* retry interval will be linearly increased by 2^max_doublings *
* min_backoff_sec, until max_backoff_sec is reached.
* For example, if min_backoff_sec is 10s, max_backoff_sec is 300s,
* and max_doublings is 3, then the a task will first be retried in
* 10s. The retry interval will double three times, and then
* increase linearly by 2^3 * 10s, and then stay constant at
* 300s. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
* 240s, 300s, 300s, ....
*
*
* optional int32 max_doublings = 5 [default = 16];
* @return The maxDoublings.
*/
@java.lang.Override
public int getMaxDoublings() {
return maxDoublings_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt32(1, retryLimit_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(2, ageLimitSec_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeDouble(3, minBackoffSec_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeDouble(4, maxBackoffSec_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt32(5, maxDoublings_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, retryLimit_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, ageLimitSec_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, minBackoffSec_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, maxBackoffSec_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, maxDoublings_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters)) {
return super.equals(obj);
}
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters other = (com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters) obj;
if (hasRetryLimit() != other.hasRetryLimit()) return false;
if (hasRetryLimit()) {
if (getRetryLimit()
!= other.getRetryLimit()) return false;
}
if (hasAgeLimitSec() != other.hasAgeLimitSec()) return false;
if (hasAgeLimitSec()) {
if (getAgeLimitSec()
!= other.getAgeLimitSec()) return false;
}
if (hasMinBackoffSec() != other.hasMinBackoffSec()) return false;
if (hasMinBackoffSec()) {
if (java.lang.Double.doubleToLongBits(getMinBackoffSec())
!= java.lang.Double.doubleToLongBits(
other.getMinBackoffSec())) return false;
}
if (hasMaxBackoffSec() != other.hasMaxBackoffSec()) return false;
if (hasMaxBackoffSec()) {
if (java.lang.Double.doubleToLongBits(getMaxBackoffSec())
!= java.lang.Double.doubleToLongBits(
other.getMaxBackoffSec())) return false;
}
if (hasMaxDoublings() != other.hasMaxDoublings()) return false;
if (hasMaxDoublings()) {
if (getMaxDoublings()
!= other.getMaxDoublings()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasRetryLimit()) {
hash = (37 * hash) + RETRY_LIMIT_FIELD_NUMBER;
hash = (53 * hash) + getRetryLimit();
}
if (hasAgeLimitSec()) {
hash = (37 * hash) + AGE_LIMIT_SEC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAgeLimitSec());
}
if (hasMinBackoffSec()) {
hash = (37 * hash) + MIN_BACKOFF_SEC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getMinBackoffSec()));
}
if (hasMaxBackoffSec()) {
hash = (37 * hash) + MAX_BACKOFF_SEC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getMaxBackoffSec()));
}
if (hasMaxDoublings()) {
hash = (37 * hash) + MAX_DOUBLINGS_FIELD_NUMBER;
hash = (53 * hash) + getMaxDoublings();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code java.apphosting.TaskQueueRetryParameters}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.TaskQueueRetryParameters)
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParametersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueRetryParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueRetryParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters.Builder.class);
}
// Construct using com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
retryLimit_ = 0;
ageLimitSec_ = 0L;
minBackoffSec_ = 0.1D;
maxBackoffSec_ = 3600D;
maxDoublings_ = 16;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueRetryParameters_descriptor;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters getDefaultInstanceForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters build() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters buildPartial() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters result = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.retryLimit_ = retryLimit_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.ageLimitSec_ = ageLimitSec_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.minBackoffSec_ = minBackoffSec_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.maxBackoffSec_ = maxBackoffSec_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.maxDoublings_ = maxDoublings_;
to_bitField0_ |= 0x00000010;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters) {
return mergeFrom((com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters other) {
if (other == com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters.getDefaultInstance()) return this;
if (other.hasRetryLimit()) {
setRetryLimit(other.getRetryLimit());
}
if (other.hasAgeLimitSec()) {
setAgeLimitSec(other.getAgeLimitSec());
}
if (other.hasMinBackoffSec()) {
setMinBackoffSec(other.getMinBackoffSec());
}
if (other.hasMaxBackoffSec()) {
setMaxBackoffSec(other.getMaxBackoffSec());
}
if (other.hasMaxDoublings()) {
setMaxDoublings(other.getMaxDoublings());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
retryLimit_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
ageLimitSec_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 25: {
minBackoffSec_ = input.readDouble();
bitField0_ |= 0x00000004;
break;
} // case 25
case 33: {
maxBackoffSec_ = input.readDouble();
bitField0_ |= 0x00000008;
break;
} // case 33
case 40: {
maxDoublings_ = input.readInt32();
bitField0_ |= 0x00000010;
break;
} // case 40
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int retryLimit_ ;
/**
*
* The maxiumum number of times this operation can be retried before failing
* permanently. Note: if both retry_limit and age_limit_sec are
* present, then we fail permanently only when both limits have been reached.
*
*
* optional int32 retry_limit = 1;
* @return Whether the retryLimit field is set.
*/
@java.lang.Override
public boolean hasRetryLimit() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The maxiumum number of times this operation can be retried before failing
* permanently. Note: if both retry_limit and age_limit_sec are
* present, then we fail permanently only when both limits have been reached.
*
*
* optional int32 retry_limit = 1;
* @return The retryLimit.
*/
@java.lang.Override
public int getRetryLimit() {
return retryLimit_;
}
/**
*
* The maxiumum number of times this operation can be retried before failing
* permanently. Note: if both retry_limit and age_limit_sec are
* present, then we fail permanently only when both limits have been reached.
*
*
* optional int32 retry_limit = 1;
* @param value The retryLimit to set.
* @return This builder for chaining.
*/
public Builder setRetryLimit(int value) {
retryLimit_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The maxiumum number of times this operation can be retried before failing
* permanently. Note: if both retry_limit and age_limit_sec are
* present, then we fail permanently only when both limits have been reached.
*
*
* optional int32 retry_limit = 1;
* @return This builder for chaining.
*/
public Builder clearRetryLimit() {
bitField0_ = (bitField0_ & ~0x00000001);
retryLimit_ = 0;
onChanged();
return this;
}
private long ageLimitSec_ ;
/**
*
* The maximum time since the first try of this operation that can pass before
* failing permanently. Note: if both retry_limit and age_limit_sec are
* present, then we fail permanently only when both limits have been reached.
*
*
* optional int64 age_limit_sec = 2;
* @return Whether the ageLimitSec field is set.
*/
@java.lang.Override
public boolean hasAgeLimitSec() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The maximum time since the first try of this operation that can pass before
* failing permanently. Note: if both retry_limit and age_limit_sec are
* present, then we fail permanently only when both limits have been reached.
*
*
* optional int64 age_limit_sec = 2;
* @return The ageLimitSec.
*/
@java.lang.Override
public long getAgeLimitSec() {
return ageLimitSec_;
}
/**
*
* The maximum time since the first try of this operation that can pass before
* failing permanently. Note: if both retry_limit and age_limit_sec are
* present, then we fail permanently only when both limits have been reached.
*
*
* optional int64 age_limit_sec = 2;
* @param value The ageLimitSec to set.
* @return This builder for chaining.
*/
public Builder setAgeLimitSec(long value) {
ageLimitSec_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The maximum time since the first try of this operation that can pass before
* failing permanently. Note: if both retry_limit and age_limit_sec are
* present, then we fail permanently only when both limits have been reached.
*
* The maximum time interval after a failure of an operation at which we can
* schudule a retry of that operation.
*
*
* optional double max_backoff_sec = 4 [default = 3600];
* @param value The maxBackoffSec to set.
* @return This builder for chaining.
*/
public Builder setMaxBackoffSec(double value) {
maxBackoffSec_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The maximum time interval after a failure of an operation at which we can
* schudule a retry of that operation.
*
*
* optional double max_backoff_sec = 4 [default = 3600];
* @return This builder for chaining.
*/
public Builder clearMaxBackoffSec() {
bitField0_ = (bitField0_ & ~0x00000008);
maxBackoffSec_ = 3600D;
onChanged();
return this;
}
private int maxDoublings_ = 16;
/**
*
* The maximum number of times the current retry interval will be
* doubled before the interval increases linearly.
* A task's retry interval starts at min_backoff_sec, then doubles
* max_doublings times, then increases linearly, and finally retries
* are made at intervals of max_backoff_sec until the retry_limit is
* reached. Thus after max_doublings intervals, the retry interval
* will be 2^(max_doublings - 1) * min_backoff_sec, and then the
* retry interval will be linearly increased by 2^max_doublings *
* min_backoff_sec, until max_backoff_sec is reached.
* For example, if min_backoff_sec is 10s, max_backoff_sec is 300s,
* and max_doublings is 3, then the a task will first be retried in
* 10s. The retry interval will double three times, and then
* increase linearly by 2^3 * 10s, and then stay constant at
* 300s. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
* 240s, 300s, 300s, ....
*
*
* optional int32 max_doublings = 5 [default = 16];
* @return Whether the maxDoublings field is set.
*/
@java.lang.Override
public boolean hasMaxDoublings() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* The maximum number of times the current retry interval will be
* doubled before the interval increases linearly.
* A task's retry interval starts at min_backoff_sec, then doubles
* max_doublings times, then increases linearly, and finally retries
* are made at intervals of max_backoff_sec until the retry_limit is
* reached. Thus after max_doublings intervals, the retry interval
* will be 2^(max_doublings - 1) * min_backoff_sec, and then the
* retry interval will be linearly increased by 2^max_doublings *
* min_backoff_sec, until max_backoff_sec is reached.
* For example, if min_backoff_sec is 10s, max_backoff_sec is 300s,
* and max_doublings is 3, then the a task will first be retried in
* 10s. The retry interval will double three times, and then
* increase linearly by 2^3 * 10s, and then stay constant at
* 300s. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
* 240s, 300s, 300s, ....
*
*
* optional int32 max_doublings = 5 [default = 16];
* @return The maxDoublings.
*/
@java.lang.Override
public int getMaxDoublings() {
return maxDoublings_;
}
/**
*
* The maximum number of times the current retry interval will be
* doubled before the interval increases linearly.
* A task's retry interval starts at min_backoff_sec, then doubles
* max_doublings times, then increases linearly, and finally retries
* are made at intervals of max_backoff_sec until the retry_limit is
* reached. Thus after max_doublings intervals, the retry interval
* will be 2^(max_doublings - 1) * min_backoff_sec, and then the
* retry interval will be linearly increased by 2^max_doublings *
* min_backoff_sec, until max_backoff_sec is reached.
* For example, if min_backoff_sec is 10s, max_backoff_sec is 300s,
* and max_doublings is 3, then the a task will first be retried in
* 10s. The retry interval will double three times, and then
* increase linearly by 2^3 * 10s, and then stay constant at
* 300s. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
* 240s, 300s, 300s, ....
*
*
* optional int32 max_doublings = 5 [default = 16];
* @param value The maxDoublings to set.
* @return This builder for chaining.
*/
public Builder setMaxDoublings(int value) {
maxDoublings_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* The maximum number of times the current retry interval will be
* doubled before the interval increases linearly.
* A task's retry interval starts at min_backoff_sec, then doubles
* max_doublings times, then increases linearly, and finally retries
* are made at intervals of max_backoff_sec until the retry_limit is
* reached. Thus after max_doublings intervals, the retry interval
* will be 2^(max_doublings - 1) * min_backoff_sec, and then the
* retry interval will be linearly increased by 2^max_doublings *
* min_backoff_sec, until max_backoff_sec is reached.
* For example, if min_backoff_sec is 10s, max_backoff_sec is 300s,
* and max_doublings is 3, then the a task will first be retried in
* 10s. The retry interval will double three times, and then
* increase linearly by 2^3 * 10s, and then stay constant at
* 300s. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
* 240s, 300s, 300s, ....
*
*
* optional int32 max_doublings = 5 [default = 16];
* @return This builder for chaining.
*/
public Builder clearMaxDoublings() {
bitField0_ = (bitField0_ & ~0x00000010);
maxDoublings_ = 16;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.TaskQueueRetryParameters)
}
// @@protoc_insertion_point(class_scope:java.apphosting.TaskQueueRetryParameters)
private static final com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters();
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaskQueueRetryParameters parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TaskQueueAclOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.TaskQueueAcl)
com.google.protobuf.MessageOrBuilder {
/**
*
* User email addresses must correspond to a GAIA account. These users can
* lease and delete from the queue.
*
*
* repeated bytes user_email = 1;
* @return A list containing the userEmail.
*/
java.util.List getUserEmailList();
/**
*
* User email addresses must correspond to a GAIA account. These users can
* lease and delete from the queue.
*
*
* repeated bytes user_email = 1;
* @return The count of userEmail.
*/
int getUserEmailCount();
/**
*
* User email addresses must correspond to a GAIA account. These users can
* lease and delete from the queue.
*
*
* repeated bytes user_email = 1;
* @param index The index of the element to return.
* @return The userEmail at the given index.
*/
com.google.protobuf.ByteString getUserEmail(int index);
/**
*
* Writer email addresses must correspond to a GAIA account. These users can
* add tasks to the queue.
*
*
* repeated bytes writer_email = 2;
* @return A list containing the writerEmail.
*/
java.util.List getWriterEmailList();
/**
*
* Writer email addresses must correspond to a GAIA account. These users can
* add tasks to the queue.
*
*
* repeated bytes writer_email = 2;
* @return The count of writerEmail.
*/
int getWriterEmailCount();
/**
*
* Writer email addresses must correspond to a GAIA account. These users can
* add tasks to the queue.
*
*
* repeated bytes writer_email = 2;
* @param index The index of the element to return.
* @return The writerEmail at the given index.
*/
com.google.protobuf.ByteString getWriterEmail(int index);
}
/**
* Protobuf type {@code java.apphosting.TaskQueueAcl}
*/
public static final class TaskQueueAcl extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.TaskQueueAcl)
TaskQueueAclOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaskQueueAcl.newBuilder() to construct.
private TaskQueueAcl(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TaskQueueAcl() {
userEmail_ = java.util.Collections.emptyList();
writerEmail_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TaskQueueAcl();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueAcl_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueAcl_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl.Builder.class);
}
public static final int USER_EMAIL_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List userEmail_;
/**
*
* User email addresses must correspond to a GAIA account. These users can
* lease and delete from the queue.
*
*
* repeated bytes user_email = 1;
* @return A list containing the userEmail.
*/
@java.lang.Override
public java.util.List
getUserEmailList() {
return userEmail_;
}
/**
*
* User email addresses must correspond to a GAIA account. These users can
* lease and delete from the queue.
*
*
* repeated bytes user_email = 1;
* @return The count of userEmail.
*/
public int getUserEmailCount() {
return userEmail_.size();
}
/**
*
* User email addresses must correspond to a GAIA account. These users can
* lease and delete from the queue.
*
*
* repeated bytes user_email = 1;
* @param index The index of the element to return.
* @return The userEmail at the given index.
*/
public com.google.protobuf.ByteString getUserEmail(int index) {
return userEmail_.get(index);
}
public static final int WRITER_EMAIL_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List writerEmail_;
/**
*
* Writer email addresses must correspond to a GAIA account. These users can
* add tasks to the queue.
*
*
* repeated bytes writer_email = 2;
* @return A list containing the writerEmail.
*/
@java.lang.Override
public java.util.List
getWriterEmailList() {
return writerEmail_;
}
/**
*
* Writer email addresses must correspond to a GAIA account. These users can
* add tasks to the queue.
*
*
* repeated bytes writer_email = 2;
* @return The count of writerEmail.
*/
public int getWriterEmailCount() {
return writerEmail_.size();
}
/**
*
* Writer email addresses must correspond to a GAIA account. These users can
* add tasks to the queue.
*
*
* repeated bytes writer_email = 2;
* @param index The index of the element to return.
* @return The writerEmail at the given index.
*/
public com.google.protobuf.ByteString getWriterEmail(int index) {
return writerEmail_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < userEmail_.size(); i++) {
output.writeBytes(1, userEmail_.get(i));
}
for (int i = 0; i < writerEmail_.size(); i++) {
output.writeBytes(2, writerEmail_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < userEmail_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(userEmail_.get(i));
}
size += dataSize;
size += 1 * getUserEmailList().size();
}
{
int dataSize = 0;
for (int i = 0; i < writerEmail_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(writerEmail_.get(i));
}
size += dataSize;
size += 1 * getWriterEmailList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl)) {
return super.equals(obj);
}
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl other = (com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl) obj;
if (!getUserEmailList()
.equals(other.getUserEmailList())) return false;
if (!getWriterEmailList()
.equals(other.getWriterEmailList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getUserEmailCount() > 0) {
hash = (37 * hash) + USER_EMAIL_FIELD_NUMBER;
hash = (53 * hash) + getUserEmailList().hashCode();
}
if (getWriterEmailCount() > 0) {
hash = (37 * hash) + WRITER_EMAIL_FIELD_NUMBER;
hash = (53 * hash) + getWriterEmailList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code java.apphosting.TaskQueueAcl}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.TaskQueueAcl)
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAclOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueAcl_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueAcl_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl.Builder.class);
}
// Construct using com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
userEmail_ = java.util.Collections.emptyList();
writerEmail_ = java.util.Collections.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueAcl_descriptor;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl getDefaultInstanceForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl build() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl buildPartial() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl result = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl result) {
if (((bitField0_ & 0x00000001) != 0)) {
userEmail_ = java.util.Collections.unmodifiableList(userEmail_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.userEmail_ = userEmail_;
if (((bitField0_ & 0x00000002) != 0)) {
writerEmail_ = java.util.Collections.unmodifiableList(writerEmail_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.writerEmail_ = writerEmail_;
}
private void buildPartial0(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl) {
return mergeFrom((com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl other) {
if (other == com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl.getDefaultInstance()) return this;
if (!other.userEmail_.isEmpty()) {
if (userEmail_.isEmpty()) {
userEmail_ = other.userEmail_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureUserEmailIsMutable();
userEmail_.addAll(other.userEmail_);
}
onChanged();
}
if (!other.writerEmail_.isEmpty()) {
if (writerEmail_.isEmpty()) {
writerEmail_ = other.writerEmail_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureWriterEmailIsMutable();
writerEmail_.addAll(other.writerEmail_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString v = input.readBytes();
ensureUserEmailIsMutable();
userEmail_.add(v);
break;
} // case 10
case 18: {
com.google.protobuf.ByteString v = input.readBytes();
ensureWriterEmailIsMutable();
writerEmail_.add(v);
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List userEmail_ = java.util.Collections.emptyList();
private void ensureUserEmailIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
userEmail_ = new java.util.ArrayList(userEmail_);
bitField0_ |= 0x00000001;
}
}
/**
*
* User email addresses must correspond to a GAIA account. These users can
* lease and delete from the queue.
*
*
* repeated bytes user_email = 1;
* @return A list containing the userEmail.
*/
public java.util.List
getUserEmailList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(userEmail_) : userEmail_;
}
/**
*
* User email addresses must correspond to a GAIA account. These users can
* lease and delete from the queue.
*
*
* repeated bytes user_email = 1;
* @return The count of userEmail.
*/
public int getUserEmailCount() {
return userEmail_.size();
}
/**
*
* User email addresses must correspond to a GAIA account. These users can
* lease and delete from the queue.
*
*
* repeated bytes user_email = 1;
* @param index The index of the element to return.
* @return The userEmail at the given index.
*/
public com.google.protobuf.ByteString getUserEmail(int index) {
return userEmail_.get(index);
}
/**
*
* User email addresses must correspond to a GAIA account. These users can
* lease and delete from the queue.
*
*
* repeated bytes user_email = 1;
* @param index The index to set the value at.
* @param value The userEmail to set.
* @return This builder for chaining.
*/
public Builder setUserEmail(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureUserEmailIsMutable();
userEmail_.set(index, value);
onChanged();
return this;
}
/**
*
* User email addresses must correspond to a GAIA account. These users can
* lease and delete from the queue.
*
*
* repeated bytes user_email = 1;
* @param value The userEmail to add.
* @return This builder for chaining.
*/
public Builder addUserEmail(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureUserEmailIsMutable();
userEmail_.add(value);
onChanged();
return this;
}
/**
*
* User email addresses must correspond to a GAIA account. These users can
* lease and delete from the queue.
*
*
* repeated bytes user_email = 1;
* @param values The userEmail to add.
* @return This builder for chaining.
*/
public Builder addAllUserEmail(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureUserEmailIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, userEmail_);
onChanged();
return this;
}
/**
*
* User email addresses must correspond to a GAIA account. These users can
* lease and delete from the queue.
*
* Writer email addresses must correspond to a GAIA account. These users can
* add tasks to the queue.
*
*
* repeated bytes writer_email = 2;
* @return A list containing the writerEmail.
*/
public java.util.List
getWriterEmailList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(writerEmail_) : writerEmail_;
}
/**
*
* Writer email addresses must correspond to a GAIA account. These users can
* add tasks to the queue.
*
*
* repeated bytes writer_email = 2;
* @return The count of writerEmail.
*/
public int getWriterEmailCount() {
return writerEmail_.size();
}
/**
*
* Writer email addresses must correspond to a GAIA account. These users can
* add tasks to the queue.
*
*
* repeated bytes writer_email = 2;
* @param index The index of the element to return.
* @return The writerEmail at the given index.
*/
public com.google.protobuf.ByteString getWriterEmail(int index) {
return writerEmail_.get(index);
}
/**
*
* Writer email addresses must correspond to a GAIA account. These users can
* add tasks to the queue.
*
*
* repeated bytes writer_email = 2;
* @param index The index to set the value at.
* @param value The writerEmail to set.
* @return This builder for chaining.
*/
public Builder setWriterEmail(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureWriterEmailIsMutable();
writerEmail_.set(index, value);
onChanged();
return this;
}
/**
*
* Writer email addresses must correspond to a GAIA account. These users can
* add tasks to the queue.
*
*
* repeated bytes writer_email = 2;
* @param value The writerEmail to add.
* @return This builder for chaining.
*/
public Builder addWriterEmail(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureWriterEmailIsMutable();
writerEmail_.add(value);
onChanged();
return this;
}
/**
*
* Writer email addresses must correspond to a GAIA account. These users can
* add tasks to the queue.
*
*
* repeated bytes writer_email = 2;
* @param values The writerEmail to add.
* @return This builder for chaining.
*/
public Builder addAllWriterEmail(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureWriterEmailIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, writerEmail_);
onChanged();
return this;
}
/**
*
* Writer email addresses must correspond to a GAIA account. These users can
* add tasks to the queue.
*
*
* repeated bytes writer_email = 2;
* @return This builder for chaining.
*/
public Builder clearWriterEmail() {
writerEmail_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.TaskQueueAcl)
}
// @@protoc_insertion_point(class_scope:java.apphosting.TaskQueueAcl)
private static final com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl();
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaskQueueAcl parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TaskQueueHttpHeaderOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.TaskQueueHttpHeader)
com.google.protobuf.MessageOrBuilder {
/**
* required bytes key = 1;
* @return Whether the key field is set.
*/
boolean hasKey();
/**
* required bytes key = 1;
* @return The key.
*/
com.google.protobuf.ByteString getKey();
/**
* required bytes value = 2;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
* required bytes value = 2;
* @return The value.
*/
com.google.protobuf.ByteString getValue();
}
/**
* Protobuf type {@code java.apphosting.TaskQueueHttpHeader}
*/
public static final class TaskQueueHttpHeader extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.TaskQueueHttpHeader)
TaskQueueHttpHeaderOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaskQueueHttpHeader.newBuilder() to construct.
private TaskQueueHttpHeader(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TaskQueueHttpHeader() {
key_ = com.google.protobuf.ByteString.EMPTY;
value_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TaskQueueHttpHeader();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueHttpHeader_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueHttpHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader.Builder.class);
}
private int bitField0_;
public static final int KEY_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes key = 1;
* @return Whether the key field is set.
*/
@java.lang.Override
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required bytes key = 1;
* @return The key.
*/
@java.lang.Override
public com.google.protobuf.ByteString getKey() {
return key_;
}
public static final int VALUE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required bytes value = 2;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasKey()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasValue()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeBytes(1, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBytes(2, value_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, value_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader)) {
return super.equals(obj);
}
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader other = (com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader) obj;
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (!getKey()
.equals(other.getKey())) return false;
}
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code java.apphosting.TaskQueueHttpHeader}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.TaskQueueHttpHeader)
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeaderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueHttpHeader_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueHttpHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader.Builder.class);
}
// Construct using com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
key_ = com.google.protobuf.ByteString.EMPTY;
value_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueHttpHeader_descriptor;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader getDefaultInstanceForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader build() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader buildPartial() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader result = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.key_ = key_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.value_ = value_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader) {
return mergeFrom((com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader other) {
if (other == com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader.getDefaultInstance()) return this;
if (other.hasKey()) {
setKey(other.getKey());
}
if (other.hasValue()) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasKey()) {
return false;
}
if (!hasValue()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
key_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
value_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes key = 1;
* @return Whether the key field is set.
*/
@java.lang.Override
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required bytes key = 1;
* @return The key.
*/
@java.lang.Override
public com.google.protobuf.ByteString getKey() {
return key_;
}
/**
* required bytes key = 1;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
key_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required bytes key = 1;
* @return This builder for chaining.
*/
public Builder clearKey() {
bitField0_ = (bitField0_ & ~0x00000001);
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required bytes value = 2;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
* required bytes value = 2;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
value_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* required bytes value = 2;
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.TaskQueueHttpHeader)
}
// @@protoc_insertion_point(class_scope:java.apphosting.TaskQueueHttpHeader)
private static final com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader();
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaskQueueHttpHeader parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TaskQueueModeOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.TaskQueueMode)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code java.apphosting.TaskQueueMode}
*/
public static final class TaskQueueMode extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.TaskQueueMode)
TaskQueueModeOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaskQueueMode.newBuilder() to construct.
private TaskQueueMode(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TaskQueueMode() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TaskQueueMode();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueMode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueMode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode.Builder.class);
}
/**
* Protobuf enum {@code java.apphosting.TaskQueueMode.Mode}
*/
public enum Mode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* PUSH = 0;
*/
PUSH(0),
/**
* PULL = 1;
*/
PULL(1),
;
/**
* PUSH = 0;
*/
public static final int PUSH_VALUE = 0;
/**
* PULL = 1;
*/
public static final int PULL_VALUE = 1;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Mode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Mode forNumber(int value) {
switch (value) {
case 0: return PUSH;
case 1: return PULL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Mode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Mode findValueByNumber(int number) {
return Mode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode.getDescriptor().getEnumTypes().get(0);
}
private static final Mode[] VALUES = values();
public static Mode 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 value;
private Mode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:java.apphosting.TaskQueueMode.Mode)
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode)) {
return super.equals(obj);
}
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode other = (com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code java.apphosting.TaskQueueMode}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.TaskQueueMode)
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueModeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueMode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueMode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode.Builder.class);
}
// Construct using com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueMode_descriptor;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode getDefaultInstanceForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode build() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode buildPartial() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode result = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode) {
return mergeFrom((com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode other) {
if (other == com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.TaskQueueMode)
}
// @@protoc_insertion_point(class_scope:java.apphosting.TaskQueueMode)
private static final com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode();
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaskQueueMode parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TaskQueueAddRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.TaskQueueAddRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the queue to add the task to.
*
*
* required bytes queue_name = 1;
* @return Whether the queueName field is set.
*/
boolean hasQueueName();
/**
*
* Cloud Datastore transaction identifier (a serialized
* cloud_datastore.internal.Transaction). If set, AddActions will
* be called on the Cloud Datastore interop API instead of the datastore_v3
* API.
*
*
* optional bytes datastore_transaction = 21;
* @return Whether the datastoreTransaction field is set.
*/
boolean hasDatastoreTransaction();
/**
*
* Cloud Datastore transaction identifier (a serialized
* cloud_datastore.internal.Transaction). If set, AddActions will
* be called on the Cloud Datastore interop API instead of the datastore_v3
* API.
*
* Tag associated with this task. This is used for grouping tasks in a
* queue.
*
*
* optional bytes tag = 19;
* @return Whether the tag field is set.
*/
boolean hasTag();
/**
*
* Tag associated with this task. This is used for grouping tasks in a
* queue.
*
*
* optional bytes tag = 19;
* @return The tag.
*/
com.google.protobuf.ByteString getTag();
/**
* optional .java.apphosting.TaskQueueRetryParameters cron_retry_parameters = 20;
* @return Whether the cronRetryParameters field is set.
*/
boolean hasCronRetryParameters();
/**
* optional .java.apphosting.TaskQueueRetryParameters cron_retry_parameters = 20;
* @return The cronRetryParameters.
*/
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters getCronRetryParameters();
/**
* optional .java.apphosting.TaskQueueRetryParameters cron_retry_parameters = 20;
*/
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParametersOrBuilder getCronRetryParametersOrBuilder();
/**
*
* The deadline for requests sent to the worker. If the worker does not
* respond by this deadline then the request is cancelled and the attempt
* is marked as a `DEADLINE_EXCEEDED` failure. The task will be retried based
* on the retry configuration.
*
*
* optional int64 dispatch_deadline_usec = 22;
* @return Whether the dispatchDeadlineUsec field is set.
*/
boolean hasDispatchDeadlineUsec();
/**
*
* The deadline for requests sent to the worker. If the worker does not
* respond by this deadline then the request is cancelled and the attempt
* is marked as a `DEADLINE_EXCEEDED` failure. The task will be retried based
* on the retry configuration.
*
*
* optional int64 dispatch_deadline_usec = 22;
* @return The dispatchDeadlineUsec.
*/
long getDispatchDeadlineUsec();
}
/**
* Protobuf type {@code java.apphosting.TaskQueueAddRequest}
*/
public static final class TaskQueueAddRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.TaskQueueAddRequest)
TaskQueueAddRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaskQueueAddRequest.newBuilder() to construct.
private TaskQueueAddRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TaskQueueAddRequest() {
queueName_ = com.google.protobuf.ByteString.EMPTY;
taskName_ = com.google.protobuf.ByteString.EMPTY;
method_ = 2;
url_ = com.google.protobuf.ByteString.EMPTY;
header_ = java.util.Collections.emptyList();
body_ = com.google.protobuf.ByteString.EMPTY;
datastoreTransaction_ = com.google.protobuf.ByteString.EMPTY;
appId_ = com.google.protobuf.ByteString.EMPTY;
description_ = com.google.protobuf.ByteString.EMPTY;
mode_ = 0;
tag_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TaskQueueAddRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueAddRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueAddRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Builder.class);
}
/**
* Protobuf enum {@code java.apphosting.TaskQueueAddRequest.RequestMethod}
*/
public enum RequestMethod
implements com.google.protobuf.ProtocolMessageEnum {
/**
* GET = 1;
*/
GET(1),
/**
* POST = 2;
*/
POST(2),
/**
* HEAD = 3;
*/
HEAD(3),
/**
* PUT = 4;
*/
PUT(4),
/**
* DELETE = 5;
*/
DELETE(5),
;
/**
* GET = 1;
*/
public static final int GET_VALUE = 1;
/**
* POST = 2;
*/
public static final int POST_VALUE = 2;
/**
* HEAD = 3;
*/
public static final int HEAD_VALUE = 3;
/**
* PUT = 4;
*/
public static final int PUT_VALUE = 4;
/**
* DELETE = 5;
*/
public static final int DELETE_VALUE = 5;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static RequestMethod valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static RequestMethod forNumber(int value) {
switch (value) {
case 1: return GET;
case 2: return POST;
case 3: return HEAD;
case 4: return PUT;
case 5: return DELETE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
RequestMethod> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public RequestMethod findValueByNumber(int number) {
return RequestMethod.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.getDescriptor().getEnumTypes().get(0);
}
private static final RequestMethod[] VALUES = values();
public static RequestMethod 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 value;
private RequestMethod(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:java.apphosting.TaskQueueAddRequest.RequestMethod)
}
public interface HeaderOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.TaskQueueAddRequest.Header)
com.google.protobuf.MessageOrBuilder {
/**
* required bytes key = 7;
* @return Whether the key field is set.
*/
boolean hasKey();
/**
* required bytes key = 7;
* @return The key.
*/
com.google.protobuf.ByteString getKey();
/**
* required bytes value = 8;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
* required bytes value = 8;
* @return The value.
*/
com.google.protobuf.ByteString getValue();
}
/**
*
* Additional headers to include on the task http request. These headers will
* be sanitized, and some may be removed entirely. Please refer to
* taskqueue_service.cc and http_task_runner.cc for details about the
* sanitization done. Most notably:
* * The Host: header is ignored and then set to the host of the request
* making the API call.
* * The User-Agent: header is accepted, but we will append to it.
* * The Referer: header is ignored and then set to the url of the request
* making the API call.
* The most notable thing the client library is expected to add here is
* Content-Type: header, as if none is specified we will default to
* application/octet-stream. Otherwise there are no special expectations here.
*
*
* Protobuf type {@code java.apphosting.TaskQueueAddRequest.Header}
*/
public static final class Header extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.TaskQueueAddRequest.Header)
HeaderOrBuilder {
private static final long serialVersionUID = 0L;
// Use Header.newBuilder() to construct.
private Header(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Header() {
key_ = com.google.protobuf.ByteString.EMPTY;
value_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Header();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueAddRequest_Header_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueAddRequest_Header_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header.Builder.class);
}
private int bitField0_;
public static final int KEY_FIELD_NUMBER = 7;
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes key = 7;
* @return Whether the key field is set.
*/
@java.lang.Override
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required bytes key = 7;
* @return The key.
*/
@java.lang.Override
public com.google.protobuf.ByteString getKey() {
return key_;
}
public static final int VALUE_FIELD_NUMBER = 8;
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes value = 8;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required bytes value = 8;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasKey()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasValue()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeBytes(7, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBytes(8, value_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(8, value_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header)) {
return super.equals(obj);
}
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header other = (com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header) obj;
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (!getKey()
.equals(other.getKey())) return false;
}
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Additional headers to include on the task http request. These headers will
* be sanitized, and some may be removed entirely. Please refer to
* taskqueue_service.cc and http_task_runner.cc for details about the
* sanitization done. Most notably:
* * The Host: header is ignored and then set to the host of the request
* making the API call.
* * The User-Agent: header is accepted, but we will append to it.
* * The Referer: header is ignored and then set to the url of the request
* making the API call.
* The most notable thing the client library is expected to add here is
* Content-Type: header, as if none is specified we will default to
* application/octet-stream. Otherwise there are no special expectations here.
*
*
* Protobuf type {@code java.apphosting.TaskQueueAddRequest.Header}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.TaskQueueAddRequest.Header)
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.HeaderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueAddRequest_Header_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueAddRequest_Header_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header.Builder.class);
}
// Construct using com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
key_ = com.google.protobuf.ByteString.EMPTY;
value_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueAddRequest_Header_descriptor;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header getDefaultInstanceForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header build() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header buildPartial() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header result = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.key_ = key_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.value_ = value_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header) {
return mergeFrom((com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header other) {
if (other == com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header.getDefaultInstance()) return this;
if (other.hasKey()) {
setKey(other.getKey());
}
if (other.hasValue()) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasKey()) {
return false;
}
if (!hasValue()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 58: {
key_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 58
case 66: {
value_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 66
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes key = 7;
* @return Whether the key field is set.
*/
@java.lang.Override
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required bytes key = 7;
* @return The key.
*/
@java.lang.Override
public com.google.protobuf.ByteString getKey() {
return key_;
}
/**
* required bytes key = 7;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
key_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required bytes key = 7;
* @return This builder for chaining.
*/
public Builder clearKey() {
bitField0_ = (bitField0_ & ~0x00000001);
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes value = 8;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required bytes value = 8;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
* required bytes value = 8;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
value_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* required bytes value = 8;
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.TaskQueueAddRequest.Header)
}
// @@protoc_insertion_point(class_scope:java.apphosting.TaskQueueAddRequest.Header)
private static final com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header();
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Header parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CronTimetableOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.TaskQueueAddRequest.CronTimetable)
com.google.protobuf.MessageOrBuilder {
/**
*
* Task schedule in the groc format.
* For details please refer to //depot/google3/borg/borgcron/groc.g
*
*
* required bytes schedule = 13;
* @return Whether the schedule field is set.
*/
boolean hasSchedule();
/**
*
* Task schedule in the groc format.
* For details please refer to //depot/google3/borg/borgcron/groc.g
*
*
* required bytes schedule = 13;
* @return The schedule.
*/
com.google.protobuf.ByteString getSchedule();
/**
* required bytes timezone = 14;
* @return Whether the timezone field is set.
*/
boolean hasTimezone();
/**
* required bytes timezone = 14;
* @return The timezone.
*/
com.google.protobuf.ByteString getTimezone();
}
/**
*
* Timetable of recurrent task, currently only works for admin console.
*
*
* Protobuf type {@code java.apphosting.TaskQueueAddRequest.CronTimetable}
*/
public static final class CronTimetable extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.TaskQueueAddRequest.CronTimetable)
CronTimetableOrBuilder {
private static final long serialVersionUID = 0L;
// Use CronTimetable.newBuilder() to construct.
private CronTimetable(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CronTimetable() {
schedule_ = com.google.protobuf.ByteString.EMPTY;
timezone_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CronTimetable();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueAddRequest_CronTimetable_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueAddRequest_CronTimetable_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable.Builder.class);
}
private int bitField0_;
public static final int SCHEDULE_FIELD_NUMBER = 13;
private com.google.protobuf.ByteString schedule_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Task schedule in the groc format.
* For details please refer to //depot/google3/borg/borgcron/groc.g
*
*
* required bytes schedule = 13;
* @return Whether the schedule field is set.
*/
@java.lang.Override
public boolean hasSchedule() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Task schedule in the groc format.
* For details please refer to //depot/google3/borg/borgcron/groc.g
*
*
* required bytes schedule = 13;
* @return The schedule.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSchedule() {
return schedule_;
}
public static final int TIMEZONE_FIELD_NUMBER = 14;
private com.google.protobuf.ByteString timezone_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes timezone = 14;
* @return Whether the timezone field is set.
*/
@java.lang.Override
public boolean hasTimezone() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required bytes timezone = 14;
* @return The timezone.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTimezone() {
return timezone_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasSchedule()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasTimezone()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeBytes(13, schedule_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBytes(14, timezone_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(13, schedule_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(14, timezone_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable)) {
return super.equals(obj);
}
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable other = (com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable) obj;
if (hasSchedule() != other.hasSchedule()) return false;
if (hasSchedule()) {
if (!getSchedule()
.equals(other.getSchedule())) return false;
}
if (hasTimezone() != other.hasTimezone()) return false;
if (hasTimezone()) {
if (!getTimezone()
.equals(other.getTimezone())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasSchedule()) {
hash = (37 * hash) + SCHEDULE_FIELD_NUMBER;
hash = (53 * hash) + getSchedule().hashCode();
}
if (hasTimezone()) {
hash = (37 * hash) + TIMEZONE_FIELD_NUMBER;
hash = (53 * hash) + getTimezone().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Timetable of recurrent task, currently only works for admin console.
*
*
* Protobuf type {@code java.apphosting.TaskQueueAddRequest.CronTimetable}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.TaskQueueAddRequest.CronTimetable)
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetableOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueAddRequest_CronTimetable_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueAddRequest_CronTimetable_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable.Builder.class);
}
// Construct using com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
schedule_ = com.google.protobuf.ByteString.EMPTY;
timezone_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueAddRequest_CronTimetable_descriptor;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable getDefaultInstanceForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable build() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable buildPartial() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable result = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.schedule_ = schedule_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.timezone_ = timezone_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable) {
return mergeFrom((com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable other) {
if (other == com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable.getDefaultInstance()) return this;
if (other.hasSchedule()) {
setSchedule(other.getSchedule());
}
if (other.hasTimezone()) {
setTimezone(other.getTimezone());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasSchedule()) {
return false;
}
if (!hasTimezone()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 106: {
schedule_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 106
case 114: {
timezone_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 114
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString schedule_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Task schedule in the groc format.
* For details please refer to //depot/google3/borg/borgcron/groc.g
*
*
* required bytes schedule = 13;
* @return Whether the schedule field is set.
*/
@java.lang.Override
public boolean hasSchedule() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Task schedule in the groc format.
* For details please refer to //depot/google3/borg/borgcron/groc.g
*
* Transaction reference, see
* http://g3doc/apphosting/g3doc/wiki-carryover/datastore_queues.md.
*
*
* optional .apphosting_datastore_v3.Transaction transaction = 10;
*/
@java.lang.Override
public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.TransactionOrBuilder getTransactionOrBuilder() {
return transaction_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.Transaction.getDefaultInstance() : transaction_;
}
public static final int DATASTORE_TRANSACTION_FIELD_NUMBER = 21;
private com.google.protobuf.ByteString datastoreTransaction_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Cloud Datastore transaction identifier (a serialized
* cloud_datastore.internal.Transaction). If set, AddActions will
* be called on the Cloud Datastore interop API instead of the datastore_v3
* API.
*
*
* optional bytes datastore_transaction = 21;
* @return Whether the datastoreTransaction field is set.
*/
@java.lang.Override
public boolean hasDatastoreTransaction() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Cloud Datastore transaction identifier (a serialized
* cloud_datastore.internal.Transaction). If set, AddActions will
* be called on the Cloud Datastore interop API instead of the datastore_v3
* API.
*
*
* optional bytes datastore_transaction = 21;
* @return The datastoreTransaction.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDatastoreTransaction() {
return datastoreTransaction_;
}
public static final int APP_ID_FIELD_NUMBER = 11;
private com.google.protobuf.ByteString appId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Name of the app_id - only works for admin console.
*
*
* optional bytes app_id = 11;
* @return Whether the appId field is set.
*/
@java.lang.Override
public boolean hasAppId() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Name of the app_id - only works for admin console.
*
*
* optional bytes app_id = 11;
* @return The appId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAppId() {
return appId_;
}
public static final int CRONTIMETABLE_FIELD_NUMBER = 12;
private com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable cronTimetable_;
/**
* optional group CronTimetable = 12 { ... }
* @return Whether the crontimetable field is set.
*/
@java.lang.Override
public boolean hasCronTimetable() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional group CronTimetable = 12 { ... }
* @return The crontimetable.
*/
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable getCronTimetable() {
return cronTimetable_ == null ? com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable.getDefaultInstance() : cronTimetable_;
}
/**
* optional group CronTimetable = 12 { ... }
*/
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetableOrBuilder getCronTimetableOrBuilder() {
return cronTimetable_ == null ? com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.CronTimetable.getDefaultInstance() : cronTimetable_;
}
public static final int DESCRIPTION_FIELD_NUMBER = 15;
private com.google.protobuf.ByteString description_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Human readable description of the task.
*
*
* optional bytes description = 15;
* @return Whether the description field is set.
*/
@java.lang.Override
public boolean hasDescription() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* Human readable description of the task.
*
*
* optional bytes description = 15;
* @return The description.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDescription() {
return description_;
}
public static final int PAYLOAD_FIELD_NUMBER = 16;
private com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload payload_;
/**
*
* Payload for the task. All task payload types will be eventually here.
*
*
* optional .java.apphosting.TaskPayload payload = 16;
* @return Whether the payload field is set.
*/
@java.lang.Override
public boolean hasPayload() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* Payload for the task. All task payload types will be eventually here.
*
* Payload for the task. All task payload types will be eventually here.
*
*
* optional .java.apphosting.TaskPayload payload = 16;
*/
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayloadOrBuilder getPayloadOrBuilder() {
return payload_ == null ? com.google.appengine.api.taskqueue.TaskQueuePb.TaskPayload.getDefaultInstance() : payload_;
}
public static final int RETRY_PARAMETERS_FIELD_NUMBER = 17;
private com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters retryParameters_;
/**
* optional .java.apphosting.TaskQueueRetryParameters retry_parameters = 17;
* @return Whether the retryParameters field is set.
*/
@java.lang.Override
public boolean hasRetryParameters() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional .java.apphosting.TaskQueueRetryParameters retry_parameters = 17;
* @return The retryParameters.
*/
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters getRetryParameters() {
return retryParameters_ == null ? com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters.getDefaultInstance() : retryParameters_;
}
/**
* optional .java.apphosting.TaskQueueRetryParameters retry_parameters = 17;
*/
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParametersOrBuilder getRetryParametersOrBuilder() {
return retryParameters_ == null ? com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters.getDefaultInstance() : retryParameters_;
}
public static final int MODE_FIELD_NUMBER = 18;
private int mode_ = 0;
/**
*
* Default is ENUM 0, PUSH.
*
*
* optional .java.apphosting.TaskQueueMode.Mode mode = 18;
* @return Whether the mode field is set.
*/
@java.lang.Override public boolean hasMode() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
* Default is ENUM 0, PUSH.
*
*
* optional .java.apphosting.TaskQueueMode.Mode mode = 18;
* @return The mode.
*/
@java.lang.Override public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode.Mode getMode() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode.Mode result = com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode.Mode.forNumber(mode_);
return result == null ? com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode.Mode.PUSH : result;
}
public static final int TAG_FIELD_NUMBER = 19;
private com.google.protobuf.ByteString tag_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Tag associated with this task. This is used for grouping tasks in a
* queue.
*
*
* optional bytes tag = 19;
* @return Whether the tag field is set.
*/
@java.lang.Override
public boolean hasTag() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
*
* Tag associated with this task. This is used for grouping tasks in a
* queue.
*
*
* optional bytes tag = 19;
* @return The tag.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTag() {
return tag_;
}
public static final int CRON_RETRY_PARAMETERS_FIELD_NUMBER = 20;
private com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters cronRetryParameters_;
/**
* optional .java.apphosting.TaskQueueRetryParameters cron_retry_parameters = 20;
* @return Whether the cronRetryParameters field is set.
*/
@java.lang.Override
public boolean hasCronRetryParameters() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
* optional .java.apphosting.TaskQueueRetryParameters cron_retry_parameters = 20;
* @return The cronRetryParameters.
*/
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters getCronRetryParameters() {
return cronRetryParameters_ == null ? com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters.getDefaultInstance() : cronRetryParameters_;
}
/**
* optional .java.apphosting.TaskQueueRetryParameters cron_retry_parameters = 20;
*/
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParametersOrBuilder getCronRetryParametersOrBuilder() {
return cronRetryParameters_ == null ? com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters.getDefaultInstance() : cronRetryParameters_;
}
public static final int DISPATCH_DEADLINE_USEC_FIELD_NUMBER = 22;
private long dispatchDeadlineUsec_ = 0L;
/**
*
* The deadline for requests sent to the worker. If the worker does not
* respond by this deadline then the request is cancelled and the attempt
* is marked as a `DEADLINE_EXCEEDED` failure. The task will be retried based
* on the retry configuration.
*
*
* optional int64 dispatch_deadline_usec = 22;
* @return Whether the dispatchDeadlineUsec field is set.
*/
@java.lang.Override
public boolean hasDispatchDeadlineUsec() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
*
* The deadline for requests sent to the worker. If the worker does not
* respond by this deadline then the request is cancelled and the attempt
* is marked as a `DEADLINE_EXCEEDED` failure. The task will be retried based
* on the retry configuration.
*
*
* optional int64 dispatch_deadline_usec = 22;
* @return The dispatchDeadlineUsec.
*/
@java.lang.Override
public long getDispatchDeadlineUsec() {
return dispatchDeadlineUsec_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasQueueName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasTaskName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasEtaUsec()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getHeaderCount(); i++) {
if (!getHeader(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasTransaction()) {
if (!getTransaction().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasCronTimetable()) {
if (!getCronTimetable().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeBytes(1, queueName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBytes(2, taskName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(3, etaUsec_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeBytes(4, url_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeEnum(5, method_);
}
for (int i = 0; i < header_.size(); i++) {
output.writeGroup(6, header_.get(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBytes(9, body_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(10, getTransaction());
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeBytes(11, appId_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeGroup(12, getCronTimetable());
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeBytes(15, description_);
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeMessage(16, getPayload());
}
if (((bitField0_ & 0x00001000) != 0)) {
output.writeMessage(17, getRetryParameters());
}
if (((bitField0_ & 0x00002000) != 0)) {
output.writeEnum(18, mode_);
}
if (((bitField0_ & 0x00004000) != 0)) {
output.writeBytes(19, tag_);
}
if (((bitField0_ & 0x00008000) != 0)) {
output.writeMessage(20, getCronRetryParameters());
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeBytes(21, datastoreTransaction_);
}
if (((bitField0_ & 0x00010000) != 0)) {
output.writeInt64(22, dispatchDeadlineUsec_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, queueName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, taskName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, etaUsec_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, url_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, method_);
}
for (int i = 0; i < header_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeGroupSize(6, header_.get(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(9, body_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getTransaction());
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(11, appId_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeGroupSize(12, getCronTimetable());
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(15, description_);
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, getPayload());
}
if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, getRetryParameters());
}
if (((bitField0_ & 0x00002000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(18, mode_);
}
if (((bitField0_ & 0x00004000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(19, tag_);
}
if (((bitField0_ & 0x00008000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(20, getCronRetryParameters());
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(21, datastoreTransaction_);
}
if (((bitField0_ & 0x00010000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(22, dispatchDeadlineUsec_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest)) {
return super.equals(obj);
}
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest other = (com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest) obj;
if (hasQueueName() != other.hasQueueName()) return false;
if (hasQueueName()) {
if (!getQueueName()
.equals(other.getQueueName())) return false;
}
if (hasTaskName() != other.hasTaskName()) return false;
if (hasTaskName()) {
if (!getTaskName()
.equals(other.getTaskName())) return false;
}
if (hasEtaUsec() != other.hasEtaUsec()) return false;
if (hasEtaUsec()) {
if (getEtaUsec()
!= other.getEtaUsec()) return false;
}
if (hasMethod() != other.hasMethod()) return false;
if (hasMethod()) {
if (method_ != other.method_) return false;
}
if (hasUrl() != other.hasUrl()) return false;
if (hasUrl()) {
if (!getUrl()
.equals(other.getUrl())) return false;
}
if (!getHeaderList()
.equals(other.getHeaderList())) return false;
if (hasBody() != other.hasBody()) return false;
if (hasBody()) {
if (!getBody()
.equals(other.getBody())) return false;
}
if (hasTransaction() != other.hasTransaction()) return false;
if (hasTransaction()) {
if (!getTransaction()
.equals(other.getTransaction())) return false;
}
if (hasDatastoreTransaction() != other.hasDatastoreTransaction()) return false;
if (hasDatastoreTransaction()) {
if (!getDatastoreTransaction()
.equals(other.getDatastoreTransaction())) return false;
}
if (hasAppId() != other.hasAppId()) return false;
if (hasAppId()) {
if (!getAppId()
.equals(other.getAppId())) return false;
}
if (hasCronTimetable() != other.hasCronTimetable()) return false;
if (hasCronTimetable()) {
if (!getCronTimetable()
.equals(other.getCronTimetable())) return false;
}
if (hasDescription() != other.hasDescription()) return false;
if (hasDescription()) {
if (!getDescription()
.equals(other.getDescription())) return false;
}
if (hasPayload() != other.hasPayload()) return false;
if (hasPayload()) {
if (!getPayload()
.equals(other.getPayload())) return false;
}
if (hasRetryParameters() != other.hasRetryParameters()) return false;
if (hasRetryParameters()) {
if (!getRetryParameters()
.equals(other.getRetryParameters())) return false;
}
if (hasMode() != other.hasMode()) return false;
if (hasMode()) {
if (mode_ != other.mode_) return false;
}
if (hasTag() != other.hasTag()) return false;
if (hasTag()) {
if (!getTag()
.equals(other.getTag())) return false;
}
if (hasCronRetryParameters() != other.hasCronRetryParameters()) return false;
if (hasCronRetryParameters()) {
if (!getCronRetryParameters()
.equals(other.getCronRetryParameters())) return false;
}
if (hasDispatchDeadlineUsec() != other.hasDispatchDeadlineUsec()) return false;
if (hasDispatchDeadlineUsec()) {
if (getDispatchDeadlineUsec()
!= other.getDispatchDeadlineUsec()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasQueueName()) {
hash = (37 * hash) + QUEUE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getQueueName().hashCode();
}
if (hasTaskName()) {
hash = (37 * hash) + TASK_NAME_FIELD_NUMBER;
hash = (53 * hash) + getTaskName().hashCode();
}
if (hasEtaUsec()) {
hash = (37 * hash) + ETA_USEC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEtaUsec());
}
if (hasMethod()) {
hash = (37 * hash) + METHOD_FIELD_NUMBER;
hash = (53 * hash) + method_;
}
if (hasUrl()) {
hash = (37 * hash) + URL_FIELD_NUMBER;
hash = (53 * hash) + getUrl().hashCode();
}
if (getHeaderCount() > 0) {
hash = (37 * hash) + HEADER_FIELD_NUMBER;
hash = (53 * hash) + getHeaderList().hashCode();
}
if (hasBody()) {
hash = (37 * hash) + BODY_FIELD_NUMBER;
hash = (53 * hash) + getBody().hashCode();
}
if (hasTransaction()) {
hash = (37 * hash) + TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + getTransaction().hashCode();
}
if (hasDatastoreTransaction()) {
hash = (37 * hash) + DATASTORE_TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + getDatastoreTransaction().hashCode();
}
if (hasAppId()) {
hash = (37 * hash) + APP_ID_FIELD_NUMBER;
hash = (53 * hash) + getAppId().hashCode();
}
if (hasCronTimetable()) {
hash = (37 * hash) + CRONTIMETABLE_FIELD_NUMBER;
hash = (53 * hash) + getCronTimetable().hashCode();
}
if (hasDescription()) {
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
}
if (hasPayload()) {
hash = (37 * hash) + PAYLOAD_FIELD_NUMBER;
hash = (53 * hash) + getPayload().hashCode();
}
if (hasRetryParameters()) {
hash = (37 * hash) + RETRY_PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + getRetryParameters().hashCode();
}
if (hasMode()) {
hash = (37 * hash) + MODE_FIELD_NUMBER;
hash = (53 * hash) + mode_;
}
if (hasTag()) {
hash = (37 * hash) + TAG_FIELD_NUMBER;
hash = (53 * hash) + getTag().hashCode();
}
if (hasCronRetryParameters()) {
hash = (37 * hash) + CRON_RETRY_PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + getCronRetryParameters().hashCode();
}
if (hasDispatchDeadlineUsec()) {
hash = (37 * hash) + DISPATCH_DEADLINE_USEC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDispatchDeadlineUsec());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code java.apphosting.TaskQueueAddRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.TaskQueueAddRequest)
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueAddRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueAddRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Builder.class);
}
// Construct using com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getHeaderFieldBuilder();
getTransactionFieldBuilder();
getCronTimetableFieldBuilder();
getPayloadFieldBuilder();
getRetryParametersFieldBuilder();
getCronRetryParametersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
queueName_ = com.google.protobuf.ByteString.EMPTY;
taskName_ = com.google.protobuf.ByteString.EMPTY;
etaUsec_ = 0L;
method_ = 2;
url_ = com.google.protobuf.ByteString.EMPTY;
if (headerBuilder_ == null) {
header_ = java.util.Collections.emptyList();
} else {
header_ = null;
headerBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
body_ = com.google.protobuf.ByteString.EMPTY;
transaction_ = null;
if (transactionBuilder_ != null) {
transactionBuilder_.dispose();
transactionBuilder_ = null;
}
datastoreTransaction_ = com.google.protobuf.ByteString.EMPTY;
appId_ = com.google.protobuf.ByteString.EMPTY;
cronTimetable_ = null;
if (cronTimetableBuilder_ != null) {
cronTimetableBuilder_.dispose();
cronTimetableBuilder_ = null;
}
description_ = com.google.protobuf.ByteString.EMPTY;
payload_ = null;
if (payloadBuilder_ != null) {
payloadBuilder_.dispose();
payloadBuilder_ = null;
}
retryParameters_ = null;
if (retryParametersBuilder_ != null) {
retryParametersBuilder_.dispose();
retryParametersBuilder_ = null;
}
mode_ = 0;
tag_ = com.google.protobuf.ByteString.EMPTY;
cronRetryParameters_ = null;
if (cronRetryParametersBuilder_ != null) {
cronRetryParametersBuilder_.dispose();
cronRetryParametersBuilder_ = null;
}
dispatchDeadlineUsec_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueAddRequest_descriptor;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest getDefaultInstanceForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest build() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest buildPartial() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest result = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest result) {
if (headerBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
header_ = java.util.Collections.unmodifiableList(header_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.header_ = header_;
} else {
result.header_ = headerBuilder_.build();
}
}
private void buildPartial0(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.queueName_ = queueName_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.taskName_ = taskName_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.etaUsec_ = etaUsec_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.method_ = method_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.url_ = url_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.body_ = body_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.transaction_ = transactionBuilder_ == null
? transaction_
: transactionBuilder_.build();
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.datastoreTransaction_ = datastoreTransaction_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.appId_ = appId_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.cronTimetable_ = cronTimetableBuilder_ == null
? cronTimetable_
: cronTimetableBuilder_.build();
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.description_ = description_;
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.payload_ = payloadBuilder_ == null
? payload_
: payloadBuilder_.build();
to_bitField0_ |= 0x00000800;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.retryParameters_ = retryParametersBuilder_ == null
? retryParameters_
: retryParametersBuilder_.build();
to_bitField0_ |= 0x00001000;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.mode_ = mode_;
to_bitField0_ |= 0x00002000;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.tag_ = tag_;
to_bitField0_ |= 0x00004000;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.cronRetryParameters_ = cronRetryParametersBuilder_ == null
? cronRetryParameters_
: cronRetryParametersBuilder_.build();
to_bitField0_ |= 0x00008000;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.dispatchDeadlineUsec_ = dispatchDeadlineUsec_;
to_bitField0_ |= 0x00010000;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest) {
return mergeFrom((com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest other) {
if (other == com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.getDefaultInstance()) return this;
if (other.hasQueueName()) {
setQueueName(other.getQueueName());
}
if (other.hasTaskName()) {
setTaskName(other.getTaskName());
}
if (other.hasEtaUsec()) {
setEtaUsec(other.getEtaUsec());
}
if (other.hasMethod()) {
setMethod(other.getMethod());
}
if (other.hasUrl()) {
setUrl(other.getUrl());
}
if (headerBuilder_ == null) {
if (!other.header_.isEmpty()) {
if (header_.isEmpty()) {
header_ = other.header_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureHeaderIsMutable();
header_.addAll(other.header_);
}
onChanged();
}
} else {
if (!other.header_.isEmpty()) {
if (headerBuilder_.isEmpty()) {
headerBuilder_.dispose();
headerBuilder_ = null;
header_ = other.header_;
bitField0_ = (bitField0_ & ~0x00000020);
headerBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getHeaderFieldBuilder() : null;
} else {
headerBuilder_.addAllMessages(other.header_);
}
}
}
if (other.hasBody()) {
setBody(other.getBody());
}
if (other.hasTransaction()) {
mergeTransaction(other.getTransaction());
}
if (other.hasDatastoreTransaction()) {
setDatastoreTransaction(other.getDatastoreTransaction());
}
if (other.hasAppId()) {
setAppId(other.getAppId());
}
if (other.hasCronTimetable()) {
mergeCronTimetable(other.getCronTimetable());
}
if (other.hasDescription()) {
setDescription(other.getDescription());
}
if (other.hasPayload()) {
mergePayload(other.getPayload());
}
if (other.hasRetryParameters()) {
mergeRetryParameters(other.getRetryParameters());
}
if (other.hasMode()) {
setMode(other.getMode());
}
if (other.hasTag()) {
setTag(other.getTag());
}
if (other.hasCronRetryParameters()) {
mergeCronRetryParameters(other.getCronRetryParameters());
}
if (other.hasDispatchDeadlineUsec()) {
setDispatchDeadlineUsec(other.getDispatchDeadlineUsec());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasQueueName()) {
return false;
}
if (!hasTaskName()) {
return false;
}
if (!hasEtaUsec()) {
return false;
}
for (int i = 0; i < getHeaderCount(); i++) {
if (!getHeader(i).isInitialized()) {
return false;
}
}
if (hasTransaction()) {
if (!getTransaction().isInitialized()) {
return false;
}
}
if (hasCronTimetable()) {
if (!getCronTimetable().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
queueName_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
taskName_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
etaUsec_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
url_ = input.readBytes();
bitField0_ |= 0x00000010;
break;
} // case 34
case 40: {
int tmpRaw = input.readEnum();
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.RequestMethod tmpValue =
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.RequestMethod.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(5, tmpRaw);
} else {
method_ = tmpRaw;
bitField0_ |= 0x00000008;
}
break;
} // case 40
case 51: {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header m =
input.readGroup(6,
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header.PARSER,
extensionRegistry);
if (headerBuilder_ == null) {
ensureHeaderIsMutable();
header_.add(m);
} else {
headerBuilder_.addMessage(m);
}
break;
} // case 51
case 74: {
body_ = input.readBytes();
bitField0_ |= 0x00000040;
break;
} // case 74
case 82: {
input.readMessage(
getTransactionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 82
case 90: {
appId_ = input.readBytes();
bitField0_ |= 0x00000200;
break;
} // case 90
case 99: {
input.readGroup(12,
getCronTimetableFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000400;
break;
} // case 99
case 122: {
description_ = input.readBytes();
bitField0_ |= 0x00000800;
break;
} // case 122
case 130: {
input.readMessage(
getPayloadFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00001000;
break;
} // case 130
case 138: {
input.readMessage(
getRetryParametersFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00002000;
break;
} // case 138
case 144: {
int tmpRaw = input.readEnum();
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode.Mode tmpValue =
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode.Mode.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(18, tmpRaw);
} else {
mode_ = tmpRaw;
bitField0_ |= 0x00004000;
}
break;
} // case 144
case 154: {
tag_ = input.readBytes();
bitField0_ |= 0x00008000;
break;
} // case 154
case 162: {
input.readMessage(
getCronRetryParametersFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00010000;
break;
} // case 162
case 170: {
datastoreTransaction_ = input.readBytes();
bitField0_ |= 0x00000100;
break;
} // case 170
case 176: {
dispatchDeadlineUsec_ = input.readInt64();
bitField0_ |= 0x00020000;
break;
} // case 176
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString queueName_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Name of the queue to add the task to.
*
*
* required bytes queue_name = 1;
* @return Whether the queueName field is set.
*/
@java.lang.Override
public boolean hasQueueName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
* optional bytes url = 4;
* @param value The url to set.
* @return This builder for chaining.
*/
public Builder setUrl(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
url_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Required for all Http tasks.
*
*
* optional bytes url = 4;
* @return This builder for chaining.
*/
public Builder clearUrl() {
bitField0_ = (bitField0_ & ~0x00000010);
url_ = getDefaultInstance().getUrl();
onChanged();
return this;
}
private java.util.List header_ =
java.util.Collections.emptyList();
private void ensureHeaderIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
header_ = new java.util.ArrayList(header_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header.Builder, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.HeaderOrBuilder> headerBuilder_;
/**
* repeated group Header = 6 { ... }
*/
public java.util.List getHeaderList() {
if (headerBuilder_ == null) {
return java.util.Collections.unmodifiableList(header_);
} else {
return headerBuilder_.getMessageList();
}
}
/**
* repeated group Header = 6 { ... }
*/
public int getHeaderCount() {
if (headerBuilder_ == null) {
return header_.size();
} else {
return headerBuilder_.getCount();
}
}
/**
* repeated group Header = 6 { ... }
*/
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header getHeader(int index) {
if (headerBuilder_ == null) {
return header_.get(index);
} else {
return headerBuilder_.getMessage(index);
}
}
/**
* repeated group Header = 6 { ... }
*/
public Builder setHeader(
int index, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHeaderIsMutable();
header_.set(index, value);
onChanged();
} else {
headerBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated group Header = 6 { ... }
*/
public Builder setHeader(
int index, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header.Builder builderForValue) {
if (headerBuilder_ == null) {
ensureHeaderIsMutable();
header_.set(index, builderForValue.build());
onChanged();
} else {
headerBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated group Header = 6 { ... }
*/
public Builder addHeader(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHeaderIsMutable();
header_.add(value);
onChanged();
} else {
headerBuilder_.addMessage(value);
}
return this;
}
/**
* repeated group Header = 6 { ... }
*/
public Builder addHeader(
int index, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHeaderIsMutable();
header_.add(index, value);
onChanged();
} else {
headerBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated group Header = 6 { ... }
*/
public Builder addHeader(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header.Builder builderForValue) {
if (headerBuilder_ == null) {
ensureHeaderIsMutable();
header_.add(builderForValue.build());
onChanged();
} else {
headerBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated group Header = 6 { ... }
*/
public Builder addHeader(
int index, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header.Builder builderForValue) {
if (headerBuilder_ == null) {
ensureHeaderIsMutable();
header_.add(index, builderForValue.build());
onChanged();
} else {
headerBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated group Header = 6 { ... }
*/
public Builder addAllHeader(
java.lang.Iterable extends com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header> values) {
if (headerBuilder_ == null) {
ensureHeaderIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, header_);
onChanged();
} else {
headerBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated group Header = 6 { ... }
*/
public Builder clearHeader() {
if (headerBuilder_ == null) {
header_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
headerBuilder_.clear();
}
return this;
}
/**
* repeated group Header = 6 { ... }
*/
public Builder removeHeader(int index) {
if (headerBuilder_ == null) {
ensureHeaderIsMutable();
header_.remove(index);
onChanged();
} else {
headerBuilder_.remove(index);
}
return this;
}
/**
* repeated group Header = 6 { ... }
*/
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header.Builder getHeaderBuilder(
int index) {
return getHeaderFieldBuilder().getBuilder(index);
}
/**
* repeated group Header = 6 { ... }
*/
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.HeaderOrBuilder getHeaderOrBuilder(
int index) {
if (headerBuilder_ == null) {
return header_.get(index); } else {
return headerBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated group Header = 6 { ... }
*/
public java.util.List extends com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.HeaderOrBuilder>
getHeaderOrBuilderList() {
if (headerBuilder_ != null) {
return headerBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(header_);
}
}
/**
* repeated group Header = 6 { ... }
*/
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header.Builder addHeaderBuilder() {
return getHeaderFieldBuilder().addBuilder(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header.getDefaultInstance());
}
/**
* repeated group Header = 6 { ... }
*/
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header.Builder addHeaderBuilder(
int index) {
return getHeaderFieldBuilder().addBuilder(
index, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header.getDefaultInstance());
}
/**
* repeated group Header = 6 { ... }
*/
public java.util.List
getHeaderBuilderList() {
return getHeaderFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header.Builder, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.HeaderOrBuilder>
getHeaderFieldBuilder() {
if (headerBuilder_ == null) {
headerBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Header.Builder, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.HeaderOrBuilder>(
header_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
header_ = null;
}
return headerBuilder_;
}
private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Body of the HTTP request (may contain binary data). Ignored unless method
* is POST or PUT.
*
*
* optional bytes body = 9 [ctype = CORD];
* @return Whether the body field is set.
*/
@java.lang.Override
public boolean hasBody() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Body of the HTTP request (may contain binary data). Ignored unless method
* is POST or PUT.
*
*
* optional bytes body = 9 [ctype = CORD];
* @return The body.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBody() {
return body_;
}
/**
*
* Body of the HTTP request (may contain binary data). Ignored unless method
* is POST or PUT.
*
*
* optional bytes body = 9 [ctype = CORD];
* @param value The body to set.
* @return This builder for chaining.
*/
public Builder setBody(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
body_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Body of the HTTP request (may contain binary data). Ignored unless method
* is POST or PUT.
*
* Cloud Datastore transaction identifier (a serialized
* cloud_datastore.internal.Transaction). If set, AddActions will
* be called on the Cloud Datastore interop API instead of the datastore_v3
* API.
*
*
* optional bytes datastore_transaction = 21;
* @return Whether the datastoreTransaction field is set.
*/
@java.lang.Override
public boolean hasDatastoreTransaction() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Cloud Datastore transaction identifier (a serialized
* cloud_datastore.internal.Transaction). If set, AddActions will
* be called on the Cloud Datastore interop API instead of the datastore_v3
* API.
*
* Cloud Datastore transaction identifier (a serialized
* cloud_datastore.internal.Transaction). If set, AddActions will
* be called on the Cloud Datastore interop API instead of the datastore_v3
* API.
*
*
* optional bytes datastore_transaction = 21;
* @param value The datastoreTransaction to set.
* @return This builder for chaining.
*/
public Builder setDatastoreTransaction(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
datastoreTransaction_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* Cloud Datastore transaction identifier (a serialized
* cloud_datastore.internal.Transaction). If set, AddActions will
* be called on the Cloud Datastore interop API instead of the datastore_v3
* API.
*
* Tag associated with this task. This is used for grouping tasks in a
* queue.
*
*
* optional bytes tag = 19;
* @return Whether the tag field is set.
*/
@java.lang.Override
public boolean hasTag() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
*
* Tag associated with this task. This is used for grouping tasks in a
* queue.
*
*
* optional bytes tag = 19;
* @return The tag.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTag() {
return tag_;
}
/**
*
* Tag associated with this task. This is used for grouping tasks in a
* queue.
*
*
* optional bytes tag = 19;
* @param value The tag to set.
* @return This builder for chaining.
*/
public Builder setTag(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
tag_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
* Tag associated with this task. This is used for grouping tasks in a
* queue.
*
* The deadline for requests sent to the worker. If the worker does not
* respond by this deadline then the request is cancelled and the attempt
* is marked as a `DEADLINE_EXCEEDED` failure. The task will be retried based
* on the retry configuration.
*
*
* optional int64 dispatch_deadline_usec = 22;
* @return Whether the dispatchDeadlineUsec field is set.
*/
@java.lang.Override
public boolean hasDispatchDeadlineUsec() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
*
* The deadline for requests sent to the worker. If the worker does not
* respond by this deadline then the request is cancelled and the attempt
* is marked as a `DEADLINE_EXCEEDED` failure. The task will be retried based
* on the retry configuration.
*
*
* optional int64 dispatch_deadline_usec = 22;
* @return The dispatchDeadlineUsec.
*/
@java.lang.Override
public long getDispatchDeadlineUsec() {
return dispatchDeadlineUsec_;
}
/**
*
* The deadline for requests sent to the worker. If the worker does not
* respond by this deadline then the request is cancelled and the attempt
* is marked as a `DEADLINE_EXCEEDED` failure. The task will be retried based
* on the retry configuration.
*
*
* optional int64 dispatch_deadline_usec = 22;
* @param value The dispatchDeadlineUsec to set.
* @return This builder for chaining.
*/
public Builder setDispatchDeadlineUsec(long value) {
dispatchDeadlineUsec_ = value;
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
*
* The deadline for requests sent to the worker. If the worker does not
* respond by this deadline then the request is cancelled and the attempt
* is marked as a `DEADLINE_EXCEEDED` failure. The task will be retried based
* on the retry configuration.
*
*
* optional int64 dispatch_deadline_usec = 22;
* @return This builder for chaining.
*/
public Builder clearDispatchDeadlineUsec() {
bitField0_ = (bitField0_ & ~0x00020000);
dispatchDeadlineUsec_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.TaskQueueAddRequest)
}
// @@protoc_insertion_point(class_scope:java.apphosting.TaskQueueAddRequest)
private static final com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest();
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaskQueueAddRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TaskQueueAddResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.TaskQueueAddResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* If 'task_name' was empty in TaskQueueAddRequest, then 'chosen_task_name'
* will contain the unique task name that was chosen for the task. Otherwise
* it will be empty.
*
*
* optional bytes chosen_task_name = 1;
* @return Whether the chosenTaskName field is set.
*/
boolean hasChosenTaskName();
/**
*
* If 'task_name' was empty in TaskQueueAddRequest, then 'chosen_task_name'
* will contain the unique task name that was chosen for the task. Otherwise
* it will be empty.
*
*
* optional bytes chosen_task_name = 1;
* @return The chosenTaskName.
*/
com.google.protobuf.ByteString getChosenTaskName();
}
/**
* Protobuf type {@code java.apphosting.TaskQueueAddResponse}
*/
public static final class TaskQueueAddResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.TaskQueueAddResponse)
TaskQueueAddResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaskQueueAddResponse.newBuilder() to construct.
private TaskQueueAddResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TaskQueueAddResponse() {
chosenTaskName_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TaskQueueAddResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueAddResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueAddResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse.Builder.class);
}
private int bitField0_;
public static final int CHOSEN_TASK_NAME_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString chosenTaskName_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* If 'task_name' was empty in TaskQueueAddRequest, then 'chosen_task_name'
* will contain the unique task name that was chosen for the task. Otherwise
* it will be empty.
*
*
* optional bytes chosen_task_name = 1;
* @return Whether the chosenTaskName field is set.
*/
@java.lang.Override
public boolean hasChosenTaskName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* If 'task_name' was empty in TaskQueueAddRequest, then 'chosen_task_name'
* will contain the unique task name that was chosen for the task. Otherwise
* it will be empty.
*
*
* optional bytes chosen_task_name = 1;
* @return The chosenTaskName.
*/
@java.lang.Override
public com.google.protobuf.ByteString getChosenTaskName() {
return chosenTaskName_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeBytes(1, chosenTaskName_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, chosenTaskName_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse)) {
return super.equals(obj);
}
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse other = (com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse) obj;
if (hasChosenTaskName() != other.hasChosenTaskName()) return false;
if (hasChosenTaskName()) {
if (!getChosenTaskName()
.equals(other.getChosenTaskName())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasChosenTaskName()) {
hash = (37 * hash) + CHOSEN_TASK_NAME_FIELD_NUMBER;
hash = (53 * hash) + getChosenTaskName().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code java.apphosting.TaskQueueAddResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.TaskQueueAddResponse)
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueAddResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueAddResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse.Builder.class);
}
// Construct using com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
chosenTaskName_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueAddResponse_descriptor;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse getDefaultInstanceForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse build() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse buildPartial() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse result = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.chosenTaskName_ = chosenTaskName_;
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse) {
return mergeFrom((com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse other) {
if (other == com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse.getDefaultInstance()) return this;
if (other.hasChosenTaskName()) {
setChosenTaskName(other.getChosenTaskName());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
chosenTaskName_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString chosenTaskName_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* If 'task_name' was empty in TaskQueueAddRequest, then 'chosen_task_name'
* will contain the unique task name that was chosen for the task. Otherwise
* it will be empty.
*
*
* optional bytes chosen_task_name = 1;
* @return Whether the chosenTaskName field is set.
*/
@java.lang.Override
public boolean hasChosenTaskName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* If 'task_name' was empty in TaskQueueAddRequest, then 'chosen_task_name'
* will contain the unique task name that was chosen for the task. Otherwise
* it will be empty.
*
* If 'task_name' was empty in TaskQueueAddRequest, then 'chosen_task_name'
* will contain the unique task name that was chosen for the task. Otherwise
* it will be empty.
*
*
* optional bytes chosen_task_name = 1;
* @param value The chosenTaskName to set.
* @return This builder for chaining.
*/
public Builder setChosenTaskName(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
chosenTaskName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* If 'task_name' was empty in TaskQueueAddRequest, then 'chosen_task_name'
* will contain the unique task name that was chosen for the task. Otherwise
* it will be empty.
*
*
* optional bytes chosen_task_name = 1;
* @return This builder for chaining.
*/
public Builder clearChosenTaskName() {
bitField0_ = (bitField0_ & ~0x00000001);
chosenTaskName_ = getDefaultInstance().getChosenTaskName();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.TaskQueueAddResponse)
}
// @@protoc_insertion_point(class_scope:java.apphosting.TaskQueueAddResponse)
private static final com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse();
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaskQueueAddResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TaskQueueBulkAddRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.TaskQueueBulkAddRequest)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
java.util.List
getAddRequestList();
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest getAddRequest(int index);
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
int getAddRequestCount();
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
java.util.List extends com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequestOrBuilder>
getAddRequestOrBuilderList();
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequestOrBuilder getAddRequestOrBuilder(
int index);
}
/**
* Protobuf type {@code java.apphosting.TaskQueueBulkAddRequest}
*/
public static final class TaskQueueBulkAddRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.TaskQueueBulkAddRequest)
TaskQueueBulkAddRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaskQueueBulkAddRequest.newBuilder() to construct.
private TaskQueueBulkAddRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TaskQueueBulkAddRequest() {
addRequest_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TaskQueueBulkAddRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueBulkAddRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueBulkAddRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest.Builder.class);
}
public static final int ADD_REQUEST_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List addRequest_;
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
@java.lang.Override
public java.util.List getAddRequestList() {
return addRequest_;
}
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
@java.lang.Override
public java.util.List extends com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequestOrBuilder>
getAddRequestOrBuilderList() {
return addRequest_;
}
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
@java.lang.Override
public int getAddRequestCount() {
return addRequest_.size();
}
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest getAddRequest(int index) {
return addRequest_.get(index);
}
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequestOrBuilder getAddRequestOrBuilder(
int index) {
return addRequest_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getAddRequestCount(); i++) {
if (!getAddRequest(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < addRequest_.size(); i++) {
output.writeMessage(1, addRequest_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < addRequest_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, addRequest_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest)) {
return super.equals(obj);
}
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest other = (com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest) obj;
if (!getAddRequestList()
.equals(other.getAddRequestList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getAddRequestCount() > 0) {
hash = (37 * hash) + ADD_REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getAddRequestList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code java.apphosting.TaskQueueBulkAddRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.TaskQueueBulkAddRequest)
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueBulkAddRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueBulkAddRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest.Builder.class);
}
// Construct using com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (addRequestBuilder_ == null) {
addRequest_ = java.util.Collections.emptyList();
} else {
addRequest_ = null;
addRequestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueBulkAddRequest_descriptor;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest getDefaultInstanceForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest build() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest buildPartial() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest result = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest result) {
if (addRequestBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
addRequest_ = java.util.Collections.unmodifiableList(addRequest_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.addRequest_ = addRequest_;
} else {
result.addRequest_ = addRequestBuilder_.build();
}
}
private void buildPartial0(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest) {
return mergeFrom((com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest other) {
if (other == com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest.getDefaultInstance()) return this;
if (addRequestBuilder_ == null) {
if (!other.addRequest_.isEmpty()) {
if (addRequest_.isEmpty()) {
addRequest_ = other.addRequest_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAddRequestIsMutable();
addRequest_.addAll(other.addRequest_);
}
onChanged();
}
} else {
if (!other.addRequest_.isEmpty()) {
if (addRequestBuilder_.isEmpty()) {
addRequestBuilder_.dispose();
addRequestBuilder_ = null;
addRequest_ = other.addRequest_;
bitField0_ = (bitField0_ & ~0x00000001);
addRequestBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAddRequestFieldBuilder() : null;
} else {
addRequestBuilder_.addAllMessages(other.addRequest_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getAddRequestCount(); i++) {
if (!getAddRequest(i).isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest m =
input.readMessage(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.PARSER,
extensionRegistry);
if (addRequestBuilder_ == null) {
ensureAddRequestIsMutable();
addRequest_.add(m);
} else {
addRequestBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List addRequest_ =
java.util.Collections.emptyList();
private void ensureAddRequestIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
addRequest_ = new java.util.ArrayList(addRequest_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Builder, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequestOrBuilder> addRequestBuilder_;
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
public java.util.List getAddRequestList() {
if (addRequestBuilder_ == null) {
return java.util.Collections.unmodifiableList(addRequest_);
} else {
return addRequestBuilder_.getMessageList();
}
}
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
public int getAddRequestCount() {
if (addRequestBuilder_ == null) {
return addRequest_.size();
} else {
return addRequestBuilder_.getCount();
}
}
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest getAddRequest(int index) {
if (addRequestBuilder_ == null) {
return addRequest_.get(index);
} else {
return addRequestBuilder_.getMessage(index);
}
}
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
public Builder setAddRequest(
int index, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest value) {
if (addRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAddRequestIsMutable();
addRequest_.set(index, value);
onChanged();
} else {
addRequestBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
public Builder setAddRequest(
int index, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Builder builderForValue) {
if (addRequestBuilder_ == null) {
ensureAddRequestIsMutable();
addRequest_.set(index, builderForValue.build());
onChanged();
} else {
addRequestBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
public Builder addAddRequest(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest value) {
if (addRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAddRequestIsMutable();
addRequest_.add(value);
onChanged();
} else {
addRequestBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
public Builder addAddRequest(
int index, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest value) {
if (addRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAddRequestIsMutable();
addRequest_.add(index, value);
onChanged();
} else {
addRequestBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
public Builder addAddRequest(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Builder builderForValue) {
if (addRequestBuilder_ == null) {
ensureAddRequestIsMutable();
addRequest_.add(builderForValue.build());
onChanged();
} else {
addRequestBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
public Builder addAddRequest(
int index, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Builder builderForValue) {
if (addRequestBuilder_ == null) {
ensureAddRequestIsMutable();
addRequest_.add(index, builderForValue.build());
onChanged();
} else {
addRequestBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
public Builder addAllAddRequest(
java.lang.Iterable extends com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest> values) {
if (addRequestBuilder_ == null) {
ensureAddRequestIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, addRequest_);
onChanged();
} else {
addRequestBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
public Builder clearAddRequest() {
if (addRequestBuilder_ == null) {
addRequest_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
addRequestBuilder_.clear();
}
return this;
}
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
public Builder removeAddRequest(int index) {
if (addRequestBuilder_ == null) {
ensureAddRequestIsMutable();
addRequest_.remove(index);
onChanged();
} else {
addRequestBuilder_.remove(index);
}
return this;
}
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Builder getAddRequestBuilder(
int index) {
return getAddRequestFieldBuilder().getBuilder(index);
}
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequestOrBuilder getAddRequestOrBuilder(
int index) {
if (addRequestBuilder_ == null) {
return addRequest_.get(index); } else {
return addRequestBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
public java.util.List extends com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequestOrBuilder>
getAddRequestOrBuilderList() {
if (addRequestBuilder_ != null) {
return addRequestBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(addRequest_);
}
}
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Builder addAddRequestBuilder() {
return getAddRequestFieldBuilder().addBuilder(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.getDefaultInstance());
}
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Builder addAddRequestBuilder(
int index) {
return getAddRequestFieldBuilder().addBuilder(
index, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.getDefaultInstance());
}
/**
* repeated .java.apphosting.TaskQueueAddRequest add_request = 1;
*/
public java.util.List
getAddRequestBuilderList() {
return getAddRequestFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Builder, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequestOrBuilder>
getAddRequestFieldBuilder() {
if (addRequestBuilder_ == null) {
addRequestBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequest.Builder, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAddRequestOrBuilder>(
addRequest_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
addRequest_ = null;
}
return addRequestBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.TaskQueueBulkAddRequest)
}
// @@protoc_insertion_point(class_scope:java.apphosting.TaskQueueBulkAddRequest)
private static final com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest();
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaskQueueBulkAddRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TaskQueueBulkAddResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.TaskQueueBulkAddResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated group TaskResult = 1 { ... }
*/
java.util.List
getTaskResultList();
/**
* repeated group TaskResult = 1 { ... }
*/
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult getTaskResult(int index);
/**
* repeated group TaskResult = 1 { ... }
*/
int getTaskResultCount();
/**
* repeated group TaskResult = 1 { ... }
*/
java.util.List extends com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResultOrBuilder>
getTaskResultOrBuilderList();
/**
* repeated group TaskResult = 1 { ... }
*/
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResultOrBuilder getTaskResultOrBuilder(
int index);
}
/**
*
* Note: the RPC may return RPC::OK even if some tasks could not be added.
*
*
* Protobuf type {@code java.apphosting.TaskQueueBulkAddResponse}
*/
public static final class TaskQueueBulkAddResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.TaskQueueBulkAddResponse)
TaskQueueBulkAddResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaskQueueBulkAddResponse.newBuilder() to construct.
private TaskQueueBulkAddResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TaskQueueBulkAddResponse() {
taskResult_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TaskQueueBulkAddResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueBulkAddResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueBulkAddResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.Builder.class);
}
public interface TaskResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.TaskQueueBulkAddResponse.TaskResult)
com.google.protobuf.MessageOrBuilder {
/**
*
* The error code associated with the creation of the task.
*
*
* required .java.apphosting.TaskQueueServiceError.ErrorCode result = 2;
* @return Whether the result field is set.
*/
boolean hasResult();
/**
*
* The error code associated with the creation of the task.
*
*
* required .java.apphosting.TaskQueueServiceError.ErrorCode result = 2;
* @return The result.
*/
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode getResult();
/**
*
* If 'task_name' was empty in TaskQueueAddRequest and the task was added
* successfully, then 'chosen_task_name' will contain the unique task name
* that was chosen for the task. Otherwise it will be absent.
*
*
* optional bytes chosen_task_name = 3;
* @return Whether the chosenTaskName field is set.
*/
boolean hasChosenTaskName();
/**
*
* If 'task_name' was empty in TaskQueueAddRequest and the task was added
* successfully, then 'chosen_task_name' will contain the unique task name
* that was chosen for the task. Otherwise it will be absent.
*
* One result per input add_request, in the same order.
*
*
* Protobuf type {@code java.apphosting.TaskQueueBulkAddResponse.TaskResult}
*/
public static final class TaskResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.TaskQueueBulkAddResponse.TaskResult)
TaskResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaskResult.newBuilder() to construct.
private TaskResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TaskResult() {
result_ = 0;
chosenTaskName_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TaskResult();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueBulkAddResponse_TaskResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueBulkAddResponse_TaskResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult.Builder.class);
}
private int bitField0_;
public static final int RESULT_FIELD_NUMBER = 2;
private int result_ = 0;
/**
*
* The error code associated with the creation of the task.
*
*
* required .java.apphosting.TaskQueueServiceError.ErrorCode result = 2;
* @return Whether the result field is set.
*/
@java.lang.Override public boolean hasResult() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The error code associated with the creation of the task.
*
*
* required .java.apphosting.TaskQueueServiceError.ErrorCode result = 2;
* @return The result.
*/
@java.lang.Override public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode getResult() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode result = com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode.forNumber(result_);
return result == null ? com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode.OK : result;
}
public static final int CHOSEN_TASK_NAME_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString chosenTaskName_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* If 'task_name' was empty in TaskQueueAddRequest and the task was added
* successfully, then 'chosen_task_name' will contain the unique task name
* that was chosen for the task. Otherwise it will be absent.
*
*
* optional bytes chosen_task_name = 3;
* @return Whether the chosenTaskName field is set.
*/
@java.lang.Override
public boolean hasChosenTaskName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* If 'task_name' was empty in TaskQueueAddRequest and the task was added
* successfully, then 'chosen_task_name' will contain the unique task name
* that was chosen for the task. Otherwise it will be absent.
*
*
* optional bytes chosen_task_name = 3;
* @return The chosenTaskName.
*/
@java.lang.Override
public com.google.protobuf.ByteString getChosenTaskName() {
return chosenTaskName_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasResult()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeEnum(2, result_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBytes(3, chosenTaskName_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, result_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, chosenTaskName_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult)) {
return super.equals(obj);
}
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult other = (com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult) obj;
if (hasResult() != other.hasResult()) return false;
if (hasResult()) {
if (result_ != other.result_) return false;
}
if (hasChosenTaskName() != other.hasChosenTaskName()) return false;
if (hasChosenTaskName()) {
if (!getChosenTaskName()
.equals(other.getChosenTaskName())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasResult()) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + result_;
}
if (hasChosenTaskName()) {
hash = (37 * hash) + CHOSEN_TASK_NAME_FIELD_NUMBER;
hash = (53 * hash) + getChosenTaskName().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* One result per input add_request, in the same order.
*
*
* Protobuf type {@code java.apphosting.TaskQueueBulkAddResponse.TaskResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.TaskQueueBulkAddResponse.TaskResult)
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueBulkAddResponse_TaskResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueBulkAddResponse_TaskResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult.Builder.class);
}
// Construct using com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
result_ = 0;
chosenTaskName_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueBulkAddResponse_TaskResult_descriptor;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult getDefaultInstanceForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult build() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult buildPartial() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult result = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.result_ = result_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.chosenTaskName_ = chosenTaskName_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult) {
return mergeFrom((com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult other) {
if (other == com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult.getDefaultInstance()) return this;
if (other.hasResult()) {
setResult(other.getResult());
}
if (other.hasChosenTaskName()) {
setChosenTaskName(other.getChosenTaskName());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasResult()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 16: {
int tmpRaw = input.readEnum();
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode tmpValue =
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(2, tmpRaw);
} else {
result_ = tmpRaw;
bitField0_ |= 0x00000001;
}
break;
} // case 16
case 26: {
chosenTaskName_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int result_ = 0;
/**
*
* The error code associated with the creation of the task.
*
*
* required .java.apphosting.TaskQueueServiceError.ErrorCode result = 2;
* @return Whether the result field is set.
*/
@java.lang.Override public boolean hasResult() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The error code associated with the creation of the task.
*
*
* required .java.apphosting.TaskQueueServiceError.ErrorCode result = 2;
* @return The result.
*/
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode getResult() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode result = com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode.forNumber(result_);
return result == null ? com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode.OK : result;
}
/**
*
* The error code associated with the creation of the task.
*
*
* required .java.apphosting.TaskQueueServiceError.ErrorCode result = 2;
* @param value The result to set.
* @return This builder for chaining.
*/
public Builder setResult(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
result_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The error code associated with the creation of the task.
*
*
* required .java.apphosting.TaskQueueServiceError.ErrorCode result = 2;
* @return This builder for chaining.
*/
public Builder clearResult() {
bitField0_ = (bitField0_ & ~0x00000001);
result_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString chosenTaskName_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* If 'task_name' was empty in TaskQueueAddRequest and the task was added
* successfully, then 'chosen_task_name' will contain the unique task name
* that was chosen for the task. Otherwise it will be absent.
*
*
* optional bytes chosen_task_name = 3;
* @return Whether the chosenTaskName field is set.
*/
@java.lang.Override
public boolean hasChosenTaskName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* If 'task_name' was empty in TaskQueueAddRequest and the task was added
* successfully, then 'chosen_task_name' will contain the unique task name
* that was chosen for the task. Otherwise it will be absent.
*
* If 'task_name' was empty in TaskQueueAddRequest and the task was added
* successfully, then 'chosen_task_name' will contain the unique task name
* that was chosen for the task. Otherwise it will be absent.
*
*
* optional bytes chosen_task_name = 3;
* @param value The chosenTaskName to set.
* @return This builder for chaining.
*/
public Builder setChosenTaskName(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
chosenTaskName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* If 'task_name' was empty in TaskQueueAddRequest and the task was added
* successfully, then 'chosen_task_name' will contain the unique task name
* that was chosen for the task. Otherwise it will be absent.
*
*
* optional bytes chosen_task_name = 3;
* @return This builder for chaining.
*/
public Builder clearChosenTaskName() {
bitField0_ = (bitField0_ & ~0x00000002);
chosenTaskName_ = getDefaultInstance().getChosenTaskName();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.TaskQueueBulkAddResponse.TaskResult)
}
// @@protoc_insertion_point(class_scope:java.apphosting.TaskQueueBulkAddResponse.TaskResult)
private static final com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult();
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaskResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int TASKRESULT_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List taskResult_;
/**
* repeated group TaskResult = 1 { ... }
*/
@java.lang.Override
public java.util.List getTaskResultList() {
return taskResult_;
}
/**
* repeated group TaskResult = 1 { ... }
*/
@java.lang.Override
public java.util.List extends com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResultOrBuilder>
getTaskResultOrBuilderList() {
return taskResult_;
}
/**
* repeated group TaskResult = 1 { ... }
*/
@java.lang.Override
public int getTaskResultCount() {
return taskResult_.size();
}
/**
* repeated group TaskResult = 1 { ... }
*/
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult getTaskResult(int index) {
return taskResult_.get(index);
}
/**
* repeated group TaskResult = 1 { ... }
*/
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResultOrBuilder getTaskResultOrBuilder(
int index) {
return taskResult_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getTaskResultCount(); i++) {
if (!getTaskResult(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < taskResult_.size(); i++) {
output.writeGroup(1, taskResult_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < taskResult_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeGroupSize(1, taskResult_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse)) {
return super.equals(obj);
}
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse other = (com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse) obj;
if (!getTaskResultList()
.equals(other.getTaskResultList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getTaskResultCount() > 0) {
hash = (37 * hash) + TASKRESULT_FIELD_NUMBER;
hash = (53 * hash) + getTaskResultList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Note: the RPC may return RPC::OK even if some tasks could not be added.
*
*
* Protobuf type {@code java.apphosting.TaskQueueBulkAddResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.TaskQueueBulkAddResponse)
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueBulkAddResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueBulkAddResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.Builder.class);
}
// Construct using com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (taskResultBuilder_ == null) {
taskResult_ = java.util.Collections.emptyList();
} else {
taskResult_ = null;
taskResultBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueBulkAddResponse_descriptor;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse getDefaultInstanceForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse build() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse buildPartial() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse result = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse result) {
if (taskResultBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
taskResult_ = java.util.Collections.unmodifiableList(taskResult_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.taskResult_ = taskResult_;
} else {
result.taskResult_ = taskResultBuilder_.build();
}
}
private void buildPartial0(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse) {
return mergeFrom((com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse other) {
if (other == com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.getDefaultInstance()) return this;
if (taskResultBuilder_ == null) {
if (!other.taskResult_.isEmpty()) {
if (taskResult_.isEmpty()) {
taskResult_ = other.taskResult_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTaskResultIsMutable();
taskResult_.addAll(other.taskResult_);
}
onChanged();
}
} else {
if (!other.taskResult_.isEmpty()) {
if (taskResultBuilder_.isEmpty()) {
taskResultBuilder_.dispose();
taskResultBuilder_ = null;
taskResult_ = other.taskResult_;
bitField0_ = (bitField0_ & ~0x00000001);
taskResultBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTaskResultFieldBuilder() : null;
} else {
taskResultBuilder_.addAllMessages(other.taskResult_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getTaskResultCount(); i++) {
if (!getTaskResult(i).isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 11: {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult m =
input.readGroup(1,
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult.PARSER,
extensionRegistry);
if (taskResultBuilder_ == null) {
ensureTaskResultIsMutable();
taskResult_.add(m);
} else {
taskResultBuilder_.addMessage(m);
}
break;
} // case 11
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List taskResult_ =
java.util.Collections.emptyList();
private void ensureTaskResultIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
taskResult_ = new java.util.ArrayList(taskResult_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult.Builder, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResultOrBuilder> taskResultBuilder_;
/**
* repeated group TaskResult = 1 { ... }
*/
public java.util.List getTaskResultList() {
if (taskResultBuilder_ == null) {
return java.util.Collections.unmodifiableList(taskResult_);
} else {
return taskResultBuilder_.getMessageList();
}
}
/**
* repeated group TaskResult = 1 { ... }
*/
public int getTaskResultCount() {
if (taskResultBuilder_ == null) {
return taskResult_.size();
} else {
return taskResultBuilder_.getCount();
}
}
/**
* repeated group TaskResult = 1 { ... }
*/
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult getTaskResult(int index) {
if (taskResultBuilder_ == null) {
return taskResult_.get(index);
} else {
return taskResultBuilder_.getMessage(index);
}
}
/**
* repeated group TaskResult = 1 { ... }
*/
public Builder setTaskResult(
int index, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult value) {
if (taskResultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTaskResultIsMutable();
taskResult_.set(index, value);
onChanged();
} else {
taskResultBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated group TaskResult = 1 { ... }
*/
public Builder setTaskResult(
int index, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult.Builder builderForValue) {
if (taskResultBuilder_ == null) {
ensureTaskResultIsMutable();
taskResult_.set(index, builderForValue.build());
onChanged();
} else {
taskResultBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated group TaskResult = 1 { ... }
*/
public Builder addTaskResult(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult value) {
if (taskResultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTaskResultIsMutable();
taskResult_.add(value);
onChanged();
} else {
taskResultBuilder_.addMessage(value);
}
return this;
}
/**
* repeated group TaskResult = 1 { ... }
*/
public Builder addTaskResult(
int index, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult value) {
if (taskResultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTaskResultIsMutable();
taskResult_.add(index, value);
onChanged();
} else {
taskResultBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated group TaskResult = 1 { ... }
*/
public Builder addTaskResult(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult.Builder builderForValue) {
if (taskResultBuilder_ == null) {
ensureTaskResultIsMutable();
taskResult_.add(builderForValue.build());
onChanged();
} else {
taskResultBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated group TaskResult = 1 { ... }
*/
public Builder addTaskResult(
int index, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult.Builder builderForValue) {
if (taskResultBuilder_ == null) {
ensureTaskResultIsMutable();
taskResult_.add(index, builderForValue.build());
onChanged();
} else {
taskResultBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated group TaskResult = 1 { ... }
*/
public Builder addAllTaskResult(
java.lang.Iterable extends com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult> values) {
if (taskResultBuilder_ == null) {
ensureTaskResultIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, taskResult_);
onChanged();
} else {
taskResultBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated group TaskResult = 1 { ... }
*/
public Builder clearTaskResult() {
if (taskResultBuilder_ == null) {
taskResult_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
taskResultBuilder_.clear();
}
return this;
}
/**
* repeated group TaskResult = 1 { ... }
*/
public Builder removeTaskResult(int index) {
if (taskResultBuilder_ == null) {
ensureTaskResultIsMutable();
taskResult_.remove(index);
onChanged();
} else {
taskResultBuilder_.remove(index);
}
return this;
}
/**
* repeated group TaskResult = 1 { ... }
*/
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult.Builder getTaskResultBuilder(
int index) {
return getTaskResultFieldBuilder().getBuilder(index);
}
/**
* repeated group TaskResult = 1 { ... }
*/
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResultOrBuilder getTaskResultOrBuilder(
int index) {
if (taskResultBuilder_ == null) {
return taskResult_.get(index); } else {
return taskResultBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated group TaskResult = 1 { ... }
*/
public java.util.List extends com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResultOrBuilder>
getTaskResultOrBuilderList() {
if (taskResultBuilder_ != null) {
return taskResultBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(taskResult_);
}
}
/**
* repeated group TaskResult = 1 { ... }
*/
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult.Builder addTaskResultBuilder() {
return getTaskResultFieldBuilder().addBuilder(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult.getDefaultInstance());
}
/**
* repeated group TaskResult = 1 { ... }
*/
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult.Builder addTaskResultBuilder(
int index) {
return getTaskResultFieldBuilder().addBuilder(
index, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult.getDefaultInstance());
}
/**
* repeated group TaskResult = 1 { ... }
*/
public java.util.List
getTaskResultBuilderList() {
return getTaskResultFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult.Builder, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResultOrBuilder>
getTaskResultFieldBuilder() {
if (taskResultBuilder_ == null) {
taskResultBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResult.Builder, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse.TaskResultOrBuilder>(
taskResult_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
taskResult_ = null;
}
return taskResultBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.TaskQueueBulkAddResponse)
}
// @@protoc_insertion_point(class_scope:java.apphosting.TaskQueueBulkAddResponse)
private static final com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse();
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaskQueueBulkAddResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueBulkAddResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TaskQueueDeleteRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.TaskQueueDeleteRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the queue to delete the task from.
*
*
* required bytes queue_name = 1;
* @return Whether the queueName field is set.
*/
boolean hasQueueName();
/**
*
*
* repeated bytes task_name = 2;
* @return A list containing the taskName.
*/
java.util.List getTaskNameList();
/**
*
* Names of the tasks to delete.
*
*
* repeated bytes task_name = 2;
* @return The count of taskName.
*/
int getTaskNameCount();
/**
*
* Names of the tasks to delete.
*
*
* repeated bytes task_name = 2;
* @param index The index of the element to return.
* @return The taskName at the given index.
*/
com.google.protobuf.ByteString getTaskName(int index);
/**
*
* Name of the app_id - only works for admin console
*
*
* optional bytes app_id = 3;
* @return Whether the appId field is set.
*/
boolean hasAppId();
/**
*
* Name of the app_id - only works for admin console
*
*
* optional bytes app_id = 3;
* @return The appId.
*/
com.google.protobuf.ByteString getAppId();
}
/**
* Protobuf type {@code java.apphosting.TaskQueueDeleteRequest}
*/
public static final class TaskQueueDeleteRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.TaskQueueDeleteRequest)
TaskQueueDeleteRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaskQueueDeleteRequest.newBuilder() to construct.
private TaskQueueDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TaskQueueDeleteRequest() {
queueName_ = com.google.protobuf.ByteString.EMPTY;
taskName_ = java.util.Collections.emptyList();
appId_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TaskQueueDeleteRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueDeleteRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueDeleteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest.Builder.class);
}
private int bitField0_;
public static final int QUEUE_NAME_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString queueName_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Name of the queue to delete the task from.
*
*
* required bytes queue_name = 1;
* @return Whether the queueName field is set.
*/
@java.lang.Override
public boolean hasQueueName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Name of the queue to delete the task from.
*
*
* required bytes queue_name = 1;
* @return The queueName.
*/
@java.lang.Override
public com.google.protobuf.ByteString getQueueName() {
return queueName_;
}
public static final int TASK_NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List taskName_;
/**
*
* Names of the tasks to delete.
*
*
* repeated bytes task_name = 2;
* @return A list containing the taskName.
*/
@java.lang.Override
public java.util.List
getTaskNameList() {
return taskName_;
}
/**
*
* Names of the tasks to delete.
*
*
* repeated bytes task_name = 2;
* @return The count of taskName.
*/
public int getTaskNameCount() {
return taskName_.size();
}
/**
*
* Names of the tasks to delete.
*
*
* repeated bytes task_name = 2;
* @param index The index of the element to return.
* @return The taskName at the given index.
*/
public com.google.protobuf.ByteString getTaskName(int index) {
return taskName_.get(index);
}
public static final int APP_ID_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString appId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Name of the app_id - only works for admin console
*
*
* optional bytes app_id = 3;
* @return Whether the appId field is set.
*/
@java.lang.Override
public boolean hasAppId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Name of the app_id - only works for admin console
*
*
* optional bytes app_id = 3;
* @return The appId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAppId() {
return appId_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasQueueName()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeBytes(1, queueName_);
}
for (int i = 0; i < taskName_.size(); i++) {
output.writeBytes(2, taskName_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBytes(3, appId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, queueName_);
}
{
int dataSize = 0;
for (int i = 0; i < taskName_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(taskName_.get(i));
}
size += dataSize;
size += 1 * getTaskNameList().size();
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, appId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest)) {
return super.equals(obj);
}
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest other = (com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest) obj;
if (hasQueueName() != other.hasQueueName()) return false;
if (hasQueueName()) {
if (!getQueueName()
.equals(other.getQueueName())) return false;
}
if (!getTaskNameList()
.equals(other.getTaskNameList())) return false;
if (hasAppId() != other.hasAppId()) return false;
if (hasAppId()) {
if (!getAppId()
.equals(other.getAppId())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasQueueName()) {
hash = (37 * hash) + QUEUE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getQueueName().hashCode();
}
if (getTaskNameCount() > 0) {
hash = (37 * hash) + TASK_NAME_FIELD_NUMBER;
hash = (53 * hash) + getTaskNameList().hashCode();
}
if (hasAppId()) {
hash = (37 * hash) + APP_ID_FIELD_NUMBER;
hash = (53 * hash) + getAppId().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code java.apphosting.TaskQueueDeleteRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.TaskQueueDeleteRequest)
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueDeleteRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueDeleteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest.Builder.class);
}
// Construct using com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
queueName_ = com.google.protobuf.ByteString.EMPTY;
taskName_ = java.util.Collections.emptyList();
appId_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueDeleteRequest_descriptor;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest getDefaultInstanceForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest build() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest buildPartial() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest result = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest result) {
if (((bitField0_ & 0x00000002) != 0)) {
taskName_ = java.util.Collections.unmodifiableList(taskName_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.taskName_ = taskName_;
}
private void buildPartial0(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.queueName_ = queueName_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.appId_ = appId_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest) {
return mergeFrom((com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest other) {
if (other == com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest.getDefaultInstance()) return this;
if (other.hasQueueName()) {
setQueueName(other.getQueueName());
}
if (!other.taskName_.isEmpty()) {
if (taskName_.isEmpty()) {
taskName_ = other.taskName_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureTaskNameIsMutable();
taskName_.addAll(other.taskName_);
}
onChanged();
}
if (other.hasAppId()) {
setAppId(other.getAppId());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasQueueName()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
queueName_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
com.google.protobuf.ByteString v = input.readBytes();
ensureTaskNameIsMutable();
taskName_.add(v);
break;
} // case 18
case 26: {
appId_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString queueName_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Name of the queue to delete the task from.
*
*
* required bytes queue_name = 1;
* @return Whether the queueName field is set.
*/
@java.lang.Override
public boolean hasQueueName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
* repeated bytes task_name = 2;
* @return A list containing the taskName.
*/
public java.util.List
getTaskNameList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(taskName_) : taskName_;
}
/**
*
* Names of the tasks to delete.
*
*
* repeated bytes task_name = 2;
* @return The count of taskName.
*/
public int getTaskNameCount() {
return taskName_.size();
}
/**
*
* Names of the tasks to delete.
*
*
* repeated bytes task_name = 2;
* @param index The index of the element to return.
* @return The taskName at the given index.
*/
public com.google.protobuf.ByteString getTaskName(int index) {
return taskName_.get(index);
}
/**
*
* Names of the tasks to delete.
*
*
* repeated bytes task_name = 2;
* @param index The index to set the value at.
* @param value The taskName to set.
* @return This builder for chaining.
*/
public Builder setTaskName(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureTaskNameIsMutable();
taskName_.set(index, value);
onChanged();
return this;
}
/**
*
* Names of the tasks to delete.
*
*
* repeated bytes task_name = 2;
* @param value The taskName to add.
* @return This builder for chaining.
*/
public Builder addTaskName(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureTaskNameIsMutable();
taskName_.add(value);
onChanged();
return this;
}
/**
*
* Names of the tasks to delete.
*
*
* repeated bytes task_name = 2;
* @param values The taskName to add.
* @return This builder for chaining.
*/
public Builder addAllTaskName(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureTaskNameIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, taskName_);
onChanged();
return this;
}
/**
*
* Name of the app_id - only works for admin console
*
*
* optional bytes app_id = 3;
* @param value The appId to set.
* @return This builder for chaining.
*/
public Builder setAppId(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
appId_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Name of the app_id - only works for admin console
*
*
* optional bytes app_id = 3;
* @return This builder for chaining.
*/
public Builder clearAppId() {
bitField0_ = (bitField0_ & ~0x00000004);
appId_ = getDefaultInstance().getAppId();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.TaskQueueDeleteRequest)
}
// @@protoc_insertion_point(class_scope:java.apphosting.TaskQueueDeleteRequest)
private static final com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest();
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaskQueueDeleteRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TaskQueueDeleteResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.TaskQueueDeleteResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* One response per input task_name, in the same order.
* Note: the Delete RPC will return RPC::OK regardless of how many tasks it
* managed to delete; check the individual results to see what happened.
*
*
* repeated .java.apphosting.TaskQueueServiceError.ErrorCode result = 3;
* @return A list containing the result.
*/
java.util.List getResultList();
/**
*
* One response per input task_name, in the same order.
* Note: the Delete RPC will return RPC::OK regardless of how many tasks it
* managed to delete; check the individual results to see what happened.
*
*
* repeated .java.apphosting.TaskQueueServiceError.ErrorCode result = 3;
* @return The count of result.
*/
int getResultCount();
/**
*
* One response per input task_name, in the same order.
* Note: the Delete RPC will return RPC::OK regardless of how many tasks it
* managed to delete; check the individual results to see what happened.
*
*
* repeated .java.apphosting.TaskQueueServiceError.ErrorCode result = 3;
* @param index The index of the element to return.
* @return The result at the given index.
*/
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode getResult(int index);
}
/**
* Protobuf type {@code java.apphosting.TaskQueueDeleteResponse}
*/
public static final class TaskQueueDeleteResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.TaskQueueDeleteResponse)
TaskQueueDeleteResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaskQueueDeleteResponse.newBuilder() to construct.
private TaskQueueDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TaskQueueDeleteResponse() {
result_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TaskQueueDeleteResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueDeleteResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueDeleteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse.Builder.class);
}
public static final int RESULT_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List result_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode> result_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode>() {
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode convert(java.lang.Integer from) {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode result = com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode.forNumber(from);
return result == null ? com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode.OK : result;
}
};
/**
*
* One response per input task_name, in the same order.
* Note: the Delete RPC will return RPC::OK regardless of how many tasks it
* managed to delete; check the individual results to see what happened.
*
*
* repeated .java.apphosting.TaskQueueServiceError.ErrorCode result = 3;
* @return A list containing the result.
*/
@java.lang.Override
public java.util.List getResultList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode>(result_, result_converter_);
}
/**
*
* One response per input task_name, in the same order.
* Note: the Delete RPC will return RPC::OK regardless of how many tasks it
* managed to delete; check the individual results to see what happened.
*
*
* repeated .java.apphosting.TaskQueueServiceError.ErrorCode result = 3;
* @return The count of result.
*/
@java.lang.Override
public int getResultCount() {
return result_.size();
}
/**
*
* One response per input task_name, in the same order.
* Note: the Delete RPC will return RPC::OK regardless of how many tasks it
* managed to delete; check the individual results to see what happened.
*
*
* repeated .java.apphosting.TaskQueueServiceError.ErrorCode result = 3;
* @param index The index of the element to return.
* @return The result at the given index.
*/
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode getResult(int index) {
return result_converter_.convert(result_.get(index));
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < result_.size(); i++) {
output.writeEnum(3, result_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < result_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(result_.get(i));
}
size += dataSize;
size += 1 * result_.size();
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse)) {
return super.equals(obj);
}
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse other = (com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse) obj;
if (!result_.equals(other.result_)) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getResultCount() > 0) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + result_.hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code java.apphosting.TaskQueueDeleteResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.TaskQueueDeleteResponse)
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueDeleteResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueDeleteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse.Builder.class);
}
// Construct using com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
result_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueDeleteResponse_descriptor;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse getDefaultInstanceForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse build() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse buildPartial() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse result = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse result) {
if (((bitField0_ & 0x00000001) != 0)) {
result_ = java.util.Collections.unmodifiableList(result_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.result_ = result_;
}
private void buildPartial0(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse) {
return mergeFrom((com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse other) {
if (other == com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse.getDefaultInstance()) return this;
if (!other.result_.isEmpty()) {
if (result_.isEmpty()) {
result_ = other.result_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureResultIsMutable();
result_.addAll(other.result_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 24: {
int tmpRaw = input.readEnum();
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode tmpValue =
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(3, tmpRaw);
} else {
ensureResultIsMutable();
result_.add(tmpRaw);
}
break;
} // case 24
case 26: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int tmpRaw = input.readEnum();
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode tmpValue =
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(3, tmpRaw);
} else {
ensureResultIsMutable();
result_.add(tmpRaw);
}
}
input.popLimit(oldLimit);
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List result_ =
java.util.Collections.emptyList();
private void ensureResultIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
result_ = new java.util.ArrayList(result_);
bitField0_ |= 0x00000001;
}
}
/**
*
* One response per input task_name, in the same order.
* Note: the Delete RPC will return RPC::OK regardless of how many tasks it
* managed to delete; check the individual results to see what happened.
*
*
* repeated .java.apphosting.TaskQueueServiceError.ErrorCode result = 3;
* @return A list containing the result.
*/
public java.util.List getResultList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode>(result_, result_converter_);
}
/**
*
* One response per input task_name, in the same order.
* Note: the Delete RPC will return RPC::OK regardless of how many tasks it
* managed to delete; check the individual results to see what happened.
*
*
* repeated .java.apphosting.TaskQueueServiceError.ErrorCode result = 3;
* @return The count of result.
*/
public int getResultCount() {
return result_.size();
}
/**
*
* One response per input task_name, in the same order.
* Note: the Delete RPC will return RPC::OK regardless of how many tasks it
* managed to delete; check the individual results to see what happened.
*
*
* repeated .java.apphosting.TaskQueueServiceError.ErrorCode result = 3;
* @param index The index of the element to return.
* @return The result at the given index.
*/
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode getResult(int index) {
return result_converter_.convert(result_.get(index));
}
/**
*
* One response per input task_name, in the same order.
* Note: the Delete RPC will return RPC::OK regardless of how many tasks it
* managed to delete; check the individual results to see what happened.
*
*
* repeated .java.apphosting.TaskQueueServiceError.ErrorCode result = 3;
* @param index The index to set the value at.
* @param value The result to set.
* @return This builder for chaining.
*/
public Builder setResult(
int index, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode value) {
if (value == null) {
throw new NullPointerException();
}
ensureResultIsMutable();
result_.set(index, value.getNumber());
onChanged();
return this;
}
/**
*
* One response per input task_name, in the same order.
* Note: the Delete RPC will return RPC::OK regardless of how many tasks it
* managed to delete; check the individual results to see what happened.
*
*
* repeated .java.apphosting.TaskQueueServiceError.ErrorCode result = 3;
* @param value The result to add.
* @return This builder for chaining.
*/
public Builder addResult(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode value) {
if (value == null) {
throw new NullPointerException();
}
ensureResultIsMutable();
result_.add(value.getNumber());
onChanged();
return this;
}
/**
*
* One response per input task_name, in the same order.
* Note: the Delete RPC will return RPC::OK regardless of how many tasks it
* managed to delete; check the individual results to see what happened.
*
*
* repeated .java.apphosting.TaskQueueServiceError.ErrorCode result = 3;
* @param values The result to add.
* @return This builder for chaining.
*/
public Builder addAllResult(
java.lang.Iterable extends com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode> values) {
ensureResultIsMutable();
for (com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode value : values) {
result_.add(value.getNumber());
}
onChanged();
return this;
}
/**
*
* One response per input task_name, in the same order.
* Note: the Delete RPC will return RPC::OK regardless of how many tasks it
* managed to delete; check the individual results to see what happened.
*
*
* repeated .java.apphosting.TaskQueueServiceError.ErrorCode result = 3;
* @return This builder for chaining.
*/
public Builder clearResult() {
result_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.TaskQueueDeleteResponse)
}
// @@protoc_insertion_point(class_scope:java.apphosting.TaskQueueDeleteResponse)
private static final com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse();
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaskQueueDeleteResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueDeleteResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TaskQueueForceRunRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.TaskQueueForceRunRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Application identifier.
*
*
* optional bytes app_id = 1;
* @return Whether the appId field is set.
*/
boolean hasAppId();
/**
*
*
* required bytes task_name = 3;
* @param value The taskName to set.
* @return This builder for chaining.
*/
public Builder setTaskName(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
taskName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Name of the task to force run.
*
*
* required bytes task_name = 3;
* @return This builder for chaining.
*/
public Builder clearTaskName() {
bitField0_ = (bitField0_ & ~0x00000004);
taskName_ = getDefaultInstance().getTaskName();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.TaskQueueForceRunRequest)
}
// @@protoc_insertion_point(class_scope:java.apphosting.TaskQueueForceRunRequest)
private static final com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunRequest();
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaskQueueForceRunRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TaskQueueForceRunResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.TaskQueueForceRunResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* Error code response to the given request.
*
*
* required .java.apphosting.TaskQueueServiceError.ErrorCode result = 3;
* @return Whether the result field is set.
*/
boolean hasResult();
/**
*
* Error code response to the given request.
*
*
* required .java.apphosting.TaskQueueServiceError.ErrorCode result = 3;
* @return The result.
*/
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode getResult();
}
/**
* Protobuf type {@code java.apphosting.TaskQueueForceRunResponse}
*/
public static final class TaskQueueForceRunResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.TaskQueueForceRunResponse)
TaskQueueForceRunResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaskQueueForceRunResponse.newBuilder() to construct.
private TaskQueueForceRunResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TaskQueueForceRunResponse() {
result_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TaskQueueForceRunResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueForceRunResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueForceRunResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse.Builder.class);
}
private int bitField0_;
public static final int RESULT_FIELD_NUMBER = 3;
private int result_ = 0;
/**
*
* Error code response to the given request.
*
*
* required .java.apphosting.TaskQueueServiceError.ErrorCode result = 3;
* @return Whether the result field is set.
*/
@java.lang.Override public boolean hasResult() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Error code response to the given request.
*
*
* required .java.apphosting.TaskQueueServiceError.ErrorCode result = 3;
* @return The result.
*/
@java.lang.Override public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode getResult() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode result = com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode.forNumber(result_);
return result == null ? com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode.OK : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasResult()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeEnum(3, result_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, result_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse)) {
return super.equals(obj);
}
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse other = (com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse) obj;
if (hasResult() != other.hasResult()) return false;
if (hasResult()) {
if (result_ != other.result_) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasResult()) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + result_;
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code java.apphosting.TaskQueueForceRunResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.TaskQueueForceRunResponse)
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueForceRunResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueForceRunResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse.Builder.class);
}
// Construct using com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
result_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueForceRunResponse_descriptor;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse getDefaultInstanceForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse build() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse buildPartial() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse result = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.result_ = result_;
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse) {
return mergeFrom((com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse other) {
if (other == com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse.getDefaultInstance()) return this;
if (other.hasResult()) {
setResult(other.getResult());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasResult()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 24: {
int tmpRaw = input.readEnum();
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode tmpValue =
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(3, tmpRaw);
} else {
result_ = tmpRaw;
bitField0_ |= 0x00000001;
}
break;
} // case 24
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int result_ = 0;
/**
*
* Error code response to the given request.
*
*
* required .java.apphosting.TaskQueueServiceError.ErrorCode result = 3;
* @return Whether the result field is set.
*/
@java.lang.Override public boolean hasResult() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Error code response to the given request.
*
*
* required .java.apphosting.TaskQueueServiceError.ErrorCode result = 3;
* @return The result.
*/
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode getResult() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode result = com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode.forNumber(result_);
return result == null ? com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode.OK : result;
}
/**
*
* Error code response to the given request.
*
*
* required .java.apphosting.TaskQueueServiceError.ErrorCode result = 3;
* @param value The result to set.
* @return This builder for chaining.
*/
public Builder setResult(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueServiceError.ErrorCode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
result_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Error code response to the given request.
*
*
* required .java.apphosting.TaskQueueServiceError.ErrorCode result = 3;
* @return This builder for chaining.
*/
public Builder clearResult() {
bitField0_ = (bitField0_ & ~0x00000001);
result_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.TaskQueueForceRunResponse)
}
// @@protoc_insertion_point(class_scope:java.apphosting.TaskQueueForceRunResponse)
private static final com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse();
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaskQueueForceRunResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueForceRunResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TaskQueueUpdateQueueRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.TaskQueueUpdateQueueRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the application
*
*
* optional bytes app_id = 1;
* @return Whether the appId field is set.
*/
boolean hasAppId();
/**
*
* The capacity of the token bucket. If < 1.0 tasks not be executed - useful
* for deactivating a queue.
*
*
* required int32 bucket_capacity = 4;
* @return Whether the bucketCapacity field is set.
*/
boolean hasBucketCapacity();
/**
*
* The capacity of the token bucket. If < 1.0 tasks not be executed - useful
* for deactivating a queue.
*
*
* required int32 bucket_capacity = 4;
* @return The bucketCapacity.
*/
int getBucketCapacity();
/**
*
* A human-readable string which describes the rate of execution for this
* queue. Specifically this is the 'rate:' field from queue.yaml which may
* contain values such as "10/m" or "200/d" or "1/s".
*
*
* optional string user_specified_rate = 5;
* @return Whether the userSpecifiedRate field is set.
*/
boolean hasUserSpecifiedRate();
/**
*
* A human-readable string which describes the rate of execution for this
* queue. Specifically this is the 'rate:' field from queue.yaml which may
* contain values such as "10/m" or "200/d" or "1/s".
*
* A human-readable string which describes the rate of execution for this
* queue. Specifically this is the 'rate:' field from queue.yaml which may
* contain values such as "10/m" or "200/d" or "1/s".
*
*
* optional string user_specified_rate = 5;
* @return The bytes for userSpecifiedRate.
*/
com.google.protobuf.ByteString
getUserSpecifiedRateBytes();
/**
* optional .java.apphosting.TaskQueueRetryParameters retry_parameters = 6;
* @return Whether the retryParameters field is set.
*/
boolean hasRetryParameters();
/**
* optional .java.apphosting.TaskQueueRetryParameters retry_parameters = 6;
* @return The retryParameters.
*/
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters getRetryParameters();
/**
* optional .java.apphosting.TaskQueueRetryParameters retry_parameters = 6;
*/
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParametersOrBuilder getRetryParametersOrBuilder();
/**
*
* The maximum number of requests that can be running concurrently.
*
*
* optional int32 max_concurrent_requests = 7;
* @return Whether the maxConcurrentRequests field is set.
*/
boolean hasMaxConcurrentRequests();
/**
*
* The maximum number of requests that can be running concurrently.
*
*
* optional int32 max_concurrent_requests = 7;
* @return The maxConcurrentRequests.
*/
int getMaxConcurrentRequests();
/**
*
* Default is ENUM 0, PUSH.
*
*
* optional .java.apphosting.TaskQueueMode.Mode mode = 8;
* @return Whether the mode field is set.
*/
boolean hasMode();
/**
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
*
* repeated .java.apphosting.TaskQueueHttpHeader header_override = 10;
*/
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeaderOrBuilder getHeaderOverrideOrBuilder(
int index);
}
/**
* Protobuf type {@code java.apphosting.TaskQueueUpdateQueueRequest}
*/
public static final class TaskQueueUpdateQueueRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.TaskQueueUpdateQueueRequest)
TaskQueueUpdateQueueRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaskQueueUpdateQueueRequest.newBuilder() to construct.
private TaskQueueUpdateQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TaskQueueUpdateQueueRequest() {
appId_ = com.google.protobuf.ByteString.EMPTY;
queueName_ = com.google.protobuf.ByteString.EMPTY;
userSpecifiedRate_ = "";
mode_ = 0;
headerOverride_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TaskQueueUpdateQueueRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueUpdateQueueRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueUpdateQueueRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest.Builder.class);
}
private int bitField0_;
public static final int APP_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString appId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Name of the application
*
*
* optional bytes app_id = 1;
* @return Whether the appId field is set.
*/
@java.lang.Override
public boolean hasAppId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Name of the application
*
*
* optional bytes app_id = 1;
* @return The appId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAppId() {
return appId_;
}
public static final int QUEUE_NAME_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString queueName_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Name of the queue.
*
*
* required bytes queue_name = 2;
* @return Whether the queueName field is set.
*/
@java.lang.Override
public boolean hasQueueName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Name of the queue.
*
*
* required bytes queue_name = 2;
* @return The queueName.
*/
@java.lang.Override
public com.google.protobuf.ByteString getQueueName() {
return queueName_;
}
public static final int BUCKET_REFILL_PER_SECOND_FIELD_NUMBER = 3;
private double bucketRefillPerSecond_ = 0D;
/**
*
* The refill rate of the token bucket. In the long run, the queue may not
* exceed this rate of execution.
*
*
* required double bucket_refill_per_second = 3;
* @return Whether the bucketRefillPerSecond field is set.
*/
@java.lang.Override
public boolean hasBucketRefillPerSecond() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The refill rate of the token bucket. In the long run, the queue may not
* exceed this rate of execution.
*
*
* required double bucket_refill_per_second = 3;
* @return The bucketRefillPerSecond.
*/
@java.lang.Override
public double getBucketRefillPerSecond() {
return bucketRefillPerSecond_;
}
public static final int BUCKET_CAPACITY_FIELD_NUMBER = 4;
private int bucketCapacity_ = 0;
/**
*
* The capacity of the token bucket. If < 1.0 tasks not be executed - useful
* for deactivating a queue.
*
*
* required int32 bucket_capacity = 4;
* @return Whether the bucketCapacity field is set.
*/
@java.lang.Override
public boolean hasBucketCapacity() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The capacity of the token bucket. If < 1.0 tasks not be executed - useful
* for deactivating a queue.
*
*
* required int32 bucket_capacity = 4;
* @return The bucketCapacity.
*/
@java.lang.Override
public int getBucketCapacity() {
return bucketCapacity_;
}
public static final int USER_SPECIFIED_RATE_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object userSpecifiedRate_ = "";
/**
*
* A human-readable string which describes the rate of execution for this
* queue. Specifically this is the 'rate:' field from queue.yaml which may
* contain values such as "10/m" or "200/d" or "1/s".
*
*
* optional string user_specified_rate = 5;
* @return Whether the userSpecifiedRate field is set.
*/
@java.lang.Override
public boolean hasUserSpecifiedRate() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* A human-readable string which describes the rate of execution for this
* queue. Specifically this is the 'rate:' field from queue.yaml which may
* contain values such as "10/m" or "200/d" or "1/s".
*
* A human-readable string which describes the rate of execution for this
* queue. Specifically this is the 'rate:' field from queue.yaml which may
* contain values such as "10/m" or "200/d" or "1/s".
*
*
* optional string user_specified_rate = 5;
* @return The bytes for userSpecifiedRate.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUserSpecifiedRateBytes() {
java.lang.Object ref = userSpecifiedRate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userSpecifiedRate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RETRY_PARAMETERS_FIELD_NUMBER = 6;
private com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters retryParameters_;
/**
* optional .java.apphosting.TaskQueueRetryParameters retry_parameters = 6;
* @return Whether the retryParameters field is set.
*/
@java.lang.Override
public boolean hasRetryParameters() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional .java.apphosting.TaskQueueRetryParameters retry_parameters = 6;
* @return The retryParameters.
*/
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters getRetryParameters() {
return retryParameters_ == null ? com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters.getDefaultInstance() : retryParameters_;
}
/**
* optional .java.apphosting.TaskQueueRetryParameters retry_parameters = 6;
*/
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParametersOrBuilder getRetryParametersOrBuilder() {
return retryParameters_ == null ? com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters.getDefaultInstance() : retryParameters_;
}
public static final int MAX_CONCURRENT_REQUESTS_FIELD_NUMBER = 7;
private int maxConcurrentRequests_ = 0;
/**
*
* The maximum number of requests that can be running concurrently.
*
*
* optional int32 max_concurrent_requests = 7;
* @return Whether the maxConcurrentRequests field is set.
*/
@java.lang.Override
public boolean hasMaxConcurrentRequests() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* The maximum number of requests that can be running concurrently.
*
*
* optional int32 max_concurrent_requests = 7;
* @return The maxConcurrentRequests.
*/
@java.lang.Override
public int getMaxConcurrentRequests() {
return maxConcurrentRequests_;
}
public static final int MODE_FIELD_NUMBER = 8;
private int mode_ = 0;
/**
*
* Default is ENUM 0, PUSH.
*
*
* optional .java.apphosting.TaskQueueMode.Mode mode = 8;
* @return Whether the mode field is set.
*/
@java.lang.Override public boolean hasMode() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Default is ENUM 0, PUSH.
*
*
* optional .java.apphosting.TaskQueueMode.Mode mode = 8;
* @return The mode.
*/
@java.lang.Override public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode.Mode getMode() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode.Mode result = com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode.Mode.forNumber(mode_);
return result == null ? com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode.Mode.PUSH : result;
}
public static final int ACL_FIELD_NUMBER = 9;
private com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl acl_;
/**
*
* Users permitted access to this queue via non-appengine apis.
*
*
* optional .java.apphosting.TaskQueueAcl acl = 9;
* @return Whether the acl field is set.
*/
@java.lang.Override
public boolean hasAcl() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Users permitted access to this queue via non-appengine apis.
*
* Users permitted access to this queue via non-appengine apis.
*
*
* optional .java.apphosting.TaskQueueAcl acl = 9;
*/
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAclOrBuilder getAclOrBuilder() {
return acl_ == null ? com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl.getDefaultInstance() : acl_;
}
public static final int HEADER_OVERRIDE_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private java.util.List headerOverride_;
/**
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
*
* repeated .java.apphosting.TaskQueueHttpHeader header_override = 10;
*/
@java.lang.Override
public int getHeaderOverrideCount() {
return headerOverride_.size();
}
/**
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
*
* repeated .java.apphosting.TaskQueueHttpHeader header_override = 10;
*/
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeaderOrBuilder getHeaderOverrideOrBuilder(
int index) {
return headerOverride_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasQueueName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasBucketRefillPerSecond()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasBucketCapacity()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getHeaderOverrideCount(); i++) {
if (!getHeaderOverride(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeBytes(1, appId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBytes(2, queueName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeDouble(3, bucketRefillPerSecond_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt32(4, bucketCapacity_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, userSpecifiedRate_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(6, getRetryParameters());
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeInt32(7, maxConcurrentRequests_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeEnum(8, mode_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeMessage(9, getAcl());
}
for (int i = 0; i < headerOverride_.size(); i++) {
output.writeMessage(10, headerOverride_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, appId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, queueName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, bucketRefillPerSecond_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, bucketCapacity_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, userSpecifiedRate_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getRetryParameters());
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, maxConcurrentRequests_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(8, mode_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getAcl());
}
for (int i = 0; i < headerOverride_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, headerOverride_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest)) {
return super.equals(obj);
}
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest other = (com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest) obj;
if (hasAppId() != other.hasAppId()) return false;
if (hasAppId()) {
if (!getAppId()
.equals(other.getAppId())) return false;
}
if (hasQueueName() != other.hasQueueName()) return false;
if (hasQueueName()) {
if (!getQueueName()
.equals(other.getQueueName())) return false;
}
if (hasBucketRefillPerSecond() != other.hasBucketRefillPerSecond()) return false;
if (hasBucketRefillPerSecond()) {
if (java.lang.Double.doubleToLongBits(getBucketRefillPerSecond())
!= java.lang.Double.doubleToLongBits(
other.getBucketRefillPerSecond())) return false;
}
if (hasBucketCapacity() != other.hasBucketCapacity()) return false;
if (hasBucketCapacity()) {
if (getBucketCapacity()
!= other.getBucketCapacity()) return false;
}
if (hasUserSpecifiedRate() != other.hasUserSpecifiedRate()) return false;
if (hasUserSpecifiedRate()) {
if (!getUserSpecifiedRate()
.equals(other.getUserSpecifiedRate())) return false;
}
if (hasRetryParameters() != other.hasRetryParameters()) return false;
if (hasRetryParameters()) {
if (!getRetryParameters()
.equals(other.getRetryParameters())) return false;
}
if (hasMaxConcurrentRequests() != other.hasMaxConcurrentRequests()) return false;
if (hasMaxConcurrentRequests()) {
if (getMaxConcurrentRequests()
!= other.getMaxConcurrentRequests()) return false;
}
if (hasMode() != other.hasMode()) return false;
if (hasMode()) {
if (mode_ != other.mode_) return false;
}
if (hasAcl() != other.hasAcl()) return false;
if (hasAcl()) {
if (!getAcl()
.equals(other.getAcl())) return false;
}
if (!getHeaderOverrideList()
.equals(other.getHeaderOverrideList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasAppId()) {
hash = (37 * hash) + APP_ID_FIELD_NUMBER;
hash = (53 * hash) + getAppId().hashCode();
}
if (hasQueueName()) {
hash = (37 * hash) + QUEUE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getQueueName().hashCode();
}
if (hasBucketRefillPerSecond()) {
hash = (37 * hash) + BUCKET_REFILL_PER_SECOND_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getBucketRefillPerSecond()));
}
if (hasBucketCapacity()) {
hash = (37 * hash) + BUCKET_CAPACITY_FIELD_NUMBER;
hash = (53 * hash) + getBucketCapacity();
}
if (hasUserSpecifiedRate()) {
hash = (37 * hash) + USER_SPECIFIED_RATE_FIELD_NUMBER;
hash = (53 * hash) + getUserSpecifiedRate().hashCode();
}
if (hasRetryParameters()) {
hash = (37 * hash) + RETRY_PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + getRetryParameters().hashCode();
}
if (hasMaxConcurrentRequests()) {
hash = (37 * hash) + MAX_CONCURRENT_REQUESTS_FIELD_NUMBER;
hash = (53 * hash) + getMaxConcurrentRequests();
}
if (hasMode()) {
hash = (37 * hash) + MODE_FIELD_NUMBER;
hash = (53 * hash) + mode_;
}
if (hasAcl()) {
hash = (37 * hash) + ACL_FIELD_NUMBER;
hash = (53 * hash) + getAcl().hashCode();
}
if (getHeaderOverrideCount() > 0) {
hash = (37 * hash) + HEADER_OVERRIDE_FIELD_NUMBER;
hash = (53 * hash) + getHeaderOverrideList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code java.apphosting.TaskQueueUpdateQueueRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.TaskQueueUpdateQueueRequest)
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueUpdateQueueRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueUpdateQueueRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest.Builder.class);
}
// Construct using com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRetryParametersFieldBuilder();
getAclFieldBuilder();
getHeaderOverrideFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
appId_ = com.google.protobuf.ByteString.EMPTY;
queueName_ = com.google.protobuf.ByteString.EMPTY;
bucketRefillPerSecond_ = 0D;
bucketCapacity_ = 0;
userSpecifiedRate_ = "";
retryParameters_ = null;
if (retryParametersBuilder_ != null) {
retryParametersBuilder_.dispose();
retryParametersBuilder_ = null;
}
maxConcurrentRequests_ = 0;
mode_ = 0;
acl_ = null;
if (aclBuilder_ != null) {
aclBuilder_.dispose();
aclBuilder_ = null;
}
if (headerOverrideBuilder_ == null) {
headerOverride_ = java.util.Collections.emptyList();
} else {
headerOverride_ = null;
headerOverrideBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueUpdateQueueRequest_descriptor;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest getDefaultInstanceForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest build() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest buildPartial() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest result = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest result) {
if (headerOverrideBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0)) {
headerOverride_ = java.util.Collections.unmodifiableList(headerOverride_);
bitField0_ = (bitField0_ & ~0x00000200);
}
result.headerOverride_ = headerOverride_;
} else {
result.headerOverride_ = headerOverrideBuilder_.build();
}
}
private void buildPartial0(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.appId_ = appId_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.queueName_ = queueName_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.bucketRefillPerSecond_ = bucketRefillPerSecond_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.bucketCapacity_ = bucketCapacity_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.userSpecifiedRate_ = userSpecifiedRate_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.retryParameters_ = retryParametersBuilder_ == null
? retryParameters_
: retryParametersBuilder_.build();
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.maxConcurrentRequests_ = maxConcurrentRequests_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.mode_ = mode_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.acl_ = aclBuilder_ == null
? acl_
: aclBuilder_.build();
to_bitField0_ |= 0x00000100;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest) {
return mergeFrom((com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest other) {
if (other == com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest.getDefaultInstance()) return this;
if (other.hasAppId()) {
setAppId(other.getAppId());
}
if (other.hasQueueName()) {
setQueueName(other.getQueueName());
}
if (other.hasBucketRefillPerSecond()) {
setBucketRefillPerSecond(other.getBucketRefillPerSecond());
}
if (other.hasBucketCapacity()) {
setBucketCapacity(other.getBucketCapacity());
}
if (other.hasUserSpecifiedRate()) {
userSpecifiedRate_ = other.userSpecifiedRate_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasRetryParameters()) {
mergeRetryParameters(other.getRetryParameters());
}
if (other.hasMaxConcurrentRequests()) {
setMaxConcurrentRequests(other.getMaxConcurrentRequests());
}
if (other.hasMode()) {
setMode(other.getMode());
}
if (other.hasAcl()) {
mergeAcl(other.getAcl());
}
if (headerOverrideBuilder_ == null) {
if (!other.headerOverride_.isEmpty()) {
if (headerOverride_.isEmpty()) {
headerOverride_ = other.headerOverride_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureHeaderOverrideIsMutable();
headerOverride_.addAll(other.headerOverride_);
}
onChanged();
}
} else {
if (!other.headerOverride_.isEmpty()) {
if (headerOverrideBuilder_.isEmpty()) {
headerOverrideBuilder_.dispose();
headerOverrideBuilder_ = null;
headerOverride_ = other.headerOverride_;
bitField0_ = (bitField0_ & ~0x00000200);
headerOverrideBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getHeaderOverrideFieldBuilder() : null;
} else {
headerOverrideBuilder_.addAllMessages(other.headerOverride_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasQueueName()) {
return false;
}
if (!hasBucketRefillPerSecond()) {
return false;
}
if (!hasBucketCapacity()) {
return false;
}
for (int i = 0; i < getHeaderOverrideCount(); i++) {
if (!getHeaderOverride(i).isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
appId_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
queueName_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 25: {
bucketRefillPerSecond_ = input.readDouble();
bitField0_ |= 0x00000004;
break;
} // case 25
case 32: {
bucketCapacity_ = input.readInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
userSpecifiedRate_ = input.readBytes();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getRetryParametersFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 56: {
maxConcurrentRequests_ = input.readInt32();
bitField0_ |= 0x00000040;
break;
} // case 56
case 64: {
int tmpRaw = input.readEnum();
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode.Mode tmpValue =
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode.Mode.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(8, tmpRaw);
} else {
mode_ = tmpRaw;
bitField0_ |= 0x00000080;
}
break;
} // case 64
case 74: {
input.readMessage(
getAclFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000100;
break;
} // case 74
case 82: {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader m =
input.readMessage(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader.PARSER,
extensionRegistry);
if (headerOverrideBuilder_ == null) {
ensureHeaderOverrideIsMutable();
headerOverride_.add(m);
} else {
headerOverrideBuilder_.addMessage(m);
}
break;
} // case 82
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString appId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Name of the application
*
*
* optional bytes app_id = 1;
* @return Whether the appId field is set.
*/
@java.lang.Override
public boolean hasAppId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* A human-readable string which describes the rate of execution for this
* queue. Specifically this is the 'rate:' field from queue.yaml which may
* contain values such as "10/m" or "200/d" or "1/s".
*
*
* optional string user_specified_rate = 5;
* @return Whether the userSpecifiedRate field is set.
*/
public boolean hasUserSpecifiedRate() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* A human-readable string which describes the rate of execution for this
* queue. Specifically this is the 'rate:' field from queue.yaml which may
* contain values such as "10/m" or "200/d" or "1/s".
*
* A human-readable string which describes the rate of execution for this
* queue. Specifically this is the 'rate:' field from queue.yaml which may
* contain values such as "10/m" or "200/d" or "1/s".
*
*
* optional string user_specified_rate = 5;
* @return The bytes for userSpecifiedRate.
*/
public com.google.protobuf.ByteString
getUserSpecifiedRateBytes() {
java.lang.Object ref = userSpecifiedRate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userSpecifiedRate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A human-readable string which describes the rate of execution for this
* queue. Specifically this is the 'rate:' field from queue.yaml which may
* contain values such as "10/m" or "200/d" or "1/s".
*
*
* optional string user_specified_rate = 5;
* @param value The userSpecifiedRate to set.
* @return This builder for chaining.
*/
public Builder setUserSpecifiedRate(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
userSpecifiedRate_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* A human-readable string which describes the rate of execution for this
* queue. Specifically this is the 'rate:' field from queue.yaml which may
* contain values such as "10/m" or "200/d" or "1/s".
*
* A human-readable string which describes the rate of execution for this
* queue. Specifically this is the 'rate:' field from queue.yaml which may
* contain values such as "10/m" or "200/d" or "1/s".
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
*
* repeated .java.apphosting.TaskQueueHttpHeader header_override = 10;
*/
public int getHeaderOverrideCount() {
if (headerOverrideBuilder_ == null) {
return headerOverride_.size();
} else {
return headerOverrideBuilder_.getCount();
}
}
/**
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
*
* repeated .java.apphosting.TaskQueueHttpHeader header_override = 10;
*/
public Builder setHeaderOverride(
int index, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader value) {
if (headerOverrideBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHeaderOverrideIsMutable();
headerOverride_.set(index, value);
onChanged();
} else {
headerOverrideBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
*
* repeated .java.apphosting.TaskQueueHttpHeader header_override = 10;
*/
public Builder addHeaderOverride(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader value) {
if (headerOverrideBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHeaderOverrideIsMutable();
headerOverride_.add(value);
onChanged();
} else {
headerOverrideBuilder_.addMessage(value);
}
return this;
}
/**
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
*
* repeated .java.apphosting.TaskQueueHttpHeader header_override = 10;
*/
public Builder addHeaderOverride(
int index, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader value) {
if (headerOverrideBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHeaderOverrideIsMutable();
headerOverride_.add(index, value);
onChanged();
} else {
headerOverrideBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
*
* repeated .java.apphosting.TaskQueueHttpHeader header_override = 10;
*/
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader.Builder getHeaderOverrideBuilder(
int index) {
return getHeaderOverrideFieldBuilder().getBuilder(index);
}
/**
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
*
* repeated .java.apphosting.TaskQueueHttpHeader header_override = 10;
*/
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeaderOrBuilder getHeaderOverrideOrBuilder(
int index) {
if (headerOverrideBuilder_ == null) {
return headerOverride_.get(index); } else {
return headerOverrideBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
* Header overrides that will be applied when the task is run.
* This may be used to force all tasks in a queue to execute against a
* specific verion/server instance (by overriding the 'Host' header).
* NOTE: Admin-console developers MUST ensure that users can not insert
* arbitary values into this field.
*
*
* repeated .java.apphosting.TaskQueueHttpHeader header_override = 10;
*/
public java.util.List
getHeaderOverrideBuilderList() {
return getHeaderOverrideFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader.Builder, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeaderOrBuilder>
getHeaderOverrideFieldBuilder() {
if (headerOverrideBuilder_ == null) {
headerOverrideBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeader.Builder, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueHttpHeaderOrBuilder>(
headerOverride_,
((bitField0_ & 0x00000200) != 0),
getParentForChildren(),
isClean());
headerOverride_ = null;
}
return headerOverrideBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.TaskQueueUpdateQueueRequest)
}
// @@protoc_insertion_point(class_scope:java.apphosting.TaskQueueUpdateQueueRequest)
private static final com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest();
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaskQueueUpdateQueueRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TaskQueueUpdateQueueResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.TaskQueueUpdateQueueResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* Reserved for future use.
*
*
* Protobuf type {@code java.apphosting.TaskQueueUpdateQueueResponse}
*/
public static final class TaskQueueUpdateQueueResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.TaskQueueUpdateQueueResponse)
TaskQueueUpdateQueueResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaskQueueUpdateQueueResponse.newBuilder() to construct.
private TaskQueueUpdateQueueResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TaskQueueUpdateQueueResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TaskQueueUpdateQueueResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueUpdateQueueResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueUpdateQueueResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse.Builder.class);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse)) {
return super.equals(obj);
}
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse other = (com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Reserved for future use.
*
*
* Protobuf type {@code java.apphosting.TaskQueueUpdateQueueResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.TaskQueueUpdateQueueResponse)
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueUpdateQueueResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueUpdateQueueResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse.Builder.class);
}
// Construct using com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueUpdateQueueResponse_descriptor;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse getDefaultInstanceForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse build() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse buildPartial() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse result = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse) {
return mergeFrom((com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse other) {
if (other == com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.TaskQueueUpdateQueueResponse)
}
// @@protoc_insertion_point(class_scope:java.apphosting.TaskQueueUpdateQueueResponse)
private static final com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse();
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaskQueueUpdateQueueResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueUpdateQueueResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TaskQueueFetchQueuesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.TaskQueueFetchQueuesRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the application
*
*
* optional bytes app_id = 1;
* @return Whether the appId field is set.
*/
boolean hasAppId();
/**
*
* A human-readable string which describes the rate of execution for this
* queue. Specifically this is the 'rate:' field from queue.yaml which may
* contain values such as "10/m" or "200/d" or "1/s".
*
*
* optional string user_specified_rate = 5;
* @return Whether the userSpecifiedRate field is set.
*/
boolean hasUserSpecifiedRate();
/**
*
* A human-readable string which describes the rate of execution for this
* queue. Specifically this is the 'rate:' field from queue.yaml which may
* contain values such as "10/m" or "200/d" or "1/s".
*
* A human-readable string which describes the rate of execution for this
* queue. Specifically this is the 'rate:' field from queue.yaml which may
* contain values such as "10/m" or "200/d" or "1/s".
*
*
* optional string user_specified_rate = 5;
* @return The bytes for userSpecifiedRate.
*/
com.google.protobuf.ByteString
getUserSpecifiedRateBytes();
/**
*
* A flag indicating the queue is paused (true) or unpaused (false).
*
*
* required bool paused = 6;
* @return Whether the paused field is set.
*/
boolean hasPaused();
/**
*
* A flag indicating the queue is paused (true) or unpaused (false).
*
* The creator of this queue. Defaults to "apphosting" for queues created
* via App Engine's Task Queue Api.
*
*
* optional string creator_name = 12 [default = "apphosting", ctype = CORD];
* @return The bytes for creatorName.
*/
com.google.protobuf.ByteString
getCreatorNameBytes();
}
/**
* Protobuf type {@code java.apphosting.TaskQueueFetchQueuesResponse.Queue}
*/
public static final class Queue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.TaskQueueFetchQueuesResponse.Queue)
QueueOrBuilder {
private static final long serialVersionUID = 0L;
// Use Queue.newBuilder() to construct.
private Queue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Queue() {
queueName_ = com.google.protobuf.ByteString.EMPTY;
userSpecifiedRate_ = "";
mode_ = 0;
headerOverride_ = java.util.Collections.emptyList();
creatorName_ = "apphosting";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Queue();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueFetchQueuesResponse_Queue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueFetchQueuesResponse_Queue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueuesResponse.Queue.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueuesResponse.Queue.Builder.class);
}
private int bitField0_;
public static final int QUEUE_NAME_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString queueName_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* queue name
*
*
* required bytes queue_name = 2;
* @return Whether the queueName field is set.
*/
@java.lang.Override
public boolean hasQueueName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* queue name
*
*
* required bytes queue_name = 2;
* @return The queueName.
*/
@java.lang.Override
public com.google.protobuf.ByteString getQueueName() {
return queueName_;
}
public static final int BUCKET_REFILL_PER_SECOND_FIELD_NUMBER = 3;
private double bucketRefillPerSecond_ = 0D;
/**
*
* The refill rate of the token bucket. In the long run, the queue may not
* exceed this rate of execution.
*
*
* required double bucket_refill_per_second = 3;
* @return Whether the bucketRefillPerSecond field is set.
*/
@java.lang.Override
public boolean hasBucketRefillPerSecond() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The refill rate of the token bucket. In the long run, the queue may not
* exceed this rate of execution.
*
*
* required double bucket_refill_per_second = 3;
* @return The bucketRefillPerSecond.
*/
@java.lang.Override
public double getBucketRefillPerSecond() {
return bucketRefillPerSecond_;
}
public static final int BUCKET_CAPACITY_FIELD_NUMBER = 4;
private double bucketCapacity_ = 0D;
/**
*
* The capacity of the token bucket. If < 1.0 tasks not be executed - useful
* for deactivating a queue.
* TODO: Change this to int32.
*
*
* required double bucket_capacity = 4;
* @return Whether the bucketCapacity field is set.
*/
@java.lang.Override
public boolean hasBucketCapacity() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The capacity of the token bucket. If < 1.0 tasks not be executed - useful
* for deactivating a queue.
* TODO: Change this to int32.
*
*
* required double bucket_capacity = 4;
* @return The bucketCapacity.
*/
@java.lang.Override
public double getBucketCapacity() {
return bucketCapacity_;
}
public static final int USER_SPECIFIED_RATE_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object userSpecifiedRate_ = "";
/**
*
* A human-readable string which describes the rate of execution for this
* queue. Specifically this is the 'rate:' field from queue.yaml which may
* contain values such as "10/m" or "200/d" or "1/s".
*
*
* optional string user_specified_rate = 5;
* @return Whether the userSpecifiedRate field is set.
*/
@java.lang.Override
public boolean hasUserSpecifiedRate() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* A human-readable string which describes the rate of execution for this
* queue. Specifically this is the 'rate:' field from queue.yaml which may
* contain values such as "10/m" or "200/d" or "1/s".
*
* A human-readable string which describes the rate of execution for this
* queue. Specifically this is the 'rate:' field from queue.yaml which may
* contain values such as "10/m" or "200/d" or "1/s".
*
*
* optional string user_specified_rate = 5;
* @return The bytes for userSpecifiedRate.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUserSpecifiedRateBytes() {
java.lang.Object ref = userSpecifiedRate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userSpecifiedRate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAUSED_FIELD_NUMBER = 6;
private boolean paused_ = false;
/**
*
* A flag indicating the queue is paused (true) or unpaused (false).
*
*
* required bool paused = 6;
* @return Whether the paused field is set.
*/
@java.lang.Override
public boolean hasPaused() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* A flag indicating the queue is paused (true) or unpaused (false).
*
*
* required bool paused = 6;
* @return The paused.
*/
@java.lang.Override
public boolean getPaused() {
return paused_;
}
public static final int RETRY_PARAMETERS_FIELD_NUMBER = 7;
private com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters retryParameters_;
/**
*
* Retry parameters for this queue. If a task specifies its own retry
* parameters, they are used instead. If both are absent, defaults are
* used.
*
*
* optional .java.apphosting.TaskQueueRetryParameters retry_parameters = 7;
* @return Whether the retryParameters field is set.
*/
@java.lang.Override
public boolean hasRetryParameters() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Retry parameters for this queue. If a task specifies its own retry
* parameters, they are used instead. If both are absent, defaults are
* used.
*
* Retry parameters for this queue. If a task specifies its own retry
* parameters, they are used instead. If both are absent, defaults are
* used.
*
*
* optional .java.apphosting.TaskQueueRetryParameters retry_parameters = 7;
*/
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParametersOrBuilder getRetryParametersOrBuilder() {
return retryParameters_ == null ? com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueRetryParameters.getDefaultInstance() : retryParameters_;
}
public static final int MAX_CONCURRENT_REQUESTS_FIELD_NUMBER = 8;
private int maxConcurrentRequests_ = 0;
/**
*
* The maximum number of requests that can be running concurrently.
*
*
* optional int32 max_concurrent_requests = 8;
* @return Whether the maxConcurrentRequests field is set.
*/
@java.lang.Override
public boolean hasMaxConcurrentRequests() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* The maximum number of requests that can be running concurrently.
*
*
* optional int32 max_concurrent_requests = 8;
* @return The maxConcurrentRequests.
*/
@java.lang.Override
public int getMaxConcurrentRequests() {
return maxConcurrentRequests_;
}
public static final int MODE_FIELD_NUMBER = 9;
private int mode_ = 0;
/**
*
* Default is ENUM 0, PUSH.
*
*
* optional .java.apphosting.TaskQueueMode.Mode mode = 9;
* @return Whether the mode field is set.
*/
@java.lang.Override public boolean hasMode() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Default is ENUM 0, PUSH.
*
*
* optional .java.apphosting.TaskQueueMode.Mode mode = 9;
* @return The mode.
*/
@java.lang.Override public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode.Mode getMode() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode.Mode result = com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode.Mode.forNumber(mode_);
return result == null ? com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueMode.Mode.PUSH : result;
}
public static final int ACL_FIELD_NUMBER = 10;
private com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueAcl acl_;
/**
*
* Users permitted access to this queue via non-appengine APIs.
*
*
* optional .java.apphosting.TaskQueueAcl acl = 10;
* @return Whether the acl field is set.
*/
@java.lang.Override
public boolean hasAcl() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Users permitted access to this queue via non-appengine APIs.
*
* A human-readable string which describes the rate of execution for this
* queue. Specifically this is the 'rate:' field from queue.yaml which may
* contain values such as "10/m" or "200/d" or "1/s".
*
*
* optional string user_specified_rate = 5;
* @return Whether the userSpecifiedRate field is set.
*/
public boolean hasUserSpecifiedRate() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* A human-readable string which describes the rate of execution for this
* queue. Specifically this is the 'rate:' field from queue.yaml which may
* contain values such as "10/m" or "200/d" or "1/s".
*
* A human-readable string which describes the rate of execution for this
* queue. Specifically this is the 'rate:' field from queue.yaml which may
* contain values such as "10/m" or "200/d" or "1/s".
*
*
* optional string user_specified_rate = 5;
* @return The bytes for userSpecifiedRate.
*/
public com.google.protobuf.ByteString
getUserSpecifiedRateBytes() {
java.lang.Object ref = userSpecifiedRate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userSpecifiedRate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A human-readable string which describes the rate of execution for this
* queue. Specifically this is the 'rate:' field from queue.yaml which may
* contain values such as "10/m" or "200/d" or "1/s".
*
*
* optional string user_specified_rate = 5;
* @param value The userSpecifiedRate to set.
* @return This builder for chaining.
*/
public Builder setUserSpecifiedRate(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
userSpecifiedRate_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* A human-readable string which describes the rate of execution for this
* queue. Specifically this is the 'rate:' field from queue.yaml which may
* contain values such as "10/m" or "200/d" or "1/s".
*
* A human-readable string which describes the rate of execution for this
* queue. Specifically this is the 'rate:' field from queue.yaml which may
* contain values such as "10/m" or "200/d" or "1/s".
*
*
* optional string user_specified_rate = 5;
* @param value The bytes for userSpecifiedRate to set.
* @return This builder for chaining.
*/
public Builder setUserSpecifiedRateBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
userSpecifiedRate_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private boolean paused_ ;
/**
*
* A flag indicating the queue is paused (true) or unpaused (false).
*
*
* required bool paused = 6;
* @return Whether the paused field is set.
*/
@java.lang.Override
public boolean hasPaused() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* A flag indicating the queue is paused (true) or unpaused (false).
*
*
* repeated bytes queue_name = 2;
* @return A list containing the queueName.
*/
java.util.List getQueueNameList();
/**
*
* Name of the queues to fetch statistics for.
*
*
* repeated bytes queue_name = 2;
* @return The count of queueName.
*/
int getQueueNameCount();
/**
*
* Name of the queues to fetch statistics for.
*
*
* repeated bytes queue_name = 2;
* @param index The index of the element to return.
* @return The queueName at the given index.
*/
com.google.protobuf.ByteString getQueueName(int index);
/**
*
* The maximum number of tasks to scan for each queue. If a queue has more
* tasks than 'max_num_tasks', then we will return an approximation of the
* number of tasks.
* If zero (or left unset) then only the approximation will be returned.
*
*
* optional int32 max_num_tasks = 3;
* @return Whether the maxNumTasks field is set.
*/
boolean hasMaxNumTasks();
/**
*
* The maximum number of tasks to scan for each queue. If a queue has more
* tasks than 'max_num_tasks', then we will return an approximation of the
* number of tasks.
* If zero (or left unset) then only the approximation will be returned.
*
*
* optional int32 max_num_tasks = 3;
* @return The maxNumTasks.
*/
int getMaxNumTasks();
}
/**
* Protobuf type {@code java.apphosting.TaskQueueFetchQueueStatsRequest}
*/
public static final class TaskQueueFetchQueueStatsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.TaskQueueFetchQueueStatsRequest)
TaskQueueFetchQueueStatsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaskQueueFetchQueueStatsRequest.newBuilder() to construct.
private TaskQueueFetchQueueStatsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TaskQueueFetchQueueStatsRequest() {
appId_ = com.google.protobuf.ByteString.EMPTY;
queueName_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TaskQueueFetchQueueStatsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueFetchQueueStatsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueFetchQueueStatsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest.Builder.class);
}
private int bitField0_;
public static final int APP_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString appId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Name of the application.
*
*
* optional bytes app_id = 1;
* @return Whether the appId field is set.
*/
@java.lang.Override
public boolean hasAppId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Name of the application.
*
*
* optional bytes app_id = 1;
* @return The appId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAppId() {
return appId_;
}
public static final int QUEUE_NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List queueName_;
/**
*
* Name of the queues to fetch statistics for.
*
*
* repeated bytes queue_name = 2;
* @return A list containing the queueName.
*/
@java.lang.Override
public java.util.List
getQueueNameList() {
return queueName_;
}
/**
*
* Name of the queues to fetch statistics for.
*
*
* repeated bytes queue_name = 2;
* @return The count of queueName.
*/
public int getQueueNameCount() {
return queueName_.size();
}
/**
*
* Name of the queues to fetch statistics for.
*
*
* repeated bytes queue_name = 2;
* @param index The index of the element to return.
* @return The queueName at the given index.
*/
public com.google.protobuf.ByteString getQueueName(int index) {
return queueName_.get(index);
}
public static final int MAX_NUM_TASKS_FIELD_NUMBER = 3;
private int maxNumTasks_ = 0;
/**
*
* The maximum number of tasks to scan for each queue. If a queue has more
* tasks than 'max_num_tasks', then we will return an approximation of the
* number of tasks.
* If zero (or left unset) then only the approximation will be returned.
*
*
* optional int32 max_num_tasks = 3;
* @return Whether the maxNumTasks field is set.
*/
@java.lang.Override
public boolean hasMaxNumTasks() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The maximum number of tasks to scan for each queue. If a queue has more
* tasks than 'max_num_tasks', then we will return an approximation of the
* number of tasks.
* If zero (or left unset) then only the approximation will be returned.
*
*
* optional int32 max_num_tasks = 3;
* @return The maxNumTasks.
*/
@java.lang.Override
public int getMaxNumTasks() {
return maxNumTasks_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeBytes(1, appId_);
}
for (int i = 0; i < queueName_.size(); i++) {
output.writeBytes(2, queueName_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt32(3, maxNumTasks_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, appId_);
}
{
int dataSize = 0;
for (int i = 0; i < queueName_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(queueName_.get(i));
}
size += dataSize;
size += 1 * getQueueNameList().size();
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, maxNumTasks_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest)) {
return super.equals(obj);
}
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest other = (com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest) obj;
if (hasAppId() != other.hasAppId()) return false;
if (hasAppId()) {
if (!getAppId()
.equals(other.getAppId())) return false;
}
if (!getQueueNameList()
.equals(other.getQueueNameList())) return false;
if (hasMaxNumTasks() != other.hasMaxNumTasks()) return false;
if (hasMaxNumTasks()) {
if (getMaxNumTasks()
!= other.getMaxNumTasks()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasAppId()) {
hash = (37 * hash) + APP_ID_FIELD_NUMBER;
hash = (53 * hash) + getAppId().hashCode();
}
if (getQueueNameCount() > 0) {
hash = (37 * hash) + QUEUE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getQueueNameList().hashCode();
}
if (hasMaxNumTasks()) {
hash = (37 * hash) + MAX_NUM_TASKS_FIELD_NUMBER;
hash = (53 * hash) + getMaxNumTasks();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code java.apphosting.TaskQueueFetchQueueStatsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.TaskQueueFetchQueueStatsRequest)
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueFetchQueueStatsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueFetchQueueStatsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest.Builder.class);
}
// Construct using com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
appId_ = com.google.protobuf.ByteString.EMPTY;
queueName_ = java.util.Collections.emptyList();
maxNumTasks_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueFetchQueueStatsRequest_descriptor;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest getDefaultInstanceForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest build() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest buildPartial() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest result = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest result) {
if (((bitField0_ & 0x00000002) != 0)) {
queueName_ = java.util.Collections.unmodifiableList(queueName_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.queueName_ = queueName_;
}
private void buildPartial0(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.appId_ = appId_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.maxNumTasks_ = maxNumTasks_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest) {
return mergeFrom((com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest other) {
if (other == com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest.getDefaultInstance()) return this;
if (other.hasAppId()) {
setAppId(other.getAppId());
}
if (!other.queueName_.isEmpty()) {
if (queueName_.isEmpty()) {
queueName_ = other.queueName_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureQueueNameIsMutable();
queueName_.addAll(other.queueName_);
}
onChanged();
}
if (other.hasMaxNumTasks()) {
setMaxNumTasks(other.getMaxNumTasks());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
appId_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
com.google.protobuf.ByteString v = input.readBytes();
ensureQueueNameIsMutable();
queueName_.add(v);
break;
} // case 18
case 24: {
maxNumTasks_ = input.readInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString appId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Name of the application.
*
*
* optional bytes app_id = 1;
* @return Whether the appId field is set.
*/
@java.lang.Override
public boolean hasAppId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
* repeated bytes queue_name = 2;
* @return A list containing the queueName.
*/
public java.util.List
getQueueNameList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(queueName_) : queueName_;
}
/**
*
* Name of the queues to fetch statistics for.
*
*
* repeated bytes queue_name = 2;
* @return The count of queueName.
*/
public int getQueueNameCount() {
return queueName_.size();
}
/**
*
* Name of the queues to fetch statistics for.
*
*
* repeated bytes queue_name = 2;
* @param index The index of the element to return.
* @return The queueName at the given index.
*/
public com.google.protobuf.ByteString getQueueName(int index) {
return queueName_.get(index);
}
/**
*
* Name of the queues to fetch statistics for.
*
*
* repeated bytes queue_name = 2;
* @param index The index to set the value at.
* @param value The queueName to set.
* @return This builder for chaining.
*/
public Builder setQueueName(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureQueueNameIsMutable();
queueName_.set(index, value);
onChanged();
return this;
}
/**
*
* Name of the queues to fetch statistics for.
*
*
* repeated bytes queue_name = 2;
* @param value The queueName to add.
* @return This builder for chaining.
*/
public Builder addQueueName(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureQueueNameIsMutable();
queueName_.add(value);
onChanged();
return this;
}
/**
*
* Name of the queues to fetch statistics for.
*
*
* repeated bytes queue_name = 2;
* @param values The queueName to add.
* @return This builder for chaining.
*/
public Builder addAllQueueName(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureQueueNameIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, queueName_);
onChanged();
return this;
}
/**
*
* Name of the queues to fetch statistics for.
*
*
* repeated bytes queue_name = 2;
* @return This builder for chaining.
*/
public Builder clearQueueName() {
queueName_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private int maxNumTasks_ ;
/**
*
* The maximum number of tasks to scan for each queue. If a queue has more
* tasks than 'max_num_tasks', then we will return an approximation of the
* number of tasks.
* If zero (or left unset) then only the approximation will be returned.
*
*
* optional int32 max_num_tasks = 3;
* @return Whether the maxNumTasks field is set.
*/
@java.lang.Override
public boolean hasMaxNumTasks() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The maximum number of tasks to scan for each queue. If a queue has more
* tasks than 'max_num_tasks', then we will return an approximation of the
* number of tasks.
* If zero (or left unset) then only the approximation will be returned.
*
*
* optional int32 max_num_tasks = 3;
* @return The maxNumTasks.
*/
@java.lang.Override
public int getMaxNumTasks() {
return maxNumTasks_;
}
/**
*
* The maximum number of tasks to scan for each queue. If a queue has more
* tasks than 'max_num_tasks', then we will return an approximation of the
* number of tasks.
* If zero (or left unset) then only the approximation will be returned.
*
*
* optional int32 max_num_tasks = 3;
* @param value The maxNumTasks to set.
* @return This builder for chaining.
*/
public Builder setMaxNumTasks(int value) {
maxNumTasks_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The maximum number of tasks to scan for each queue. If a queue has more
* tasks than 'max_num_tasks', then we will return an approximation of the
* number of tasks.
* If zero (or left unset) then only the approximation will be returned.
*
*
* optional int32 max_num_tasks = 3;
* @return This builder for chaining.
*/
public Builder clearMaxNumTasks() {
bitField0_ = (bitField0_ & ~0x00000004);
maxNumTasks_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.TaskQueueFetchQueueStatsRequest)
}
// @@protoc_insertion_point(class_scope:java.apphosting.TaskQueueFetchQueueStatsRequest)
private static final com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest();
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaskQueueFetchQueueStatsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TaskQueueScannerQueueInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.TaskQueueScannerQueueInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
* The number of the queue's tasks executed in the last minute.
*
*
* required int64 executed_last_minute = 1;
* @return Whether the executedLastMinute field is set.
*/
boolean hasExecutedLastMinute();
/**
*
* The number of the queue's tasks executed in the last minute.
*
*
* required int64 executed_last_minute = 1;
* @return The executedLastMinute.
*/
long getExecutedLastMinute();
/**
*
* The number of the queue's tasks executed in the last hour.
*
*
* required int64 executed_last_hour = 2;
* @return Whether the executedLastHour field is set.
*/
boolean hasExecutedLastHour();
/**
*
* The number of the queue's tasks executed in the last hour.
*
*
* required int64 executed_last_hour = 2;
* @return The executedLastHour.
*/
long getExecutedLastHour();
/**
*
* The length of time that execution statistics have been recorded for this
* queue. If the queue is still in its startup phase (unable to process
* tasks), this will be set to zero.
*
*
* required double sampling_duration_seconds = 3;
* @return Whether the samplingDurationSeconds field is set.
*/
boolean hasSamplingDurationSeconds();
/**
*
* The length of time that execution statistics have been recorded for this
* queue. If the queue is still in its startup phase (unable to process
* tasks), this will be set to zero.
*
*
* Protobuf type {@code java.apphosting.TaskQueueScannerQueueInfo}
*/
public static final class TaskQueueScannerQueueInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.TaskQueueScannerQueueInfo)
TaskQueueScannerQueueInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaskQueueScannerQueueInfo.newBuilder() to construct.
private TaskQueueScannerQueueInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TaskQueueScannerQueueInfo() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TaskQueueScannerQueueInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueScannerQueueInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueScannerQueueInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo.Builder.class);
}
private int bitField0_;
public static final int EXECUTED_LAST_MINUTE_FIELD_NUMBER = 1;
private long executedLastMinute_ = 0L;
/**
*
* The number of the queue's tasks executed in the last minute.
*
*
* required int64 executed_last_minute = 1;
* @return Whether the executedLastMinute field is set.
*/
@java.lang.Override
public boolean hasExecutedLastMinute() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The number of the queue's tasks executed in the last minute.
*
*
* required int64 executed_last_minute = 1;
* @return The executedLastMinute.
*/
@java.lang.Override
public long getExecutedLastMinute() {
return executedLastMinute_;
}
public static final int EXECUTED_LAST_HOUR_FIELD_NUMBER = 2;
private long executedLastHour_ = 0L;
/**
*
* The number of the queue's tasks executed in the last hour.
*
*
* required int64 executed_last_hour = 2;
* @return Whether the executedLastHour field is set.
*/
@java.lang.Override
public boolean hasExecutedLastHour() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The number of the queue's tasks executed in the last hour.
*
*
* required int64 executed_last_hour = 2;
* @return The executedLastHour.
*/
@java.lang.Override
public long getExecutedLastHour() {
return executedLastHour_;
}
public static final int SAMPLING_DURATION_SECONDS_FIELD_NUMBER = 3;
private double samplingDurationSeconds_ = 0D;
/**
*
* The length of time that execution statistics have been recorded for this
* queue. If the queue is still in its startup phase (unable to process
* tasks), this will be set to zero.
*
*
* required double sampling_duration_seconds = 3;
* @return Whether the samplingDurationSeconds field is set.
*/
@java.lang.Override
public boolean hasSamplingDurationSeconds() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The length of time that execution statistics have been recorded for this
* queue. If the queue is still in its startup phase (unable to process
* tasks), this will be set to zero.
*
*
* required double sampling_duration_seconds = 3;
* @return The samplingDurationSeconds.
*/
@java.lang.Override
public double getSamplingDurationSeconds() {
return samplingDurationSeconds_;
}
public static final int REQUESTS_IN_FLIGHT_FIELD_NUMBER = 4;
private int requestsInFlight_ = 0;
/**
*
* The number of requests from the queue for which a reply has not yet been
* received.
*
*
* optional int32 requests_in_flight = 4;
* @return Whether the requestsInFlight field is set.
*/
@java.lang.Override
public boolean hasRequestsInFlight() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The number of requests from the queue for which a reply has not yet been
* received.
*
*
* optional int32 requests_in_flight = 4;
* @return The requestsInFlight.
*/
@java.lang.Override
public int getRequestsInFlight() {
return requestsInFlight_;
}
public static final int ENFORCED_RATE_FIELD_NUMBER = 5;
private double enforcedRate_ = 0D;
/**
*
* The rate as enforced by the scanner (requests per seconds).
*
*
* optional double enforced_rate = 5;
* @return Whether the enforcedRate field is set.
*/
@java.lang.Override
public boolean hasEnforcedRate() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* The rate as enforced by the scanner (requests per seconds).
*
*
* optional double enforced_rate = 5;
* @return The enforcedRate.
*/
@java.lang.Override
public double getEnforcedRate() {
return enforcedRate_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasExecutedLastMinute()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasExecutedLastHour()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasSamplingDurationSeconds()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(1, executedLastMinute_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(2, executedLastHour_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeDouble(3, samplingDurationSeconds_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt32(4, requestsInFlight_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeDouble(5, enforcedRate_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, executedLastMinute_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, executedLastHour_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, samplingDurationSeconds_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, requestsInFlight_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, enforcedRate_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo)) {
return super.equals(obj);
}
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo other = (com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo) obj;
if (hasExecutedLastMinute() != other.hasExecutedLastMinute()) return false;
if (hasExecutedLastMinute()) {
if (getExecutedLastMinute()
!= other.getExecutedLastMinute()) return false;
}
if (hasExecutedLastHour() != other.hasExecutedLastHour()) return false;
if (hasExecutedLastHour()) {
if (getExecutedLastHour()
!= other.getExecutedLastHour()) return false;
}
if (hasSamplingDurationSeconds() != other.hasSamplingDurationSeconds()) return false;
if (hasSamplingDurationSeconds()) {
if (java.lang.Double.doubleToLongBits(getSamplingDurationSeconds())
!= java.lang.Double.doubleToLongBits(
other.getSamplingDurationSeconds())) return false;
}
if (hasRequestsInFlight() != other.hasRequestsInFlight()) return false;
if (hasRequestsInFlight()) {
if (getRequestsInFlight()
!= other.getRequestsInFlight()) return false;
}
if (hasEnforcedRate() != other.hasEnforcedRate()) return false;
if (hasEnforcedRate()) {
if (java.lang.Double.doubleToLongBits(getEnforcedRate())
!= java.lang.Double.doubleToLongBits(
other.getEnforcedRate())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasExecutedLastMinute()) {
hash = (37 * hash) + EXECUTED_LAST_MINUTE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getExecutedLastMinute());
}
if (hasExecutedLastHour()) {
hash = (37 * hash) + EXECUTED_LAST_HOUR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getExecutedLastHour());
}
if (hasSamplingDurationSeconds()) {
hash = (37 * hash) + SAMPLING_DURATION_SECONDS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getSamplingDurationSeconds()));
}
if (hasRequestsInFlight()) {
hash = (37 * hash) + REQUESTS_IN_FLIGHT_FIELD_NUMBER;
hash = (53 * hash) + getRequestsInFlight();
}
if (hasEnforcedRate()) {
hash = (37 * hash) + ENFORCED_RATE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getEnforcedRate()));
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Queue information from Executor Scanner.
*
*
* Protobuf type {@code java.apphosting.TaskQueueScannerQueueInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.TaskQueueScannerQueueInfo)
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueScannerQueueInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueScannerQueueInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo.Builder.class);
}
// Construct using com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
executedLastMinute_ = 0L;
executedLastHour_ = 0L;
samplingDurationSeconds_ = 0D;
requestsInFlight_ = 0;
enforcedRate_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueScannerQueueInfo_descriptor;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo getDefaultInstanceForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo build() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo buildPartial() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo result = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.executedLastMinute_ = executedLastMinute_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.executedLastHour_ = executedLastHour_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.samplingDurationSeconds_ = samplingDurationSeconds_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.requestsInFlight_ = requestsInFlight_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.enforcedRate_ = enforcedRate_;
to_bitField0_ |= 0x00000010;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo) {
return mergeFrom((com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo other) {
if (other == com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo.getDefaultInstance()) return this;
if (other.hasExecutedLastMinute()) {
setExecutedLastMinute(other.getExecutedLastMinute());
}
if (other.hasExecutedLastHour()) {
setExecutedLastHour(other.getExecutedLastHour());
}
if (other.hasSamplingDurationSeconds()) {
setSamplingDurationSeconds(other.getSamplingDurationSeconds());
}
if (other.hasRequestsInFlight()) {
setRequestsInFlight(other.getRequestsInFlight());
}
if (other.hasEnforcedRate()) {
setEnforcedRate(other.getEnforcedRate());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasExecutedLastMinute()) {
return false;
}
if (!hasExecutedLastHour()) {
return false;
}
if (!hasSamplingDurationSeconds()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
executedLastMinute_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
executedLastHour_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 25: {
samplingDurationSeconds_ = input.readDouble();
bitField0_ |= 0x00000004;
break;
} // case 25
case 32: {
requestsInFlight_ = input.readInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 41: {
enforcedRate_ = input.readDouble();
bitField0_ |= 0x00000010;
break;
} // case 41
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long executedLastMinute_ ;
/**
*
* The number of the queue's tasks executed in the last minute.
*
*
* required int64 executed_last_minute = 1;
* @return Whether the executedLastMinute field is set.
*/
@java.lang.Override
public boolean hasExecutedLastMinute() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The number of the queue's tasks executed in the last minute.
*
*
* required int64 executed_last_minute = 1;
* @return The executedLastMinute.
*/
@java.lang.Override
public long getExecutedLastMinute() {
return executedLastMinute_;
}
/**
*
* The number of the queue's tasks executed in the last minute.
*
*
* required int64 executed_last_minute = 1;
* @param value The executedLastMinute to set.
* @return This builder for chaining.
*/
public Builder setExecutedLastMinute(long value) {
executedLastMinute_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The number of the queue's tasks executed in the last minute.
*
*
* required int64 executed_last_minute = 1;
* @return This builder for chaining.
*/
public Builder clearExecutedLastMinute() {
bitField0_ = (bitField0_ & ~0x00000001);
executedLastMinute_ = 0L;
onChanged();
return this;
}
private long executedLastHour_ ;
/**
*
* The number of the queue's tasks executed in the last hour.
*
*
* required int64 executed_last_hour = 2;
* @return Whether the executedLastHour field is set.
*/
@java.lang.Override
public boolean hasExecutedLastHour() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The number of the queue's tasks executed in the last hour.
*
*
* required int64 executed_last_hour = 2;
* @return The executedLastHour.
*/
@java.lang.Override
public long getExecutedLastHour() {
return executedLastHour_;
}
/**
*
* The number of the queue's tasks executed in the last hour.
*
*
* required int64 executed_last_hour = 2;
* @param value The executedLastHour to set.
* @return This builder for chaining.
*/
public Builder setExecutedLastHour(long value) {
executedLastHour_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The number of the queue's tasks executed in the last hour.
*
* The length of time that execution statistics have been recorded for this
* queue. If the queue is still in its startup phase (unable to process
* tasks), this will be set to zero.
*
*
* required double sampling_duration_seconds = 3;
* @return Whether the samplingDurationSeconds field is set.
*/
@java.lang.Override
public boolean hasSamplingDurationSeconds() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The length of time that execution statistics have been recorded for this
* queue. If the queue is still in its startup phase (unable to process
* tasks), this will be set to zero.
*
* The length of time that execution statistics have been recorded for this
* queue. If the queue is still in its startup phase (unable to process
* tasks), this will be set to zero.
*
*
* required double sampling_duration_seconds = 3;
* @param value The samplingDurationSeconds to set.
* @return This builder for chaining.
*/
public Builder setSamplingDurationSeconds(double value) {
samplingDurationSeconds_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The length of time that execution statistics have been recorded for this
* queue. If the queue is still in its startup phase (unable to process
* tasks), this will be set to zero.
*
*
* required double sampling_duration_seconds = 3;
* @return This builder for chaining.
*/
public Builder clearSamplingDurationSeconds() {
bitField0_ = (bitField0_ & ~0x00000004);
samplingDurationSeconds_ = 0D;
onChanged();
return this;
}
private int requestsInFlight_ ;
/**
*
* The number of requests from the queue for which a reply has not yet been
* received.
*
*
* optional int32 requests_in_flight = 4;
* @return Whether the requestsInFlight field is set.
*/
@java.lang.Override
public boolean hasRequestsInFlight() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The number of requests from the queue for which a reply has not yet been
* received.
*
*
* optional int32 requests_in_flight = 4;
* @return The requestsInFlight.
*/
@java.lang.Override
public int getRequestsInFlight() {
return requestsInFlight_;
}
/**
*
* The number of requests from the queue for which a reply has not yet been
* received.
*
*
* optional int32 requests_in_flight = 4;
* @param value The requestsInFlight to set.
* @return This builder for chaining.
*/
public Builder setRequestsInFlight(int value) {
requestsInFlight_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The number of requests from the queue for which a reply has not yet been
* received.
*
* The rate as enforced by the scanner (requests per seconds).
*
*
* optional double enforced_rate = 5;
* @param value The enforcedRate to set.
* @return This builder for chaining.
*/
public Builder setEnforcedRate(double value) {
enforcedRate_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* The rate as enforced by the scanner (requests per seconds).
*
*
* optional double enforced_rate = 5;
* @return This builder for chaining.
*/
public Builder clearEnforcedRate() {
bitField0_ = (bitField0_ & ~0x00000010);
enforcedRate_ = 0D;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.TaskQueueScannerQueueInfo)
}
// @@protoc_insertion_point(class_scope:java.apphosting.TaskQueueScannerQueueInfo)
private static final com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo();
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaskQueueScannerQueueInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TaskQueueFetchQueueStatsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.TaskQueueFetchQueueStatsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated group QueueStats = 1 { ... }
*/
java.util.List
getQueueStatsList();
/**
* repeated group QueueStats = 1 { ... }
*/
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats getQueueStats(int index);
/**
* repeated group QueueStats = 1 { ... }
*/
int getQueueStatsCount();
/**
* repeated group QueueStats = 1 { ... }
*/
java.util.List extends com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStatsOrBuilder>
getQueueStatsOrBuilderList();
/**
* repeated group QueueStats = 1 { ... }
*/
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStatsOrBuilder getQueueStatsOrBuilder(
int index);
}
/**
* Protobuf type {@code java.apphosting.TaskQueueFetchQueueStatsResponse}
*/
public static final class TaskQueueFetchQueueStatsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.TaskQueueFetchQueueStatsResponse)
TaskQueueFetchQueueStatsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaskQueueFetchQueueStatsResponse.newBuilder() to construct.
private TaskQueueFetchQueueStatsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TaskQueueFetchQueueStatsResponse() {
queueStats_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TaskQueueFetchQueueStatsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueFetchQueueStatsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueFetchQueueStatsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.Builder.class);
}
public interface QueueStatsOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.TaskQueueFetchQueueStatsResponse.QueueStats)
com.google.protobuf.MessageOrBuilder {
/**
*
* The number of non-completed tasks in the queue. Note that this may be
* greater than TaskQueueFetchQueueStatsRequest::max_num_tasks.
*
*
* required int32 num_tasks = 2;
* @return Whether the numTasks field is set.
*/
boolean hasNumTasks();
/**
*
* The number of non-completed tasks in the queue. Note that this may be
* greater than TaskQueueFetchQueueStatsRequest::max_num_tasks.
*
*
* required int32 num_tasks = 2;
* @return The numTasks.
*/
int getNumTasks();
/**
*
* The eta of the oldest non-completed task for the queue, or -1 if there
* were no non-completed tasks found in the queue.
*
*
* required int64 oldest_eta_usec = 3;
* @return Whether the oldestEtaUsec field is set.
*/
boolean hasOldestEtaUsec();
/**
*
* The eta of the oldest non-completed task for the queue, or -1 if there
* were no non-completed tasks found in the queue.
*
*
* required int64 oldest_eta_usec = 3;
* @return The oldestEtaUsec.
*/
long getOldestEtaUsec();
/**
*
* Queue information fetched from the scanner. Will not be present if the
* scanner was unavailable, or the queue was not found on the scanner (e.g.
* it may have recently migrated to a different scanner).
*
*
* optional .java.apphosting.TaskQueueScannerQueueInfo scanner_info = 4;
* @return Whether the scannerInfo field is set.
*/
boolean hasScannerInfo();
/**
*
* Queue information fetched from the scanner. Will not be present if the
* scanner was unavailable, or the queue was not found on the scanner (e.g.
* it may have recently migrated to a different scanner).
*
* Queue information fetched from the scanner. Will not be present if the
* scanner was unavailable, or the queue was not found on the scanner (e.g.
* it may have recently migrated to a different scanner).
*
* Results here will be in the same order as the queues were requested in
* TaskQueueFetchQueueStatsRequest::queue_name.
* If the requested queue does not actually exist, the returned QueueStats
* will be the same as for a queue which is currently empty.
*
*
* Protobuf type {@code java.apphosting.TaskQueueFetchQueueStatsResponse.QueueStats}
*/
public static final class QueueStats extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.TaskQueueFetchQueueStatsResponse.QueueStats)
QueueStatsOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueueStats.newBuilder() to construct.
private QueueStats(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueueStats() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueueStats();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueFetchQueueStatsResponse_QueueStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueFetchQueueStatsResponse_QueueStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats.Builder.class);
}
private int bitField0_;
public static final int NUM_TASKS_FIELD_NUMBER = 2;
private int numTasks_ = 0;
/**
*
* The number of non-completed tasks in the queue. Note that this may be
* greater than TaskQueueFetchQueueStatsRequest::max_num_tasks.
*
*
* required int32 num_tasks = 2;
* @return Whether the numTasks field is set.
*/
@java.lang.Override
public boolean hasNumTasks() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The number of non-completed tasks in the queue. Note that this may be
* greater than TaskQueueFetchQueueStatsRequest::max_num_tasks.
*
*
* required int32 num_tasks = 2;
* @return The numTasks.
*/
@java.lang.Override
public int getNumTasks() {
return numTasks_;
}
public static final int OLDEST_ETA_USEC_FIELD_NUMBER = 3;
private long oldestEtaUsec_ = 0L;
/**
*
* The eta of the oldest non-completed task for the queue, or -1 if there
* were no non-completed tasks found in the queue.
*
*
* required int64 oldest_eta_usec = 3;
* @return Whether the oldestEtaUsec field is set.
*/
@java.lang.Override
public boolean hasOldestEtaUsec() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The eta of the oldest non-completed task for the queue, or -1 if there
* were no non-completed tasks found in the queue.
*
*
* required int64 oldest_eta_usec = 3;
* @return The oldestEtaUsec.
*/
@java.lang.Override
public long getOldestEtaUsec() {
return oldestEtaUsec_;
}
public static final int SCANNER_INFO_FIELD_NUMBER = 4;
private com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo scannerInfo_;
/**
*
* Queue information fetched from the scanner. Will not be present if the
* scanner was unavailable, or the queue was not found on the scanner (e.g.
* it may have recently migrated to a different scanner).
*
*
* optional .java.apphosting.TaskQueueScannerQueueInfo scanner_info = 4;
* @return Whether the scannerInfo field is set.
*/
@java.lang.Override
public boolean hasScannerInfo() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Queue information fetched from the scanner. Will not be present if the
* scanner was unavailable, or the queue was not found on the scanner (e.g.
* it may have recently migrated to a different scanner).
*
* Queue information fetched from the scanner. Will not be present if the
* scanner was unavailable, or the queue was not found on the scanner (e.g.
* it may have recently migrated to a different scanner).
*
*
* optional .java.apphosting.TaskQueueScannerQueueInfo scanner_info = 4;
*/
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfoOrBuilder getScannerInfoOrBuilder() {
return scannerInfo_ == null ? com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo.getDefaultInstance() : scannerInfo_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasNumTasks()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasOldestEtaUsec()) {
memoizedIsInitialized = 0;
return false;
}
if (hasScannerInfo()) {
if (!getScannerInfo().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt32(2, numTasks_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(3, oldestEtaUsec_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getScannerInfo());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, numTasks_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, oldestEtaUsec_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getScannerInfo());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats)) {
return super.equals(obj);
}
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats other = (com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats) obj;
if (hasNumTasks() != other.hasNumTasks()) return false;
if (hasNumTasks()) {
if (getNumTasks()
!= other.getNumTasks()) return false;
}
if (hasOldestEtaUsec() != other.hasOldestEtaUsec()) return false;
if (hasOldestEtaUsec()) {
if (getOldestEtaUsec()
!= other.getOldestEtaUsec()) return false;
}
if (hasScannerInfo() != other.hasScannerInfo()) return false;
if (hasScannerInfo()) {
if (!getScannerInfo()
.equals(other.getScannerInfo())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasNumTasks()) {
hash = (37 * hash) + NUM_TASKS_FIELD_NUMBER;
hash = (53 * hash) + getNumTasks();
}
if (hasOldestEtaUsec()) {
hash = (37 * hash) + OLDEST_ETA_USEC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOldestEtaUsec());
}
if (hasScannerInfo()) {
hash = (37 * hash) + SCANNER_INFO_FIELD_NUMBER;
hash = (53 * hash) + getScannerInfo().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Results here will be in the same order as the queues were requested in
* TaskQueueFetchQueueStatsRequest::queue_name.
* If the requested queue does not actually exist, the returned QueueStats
* will be the same as for a queue which is currently empty.
*
*
* Protobuf type {@code java.apphosting.TaskQueueFetchQueueStatsResponse.QueueStats}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.TaskQueueFetchQueueStatsResponse.QueueStats)
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStatsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueFetchQueueStatsResponse_QueueStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueFetchQueueStatsResponse_QueueStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats.Builder.class);
}
// Construct using com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getScannerInfoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
numTasks_ = 0;
oldestEtaUsec_ = 0L;
scannerInfo_ = null;
if (scannerInfoBuilder_ != null) {
scannerInfoBuilder_.dispose();
scannerInfoBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueFetchQueueStatsResponse_QueueStats_descriptor;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats getDefaultInstanceForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats build() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats buildPartial() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats result = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.numTasks_ = numTasks_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.oldestEtaUsec_ = oldestEtaUsec_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.scannerInfo_ = scannerInfoBuilder_ == null
? scannerInfo_
: scannerInfoBuilder_.build();
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats) {
return mergeFrom((com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats other) {
if (other == com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats.getDefaultInstance()) return this;
if (other.hasNumTasks()) {
setNumTasks(other.getNumTasks());
}
if (other.hasOldestEtaUsec()) {
setOldestEtaUsec(other.getOldestEtaUsec());
}
if (other.hasScannerInfo()) {
mergeScannerInfo(other.getScannerInfo());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasNumTasks()) {
return false;
}
if (!hasOldestEtaUsec()) {
return false;
}
if (hasScannerInfo()) {
if (!getScannerInfo().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 16: {
numTasks_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 16
case 24: {
oldestEtaUsec_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 24
case 34: {
input.readMessage(
getScannerInfoFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int numTasks_ ;
/**
*
* The number of non-completed tasks in the queue. Note that this may be
* greater than TaskQueueFetchQueueStatsRequest::max_num_tasks.
*
*
* required int32 num_tasks = 2;
* @return Whether the numTasks field is set.
*/
@java.lang.Override
public boolean hasNumTasks() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The number of non-completed tasks in the queue. Note that this may be
* greater than TaskQueueFetchQueueStatsRequest::max_num_tasks.
*
*
* required int32 num_tasks = 2;
* @return The numTasks.
*/
@java.lang.Override
public int getNumTasks() {
return numTasks_;
}
/**
*
* The number of non-completed tasks in the queue. Note that this may be
* greater than TaskQueueFetchQueueStatsRequest::max_num_tasks.
*
*
* required int32 num_tasks = 2;
* @param value The numTasks to set.
* @return This builder for chaining.
*/
public Builder setNumTasks(int value) {
numTasks_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The number of non-completed tasks in the queue. Note that this may be
* greater than TaskQueueFetchQueueStatsRequest::max_num_tasks.
*
*
* required int32 num_tasks = 2;
* @return This builder for chaining.
*/
public Builder clearNumTasks() {
bitField0_ = (bitField0_ & ~0x00000001);
numTasks_ = 0;
onChanged();
return this;
}
private long oldestEtaUsec_ ;
/**
*
* The eta of the oldest non-completed task for the queue, or -1 if there
* were no non-completed tasks found in the queue.
*
*
* required int64 oldest_eta_usec = 3;
* @return Whether the oldestEtaUsec field is set.
*/
@java.lang.Override
public boolean hasOldestEtaUsec() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The eta of the oldest non-completed task for the queue, or -1 if there
* were no non-completed tasks found in the queue.
*
*
* required int64 oldest_eta_usec = 3;
* @return The oldestEtaUsec.
*/
@java.lang.Override
public long getOldestEtaUsec() {
return oldestEtaUsec_;
}
/**
*
* The eta of the oldest non-completed task for the queue, or -1 if there
* were no non-completed tasks found in the queue.
*
*
* required int64 oldest_eta_usec = 3;
* @param value The oldestEtaUsec to set.
* @return This builder for chaining.
*/
public Builder setOldestEtaUsec(long value) {
oldestEtaUsec_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The eta of the oldest non-completed task for the queue, or -1 if there
* were no non-completed tasks found in the queue.
*
* Queue information fetched from the scanner. Will not be present if the
* scanner was unavailable, or the queue was not found on the scanner (e.g.
* it may have recently migrated to a different scanner).
*
*
* optional .java.apphosting.TaskQueueScannerQueueInfo scanner_info = 4;
* @return Whether the scannerInfo field is set.
*/
public boolean hasScannerInfo() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Queue information fetched from the scanner. Will not be present if the
* scanner was unavailable, or the queue was not found on the scanner (e.g.
* it may have recently migrated to a different scanner).
*
* Queue information fetched from the scanner. Will not be present if the
* scanner was unavailable, or the queue was not found on the scanner (e.g.
* it may have recently migrated to a different scanner).
*
* Queue information fetched from the scanner. Will not be present if the
* scanner was unavailable, or the queue was not found on the scanner (e.g.
* it may have recently migrated to a different scanner).
*
* Queue information fetched from the scanner. Will not be present if the
* scanner was unavailable, or the queue was not found on the scanner (e.g.
* it may have recently migrated to a different scanner).
*
* Queue information fetched from the scanner. Will not be present if the
* scanner was unavailable, or the queue was not found on the scanner (e.g.
* it may have recently migrated to a different scanner).
*
* Queue information fetched from the scanner. Will not be present if the
* scanner was unavailable, or the queue was not found on the scanner (e.g.
* it may have recently migrated to a different scanner).
*
* Queue information fetched from the scanner. Will not be present if the
* scanner was unavailable, or the queue was not found on the scanner (e.g.
* it may have recently migrated to a different scanner).
*
* Queue information fetched from the scanner. Will not be present if the
* scanner was unavailable, or the queue was not found on the scanner (e.g.
* it may have recently migrated to a different scanner).
*
*
* optional .java.apphosting.TaskQueueScannerQueueInfo scanner_info = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo.Builder, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfoOrBuilder>
getScannerInfoFieldBuilder() {
if (scannerInfoBuilder_ == null) {
scannerInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfo.Builder, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueScannerQueueInfoOrBuilder>(
getScannerInfo(),
getParentForChildren(),
isClean());
scannerInfo_ = null;
}
return scannerInfoBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.TaskQueueFetchQueueStatsResponse.QueueStats)
}
// @@protoc_insertion_point(class_scope:java.apphosting.TaskQueueFetchQueueStatsResponse.QueueStats)
private static final com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats();
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueueStats parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int QUEUESTATS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List queueStats_;
/**
* repeated group QueueStats = 1 { ... }
*/
@java.lang.Override
public java.util.List getQueueStatsList() {
return queueStats_;
}
/**
* repeated group QueueStats = 1 { ... }
*/
@java.lang.Override
public java.util.List extends com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStatsOrBuilder>
getQueueStatsOrBuilderList() {
return queueStats_;
}
/**
* repeated group QueueStats = 1 { ... }
*/
@java.lang.Override
public int getQueueStatsCount() {
return queueStats_.size();
}
/**
* repeated group QueueStats = 1 { ... }
*/
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats getQueueStats(int index) {
return queueStats_.get(index);
}
/**
* repeated group QueueStats = 1 { ... }
*/
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStatsOrBuilder getQueueStatsOrBuilder(
int index) {
return queueStats_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getQueueStatsCount(); i++) {
if (!getQueueStats(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < queueStats_.size(); i++) {
output.writeGroup(1, queueStats_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < queueStats_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeGroupSize(1, queueStats_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse)) {
return super.equals(obj);
}
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse other = (com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse) obj;
if (!getQueueStatsList()
.equals(other.getQueueStatsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getQueueStatsCount() > 0) {
hash = (37 * hash) + QUEUESTATS_FIELD_NUMBER;
hash = (53 * hash) + getQueueStatsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code java.apphosting.TaskQueueFetchQueueStatsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.TaskQueueFetchQueueStatsResponse)
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueFetchQueueStatsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueFetchQueueStatsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.class, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.Builder.class);
}
// Construct using com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (queueStatsBuilder_ == null) {
queueStats_ = java.util.Collections.emptyList();
} else {
queueStats_ = null;
queueStatsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.internal_static_java_apphosting_TaskQueueFetchQueueStatsResponse_descriptor;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse getDefaultInstanceForType() {
return com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse build() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse buildPartial() {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse result = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse result) {
if (queueStatsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
queueStats_ = java.util.Collections.unmodifiableList(queueStats_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.queueStats_ = queueStats_;
} else {
result.queueStats_ = queueStatsBuilder_.build();
}
}
private void buildPartial0(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse) {
return mergeFrom((com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse other) {
if (other == com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.getDefaultInstance()) return this;
if (queueStatsBuilder_ == null) {
if (!other.queueStats_.isEmpty()) {
if (queueStats_.isEmpty()) {
queueStats_ = other.queueStats_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureQueueStatsIsMutable();
queueStats_.addAll(other.queueStats_);
}
onChanged();
}
} else {
if (!other.queueStats_.isEmpty()) {
if (queueStatsBuilder_.isEmpty()) {
queueStatsBuilder_.dispose();
queueStatsBuilder_ = null;
queueStats_ = other.queueStats_;
bitField0_ = (bitField0_ & ~0x00000001);
queueStatsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getQueueStatsFieldBuilder() : null;
} else {
queueStatsBuilder_.addAllMessages(other.queueStats_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getQueueStatsCount(); i++) {
if (!getQueueStats(i).isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 11: {
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats m =
input.readGroup(1,
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats.PARSER,
extensionRegistry);
if (queueStatsBuilder_ == null) {
ensureQueueStatsIsMutable();
queueStats_.add(m);
} else {
queueStatsBuilder_.addMessage(m);
}
break;
} // case 11
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List queueStats_ =
java.util.Collections.emptyList();
private void ensureQueueStatsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
queueStats_ = new java.util.ArrayList(queueStats_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats.Builder, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStatsOrBuilder> queueStatsBuilder_;
/**
* repeated group QueueStats = 1 { ... }
*/
public java.util.List getQueueStatsList() {
if (queueStatsBuilder_ == null) {
return java.util.Collections.unmodifiableList(queueStats_);
} else {
return queueStatsBuilder_.getMessageList();
}
}
/**
* repeated group QueueStats = 1 { ... }
*/
public int getQueueStatsCount() {
if (queueStatsBuilder_ == null) {
return queueStats_.size();
} else {
return queueStatsBuilder_.getCount();
}
}
/**
* repeated group QueueStats = 1 { ... }
*/
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats getQueueStats(int index) {
if (queueStatsBuilder_ == null) {
return queueStats_.get(index);
} else {
return queueStatsBuilder_.getMessage(index);
}
}
/**
* repeated group QueueStats = 1 { ... }
*/
public Builder setQueueStats(
int index, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats value) {
if (queueStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQueueStatsIsMutable();
queueStats_.set(index, value);
onChanged();
} else {
queueStatsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated group QueueStats = 1 { ... }
*/
public Builder setQueueStats(
int index, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats.Builder builderForValue) {
if (queueStatsBuilder_ == null) {
ensureQueueStatsIsMutable();
queueStats_.set(index, builderForValue.build());
onChanged();
} else {
queueStatsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated group QueueStats = 1 { ... }
*/
public Builder addQueueStats(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats value) {
if (queueStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQueueStatsIsMutable();
queueStats_.add(value);
onChanged();
} else {
queueStatsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated group QueueStats = 1 { ... }
*/
public Builder addQueueStats(
int index, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats value) {
if (queueStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQueueStatsIsMutable();
queueStats_.add(index, value);
onChanged();
} else {
queueStatsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated group QueueStats = 1 { ... }
*/
public Builder addQueueStats(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats.Builder builderForValue) {
if (queueStatsBuilder_ == null) {
ensureQueueStatsIsMutable();
queueStats_.add(builderForValue.build());
onChanged();
} else {
queueStatsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated group QueueStats = 1 { ... }
*/
public Builder addQueueStats(
int index, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats.Builder builderForValue) {
if (queueStatsBuilder_ == null) {
ensureQueueStatsIsMutable();
queueStats_.add(index, builderForValue.build());
onChanged();
} else {
queueStatsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated group QueueStats = 1 { ... }
*/
public Builder addAllQueueStats(
java.lang.Iterable extends com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats> values) {
if (queueStatsBuilder_ == null) {
ensureQueueStatsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, queueStats_);
onChanged();
} else {
queueStatsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated group QueueStats = 1 { ... }
*/
public Builder clearQueueStats() {
if (queueStatsBuilder_ == null) {
queueStats_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
queueStatsBuilder_.clear();
}
return this;
}
/**
* repeated group QueueStats = 1 { ... }
*/
public Builder removeQueueStats(int index) {
if (queueStatsBuilder_ == null) {
ensureQueueStatsIsMutable();
queueStats_.remove(index);
onChanged();
} else {
queueStatsBuilder_.remove(index);
}
return this;
}
/**
* repeated group QueueStats = 1 { ... }
*/
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats.Builder getQueueStatsBuilder(
int index) {
return getQueueStatsFieldBuilder().getBuilder(index);
}
/**
* repeated group QueueStats = 1 { ... }
*/
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStatsOrBuilder getQueueStatsOrBuilder(
int index) {
if (queueStatsBuilder_ == null) {
return queueStats_.get(index); } else {
return queueStatsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated group QueueStats = 1 { ... }
*/
public java.util.List extends com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStatsOrBuilder>
getQueueStatsOrBuilderList() {
if (queueStatsBuilder_ != null) {
return queueStatsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(queueStats_);
}
}
/**
* repeated group QueueStats = 1 { ... }
*/
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats.Builder addQueueStatsBuilder() {
return getQueueStatsFieldBuilder().addBuilder(
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats.getDefaultInstance());
}
/**
* repeated group QueueStats = 1 { ... }
*/
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats.Builder addQueueStatsBuilder(
int index) {
return getQueueStatsFieldBuilder().addBuilder(
index, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats.getDefaultInstance());
}
/**
* repeated group QueueStats = 1 { ... }
*/
public java.util.List
getQueueStatsBuilderList() {
return getQueueStatsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats.Builder, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStatsOrBuilder>
getQueueStatsFieldBuilder() {
if (queueStatsBuilder_ == null) {
queueStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStats.Builder, com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse.QueueStatsOrBuilder>(
queueStats_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
queueStats_ = null;
}
return queueStatsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.TaskQueueFetchQueueStatsResponse)
}
// @@protoc_insertion_point(class_scope:java.apphosting.TaskQueueFetchQueueStatsResponse)
private static final com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse();
}
public static com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaskQueueFetchQueueStatsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueueFetchQueueStatsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TaskQueuePauseQueueRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.TaskQueuePauseQueueRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the application
*
*
* required bytes app_id = 1;
* @return Whether the appId field is set.
*/
boolean hasAppId();
/**
*