com.google.apphosting.executor.Queue Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: queue.proto
package com.google.apphosting.executor;
public final class Queue {
private Queue() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface QueueRefOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.QueueRef)
com.google.protobuf.MessageOrBuilder {
/**
*
* Group to which the queue belongs.
*
*
* required .java.apphosting.GroupRef group_ref = 1;
* @return Whether the groupRef field is set.
*/
boolean hasGroupRef();
/**
*
* Group to which the queue belongs.
*
*
* required .java.apphosting.GroupRef group_ref = 1;
* @return The groupRef.
*/
com.google.apphosting.executor.Group.GroupRef getGroupRef();
/**
*
* Group to which the queue belongs.
*
*
* required .java.apphosting.GroupRef group_ref = 1;
*/
com.google.apphosting.executor.Group.GroupRefOrBuilder getGroupRefOrBuilder();
/**
*
* Name of the queue.
*
*
* required bytes name = 2;
* @return Whether the name field is set.
*/
boolean hasName();
/**
*
* Name of the queue.
*
*
* required bytes name = 2;
* @return The name.
*/
com.google.protobuf.ByteString getName();
}
/**
* Protobuf type {@code java.apphosting.QueueRef}
*/
public static final class QueueRef extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.QueueRef)
QueueRefOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueueRef.newBuilder() to construct.
private QueueRef(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueueRef() {
name_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueueRef();
}
@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.apphosting.executor.Queue.internal_static_java_apphosting_QueueRef_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueRef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.QueueRef.class, com.google.apphosting.executor.Queue.QueueRef.Builder.class);
}
private int bitField0_;
public static final int GROUP_REF_FIELD_NUMBER = 1;
private com.google.apphosting.executor.Group.GroupRef groupRef_;
/**
*
* Group to which the queue belongs.
*
*
* required .java.apphosting.GroupRef group_ref = 1;
* @return Whether the groupRef field is set.
*/
@java.lang.Override
public boolean hasGroupRef() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Group to which the queue belongs.
*
*
* required .java.apphosting.GroupRef group_ref = 1;
* @return The groupRef.
*/
@java.lang.Override
public com.google.apphosting.executor.Group.GroupRef getGroupRef() {
return groupRef_ == null ? com.google.apphosting.executor.Group.GroupRef.getDefaultInstance() : groupRef_;
}
/**
*
* Group to which the queue belongs.
*
*
* required .java.apphosting.GroupRef group_ref = 1;
*/
@java.lang.Override
public com.google.apphosting.executor.Group.GroupRefOrBuilder getGroupRefOrBuilder() {
return groupRef_ == null ? com.google.apphosting.executor.Group.GroupRef.getDefaultInstance() : groupRef_;
}
public static final int NAME_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Name of the queue.
*
*
* required bytes name = 2;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Name of the queue.
*
*
* required bytes name = 2;
* @return The name.
*/
@java.lang.Override
public com.google.protobuf.ByteString getName() {
return name_;
}
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 (!hasGroupRef()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasName()) {
memoizedIsInitialized = 0;
return false;
}
if (!getGroupRef().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.writeMessage(1, getGroupRef());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBytes(2, name_);
}
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
.computeMessageSize(1, getGroupRef());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, name_);
}
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.apphosting.executor.Queue.QueueRef)) {
return super.equals(obj);
}
com.google.apphosting.executor.Queue.QueueRef other = (com.google.apphosting.executor.Queue.QueueRef) obj;
if (hasGroupRef() != other.hasGroupRef()) return false;
if (hasGroupRef()) {
if (!getGroupRef()
.equals(other.getGroupRef())) return false;
}
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) 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 (hasGroupRef()) {
hash = (37 * hash) + GROUP_REF_FIELD_NUMBER;
hash = (53 * hash) + getGroupRef().hashCode();
}
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.executor.Queue.QueueRef parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueRef parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.QueueRef parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueRef 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.apphosting.executor.Queue.QueueRef parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueRef parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.QueueRef parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueRef 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.apphosting.executor.Queue.QueueRef parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueRef 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.apphosting.executor.Queue.QueueRef parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueRef 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.apphosting.executor.Queue.QueueRef 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.QueueRef}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.QueueRef)
com.google.apphosting.executor.Queue.QueueRefOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueRef_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueRef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.QueueRef.class, com.google.apphosting.executor.Queue.QueueRef.Builder.class);
}
// Construct using com.google.apphosting.executor.Queue.QueueRef.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getGroupRefFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
groupRef_ = null;
if (groupRefBuilder_ != null) {
groupRefBuilder_.dispose();
groupRefBuilder_ = null;
}
name_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueRef_descriptor;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRef getDefaultInstanceForType() {
return com.google.apphosting.executor.Queue.QueueRef.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRef build() {
com.google.apphosting.executor.Queue.QueueRef result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRef buildPartial() {
com.google.apphosting.executor.Queue.QueueRef result = new com.google.apphosting.executor.Queue.QueueRef(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.executor.Queue.QueueRef result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.groupRef_ = groupRefBuilder_ == null
? groupRef_
: groupRefBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.name_ = name_;
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.apphosting.executor.Queue.QueueRef) {
return mergeFrom((com.google.apphosting.executor.Queue.QueueRef)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.executor.Queue.QueueRef other) {
if (other == com.google.apphosting.executor.Queue.QueueRef.getDefaultInstance()) return this;
if (other.hasGroupRef()) {
mergeGroupRef(other.getGroupRef());
}
if (other.hasName()) {
setName(other.getName());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasGroupRef()) {
return false;
}
if (!hasName()) {
return false;
}
if (!getGroupRef().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: {
input.readMessage(
getGroupRefFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
name_ = 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.apphosting.executor.Group.GroupRef groupRef_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Group.GroupRef, com.google.apphosting.executor.Group.GroupRef.Builder, com.google.apphosting.executor.Group.GroupRefOrBuilder> groupRefBuilder_;
/**
*
* Group to which the queue belongs.
*
*
* required .java.apphosting.GroupRef group_ref = 1;
* @return Whether the groupRef field is set.
*/
public boolean hasGroupRef() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Group to which the queue belongs.
*
*
* required .java.apphosting.GroupRef group_ref = 1;
* @return The groupRef.
*/
public com.google.apphosting.executor.Group.GroupRef getGroupRef() {
if (groupRefBuilder_ == null) {
return groupRef_ == null ? com.google.apphosting.executor.Group.GroupRef.getDefaultInstance() : groupRef_;
} else {
return groupRefBuilder_.getMessage();
}
}
/**
*
* Group to which the queue belongs.
*
*
* required .java.apphosting.GroupRef group_ref = 1;
*/
public Builder setGroupRef(com.google.apphosting.executor.Group.GroupRef value) {
if (groupRefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
groupRef_ = value;
} else {
groupRefBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Group to which the queue belongs.
*
*
* required .java.apphosting.GroupRef group_ref = 1;
*/
public Builder setGroupRef(
com.google.apphosting.executor.Group.GroupRef.Builder builderForValue) {
if (groupRefBuilder_ == null) {
groupRef_ = builderForValue.build();
} else {
groupRefBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Group to which the queue belongs.
*
*
* required .java.apphosting.GroupRef group_ref = 1;
*/
public Builder mergeGroupRef(com.google.apphosting.executor.Group.GroupRef value) {
if (groupRefBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
groupRef_ != null &&
groupRef_ != com.google.apphosting.executor.Group.GroupRef.getDefaultInstance()) {
getGroupRefBuilder().mergeFrom(value);
} else {
groupRef_ = value;
}
} else {
groupRefBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Group to which the queue belongs.
*
*
* required .java.apphosting.GroupRef group_ref = 1;
*/
public Builder clearGroupRef() {
bitField0_ = (bitField0_ & ~0x00000001);
groupRef_ = null;
if (groupRefBuilder_ != null) {
groupRefBuilder_.dispose();
groupRefBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Group to which the queue belongs.
*
*
* required .java.apphosting.GroupRef group_ref = 1;
*/
public com.google.apphosting.executor.Group.GroupRef.Builder getGroupRefBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getGroupRefFieldBuilder().getBuilder();
}
/**
*
* Group to which the queue belongs.
*
*
* required .java.apphosting.GroupRef group_ref = 1;
*/
public com.google.apphosting.executor.Group.GroupRefOrBuilder getGroupRefOrBuilder() {
if (groupRefBuilder_ != null) {
return groupRefBuilder_.getMessageOrBuilder();
} else {
return groupRef_ == null ?
com.google.apphosting.executor.Group.GroupRef.getDefaultInstance() : groupRef_;
}
}
/**
*
* Group to which the queue belongs.
*
*
* required .java.apphosting.GroupRef group_ref = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Group.GroupRef, com.google.apphosting.executor.Group.GroupRef.Builder, com.google.apphosting.executor.Group.GroupRefOrBuilder>
getGroupRefFieldBuilder() {
if (groupRefBuilder_ == null) {
groupRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Group.GroupRef, com.google.apphosting.executor.Group.GroupRef.Builder, com.google.apphosting.executor.Group.GroupRefOrBuilder>(
getGroupRef(),
getParentForChildren(),
isClean());
groupRef_ = null;
}
return groupRefBuilder_;
}
private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Name of the queue.
*
*
* required bytes name = 2;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Name of the queue.
*
*
* required bytes name = 2;
* @return The name.
*/
@java.lang.Override
public com.google.protobuf.ByteString getName() {
return name_;
}
/**
*
* Name of the queue.
*
*
* required bytes name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Name of the queue.
*
*
* required bytes name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000002);
name_ = getDefaultInstance().getName();
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.QueueRef)
}
// @@protoc_insertion_point(class_scope:java.apphosting.QueueRef)
private static final com.google.apphosting.executor.Queue.QueueRef DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.executor.Queue.QueueRef();
}
public static com.google.apphosting.executor.Queue.QueueRef getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueueRef 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.apphosting.executor.Queue.QueueRef getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueueRangeBorderOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.QueueRangeBorder)
com.google.protobuf.MessageOrBuilder {
/**
*
* Must always be non-empty.
* See documentation of apphosting.GroupRef.customer.
*
*
* required bytes customer = 1;
* @return Whether the customer field is set.
*/
boolean hasCustomer();
/**
*
* Must always be non-empty.
* See documentation of apphosting.GroupRef.customer.
*
*
* required bytes customer = 1;
* @return The customer.
*/
com.google.protobuf.ByteString getCustomer();
/**
*
* For both group and queue names, the following ordering rules apply.
* (a) An empty value is less than all other values.
* It is like negative infinity.
* (b) A missing value is greater than all other values.
* It is like positive infinity.
* This allows us to represent concepts in QueueRange such as:
* * all queues for a customer
* * all queues for a group
* * all queues for a customer less/greater than some queue/group
* * all queues for a group less/greater than some queue
*
*
* optional bytes group = 2;
* @return Whether the group field is set.
*/
boolean hasGroup();
/**
*
* For both group and queue names, the following ordering rules apply.
* (a) An empty value is less than all other values.
* It is like negative infinity.
* (b) A missing value is greater than all other values.
* It is like positive infinity.
* This allows us to represent concepts in QueueRange such as:
* * all queues for a customer
* * all queues for a group
* * all queues for a customer less/greater than some queue/group
* * all queues for a group less/greater than some queue
*
*
* optional bytes group = 2;
* @return The group.
*/
com.google.protobuf.ByteString getGroup();
/**
* optional bytes queue = 3;
* @return Whether the queue field is set.
*/
boolean hasQueue();
/**
* optional bytes queue = 3;
* @return The queue.
*/
com.google.protobuf.ByteString getQueue();
}
/**
*
* Queue range borders are compared based on the lexicographic ordering of
* their corresponding (customer, group, queue) tuples.
*
*
* Protobuf type {@code java.apphosting.QueueRangeBorder}
*/
public static final class QueueRangeBorder extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.QueueRangeBorder)
QueueRangeBorderOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueueRangeBorder.newBuilder() to construct.
private QueueRangeBorder(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueueRangeBorder() {
customer_ = com.google.protobuf.ByteString.EMPTY;
group_ = com.google.protobuf.ByteString.EMPTY;
queue_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueueRangeBorder();
}
@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.apphosting.executor.Queue.internal_static_java_apphosting_QueueRangeBorder_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueRangeBorder_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.QueueRangeBorder.class, com.google.apphosting.executor.Queue.QueueRangeBorder.Builder.class);
}
private int bitField0_;
public static final int CUSTOMER_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString customer_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Must always be non-empty.
* See documentation of apphosting.GroupRef.customer.
*
*
* required bytes customer = 1;
* @return Whether the customer field is set.
*/
@java.lang.Override
public boolean hasCustomer() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Must always be non-empty.
* See documentation of apphosting.GroupRef.customer.
*
*
* required bytes customer = 1;
* @return The customer.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCustomer() {
return customer_;
}
public static final int GROUP_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString group_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* For both group and queue names, the following ordering rules apply.
* (a) An empty value is less than all other values.
* It is like negative infinity.
* (b) A missing value is greater than all other values.
* It is like positive infinity.
* This allows us to represent concepts in QueueRange such as:
* * all queues for a customer
* * all queues for a group
* * all queues for a customer less/greater than some queue/group
* * all queues for a group less/greater than some queue
*
*
* optional bytes group = 2;
* @return Whether the group field is set.
*/
@java.lang.Override
public boolean hasGroup() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* For both group and queue names, the following ordering rules apply.
* (a) An empty value is less than all other values.
* It is like negative infinity.
* (b) A missing value is greater than all other values.
* It is like positive infinity.
* This allows us to represent concepts in QueueRange such as:
* * all queues for a customer
* * all queues for a group
* * all queues for a customer less/greater than some queue/group
* * all queues for a group less/greater than some queue
*
*
* optional bytes group = 2;
* @return The group.
*/
@java.lang.Override
public com.google.protobuf.ByteString getGroup() {
return group_;
}
public static final int QUEUE_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString queue_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes queue = 3;
* @return Whether the queue field is set.
*/
@java.lang.Override
public boolean hasQueue() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional bytes queue = 3;
* @return The queue.
*/
@java.lang.Override
public com.google.protobuf.ByteString getQueue() {
return queue_;
}
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 (!hasCustomer()) {
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, customer_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBytes(2, group_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBytes(3, queue_);
}
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, customer_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, group_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, queue_);
}
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.apphosting.executor.Queue.QueueRangeBorder)) {
return super.equals(obj);
}
com.google.apphosting.executor.Queue.QueueRangeBorder other = (com.google.apphosting.executor.Queue.QueueRangeBorder) obj;
if (hasCustomer() != other.hasCustomer()) return false;
if (hasCustomer()) {
if (!getCustomer()
.equals(other.getCustomer())) return false;
}
if (hasGroup() != other.hasGroup()) return false;
if (hasGroup()) {
if (!getGroup()
.equals(other.getGroup())) return false;
}
if (hasQueue() != other.hasQueue()) return false;
if (hasQueue()) {
if (!getQueue()
.equals(other.getQueue())) 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 (hasCustomer()) {
hash = (37 * hash) + CUSTOMER_FIELD_NUMBER;
hash = (53 * hash) + getCustomer().hashCode();
}
if (hasGroup()) {
hash = (37 * hash) + GROUP_FIELD_NUMBER;
hash = (53 * hash) + getGroup().hashCode();
}
if (hasQueue()) {
hash = (37 * hash) + QUEUE_FIELD_NUMBER;
hash = (53 * hash) + getQueue().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.executor.Queue.QueueRangeBorder parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueRangeBorder parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.QueueRangeBorder parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueRangeBorder 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.apphosting.executor.Queue.QueueRangeBorder parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueRangeBorder parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.QueueRangeBorder parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueRangeBorder 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.apphosting.executor.Queue.QueueRangeBorder parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueRangeBorder 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.apphosting.executor.Queue.QueueRangeBorder parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueRangeBorder 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.apphosting.executor.Queue.QueueRangeBorder 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 range borders are compared based on the lexicographic ordering of
* their corresponding (customer, group, queue) tuples.
*
*
* Protobuf type {@code java.apphosting.QueueRangeBorder}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.QueueRangeBorder)
com.google.apphosting.executor.Queue.QueueRangeBorderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueRangeBorder_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueRangeBorder_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.QueueRangeBorder.class, com.google.apphosting.executor.Queue.QueueRangeBorder.Builder.class);
}
// Construct using com.google.apphosting.executor.Queue.QueueRangeBorder.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
customer_ = com.google.protobuf.ByteString.EMPTY;
group_ = com.google.protobuf.ByteString.EMPTY;
queue_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueRangeBorder_descriptor;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRangeBorder getDefaultInstanceForType() {
return com.google.apphosting.executor.Queue.QueueRangeBorder.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRangeBorder build() {
com.google.apphosting.executor.Queue.QueueRangeBorder result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRangeBorder buildPartial() {
com.google.apphosting.executor.Queue.QueueRangeBorder result = new com.google.apphosting.executor.Queue.QueueRangeBorder(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.executor.Queue.QueueRangeBorder result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.customer_ = customer_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.group_ = group_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.queue_ = queue_;
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.apphosting.executor.Queue.QueueRangeBorder) {
return mergeFrom((com.google.apphosting.executor.Queue.QueueRangeBorder)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.executor.Queue.QueueRangeBorder other) {
if (other == com.google.apphosting.executor.Queue.QueueRangeBorder.getDefaultInstance()) return this;
if (other.hasCustomer()) {
setCustomer(other.getCustomer());
}
if (other.hasGroup()) {
setGroup(other.getGroup());
}
if (other.hasQueue()) {
setQueue(other.getQueue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasCustomer()) {
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: {
customer_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
group_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
queue_ = 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 customer_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Must always be non-empty.
* See documentation of apphosting.GroupRef.customer.
*
*
* required bytes customer = 1;
* @return Whether the customer field is set.
*/
@java.lang.Override
public boolean hasCustomer() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Must always be non-empty.
* See documentation of apphosting.GroupRef.customer.
*
*
* required bytes customer = 1;
* @return The customer.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCustomer() {
return customer_;
}
/**
*
* Must always be non-empty.
* See documentation of apphosting.GroupRef.customer.
*
*
* required bytes customer = 1;
* @param value The customer to set.
* @return This builder for chaining.
*/
public Builder setCustomer(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
customer_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Must always be non-empty.
* See documentation of apphosting.GroupRef.customer.
*
*
* required bytes customer = 1;
* @return This builder for chaining.
*/
public Builder clearCustomer() {
bitField0_ = (bitField0_ & ~0x00000001);
customer_ = getDefaultInstance().getCustomer();
onChanged();
return this;
}
private com.google.protobuf.ByteString group_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* For both group and queue names, the following ordering rules apply.
* (a) An empty value is less than all other values.
* It is like negative infinity.
* (b) A missing value is greater than all other values.
* It is like positive infinity.
* This allows us to represent concepts in QueueRange such as:
* * all queues for a customer
* * all queues for a group
* * all queues for a customer less/greater than some queue/group
* * all queues for a group less/greater than some queue
*
*
* optional bytes group = 2;
* @return Whether the group field is set.
*/
@java.lang.Override
public boolean hasGroup() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* For both group and queue names, the following ordering rules apply.
* (a) An empty value is less than all other values.
* It is like negative infinity.
* (b) A missing value is greater than all other values.
* It is like positive infinity.
* This allows us to represent concepts in QueueRange such as:
* * all queues for a customer
* * all queues for a group
* * all queues for a customer less/greater than some queue/group
* * all queues for a group less/greater than some queue
*
*
* optional bytes group = 2;
* @return The group.
*/
@java.lang.Override
public com.google.protobuf.ByteString getGroup() {
return group_;
}
/**
*
* For both group and queue names, the following ordering rules apply.
* (a) An empty value is less than all other values.
* It is like negative infinity.
* (b) A missing value is greater than all other values.
* It is like positive infinity.
* This allows us to represent concepts in QueueRange such as:
* * all queues for a customer
* * all queues for a group
* * all queues for a customer less/greater than some queue/group
* * all queues for a group less/greater than some queue
*
*
* optional bytes group = 2;
* @param value The group to set.
* @return This builder for chaining.
*/
public Builder setGroup(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
group_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* For both group and queue names, the following ordering rules apply.
* (a) An empty value is less than all other values.
* It is like negative infinity.
* (b) A missing value is greater than all other values.
* It is like positive infinity.
* This allows us to represent concepts in QueueRange such as:
* * all queues for a customer
* * all queues for a group
* * all queues for a customer less/greater than some queue/group
* * all queues for a group less/greater than some queue
*
*
* optional bytes group = 2;
* @return This builder for chaining.
*/
public Builder clearGroup() {
bitField0_ = (bitField0_ & ~0x00000002);
group_ = getDefaultInstance().getGroup();
onChanged();
return this;
}
private com.google.protobuf.ByteString queue_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes queue = 3;
* @return Whether the queue field is set.
*/
@java.lang.Override
public boolean hasQueue() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional bytes queue = 3;
* @return The queue.
*/
@java.lang.Override
public com.google.protobuf.ByteString getQueue() {
return queue_;
}
/**
* optional bytes queue = 3;
* @param value The queue to set.
* @return This builder for chaining.
*/
public Builder setQueue(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
queue_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional bytes queue = 3;
* @return This builder for chaining.
*/
public Builder clearQueue() {
bitField0_ = (bitField0_ & ~0x00000004);
queue_ = getDefaultInstance().getQueue();
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.QueueRangeBorder)
}
// @@protoc_insertion_point(class_scope:java.apphosting.QueueRangeBorder)
private static final com.google.apphosting.executor.Queue.QueueRangeBorder DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.executor.Queue.QueueRangeBorder();
}
public static com.google.apphosting.executor.Queue.QueueRangeBorder getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueueRangeBorder 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.apphosting.executor.Queue.QueueRangeBorder getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueueRangeOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.QueueRange)
com.google.protobuf.MessageOrBuilder {
/**
*
* This range includes all queues for which 'queue >= start' and 'queue <
* limit', according to strict lexicographic comparison.
*
*
* required .java.apphosting.QueueRangeBorder start = 1;
* @return Whether the start field is set.
*/
boolean hasStart();
/**
*
* This range includes all queues for which 'queue >= start' and 'queue <
* limit', according to strict lexicographic comparison.
*
*
* required .java.apphosting.QueueRangeBorder start = 1;
* @return The start.
*/
com.google.apphosting.executor.Queue.QueueRangeBorder getStart();
/**
*
* This range includes all queues for which 'queue >= start' and 'queue <
* limit', according to strict lexicographic comparison.
*
*
* required .java.apphosting.QueueRangeBorder start = 1;
*/
com.google.apphosting.executor.Queue.QueueRangeBorderOrBuilder getStartOrBuilder();
/**
* required .java.apphosting.QueueRangeBorder limit = 2;
* @return Whether the limit field is set.
*/
boolean hasLimit();
/**
* required .java.apphosting.QueueRangeBorder limit = 2;
* @return The limit.
*/
com.google.apphosting.executor.Queue.QueueRangeBorder getLimit();
/**
* required .java.apphosting.QueueRangeBorder limit = 2;
*/
com.google.apphosting.executor.Queue.QueueRangeBorderOrBuilder getLimitOrBuilder();
}
/**
* Protobuf type {@code java.apphosting.QueueRange}
*/
public static final class QueueRange extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.QueueRange)
QueueRangeOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueueRange.newBuilder() to construct.
private QueueRange(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueueRange() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueueRange();
}
@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.apphosting.executor.Queue.internal_static_java_apphosting_QueueRange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueRange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.QueueRange.class, com.google.apphosting.executor.Queue.QueueRange.Builder.class);
}
private int bitField0_;
public static final int START_FIELD_NUMBER = 1;
private com.google.apphosting.executor.Queue.QueueRangeBorder start_;
/**
*
* This range includes all queues for which 'queue >= start' and 'queue <
* limit', according to strict lexicographic comparison.
*
*
* required .java.apphosting.QueueRangeBorder start = 1;
* @return Whether the start field is set.
*/
@java.lang.Override
public boolean hasStart() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* This range includes all queues for which 'queue >= start' and 'queue <
* limit', according to strict lexicographic comparison.
*
*
* required .java.apphosting.QueueRangeBorder start = 1;
* @return The start.
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRangeBorder getStart() {
return start_ == null ? com.google.apphosting.executor.Queue.QueueRangeBorder.getDefaultInstance() : start_;
}
/**
*
* This range includes all queues for which 'queue >= start' and 'queue <
* limit', according to strict lexicographic comparison.
*
*
* required .java.apphosting.QueueRangeBorder start = 1;
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRangeBorderOrBuilder getStartOrBuilder() {
return start_ == null ? com.google.apphosting.executor.Queue.QueueRangeBorder.getDefaultInstance() : start_;
}
public static final int LIMIT_FIELD_NUMBER = 2;
private com.google.apphosting.executor.Queue.QueueRangeBorder limit_;
/**
* required .java.apphosting.QueueRangeBorder limit = 2;
* @return Whether the limit field is set.
*/
@java.lang.Override
public boolean hasLimit() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required .java.apphosting.QueueRangeBorder limit = 2;
* @return The limit.
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRangeBorder getLimit() {
return limit_ == null ? com.google.apphosting.executor.Queue.QueueRangeBorder.getDefaultInstance() : limit_;
}
/**
* required .java.apphosting.QueueRangeBorder limit = 2;
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRangeBorderOrBuilder getLimitOrBuilder() {
return limit_ == null ? com.google.apphosting.executor.Queue.QueueRangeBorder.getDefaultInstance() : limit_;
}
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 (!hasStart()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasLimit()) {
memoizedIsInitialized = 0;
return false;
}
if (!getStart().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (!getLimit().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.writeMessage(1, getStart());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getLimit());
}
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
.computeMessageSize(1, getStart());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getLimit());
}
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.apphosting.executor.Queue.QueueRange)) {
return super.equals(obj);
}
com.google.apphosting.executor.Queue.QueueRange other = (com.google.apphosting.executor.Queue.QueueRange) obj;
if (hasStart() != other.hasStart()) return false;
if (hasStart()) {
if (!getStart()
.equals(other.getStart())) return false;
}
if (hasLimit() != other.hasLimit()) return false;
if (hasLimit()) {
if (!getLimit()
.equals(other.getLimit())) 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 (hasStart()) {
hash = (37 * hash) + START_FIELD_NUMBER;
hash = (53 * hash) + getStart().hashCode();
}
if (hasLimit()) {
hash = (37 * hash) + LIMIT_FIELD_NUMBER;
hash = (53 * hash) + getLimit().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.executor.Queue.QueueRange parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueRange parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.QueueRange parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueRange 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.apphosting.executor.Queue.QueueRange parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueRange parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.QueueRange parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueRange 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.apphosting.executor.Queue.QueueRange parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueRange 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.apphosting.executor.Queue.QueueRange parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueRange 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.apphosting.executor.Queue.QueueRange 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.QueueRange}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.QueueRange)
com.google.apphosting.executor.Queue.QueueRangeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueRange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueRange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.QueueRange.class, com.google.apphosting.executor.Queue.QueueRange.Builder.class);
}
// Construct using com.google.apphosting.executor.Queue.QueueRange.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStartFieldBuilder();
getLimitFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
start_ = null;
if (startBuilder_ != null) {
startBuilder_.dispose();
startBuilder_ = null;
}
limit_ = null;
if (limitBuilder_ != null) {
limitBuilder_.dispose();
limitBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueRange_descriptor;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRange getDefaultInstanceForType() {
return com.google.apphosting.executor.Queue.QueueRange.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRange build() {
com.google.apphosting.executor.Queue.QueueRange result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRange buildPartial() {
com.google.apphosting.executor.Queue.QueueRange result = new com.google.apphosting.executor.Queue.QueueRange(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.executor.Queue.QueueRange result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.start_ = startBuilder_ == null
? start_
: startBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.limit_ = limitBuilder_ == null
? limit_
: limitBuilder_.build();
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.apphosting.executor.Queue.QueueRange) {
return mergeFrom((com.google.apphosting.executor.Queue.QueueRange)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.executor.Queue.QueueRange other) {
if (other == com.google.apphosting.executor.Queue.QueueRange.getDefaultInstance()) return this;
if (other.hasStart()) {
mergeStart(other.getStart());
}
if (other.hasLimit()) {
mergeLimit(other.getLimit());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasStart()) {
return false;
}
if (!hasLimit()) {
return false;
}
if (!getStart().isInitialized()) {
return false;
}
if (!getLimit().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: {
input.readMessage(
getStartFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getLimitFieldBuilder().getBuilder(),
extensionRegistry);
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.apphosting.executor.Queue.QueueRangeBorder start_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueRangeBorder, com.google.apphosting.executor.Queue.QueueRangeBorder.Builder, com.google.apphosting.executor.Queue.QueueRangeBorderOrBuilder> startBuilder_;
/**
*
* This range includes all queues for which 'queue >= start' and 'queue <
* limit', according to strict lexicographic comparison.
*
*
* required .java.apphosting.QueueRangeBorder start = 1;
* @return Whether the start field is set.
*/
public boolean hasStart() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* This range includes all queues for which 'queue >= start' and 'queue <
* limit', according to strict lexicographic comparison.
*
*
* required .java.apphosting.QueueRangeBorder start = 1;
* @return The start.
*/
public com.google.apphosting.executor.Queue.QueueRangeBorder getStart() {
if (startBuilder_ == null) {
return start_ == null ? com.google.apphosting.executor.Queue.QueueRangeBorder.getDefaultInstance() : start_;
} else {
return startBuilder_.getMessage();
}
}
/**
*
* This range includes all queues for which 'queue >= start' and 'queue <
* limit', according to strict lexicographic comparison.
*
*
* required .java.apphosting.QueueRangeBorder start = 1;
*/
public Builder setStart(com.google.apphosting.executor.Queue.QueueRangeBorder value) {
if (startBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
start_ = value;
} else {
startBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* This range includes all queues for which 'queue >= start' and 'queue <
* limit', according to strict lexicographic comparison.
*
*
* required .java.apphosting.QueueRangeBorder start = 1;
*/
public Builder setStart(
com.google.apphosting.executor.Queue.QueueRangeBorder.Builder builderForValue) {
if (startBuilder_ == null) {
start_ = builderForValue.build();
} else {
startBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* This range includes all queues for which 'queue >= start' and 'queue <
* limit', according to strict lexicographic comparison.
*
*
* required .java.apphosting.QueueRangeBorder start = 1;
*/
public Builder mergeStart(com.google.apphosting.executor.Queue.QueueRangeBorder value) {
if (startBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
start_ != null &&
start_ != com.google.apphosting.executor.Queue.QueueRangeBorder.getDefaultInstance()) {
getStartBuilder().mergeFrom(value);
} else {
start_ = value;
}
} else {
startBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* This range includes all queues for which 'queue >= start' and 'queue <
* limit', according to strict lexicographic comparison.
*
*
* required .java.apphosting.QueueRangeBorder start = 1;
*/
public Builder clearStart() {
bitField0_ = (bitField0_ & ~0x00000001);
start_ = null;
if (startBuilder_ != null) {
startBuilder_.dispose();
startBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* This range includes all queues for which 'queue >= start' and 'queue <
* limit', according to strict lexicographic comparison.
*
*
* required .java.apphosting.QueueRangeBorder start = 1;
*/
public com.google.apphosting.executor.Queue.QueueRangeBorder.Builder getStartBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getStartFieldBuilder().getBuilder();
}
/**
*
* This range includes all queues for which 'queue >= start' and 'queue <
* limit', according to strict lexicographic comparison.
*
*
* required .java.apphosting.QueueRangeBorder start = 1;
*/
public com.google.apphosting.executor.Queue.QueueRangeBorderOrBuilder getStartOrBuilder() {
if (startBuilder_ != null) {
return startBuilder_.getMessageOrBuilder();
} else {
return start_ == null ?
com.google.apphosting.executor.Queue.QueueRangeBorder.getDefaultInstance() : start_;
}
}
/**
*
* This range includes all queues for which 'queue >= start' and 'queue <
* limit', according to strict lexicographic comparison.
*
*
* required .java.apphosting.QueueRangeBorder start = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueRangeBorder, com.google.apphosting.executor.Queue.QueueRangeBorder.Builder, com.google.apphosting.executor.Queue.QueueRangeBorderOrBuilder>
getStartFieldBuilder() {
if (startBuilder_ == null) {
startBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueRangeBorder, com.google.apphosting.executor.Queue.QueueRangeBorder.Builder, com.google.apphosting.executor.Queue.QueueRangeBorderOrBuilder>(
getStart(),
getParentForChildren(),
isClean());
start_ = null;
}
return startBuilder_;
}
private com.google.apphosting.executor.Queue.QueueRangeBorder limit_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueRangeBorder, com.google.apphosting.executor.Queue.QueueRangeBorder.Builder, com.google.apphosting.executor.Queue.QueueRangeBorderOrBuilder> limitBuilder_;
/**
* required .java.apphosting.QueueRangeBorder limit = 2;
* @return Whether the limit field is set.
*/
public boolean hasLimit() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required .java.apphosting.QueueRangeBorder limit = 2;
* @return The limit.
*/
public com.google.apphosting.executor.Queue.QueueRangeBorder getLimit() {
if (limitBuilder_ == null) {
return limit_ == null ? com.google.apphosting.executor.Queue.QueueRangeBorder.getDefaultInstance() : limit_;
} else {
return limitBuilder_.getMessage();
}
}
/**
* required .java.apphosting.QueueRangeBorder limit = 2;
*/
public Builder setLimit(com.google.apphosting.executor.Queue.QueueRangeBorder value) {
if (limitBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
limit_ = value;
} else {
limitBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* required .java.apphosting.QueueRangeBorder limit = 2;
*/
public Builder setLimit(
com.google.apphosting.executor.Queue.QueueRangeBorder.Builder builderForValue) {
if (limitBuilder_ == null) {
limit_ = builderForValue.build();
} else {
limitBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* required .java.apphosting.QueueRangeBorder limit = 2;
*/
public Builder mergeLimit(com.google.apphosting.executor.Queue.QueueRangeBorder value) {
if (limitBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
limit_ != null &&
limit_ != com.google.apphosting.executor.Queue.QueueRangeBorder.getDefaultInstance()) {
getLimitBuilder().mergeFrom(value);
} else {
limit_ = value;
}
} else {
limitBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* required .java.apphosting.QueueRangeBorder limit = 2;
*/
public Builder clearLimit() {
bitField0_ = (bitField0_ & ~0x00000002);
limit_ = null;
if (limitBuilder_ != null) {
limitBuilder_.dispose();
limitBuilder_ = null;
}
onChanged();
return this;
}
/**
* required .java.apphosting.QueueRangeBorder limit = 2;
*/
public com.google.apphosting.executor.Queue.QueueRangeBorder.Builder getLimitBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getLimitFieldBuilder().getBuilder();
}
/**
* required .java.apphosting.QueueRangeBorder limit = 2;
*/
public com.google.apphosting.executor.Queue.QueueRangeBorderOrBuilder getLimitOrBuilder() {
if (limitBuilder_ != null) {
return limitBuilder_.getMessageOrBuilder();
} else {
return limit_ == null ?
com.google.apphosting.executor.Queue.QueueRangeBorder.getDefaultInstance() : limit_;
}
}
/**
* required .java.apphosting.QueueRangeBorder limit = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueRangeBorder, com.google.apphosting.executor.Queue.QueueRangeBorder.Builder, com.google.apphosting.executor.Queue.QueueRangeBorderOrBuilder>
getLimitFieldBuilder() {
if (limitBuilder_ == null) {
limitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueRangeBorder, com.google.apphosting.executor.Queue.QueueRangeBorder.Builder, com.google.apphosting.executor.Queue.QueueRangeBorderOrBuilder>(
getLimit(),
getParentForChildren(),
isClean());
limit_ = null;
}
return limitBuilder_;
}
@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.QueueRange)
}
// @@protoc_insertion_point(class_scope:java.apphosting.QueueRange)
private static final com.google.apphosting.executor.Queue.QueueRange DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.executor.Queue.QueueRange();
}
public static com.google.apphosting.executor.Queue.QueueRange getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueueRange 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.apphosting.executor.Queue.QueueRange getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueueRampupParametersOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.QueueRampupParameters)
com.google.protobuf.MessageOrBuilder {
/**
*
* The Speendup Factor.
* speedup_factor controls the speed in which the queue can reach its maximum
* task dispatch rate at startup. Its value should be bigger or equal to 0.25
* and less than or equal to 4. The bigger this value is the shorter the ramp
* up duration till the queue can operate at its maximum rate.
*
*
* optional double speedup_factor = 1;
* @return Whether the speedupFactor field is set.
*/
boolean hasSpeedupFactor();
/**
*
* The Speendup Factor.
* speedup_factor controls the speed in which the queue can reach its maximum
* task dispatch rate at startup. Its value should be bigger or equal to 0.25
* and less than or equal to 4. The bigger this value is the shorter the ramp
* up duration till the queue can operate at its maximum rate.
*
*
* optional double speedup_factor = 1;
* @return The speedupFactor.
*/
double getSpeedupFactor();
}
/**
*
* The parameters that determine the speed in which the queue can reach its
* maximum task dispatch rate at startup.
* NEXT TAG: 2
*
*
* Protobuf type {@code java.apphosting.QueueRampupParameters}
*/
public static final class QueueRampupParameters extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.QueueRampupParameters)
QueueRampupParametersOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueueRampupParameters.newBuilder() to construct.
private QueueRampupParameters(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueueRampupParameters() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueueRampupParameters();
}
@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.apphosting.executor.Queue.internal_static_java_apphosting_QueueRampupParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueRampupParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.QueueRampupParameters.class, com.google.apphosting.executor.Queue.QueueRampupParameters.Builder.class);
}
private int bitField0_;
public static final int SPEEDUP_FACTOR_FIELD_NUMBER = 1;
private double speedupFactor_ = 0D;
/**
*
* The Speendup Factor.
* speedup_factor controls the speed in which the queue can reach its maximum
* task dispatch rate at startup. Its value should be bigger or equal to 0.25
* and less than or equal to 4. The bigger this value is the shorter the ramp
* up duration till the queue can operate at its maximum rate.
*
*
* optional double speedup_factor = 1;
* @return Whether the speedupFactor field is set.
*/
@java.lang.Override
public boolean hasSpeedupFactor() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The Speendup Factor.
* speedup_factor controls the speed in which the queue can reach its maximum
* task dispatch rate at startup. Its value should be bigger or equal to 0.25
* and less than or equal to 4. The bigger this value is the shorter the ramp
* up duration till the queue can operate at its maximum rate.
*
*
* optional double speedup_factor = 1;
* @return The speedupFactor.
*/
@java.lang.Override
public double getSpeedupFactor() {
return speedupFactor_;
}
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.writeDouble(1, speedupFactor_);
}
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
.computeDoubleSize(1, speedupFactor_);
}
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.apphosting.executor.Queue.QueueRampupParameters)) {
return super.equals(obj);
}
com.google.apphosting.executor.Queue.QueueRampupParameters other = (com.google.apphosting.executor.Queue.QueueRampupParameters) obj;
if (hasSpeedupFactor() != other.hasSpeedupFactor()) return false;
if (hasSpeedupFactor()) {
if (java.lang.Double.doubleToLongBits(getSpeedupFactor())
!= java.lang.Double.doubleToLongBits(
other.getSpeedupFactor())) 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 (hasSpeedupFactor()) {
hash = (37 * hash) + SPEEDUP_FACTOR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getSpeedupFactor()));
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.executor.Queue.QueueRampupParameters parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueRampupParameters parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.QueueRampupParameters parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueRampupParameters 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.apphosting.executor.Queue.QueueRampupParameters parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueRampupParameters parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.QueueRampupParameters parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueRampupParameters 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.apphosting.executor.Queue.QueueRampupParameters parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueRampupParameters 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.apphosting.executor.Queue.QueueRampupParameters parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueRampupParameters 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.apphosting.executor.Queue.QueueRampupParameters 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;
}
/**
*
* The parameters that determine the speed in which the queue can reach its
* maximum task dispatch rate at startup.
* NEXT TAG: 2
*
*
* Protobuf type {@code java.apphosting.QueueRampupParameters}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.QueueRampupParameters)
com.google.apphosting.executor.Queue.QueueRampupParametersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueRampupParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueRampupParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.QueueRampupParameters.class, com.google.apphosting.executor.Queue.QueueRampupParameters.Builder.class);
}
// Construct using com.google.apphosting.executor.Queue.QueueRampupParameters.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
speedupFactor_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueRampupParameters_descriptor;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRampupParameters getDefaultInstanceForType() {
return com.google.apphosting.executor.Queue.QueueRampupParameters.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRampupParameters build() {
com.google.apphosting.executor.Queue.QueueRampupParameters result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRampupParameters buildPartial() {
com.google.apphosting.executor.Queue.QueueRampupParameters result = new com.google.apphosting.executor.Queue.QueueRampupParameters(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.executor.Queue.QueueRampupParameters result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.speedupFactor_ = speedupFactor_;
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.apphosting.executor.Queue.QueueRampupParameters) {
return mergeFrom((com.google.apphosting.executor.Queue.QueueRampupParameters)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.executor.Queue.QueueRampupParameters other) {
if (other == com.google.apphosting.executor.Queue.QueueRampupParameters.getDefaultInstance()) return this;
if (other.hasSpeedupFactor()) {
setSpeedupFactor(other.getSpeedupFactor());
}
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 9: {
speedupFactor_ = input.readDouble();
bitField0_ |= 0x00000001;
break;
} // case 9
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 double speedupFactor_ ;
/**
*
* The Speendup Factor.
* speedup_factor controls the speed in which the queue can reach its maximum
* task dispatch rate at startup. Its value should be bigger or equal to 0.25
* and less than or equal to 4. The bigger this value is the shorter the ramp
* up duration till the queue can operate at its maximum rate.
*
*
* optional double speedup_factor = 1;
* @return Whether the speedupFactor field is set.
*/
@java.lang.Override
public boolean hasSpeedupFactor() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The Speendup Factor.
* speedup_factor controls the speed in which the queue can reach its maximum
* task dispatch rate at startup. Its value should be bigger or equal to 0.25
* and less than or equal to 4. The bigger this value is the shorter the ramp
* up duration till the queue can operate at its maximum rate.
*
*
* optional double speedup_factor = 1;
* @return The speedupFactor.
*/
@java.lang.Override
public double getSpeedupFactor() {
return speedupFactor_;
}
/**
*
* The Speendup Factor.
* speedup_factor controls the speed in which the queue can reach its maximum
* task dispatch rate at startup. Its value should be bigger or equal to 0.25
* and less than or equal to 4. The bigger this value is the shorter the ramp
* up duration till the queue can operate at its maximum rate.
*
*
* optional double speedup_factor = 1;
* @param value The speedupFactor to set.
* @return This builder for chaining.
*/
public Builder setSpeedupFactor(double value) {
speedupFactor_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The Speendup Factor.
* speedup_factor controls the speed in which the queue can reach its maximum
* task dispatch rate at startup. Its value should be bigger or equal to 0.25
* and less than or equal to 4. The bigger this value is the shorter the ramp
* up duration till the queue can operate at its maximum rate.
*
*
* optional double speedup_factor = 1;
* @return This builder for chaining.
*/
public Builder clearSpeedupFactor() {
bitField0_ = (bitField0_ & ~0x00000001);
speedupFactor_ = 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.QueueRampupParameters)
}
// @@protoc_insertion_point(class_scope:java.apphosting.QueueRampupParameters)
private static final com.google.apphosting.executor.Queue.QueueRampupParameters DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.executor.Queue.QueueRampupParameters();
}
public static com.google.apphosting.executor.Queue.QueueRampupParameters getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueueRampupParameters 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.apphosting.executor.Queue.QueueRampupParameters getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueueThrottlingParametersOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.QueueThrottlingParameters)
com.google.protobuf.MessageOrBuilder {
/**
*
* 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 = 1;
* @return Whether the bucketRefillPerSecond field is set.
*/
boolean hasBucketRefillPerSecond();
/**
*
* 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 = 1;
* @return The bucketRefillPerSecond.
*/
double getBucketRefillPerSecond();
/**
*
* The capacity of the token bucket. If < 1.0 tasks will not be executed,
* i.e. deactivates the queue.
*
*
* required double bucket_capacity = 2;
* @return Whether the bucketCapacity field is set.
*/
boolean hasBucketCapacity();
/**
*
* The capacity of the token bucket. If < 1.0 tasks will not be executed,
* i.e. deactivates the queue.
*
*
* required double bucket_capacity = 2;
* @return The bucketCapacity.
*/
double getBucketCapacity();
/**
*
* Limits the number of requests a queue may have in flight at any one time.
* If not present, then no limit will be applied. This field is only
* applicable for push queues.
*
*
* optional int32 max_concurrent_requests = 3;
* @return Whether the maxConcurrentRequests field is set.
*/
boolean hasMaxConcurrentRequests();
/**
*
* Limits the number of requests a queue may have in flight at any one time.
* If not present, then no limit will be applied. This field is only
* applicable for push queues.
*
*
* optional int32 max_concurrent_requests = 3;
* @return The maxConcurrentRequests.
*/
int getMaxConcurrentRequests();
/**
*
* Limits the number of pull tasks requests a queue can serve in a second.
* This limit is enforced only for allocated queues. If the field is unset or
* set to 0, the default throttling limits is enforced. For unallocated
* queues, the default throttling limit is enforced.
*
*
* optional int32 max_pull_requests_per_second = 8 [default = 0];
* @return Whether the maxPullRequestsPerSecond field is set.
*/
boolean hasMaxPullRequestsPerSecond();
/**
*
* Limits the number of pull tasks requests a queue can serve in a second.
* This limit is enforced only for allocated queues. If the field is unset or
* set to 0, the default throttling limits is enforced. For unallocated
* queues, the default throttling limit is enforced.
*
*
* optional int32 max_pull_requests_per_second = 8 [default = 0];
* @return The maxPullRequestsPerSecond.
*/
int getMaxPullRequestsPerSecond();
/**
*
* rampup_parameters determines the speed in which the queue can reach its
* maximum task dispatch rate at startup.
*
*
* optional .java.apphosting.QueueRampupParameters rampup_parameters = 10;
* @return Whether the rampupParameters field is set.
*/
boolean hasRampupParameters();
/**
*
* rampup_parameters determines the speed in which the queue can reach its
* maximum task dispatch rate at startup.
*
*
* optional .java.apphosting.QueueRampupParameters rampup_parameters = 10;
* @return The rampupParameters.
*/
com.google.apphosting.executor.Queue.QueueRampupParameters getRampupParameters();
/**
*
* rampup_parameters determines the speed in which the queue can reach its
* maximum task dispatch rate at startup.
*
*
* optional .java.apphosting.QueueRampupParameters rampup_parameters = 10;
*/
com.google.apphosting.executor.Queue.QueueRampupParametersOrBuilder getRampupParametersOrBuilder();
/**
*
* Override the user-specified configs. Queue overrides take
* precedence over group overrides set in GroupDefinition. Setting
* any number to 0 is equivalent to pausing. Setting a number to < 0
* is equivalent to unset.
* TODO: Check the claim about being
* functionally equivalent to paused. Will the queue show as
* "paused" in the admin console? How will the queue appear in the
* admin console? In general, will the overrides be visible in the
* admin console?
*
*
* optional double override_bucket_refill_per_second = 4 [default = -1];
* @return Whether the overrideBucketRefillPerSecond field is set.
*/
boolean hasOverrideBucketRefillPerSecond();
/**
*
* Override the user-specified configs. Queue overrides take
* precedence over group overrides set in GroupDefinition. Setting
* any number to 0 is equivalent to pausing. Setting a number to < 0
* is equivalent to unset.
* TODO: Check the claim about being
* functionally equivalent to paused. Will the queue show as
* "paused" in the admin console? How will the queue appear in the
* admin console? In general, will the overrides be visible in the
* admin console?
*
*
* optional double override_bucket_refill_per_second = 4 [default = -1];
* @return The overrideBucketRefillPerSecond.
*/
double getOverrideBucketRefillPerSecond();
/**
* optional double override_bucket_capacity = 5 [default = -1];
* @return Whether the overrideBucketCapacity field is set.
*/
boolean hasOverrideBucketCapacity();
/**
* optional double override_bucket_capacity = 5 [default = -1];
* @return The overrideBucketCapacity.
*/
double getOverrideBucketCapacity();
/**
* optional int32 override_max_concurrent_requests = 7 [default = -1];
* @return Whether the overrideMaxConcurrentRequests field is set.
*/
boolean hasOverrideMaxConcurrentRequests();
/**
* optional int32 override_max_concurrent_requests = 7 [default = -1];
* @return The overrideMaxConcurrentRequests.
*/
int getOverrideMaxConcurrentRequests();
/**
* optional int32 override_max_pull_requests_per_second = 9 [default = -1];
* @return Whether the overrideMaxPullRequestsPerSecond field is set.
*/
boolean hasOverrideMaxPullRequestsPerSecond();
/**
* optional int32 override_max_pull_requests_per_second = 9 [default = -1];
* @return The overrideMaxPullRequestsPerSecond.
*/
int getOverrideMaxPullRequestsPerSecond();
}
/**
*
* The parameters that define the rate at which a queue's tasks may be run.
* These parameters refer to the underlying token bucket implementation.
* NEXT TAG: 11
*
*
* Protobuf type {@code java.apphosting.QueueThrottlingParameters}
*/
public static final class QueueThrottlingParameters extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.QueueThrottlingParameters)
QueueThrottlingParametersOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueueThrottlingParameters.newBuilder() to construct.
private QueueThrottlingParameters(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueueThrottlingParameters() {
overrideBucketRefillPerSecond_ = -1D;
overrideBucketCapacity_ = -1D;
overrideMaxConcurrentRequests_ = -1;
overrideMaxPullRequestsPerSecond_ = -1;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueueThrottlingParameters();
}
@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.apphosting.executor.Queue.internal_static_java_apphosting_QueueThrottlingParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueThrottlingParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.QueueThrottlingParameters.class, com.google.apphosting.executor.Queue.QueueThrottlingParameters.Builder.class);
}
private int bitField0_;
public static final int BUCKET_REFILL_PER_SECOND_FIELD_NUMBER = 1;
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 = 1;
* @return Whether the bucketRefillPerSecond field is set.
*/
@java.lang.Override
public boolean hasBucketRefillPerSecond() {
return ((bitField0_ & 0x00000001) != 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 = 1;
* @return The bucketRefillPerSecond.
*/
@java.lang.Override
public double getBucketRefillPerSecond() {
return bucketRefillPerSecond_;
}
public static final int BUCKET_CAPACITY_FIELD_NUMBER = 2;
private double bucketCapacity_ = 0D;
/**
*
* The capacity of the token bucket. If < 1.0 tasks will not be executed,
* i.e. deactivates the queue.
*
*
* required double bucket_capacity = 2;
* @return Whether the bucketCapacity field is set.
*/
@java.lang.Override
public boolean hasBucketCapacity() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The capacity of the token bucket. If < 1.0 tasks will not be executed,
* i.e. deactivates the queue.
*
*
* required double bucket_capacity = 2;
* @return The bucketCapacity.
*/
@java.lang.Override
public double getBucketCapacity() {
return bucketCapacity_;
}
public static final int MAX_CONCURRENT_REQUESTS_FIELD_NUMBER = 3;
private int maxConcurrentRequests_ = 0;
/**
*
* Limits the number of requests a queue may have in flight at any one time.
* If not present, then no limit will be applied. This field is only
* applicable for push queues.
*
*
* optional int32 max_concurrent_requests = 3;
* @return Whether the maxConcurrentRequests field is set.
*/
@java.lang.Override
public boolean hasMaxConcurrentRequests() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Limits the number of requests a queue may have in flight at any one time.
* If not present, then no limit will be applied. This field is only
* applicable for push queues.
*
*
* optional int32 max_concurrent_requests = 3;
* @return The maxConcurrentRequests.
*/
@java.lang.Override
public int getMaxConcurrentRequests() {
return maxConcurrentRequests_;
}
public static final int MAX_PULL_REQUESTS_PER_SECOND_FIELD_NUMBER = 8;
private int maxPullRequestsPerSecond_ = 0;
/**
*
* Limits the number of pull tasks requests a queue can serve in a second.
* This limit is enforced only for allocated queues. If the field is unset or
* set to 0, the default throttling limits is enforced. For unallocated
* queues, the default throttling limit is enforced.
*
*
* optional int32 max_pull_requests_per_second = 8 [default = 0];
* @return Whether the maxPullRequestsPerSecond field is set.
*/
@java.lang.Override
public boolean hasMaxPullRequestsPerSecond() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Limits the number of pull tasks requests a queue can serve in a second.
* This limit is enforced only for allocated queues. If the field is unset or
* set to 0, the default throttling limits is enforced. For unallocated
* queues, the default throttling limit is enforced.
*
*
* optional int32 max_pull_requests_per_second = 8 [default = 0];
* @return The maxPullRequestsPerSecond.
*/
@java.lang.Override
public int getMaxPullRequestsPerSecond() {
return maxPullRequestsPerSecond_;
}
public static final int RAMPUP_PARAMETERS_FIELD_NUMBER = 10;
private com.google.apphosting.executor.Queue.QueueRampupParameters rampupParameters_;
/**
*
* rampup_parameters determines the speed in which the queue can reach its
* maximum task dispatch rate at startup.
*
*
* optional .java.apphosting.QueueRampupParameters rampup_parameters = 10;
* @return Whether the rampupParameters field is set.
*/
@java.lang.Override
public boolean hasRampupParameters() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* rampup_parameters determines the speed in which the queue can reach its
* maximum task dispatch rate at startup.
*
*
* optional .java.apphosting.QueueRampupParameters rampup_parameters = 10;
* @return The rampupParameters.
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRampupParameters getRampupParameters() {
return rampupParameters_ == null ? com.google.apphosting.executor.Queue.QueueRampupParameters.getDefaultInstance() : rampupParameters_;
}
/**
*
* rampup_parameters determines the speed in which the queue can reach its
* maximum task dispatch rate at startup.
*
*
* optional .java.apphosting.QueueRampupParameters rampup_parameters = 10;
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRampupParametersOrBuilder getRampupParametersOrBuilder() {
return rampupParameters_ == null ? com.google.apphosting.executor.Queue.QueueRampupParameters.getDefaultInstance() : rampupParameters_;
}
public static final int OVERRIDE_BUCKET_REFILL_PER_SECOND_FIELD_NUMBER = 4;
private double overrideBucketRefillPerSecond_ = -1D;
/**
*
* Override the user-specified configs. Queue overrides take
* precedence over group overrides set in GroupDefinition. Setting
* any number to 0 is equivalent to pausing. Setting a number to < 0
* is equivalent to unset.
* TODO: Check the claim about being
* functionally equivalent to paused. Will the queue show as
* "paused" in the admin console? How will the queue appear in the
* admin console? In general, will the overrides be visible in the
* admin console?
*
*
* optional double override_bucket_refill_per_second = 4 [default = -1];
* @return Whether the overrideBucketRefillPerSecond field is set.
*/
@java.lang.Override
public boolean hasOverrideBucketRefillPerSecond() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Override the user-specified configs. Queue overrides take
* precedence over group overrides set in GroupDefinition. Setting
* any number to 0 is equivalent to pausing. Setting a number to < 0
* is equivalent to unset.
* TODO: Check the claim about being
* functionally equivalent to paused. Will the queue show as
* "paused" in the admin console? How will the queue appear in the
* admin console? In general, will the overrides be visible in the
* admin console?
*
*
* optional double override_bucket_refill_per_second = 4 [default = -1];
* @return The overrideBucketRefillPerSecond.
*/
@java.lang.Override
public double getOverrideBucketRefillPerSecond() {
return overrideBucketRefillPerSecond_;
}
public static final int OVERRIDE_BUCKET_CAPACITY_FIELD_NUMBER = 5;
private double overrideBucketCapacity_ = -1D;
/**
* optional double override_bucket_capacity = 5 [default = -1];
* @return Whether the overrideBucketCapacity field is set.
*/
@java.lang.Override
public boolean hasOverrideBucketCapacity() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional double override_bucket_capacity = 5 [default = -1];
* @return The overrideBucketCapacity.
*/
@java.lang.Override
public double getOverrideBucketCapacity() {
return overrideBucketCapacity_;
}
public static final int OVERRIDE_MAX_CONCURRENT_REQUESTS_FIELD_NUMBER = 7;
private int overrideMaxConcurrentRequests_ = -1;
/**
* optional int32 override_max_concurrent_requests = 7 [default = -1];
* @return Whether the overrideMaxConcurrentRequests field is set.
*/
@java.lang.Override
public boolean hasOverrideMaxConcurrentRequests() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional int32 override_max_concurrent_requests = 7 [default = -1];
* @return The overrideMaxConcurrentRequests.
*/
@java.lang.Override
public int getOverrideMaxConcurrentRequests() {
return overrideMaxConcurrentRequests_;
}
public static final int OVERRIDE_MAX_PULL_REQUESTS_PER_SECOND_FIELD_NUMBER = 9;
private int overrideMaxPullRequestsPerSecond_ = -1;
/**
* optional int32 override_max_pull_requests_per_second = 9 [default = -1];
* @return Whether the overrideMaxPullRequestsPerSecond field is set.
*/
@java.lang.Override
public boolean hasOverrideMaxPullRequestsPerSecond() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional int32 override_max_pull_requests_per_second = 9 [default = -1];
* @return The overrideMaxPullRequestsPerSecond.
*/
@java.lang.Override
public int getOverrideMaxPullRequestsPerSecond() {
return overrideMaxPullRequestsPerSecond_;
}
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 (!hasBucketRefillPerSecond()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasBucketCapacity()) {
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.writeDouble(1, bucketRefillPerSecond_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeDouble(2, bucketCapacity_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt32(3, maxConcurrentRequests_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeDouble(4, overrideBucketRefillPerSecond_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeDouble(5, overrideBucketCapacity_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeInt32(7, overrideMaxConcurrentRequests_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt32(8, maxPullRequestsPerSecond_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeInt32(9, overrideMaxPullRequestsPerSecond_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(10, getRampupParameters());
}
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
.computeDoubleSize(1, bucketRefillPerSecond_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, bucketCapacity_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, maxConcurrentRequests_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, overrideBucketRefillPerSecond_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, overrideBucketCapacity_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, overrideMaxConcurrentRequests_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(8, maxPullRequestsPerSecond_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(9, overrideMaxPullRequestsPerSecond_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getRampupParameters());
}
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.apphosting.executor.Queue.QueueThrottlingParameters)) {
return super.equals(obj);
}
com.google.apphosting.executor.Queue.QueueThrottlingParameters other = (com.google.apphosting.executor.Queue.QueueThrottlingParameters) obj;
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 (java.lang.Double.doubleToLongBits(getBucketCapacity())
!= java.lang.Double.doubleToLongBits(
other.getBucketCapacity())) return false;
}
if (hasMaxConcurrentRequests() != other.hasMaxConcurrentRequests()) return false;
if (hasMaxConcurrentRequests()) {
if (getMaxConcurrentRequests()
!= other.getMaxConcurrentRequests()) return false;
}
if (hasMaxPullRequestsPerSecond() != other.hasMaxPullRequestsPerSecond()) return false;
if (hasMaxPullRequestsPerSecond()) {
if (getMaxPullRequestsPerSecond()
!= other.getMaxPullRequestsPerSecond()) return false;
}
if (hasRampupParameters() != other.hasRampupParameters()) return false;
if (hasRampupParameters()) {
if (!getRampupParameters()
.equals(other.getRampupParameters())) return false;
}
if (hasOverrideBucketRefillPerSecond() != other.hasOverrideBucketRefillPerSecond()) return false;
if (hasOverrideBucketRefillPerSecond()) {
if (java.lang.Double.doubleToLongBits(getOverrideBucketRefillPerSecond())
!= java.lang.Double.doubleToLongBits(
other.getOverrideBucketRefillPerSecond())) return false;
}
if (hasOverrideBucketCapacity() != other.hasOverrideBucketCapacity()) return false;
if (hasOverrideBucketCapacity()) {
if (java.lang.Double.doubleToLongBits(getOverrideBucketCapacity())
!= java.lang.Double.doubleToLongBits(
other.getOverrideBucketCapacity())) return false;
}
if (hasOverrideMaxConcurrentRequests() != other.hasOverrideMaxConcurrentRequests()) return false;
if (hasOverrideMaxConcurrentRequests()) {
if (getOverrideMaxConcurrentRequests()
!= other.getOverrideMaxConcurrentRequests()) return false;
}
if (hasOverrideMaxPullRequestsPerSecond() != other.hasOverrideMaxPullRequestsPerSecond()) return false;
if (hasOverrideMaxPullRequestsPerSecond()) {
if (getOverrideMaxPullRequestsPerSecond()
!= other.getOverrideMaxPullRequestsPerSecond()) 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 (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) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getBucketCapacity()));
}
if (hasMaxConcurrentRequests()) {
hash = (37 * hash) + MAX_CONCURRENT_REQUESTS_FIELD_NUMBER;
hash = (53 * hash) + getMaxConcurrentRequests();
}
if (hasMaxPullRequestsPerSecond()) {
hash = (37 * hash) + MAX_PULL_REQUESTS_PER_SECOND_FIELD_NUMBER;
hash = (53 * hash) + getMaxPullRequestsPerSecond();
}
if (hasRampupParameters()) {
hash = (37 * hash) + RAMPUP_PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + getRampupParameters().hashCode();
}
if (hasOverrideBucketRefillPerSecond()) {
hash = (37 * hash) + OVERRIDE_BUCKET_REFILL_PER_SECOND_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getOverrideBucketRefillPerSecond()));
}
if (hasOverrideBucketCapacity()) {
hash = (37 * hash) + OVERRIDE_BUCKET_CAPACITY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getOverrideBucketCapacity()));
}
if (hasOverrideMaxConcurrentRequests()) {
hash = (37 * hash) + OVERRIDE_MAX_CONCURRENT_REQUESTS_FIELD_NUMBER;
hash = (53 * hash) + getOverrideMaxConcurrentRequests();
}
if (hasOverrideMaxPullRequestsPerSecond()) {
hash = (37 * hash) + OVERRIDE_MAX_PULL_REQUESTS_PER_SECOND_FIELD_NUMBER;
hash = (53 * hash) + getOverrideMaxPullRequestsPerSecond();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.executor.Queue.QueueThrottlingParameters parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueThrottlingParameters parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.QueueThrottlingParameters parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueThrottlingParameters 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.apphosting.executor.Queue.QueueThrottlingParameters parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueThrottlingParameters parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.QueueThrottlingParameters parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueThrottlingParameters 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.apphosting.executor.Queue.QueueThrottlingParameters parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueThrottlingParameters 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.apphosting.executor.Queue.QueueThrottlingParameters parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueThrottlingParameters 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.apphosting.executor.Queue.QueueThrottlingParameters 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;
}
/**
*
* The parameters that define the rate at which a queue's tasks may be run.
* These parameters refer to the underlying token bucket implementation.
* NEXT TAG: 11
*
*
* Protobuf type {@code java.apphosting.QueueThrottlingParameters}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.QueueThrottlingParameters)
com.google.apphosting.executor.Queue.QueueThrottlingParametersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueThrottlingParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueThrottlingParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.QueueThrottlingParameters.class, com.google.apphosting.executor.Queue.QueueThrottlingParameters.Builder.class);
}
// Construct using com.google.apphosting.executor.Queue.QueueThrottlingParameters.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRampupParametersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
bucketRefillPerSecond_ = 0D;
bucketCapacity_ = 0D;
maxConcurrentRequests_ = 0;
maxPullRequestsPerSecond_ = 0;
rampupParameters_ = null;
if (rampupParametersBuilder_ != null) {
rampupParametersBuilder_.dispose();
rampupParametersBuilder_ = null;
}
overrideBucketRefillPerSecond_ = -1D;
overrideBucketCapacity_ = -1D;
overrideMaxConcurrentRequests_ = -1;
overrideMaxPullRequestsPerSecond_ = -1;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueThrottlingParameters_descriptor;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueThrottlingParameters getDefaultInstanceForType() {
return com.google.apphosting.executor.Queue.QueueThrottlingParameters.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueThrottlingParameters build() {
com.google.apphosting.executor.Queue.QueueThrottlingParameters result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueThrottlingParameters buildPartial() {
com.google.apphosting.executor.Queue.QueueThrottlingParameters result = new com.google.apphosting.executor.Queue.QueueThrottlingParameters(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.executor.Queue.QueueThrottlingParameters result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.bucketRefillPerSecond_ = bucketRefillPerSecond_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.bucketCapacity_ = bucketCapacity_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.maxConcurrentRequests_ = maxConcurrentRequests_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.maxPullRequestsPerSecond_ = maxPullRequestsPerSecond_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.rampupParameters_ = rampupParametersBuilder_ == null
? rampupParameters_
: rampupParametersBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.overrideBucketRefillPerSecond_ = overrideBucketRefillPerSecond_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.overrideBucketCapacity_ = overrideBucketCapacity_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.overrideMaxConcurrentRequests_ = overrideMaxConcurrentRequests_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.overrideMaxPullRequestsPerSecond_ = overrideMaxPullRequestsPerSecond_;
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.apphosting.executor.Queue.QueueThrottlingParameters) {
return mergeFrom((com.google.apphosting.executor.Queue.QueueThrottlingParameters)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.executor.Queue.QueueThrottlingParameters other) {
if (other == com.google.apphosting.executor.Queue.QueueThrottlingParameters.getDefaultInstance()) return this;
if (other.hasBucketRefillPerSecond()) {
setBucketRefillPerSecond(other.getBucketRefillPerSecond());
}
if (other.hasBucketCapacity()) {
setBucketCapacity(other.getBucketCapacity());
}
if (other.hasMaxConcurrentRequests()) {
setMaxConcurrentRequests(other.getMaxConcurrentRequests());
}
if (other.hasMaxPullRequestsPerSecond()) {
setMaxPullRequestsPerSecond(other.getMaxPullRequestsPerSecond());
}
if (other.hasRampupParameters()) {
mergeRampupParameters(other.getRampupParameters());
}
if (other.hasOverrideBucketRefillPerSecond()) {
setOverrideBucketRefillPerSecond(other.getOverrideBucketRefillPerSecond());
}
if (other.hasOverrideBucketCapacity()) {
setOverrideBucketCapacity(other.getOverrideBucketCapacity());
}
if (other.hasOverrideMaxConcurrentRequests()) {
setOverrideMaxConcurrentRequests(other.getOverrideMaxConcurrentRequests());
}
if (other.hasOverrideMaxPullRequestsPerSecond()) {
setOverrideMaxPullRequestsPerSecond(other.getOverrideMaxPullRequestsPerSecond());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasBucketRefillPerSecond()) {
return false;
}
if (!hasBucketCapacity()) {
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 9: {
bucketRefillPerSecond_ = input.readDouble();
bitField0_ |= 0x00000001;
break;
} // case 9
case 17: {
bucketCapacity_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 17
case 24: {
maxConcurrentRequests_ = input.readInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 33: {
overrideBucketRefillPerSecond_ = input.readDouble();
bitField0_ |= 0x00000020;
break;
} // case 33
case 41: {
overrideBucketCapacity_ = input.readDouble();
bitField0_ |= 0x00000040;
break;
} // case 41
case 56: {
overrideMaxConcurrentRequests_ = input.readInt32();
bitField0_ |= 0x00000080;
break;
} // case 56
case 64: {
maxPullRequestsPerSecond_ = input.readInt32();
bitField0_ |= 0x00000008;
break;
} // case 64
case 72: {
overrideMaxPullRequestsPerSecond_ = input.readInt32();
bitField0_ |= 0x00000100;
break;
} // case 72
case 82: {
input.readMessage(
getRampupParametersFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
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 double bucketRefillPerSecond_ ;
/**
*
* 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 = 1;
* @return Whether the bucketRefillPerSecond field is set.
*/
@java.lang.Override
public boolean hasBucketRefillPerSecond() {
return ((bitField0_ & 0x00000001) != 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 = 1;
* @return The bucketRefillPerSecond.
*/
@java.lang.Override
public double getBucketRefillPerSecond() {
return bucketRefillPerSecond_;
}
/**
*
* 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 = 1;
* @param value The bucketRefillPerSecond to set.
* @return This builder for chaining.
*/
public Builder setBucketRefillPerSecond(double value) {
bucketRefillPerSecond_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* 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 = 1;
* @return This builder for chaining.
*/
public Builder clearBucketRefillPerSecond() {
bitField0_ = (bitField0_ & ~0x00000001);
bucketRefillPerSecond_ = 0D;
onChanged();
return this;
}
private double bucketCapacity_ ;
/**
*
* The capacity of the token bucket. If < 1.0 tasks will not be executed,
* i.e. deactivates the queue.
*
*
* required double bucket_capacity = 2;
* @return Whether the bucketCapacity field is set.
*/
@java.lang.Override
public boolean hasBucketCapacity() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The capacity of the token bucket. If < 1.0 tasks will not be executed,
* i.e. deactivates the queue.
*
*
* required double bucket_capacity = 2;
* @return The bucketCapacity.
*/
@java.lang.Override
public double getBucketCapacity() {
return bucketCapacity_;
}
/**
*
* The capacity of the token bucket. If < 1.0 tasks will not be executed,
* i.e. deactivates the queue.
*
*
* required double bucket_capacity = 2;
* @param value The bucketCapacity to set.
* @return This builder for chaining.
*/
public Builder setBucketCapacity(double value) {
bucketCapacity_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The capacity of the token bucket. If < 1.0 tasks will not be executed,
* i.e. deactivates the queue.
*
*
* required double bucket_capacity = 2;
* @return This builder for chaining.
*/
public Builder clearBucketCapacity() {
bitField0_ = (bitField0_ & ~0x00000002);
bucketCapacity_ = 0D;
onChanged();
return this;
}
private int maxConcurrentRequests_ ;
/**
*
* Limits the number of requests a queue may have in flight at any one time.
* If not present, then no limit will be applied. This field is only
* applicable for push queues.
*
*
* optional int32 max_concurrent_requests = 3;
* @return Whether the maxConcurrentRequests field is set.
*/
@java.lang.Override
public boolean hasMaxConcurrentRequests() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Limits the number of requests a queue may have in flight at any one time.
* If not present, then no limit will be applied. This field is only
* applicable for push queues.
*
*
* optional int32 max_concurrent_requests = 3;
* @return The maxConcurrentRequests.
*/
@java.lang.Override
public int getMaxConcurrentRequests() {
return maxConcurrentRequests_;
}
/**
*
* Limits the number of requests a queue may have in flight at any one time.
* If not present, then no limit will be applied. This field is only
* applicable for push queues.
*
*
* optional int32 max_concurrent_requests = 3;
* @param value The maxConcurrentRequests to set.
* @return This builder for chaining.
*/
public Builder setMaxConcurrentRequests(int value) {
maxConcurrentRequests_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Limits the number of requests a queue may have in flight at any one time.
* If not present, then no limit will be applied. This field is only
* applicable for push queues.
*
*
* optional int32 max_concurrent_requests = 3;
* @return This builder for chaining.
*/
public Builder clearMaxConcurrentRequests() {
bitField0_ = (bitField0_ & ~0x00000004);
maxConcurrentRequests_ = 0;
onChanged();
return this;
}
private int maxPullRequestsPerSecond_ ;
/**
*
* Limits the number of pull tasks requests a queue can serve in a second.
* This limit is enforced only for allocated queues. If the field is unset or
* set to 0, the default throttling limits is enforced. For unallocated
* queues, the default throttling limit is enforced.
*
*
* optional int32 max_pull_requests_per_second = 8 [default = 0];
* @return Whether the maxPullRequestsPerSecond field is set.
*/
@java.lang.Override
public boolean hasMaxPullRequestsPerSecond() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Limits the number of pull tasks requests a queue can serve in a second.
* This limit is enforced only for allocated queues. If the field is unset or
* set to 0, the default throttling limits is enforced. For unallocated
* queues, the default throttling limit is enforced.
*
*
* optional int32 max_pull_requests_per_second = 8 [default = 0];
* @return The maxPullRequestsPerSecond.
*/
@java.lang.Override
public int getMaxPullRequestsPerSecond() {
return maxPullRequestsPerSecond_;
}
/**
*
* Limits the number of pull tasks requests a queue can serve in a second.
* This limit is enforced only for allocated queues. If the field is unset or
* set to 0, the default throttling limits is enforced. For unallocated
* queues, the default throttling limit is enforced.
*
*
* optional int32 max_pull_requests_per_second = 8 [default = 0];
* @param value The maxPullRequestsPerSecond to set.
* @return This builder for chaining.
*/
public Builder setMaxPullRequestsPerSecond(int value) {
maxPullRequestsPerSecond_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Limits the number of pull tasks requests a queue can serve in a second.
* This limit is enforced only for allocated queues. If the field is unset or
* set to 0, the default throttling limits is enforced. For unallocated
* queues, the default throttling limit is enforced.
*
*
* optional int32 max_pull_requests_per_second = 8 [default = 0];
* @return This builder for chaining.
*/
public Builder clearMaxPullRequestsPerSecond() {
bitField0_ = (bitField0_ & ~0x00000008);
maxPullRequestsPerSecond_ = 0;
onChanged();
return this;
}
private com.google.apphosting.executor.Queue.QueueRampupParameters rampupParameters_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueRampupParameters, com.google.apphosting.executor.Queue.QueueRampupParameters.Builder, com.google.apphosting.executor.Queue.QueueRampupParametersOrBuilder> rampupParametersBuilder_;
/**
*
* rampup_parameters determines the speed in which the queue can reach its
* maximum task dispatch rate at startup.
*
*
* optional .java.apphosting.QueueRampupParameters rampup_parameters = 10;
* @return Whether the rampupParameters field is set.
*/
public boolean hasRampupParameters() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* rampup_parameters determines the speed in which the queue can reach its
* maximum task dispatch rate at startup.
*
*
* optional .java.apphosting.QueueRampupParameters rampup_parameters = 10;
* @return The rampupParameters.
*/
public com.google.apphosting.executor.Queue.QueueRampupParameters getRampupParameters() {
if (rampupParametersBuilder_ == null) {
return rampupParameters_ == null ? com.google.apphosting.executor.Queue.QueueRampupParameters.getDefaultInstance() : rampupParameters_;
} else {
return rampupParametersBuilder_.getMessage();
}
}
/**
*
* rampup_parameters determines the speed in which the queue can reach its
* maximum task dispatch rate at startup.
*
*
* optional .java.apphosting.QueueRampupParameters rampup_parameters = 10;
*/
public Builder setRampupParameters(com.google.apphosting.executor.Queue.QueueRampupParameters value) {
if (rampupParametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rampupParameters_ = value;
} else {
rampupParametersBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* rampup_parameters determines the speed in which the queue can reach its
* maximum task dispatch rate at startup.
*
*
* optional .java.apphosting.QueueRampupParameters rampup_parameters = 10;
*/
public Builder setRampupParameters(
com.google.apphosting.executor.Queue.QueueRampupParameters.Builder builderForValue) {
if (rampupParametersBuilder_ == null) {
rampupParameters_ = builderForValue.build();
} else {
rampupParametersBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* rampup_parameters determines the speed in which the queue can reach its
* maximum task dispatch rate at startup.
*
*
* optional .java.apphosting.QueueRampupParameters rampup_parameters = 10;
*/
public Builder mergeRampupParameters(com.google.apphosting.executor.Queue.QueueRampupParameters value) {
if (rampupParametersBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
rampupParameters_ != null &&
rampupParameters_ != com.google.apphosting.executor.Queue.QueueRampupParameters.getDefaultInstance()) {
getRampupParametersBuilder().mergeFrom(value);
} else {
rampupParameters_ = value;
}
} else {
rampupParametersBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* rampup_parameters determines the speed in which the queue can reach its
* maximum task dispatch rate at startup.
*
*
* optional .java.apphosting.QueueRampupParameters rampup_parameters = 10;
*/
public Builder clearRampupParameters() {
bitField0_ = (bitField0_ & ~0x00000010);
rampupParameters_ = null;
if (rampupParametersBuilder_ != null) {
rampupParametersBuilder_.dispose();
rampupParametersBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* rampup_parameters determines the speed in which the queue can reach its
* maximum task dispatch rate at startup.
*
*
* optional .java.apphosting.QueueRampupParameters rampup_parameters = 10;
*/
public com.google.apphosting.executor.Queue.QueueRampupParameters.Builder getRampupParametersBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getRampupParametersFieldBuilder().getBuilder();
}
/**
*
* rampup_parameters determines the speed in which the queue can reach its
* maximum task dispatch rate at startup.
*
*
* optional .java.apphosting.QueueRampupParameters rampup_parameters = 10;
*/
public com.google.apphosting.executor.Queue.QueueRampupParametersOrBuilder getRampupParametersOrBuilder() {
if (rampupParametersBuilder_ != null) {
return rampupParametersBuilder_.getMessageOrBuilder();
} else {
return rampupParameters_ == null ?
com.google.apphosting.executor.Queue.QueueRampupParameters.getDefaultInstance() : rampupParameters_;
}
}
/**
*
* rampup_parameters determines the speed in which the queue can reach its
* maximum task dispatch rate at startup.
*
*
* optional .java.apphosting.QueueRampupParameters rampup_parameters = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueRampupParameters, com.google.apphosting.executor.Queue.QueueRampupParameters.Builder, com.google.apphosting.executor.Queue.QueueRampupParametersOrBuilder>
getRampupParametersFieldBuilder() {
if (rampupParametersBuilder_ == null) {
rampupParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueRampupParameters, com.google.apphosting.executor.Queue.QueueRampupParameters.Builder, com.google.apphosting.executor.Queue.QueueRampupParametersOrBuilder>(
getRampupParameters(),
getParentForChildren(),
isClean());
rampupParameters_ = null;
}
return rampupParametersBuilder_;
}
private double overrideBucketRefillPerSecond_ = -1D;
/**
*
* Override the user-specified configs. Queue overrides take
* precedence over group overrides set in GroupDefinition. Setting
* any number to 0 is equivalent to pausing. Setting a number to < 0
* is equivalent to unset.
* TODO: Check the claim about being
* functionally equivalent to paused. Will the queue show as
* "paused" in the admin console? How will the queue appear in the
* admin console? In general, will the overrides be visible in the
* admin console?
*
*
* optional double override_bucket_refill_per_second = 4 [default = -1];
* @return Whether the overrideBucketRefillPerSecond field is set.
*/
@java.lang.Override
public boolean hasOverrideBucketRefillPerSecond() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Override the user-specified configs. Queue overrides take
* precedence over group overrides set in GroupDefinition. Setting
* any number to 0 is equivalent to pausing. Setting a number to < 0
* is equivalent to unset.
* TODO: Check the claim about being
* functionally equivalent to paused. Will the queue show as
* "paused" in the admin console? How will the queue appear in the
* admin console? In general, will the overrides be visible in the
* admin console?
*
*
* optional double override_bucket_refill_per_second = 4 [default = -1];
* @return The overrideBucketRefillPerSecond.
*/
@java.lang.Override
public double getOverrideBucketRefillPerSecond() {
return overrideBucketRefillPerSecond_;
}
/**
*
* Override the user-specified configs. Queue overrides take
* precedence over group overrides set in GroupDefinition. Setting
* any number to 0 is equivalent to pausing. Setting a number to < 0
* is equivalent to unset.
* TODO: Check the claim about being
* functionally equivalent to paused. Will the queue show as
* "paused" in the admin console? How will the queue appear in the
* admin console? In general, will the overrides be visible in the
* admin console?
*
*
* optional double override_bucket_refill_per_second = 4 [default = -1];
* @param value The overrideBucketRefillPerSecond to set.
* @return This builder for chaining.
*/
public Builder setOverrideBucketRefillPerSecond(double value) {
overrideBucketRefillPerSecond_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Override the user-specified configs. Queue overrides take
* precedence over group overrides set in GroupDefinition. Setting
* any number to 0 is equivalent to pausing. Setting a number to < 0
* is equivalent to unset.
* TODO: Check the claim about being
* functionally equivalent to paused. Will the queue show as
* "paused" in the admin console? How will the queue appear in the
* admin console? In general, will the overrides be visible in the
* admin console?
*
*
* optional double override_bucket_refill_per_second = 4 [default = -1];
* @return This builder for chaining.
*/
public Builder clearOverrideBucketRefillPerSecond() {
bitField0_ = (bitField0_ & ~0x00000020);
overrideBucketRefillPerSecond_ = -1D;
onChanged();
return this;
}
private double overrideBucketCapacity_ = -1D;
/**
* optional double override_bucket_capacity = 5 [default = -1];
* @return Whether the overrideBucketCapacity field is set.
*/
@java.lang.Override
public boolean hasOverrideBucketCapacity() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional double override_bucket_capacity = 5 [default = -1];
* @return The overrideBucketCapacity.
*/
@java.lang.Override
public double getOverrideBucketCapacity() {
return overrideBucketCapacity_;
}
/**
* optional double override_bucket_capacity = 5 [default = -1];
* @param value The overrideBucketCapacity to set.
* @return This builder for chaining.
*/
public Builder setOverrideBucketCapacity(double value) {
overrideBucketCapacity_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* optional double override_bucket_capacity = 5 [default = -1];
* @return This builder for chaining.
*/
public Builder clearOverrideBucketCapacity() {
bitField0_ = (bitField0_ & ~0x00000040);
overrideBucketCapacity_ = -1D;
onChanged();
return this;
}
private int overrideMaxConcurrentRequests_ = -1;
/**
* optional int32 override_max_concurrent_requests = 7 [default = -1];
* @return Whether the overrideMaxConcurrentRequests field is set.
*/
@java.lang.Override
public boolean hasOverrideMaxConcurrentRequests() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional int32 override_max_concurrent_requests = 7 [default = -1];
* @return The overrideMaxConcurrentRequests.
*/
@java.lang.Override
public int getOverrideMaxConcurrentRequests() {
return overrideMaxConcurrentRequests_;
}
/**
* optional int32 override_max_concurrent_requests = 7 [default = -1];
* @param value The overrideMaxConcurrentRequests to set.
* @return This builder for chaining.
*/
public Builder setOverrideMaxConcurrentRequests(int value) {
overrideMaxConcurrentRequests_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* optional int32 override_max_concurrent_requests = 7 [default = -1];
* @return This builder for chaining.
*/
public Builder clearOverrideMaxConcurrentRequests() {
bitField0_ = (bitField0_ & ~0x00000080);
overrideMaxConcurrentRequests_ = -1;
onChanged();
return this;
}
private int overrideMaxPullRequestsPerSecond_ = -1;
/**
* optional int32 override_max_pull_requests_per_second = 9 [default = -1];
* @return Whether the overrideMaxPullRequestsPerSecond field is set.
*/
@java.lang.Override
public boolean hasOverrideMaxPullRequestsPerSecond() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional int32 override_max_pull_requests_per_second = 9 [default = -1];
* @return The overrideMaxPullRequestsPerSecond.
*/
@java.lang.Override
public int getOverrideMaxPullRequestsPerSecond() {
return overrideMaxPullRequestsPerSecond_;
}
/**
* optional int32 override_max_pull_requests_per_second = 9 [default = -1];
* @param value The overrideMaxPullRequestsPerSecond to set.
* @return This builder for chaining.
*/
public Builder setOverrideMaxPullRequestsPerSecond(int value) {
overrideMaxPullRequestsPerSecond_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* optional int32 override_max_pull_requests_per_second = 9 [default = -1];
* @return This builder for chaining.
*/
public Builder clearOverrideMaxPullRequestsPerSecond() {
bitField0_ = (bitField0_ & ~0x00000100);
overrideMaxPullRequestsPerSecond_ = -1;
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.QueueThrottlingParameters)
}
// @@protoc_insertion_point(class_scope:java.apphosting.QueueThrottlingParameters)
private static final com.google.apphosting.executor.Queue.QueueThrottlingParameters DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.executor.Queue.QueueThrottlingParameters();
}
public static com.google.apphosting.executor.Queue.QueueThrottlingParameters getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueueThrottlingParameters 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.apphosting.executor.Queue.QueueThrottlingParameters getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface HttpTaskRunnerHeaderOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.HttpTaskRunnerHeader)
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.HttpTaskRunnerHeader}
*/
public static final class HttpTaskRunnerHeader extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.HttpTaskRunnerHeader)
HttpTaskRunnerHeaderOrBuilder {
private static final long serialVersionUID = 0L;
// Use HttpTaskRunnerHeader.newBuilder() to construct.
private HttpTaskRunnerHeader(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HttpTaskRunnerHeader() {
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 HttpTaskRunnerHeader();
}
@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.apphosting.executor.Queue.internal_static_java_apphosting_HttpTaskRunnerHeader_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_HttpTaskRunnerHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.HttpTaskRunnerHeader.class, com.google.apphosting.executor.Queue.HttpTaskRunnerHeader.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.apphosting.executor.Queue.HttpTaskRunnerHeader)) {
return super.equals(obj);
}
com.google.apphosting.executor.Queue.HttpTaskRunnerHeader other = (com.google.apphosting.executor.Queue.HttpTaskRunnerHeader) 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.apphosting.executor.Queue.HttpTaskRunnerHeader parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.HttpTaskRunnerHeader parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.HttpTaskRunnerHeader parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.HttpTaskRunnerHeader 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.apphosting.executor.Queue.HttpTaskRunnerHeader parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.HttpTaskRunnerHeader parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.HttpTaskRunnerHeader parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.HttpTaskRunnerHeader 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.apphosting.executor.Queue.HttpTaskRunnerHeader parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.HttpTaskRunnerHeader 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.apphosting.executor.Queue.HttpTaskRunnerHeader parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.HttpTaskRunnerHeader 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.apphosting.executor.Queue.HttpTaskRunnerHeader 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.HttpTaskRunnerHeader}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.HttpTaskRunnerHeader)
com.google.apphosting.executor.Queue.HttpTaskRunnerHeaderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_HttpTaskRunnerHeader_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_HttpTaskRunnerHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.HttpTaskRunnerHeader.class, com.google.apphosting.executor.Queue.HttpTaskRunnerHeader.Builder.class);
}
// Construct using com.google.apphosting.executor.Queue.HttpTaskRunnerHeader.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.apphosting.executor.Queue.internal_static_java_apphosting_HttpTaskRunnerHeader_descriptor;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.HttpTaskRunnerHeader getDefaultInstanceForType() {
return com.google.apphosting.executor.Queue.HttpTaskRunnerHeader.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.executor.Queue.HttpTaskRunnerHeader build() {
com.google.apphosting.executor.Queue.HttpTaskRunnerHeader result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.HttpTaskRunnerHeader buildPartial() {
com.google.apphosting.executor.Queue.HttpTaskRunnerHeader result = new com.google.apphosting.executor.Queue.HttpTaskRunnerHeader(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.executor.Queue.HttpTaskRunnerHeader 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.apphosting.executor.Queue.HttpTaskRunnerHeader) {
return mergeFrom((com.google.apphosting.executor.Queue.HttpTaskRunnerHeader)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.executor.Queue.HttpTaskRunnerHeader other) {
if (other == com.google.apphosting.executor.Queue.HttpTaskRunnerHeader.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.HttpTaskRunnerHeader)
}
// @@protoc_insertion_point(class_scope:java.apphosting.HttpTaskRunnerHeader)
private static final com.google.apphosting.executor.Queue.HttpTaskRunnerHeader DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.executor.Queue.HttpTaskRunnerHeader();
}
public static com.google.apphosting.executor.Queue.HttpTaskRunnerHeader getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HttpTaskRunnerHeader 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.apphosting.executor.Queue.HttpTaskRunnerHeader getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ThresholdCrossingOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.ThresholdCrossing)
com.google.protobuf.MessageOrBuilder {
/**
* optional int64 threshold = 1;
* @return Whether the threshold field is set.
*/
boolean hasThreshold();
/**
* optional int64 threshold = 1;
* @return The threshold.
*/
long getThreshold();
/**
* optional int64 last_crossed_usec = 2;
* @return Whether the lastCrossedUsec field is set.
*/
boolean hasLastCrossedUsec();
/**
* optional int64 last_crossed_usec = 2;
* @return The lastCrossedUsec.
*/
long getLastCrossedUsec();
}
/**
* Protobuf type {@code java.apphosting.ThresholdCrossing}
*/
public static final class ThresholdCrossing extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.ThresholdCrossing)
ThresholdCrossingOrBuilder {
private static final long serialVersionUID = 0L;
// Use ThresholdCrossing.newBuilder() to construct.
private ThresholdCrossing(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ThresholdCrossing() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ThresholdCrossing();
}
@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.apphosting.executor.Queue.internal_static_java_apphosting_ThresholdCrossing_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_ThresholdCrossing_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.ThresholdCrossing.class, com.google.apphosting.executor.Queue.ThresholdCrossing.Builder.class);
}
private int bitField0_;
public static final int THRESHOLD_FIELD_NUMBER = 1;
private long threshold_ = 0L;
/**
* optional int64 threshold = 1;
* @return Whether the threshold field is set.
*/
@java.lang.Override
public boolean hasThreshold() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 threshold = 1;
* @return The threshold.
*/
@java.lang.Override
public long getThreshold() {
return threshold_;
}
public static final int LAST_CROSSED_USEC_FIELD_NUMBER = 2;
private long lastCrossedUsec_ = 0L;
/**
* optional int64 last_crossed_usec = 2;
* @return Whether the lastCrossedUsec field is set.
*/
@java.lang.Override
public boolean hasLastCrossedUsec() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 last_crossed_usec = 2;
* @return The lastCrossedUsec.
*/
@java.lang.Override
public long getLastCrossedUsec() {
return lastCrossedUsec_;
}
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.writeInt64(1, threshold_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(2, lastCrossedUsec_);
}
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, threshold_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, lastCrossedUsec_);
}
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.apphosting.executor.Queue.ThresholdCrossing)) {
return super.equals(obj);
}
com.google.apphosting.executor.Queue.ThresholdCrossing other = (com.google.apphosting.executor.Queue.ThresholdCrossing) obj;
if (hasThreshold() != other.hasThreshold()) return false;
if (hasThreshold()) {
if (getThreshold()
!= other.getThreshold()) return false;
}
if (hasLastCrossedUsec() != other.hasLastCrossedUsec()) return false;
if (hasLastCrossedUsec()) {
if (getLastCrossedUsec()
!= other.getLastCrossedUsec()) 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 (hasThreshold()) {
hash = (37 * hash) + THRESHOLD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getThreshold());
}
if (hasLastCrossedUsec()) {
hash = (37 * hash) + LAST_CROSSED_USEC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLastCrossedUsec());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.executor.Queue.ThresholdCrossing parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.ThresholdCrossing parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.ThresholdCrossing parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.ThresholdCrossing 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.apphosting.executor.Queue.ThresholdCrossing parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.ThresholdCrossing parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.ThresholdCrossing parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.ThresholdCrossing 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.apphosting.executor.Queue.ThresholdCrossing parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.ThresholdCrossing 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.apphosting.executor.Queue.ThresholdCrossing parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.ThresholdCrossing 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.apphosting.executor.Queue.ThresholdCrossing 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.ThresholdCrossing}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.ThresholdCrossing)
com.google.apphosting.executor.Queue.ThresholdCrossingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_ThresholdCrossing_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_ThresholdCrossing_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.ThresholdCrossing.class, com.google.apphosting.executor.Queue.ThresholdCrossing.Builder.class);
}
// Construct using com.google.apphosting.executor.Queue.ThresholdCrossing.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
threshold_ = 0L;
lastCrossedUsec_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_ThresholdCrossing_descriptor;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.ThresholdCrossing getDefaultInstanceForType() {
return com.google.apphosting.executor.Queue.ThresholdCrossing.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.executor.Queue.ThresholdCrossing build() {
com.google.apphosting.executor.Queue.ThresholdCrossing result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.ThresholdCrossing buildPartial() {
com.google.apphosting.executor.Queue.ThresholdCrossing result = new com.google.apphosting.executor.Queue.ThresholdCrossing(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.executor.Queue.ThresholdCrossing result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.threshold_ = threshold_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.lastCrossedUsec_ = lastCrossedUsec_;
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.apphosting.executor.Queue.ThresholdCrossing) {
return mergeFrom((com.google.apphosting.executor.Queue.ThresholdCrossing)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.executor.Queue.ThresholdCrossing other) {
if (other == com.google.apphosting.executor.Queue.ThresholdCrossing.getDefaultInstance()) return this;
if (other.hasThreshold()) {
setThreshold(other.getThreshold());
}
if (other.hasLastCrossedUsec()) {
setLastCrossedUsec(other.getLastCrossedUsec());
}
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: {
threshold_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
lastCrossedUsec_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
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 threshold_ ;
/**
* optional int64 threshold = 1;
* @return Whether the threshold field is set.
*/
@java.lang.Override
public boolean hasThreshold() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 threshold = 1;
* @return The threshold.
*/
@java.lang.Override
public long getThreshold() {
return threshold_;
}
/**
* optional int64 threshold = 1;
* @param value The threshold to set.
* @return This builder for chaining.
*/
public Builder setThreshold(long value) {
threshold_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional int64 threshold = 1;
* @return This builder for chaining.
*/
public Builder clearThreshold() {
bitField0_ = (bitField0_ & ~0x00000001);
threshold_ = 0L;
onChanged();
return this;
}
private long lastCrossedUsec_ ;
/**
* optional int64 last_crossed_usec = 2;
* @return Whether the lastCrossedUsec field is set.
*/
@java.lang.Override
public boolean hasLastCrossedUsec() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 last_crossed_usec = 2;
* @return The lastCrossedUsec.
*/
@java.lang.Override
public long getLastCrossedUsec() {
return lastCrossedUsec_;
}
/**
* optional int64 last_crossed_usec = 2;
* @param value The lastCrossedUsec to set.
* @return This builder for chaining.
*/
public Builder setLastCrossedUsec(long value) {
lastCrossedUsec_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional int64 last_crossed_usec = 2;
* @return This builder for chaining.
*/
public Builder clearLastCrossedUsec() {
bitField0_ = (bitField0_ & ~0x00000002);
lastCrossedUsec_ = 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.ThresholdCrossing)
}
// @@protoc_insertion_point(class_scope:java.apphosting.ThresholdCrossing)
private static final com.google.apphosting.executor.Queue.ThresholdCrossing DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.executor.Queue.ThresholdCrossing();
}
public static com.google.apphosting.executor.Queue.ThresholdCrossing getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ThresholdCrossing 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.apphosting.executor.Queue.ThresholdCrossing getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueueAllocationOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.QueueAllocation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
java.util.List
getThresholdsCrossedList();
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
com.google.apphosting.executor.Queue.ThresholdCrossing getThresholdsCrossed(int index);
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
int getThresholdsCrossedCount();
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
java.util.List extends com.google.apphosting.executor.Queue.ThresholdCrossingOrBuilder>
getThresholdsCrossedOrBuilderList();
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
com.google.apphosting.executor.Queue.ThresholdCrossingOrBuilder getThresholdsCrossedOrBuilder(
int index);
}
/**
* Protobuf type {@code java.apphosting.QueueAllocation}
*/
public static final class QueueAllocation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.QueueAllocation)
QueueAllocationOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueueAllocation.newBuilder() to construct.
private QueueAllocation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueueAllocation() {
thresholdsCrossed_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueueAllocation();
}
@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.apphosting.executor.Queue.internal_static_java_apphosting_QueueAllocation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueAllocation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.QueueAllocation.class, com.google.apphosting.executor.Queue.QueueAllocation.Builder.class);
}
public static final int THRESHOLDS_CROSSED_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List thresholdsCrossed_;
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
@java.lang.Override
public java.util.List getThresholdsCrossedList() {
return thresholdsCrossed_;
}
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
@java.lang.Override
public java.util.List extends com.google.apphosting.executor.Queue.ThresholdCrossingOrBuilder>
getThresholdsCrossedOrBuilderList() {
return thresholdsCrossed_;
}
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
@java.lang.Override
public int getThresholdsCrossedCount() {
return thresholdsCrossed_.size();
}
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.ThresholdCrossing getThresholdsCrossed(int index) {
return thresholdsCrossed_.get(index);
}
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.ThresholdCrossingOrBuilder getThresholdsCrossedOrBuilder(
int index) {
return thresholdsCrossed_.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 < thresholdsCrossed_.size(); i++) {
output.writeMessage(1, thresholdsCrossed_.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 < thresholdsCrossed_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, thresholdsCrossed_.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.apphosting.executor.Queue.QueueAllocation)) {
return super.equals(obj);
}
com.google.apphosting.executor.Queue.QueueAllocation other = (com.google.apphosting.executor.Queue.QueueAllocation) obj;
if (!getThresholdsCrossedList()
.equals(other.getThresholdsCrossedList())) 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 (getThresholdsCrossedCount() > 0) {
hash = (37 * hash) + THRESHOLDS_CROSSED_FIELD_NUMBER;
hash = (53 * hash) + getThresholdsCrossedList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.executor.Queue.QueueAllocation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueAllocation parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.QueueAllocation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueAllocation 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.apphosting.executor.Queue.QueueAllocation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueAllocation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.QueueAllocation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueAllocation 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.apphosting.executor.Queue.QueueAllocation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueAllocation 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.apphosting.executor.Queue.QueueAllocation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueAllocation 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.apphosting.executor.Queue.QueueAllocation 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.QueueAllocation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.QueueAllocation)
com.google.apphosting.executor.Queue.QueueAllocationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueAllocation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueAllocation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.QueueAllocation.class, com.google.apphosting.executor.Queue.QueueAllocation.Builder.class);
}
// Construct using com.google.apphosting.executor.Queue.QueueAllocation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (thresholdsCrossedBuilder_ == null) {
thresholdsCrossed_ = java.util.Collections.emptyList();
} else {
thresholdsCrossed_ = null;
thresholdsCrossedBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueAllocation_descriptor;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueAllocation getDefaultInstanceForType() {
return com.google.apphosting.executor.Queue.QueueAllocation.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueAllocation build() {
com.google.apphosting.executor.Queue.QueueAllocation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueAllocation buildPartial() {
com.google.apphosting.executor.Queue.QueueAllocation result = new com.google.apphosting.executor.Queue.QueueAllocation(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.apphosting.executor.Queue.QueueAllocation result) {
if (thresholdsCrossedBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
thresholdsCrossed_ = java.util.Collections.unmodifiableList(thresholdsCrossed_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.thresholdsCrossed_ = thresholdsCrossed_;
} else {
result.thresholdsCrossed_ = thresholdsCrossedBuilder_.build();
}
}
private void buildPartial0(com.google.apphosting.executor.Queue.QueueAllocation 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.apphosting.executor.Queue.QueueAllocation) {
return mergeFrom((com.google.apphosting.executor.Queue.QueueAllocation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.executor.Queue.QueueAllocation other) {
if (other == com.google.apphosting.executor.Queue.QueueAllocation.getDefaultInstance()) return this;
if (thresholdsCrossedBuilder_ == null) {
if (!other.thresholdsCrossed_.isEmpty()) {
if (thresholdsCrossed_.isEmpty()) {
thresholdsCrossed_ = other.thresholdsCrossed_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureThresholdsCrossedIsMutable();
thresholdsCrossed_.addAll(other.thresholdsCrossed_);
}
onChanged();
}
} else {
if (!other.thresholdsCrossed_.isEmpty()) {
if (thresholdsCrossedBuilder_.isEmpty()) {
thresholdsCrossedBuilder_.dispose();
thresholdsCrossedBuilder_ = null;
thresholdsCrossed_ = other.thresholdsCrossed_;
bitField0_ = (bitField0_ & ~0x00000001);
thresholdsCrossedBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getThresholdsCrossedFieldBuilder() : null;
} else {
thresholdsCrossedBuilder_.addAllMessages(other.thresholdsCrossed_);
}
}
}
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.apphosting.executor.Queue.ThresholdCrossing m =
input.readMessage(
com.google.apphosting.executor.Queue.ThresholdCrossing.PARSER,
extensionRegistry);
if (thresholdsCrossedBuilder_ == null) {
ensureThresholdsCrossedIsMutable();
thresholdsCrossed_.add(m);
} else {
thresholdsCrossedBuilder_.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 thresholdsCrossed_ =
java.util.Collections.emptyList();
private void ensureThresholdsCrossedIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
thresholdsCrossed_ = new java.util.ArrayList(thresholdsCrossed_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.executor.Queue.ThresholdCrossing, com.google.apphosting.executor.Queue.ThresholdCrossing.Builder, com.google.apphosting.executor.Queue.ThresholdCrossingOrBuilder> thresholdsCrossedBuilder_;
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
public java.util.List getThresholdsCrossedList() {
if (thresholdsCrossedBuilder_ == null) {
return java.util.Collections.unmodifiableList(thresholdsCrossed_);
} else {
return thresholdsCrossedBuilder_.getMessageList();
}
}
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
public int getThresholdsCrossedCount() {
if (thresholdsCrossedBuilder_ == null) {
return thresholdsCrossed_.size();
} else {
return thresholdsCrossedBuilder_.getCount();
}
}
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
public com.google.apphosting.executor.Queue.ThresholdCrossing getThresholdsCrossed(int index) {
if (thresholdsCrossedBuilder_ == null) {
return thresholdsCrossed_.get(index);
} else {
return thresholdsCrossedBuilder_.getMessage(index);
}
}
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
public Builder setThresholdsCrossed(
int index, com.google.apphosting.executor.Queue.ThresholdCrossing value) {
if (thresholdsCrossedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureThresholdsCrossedIsMutable();
thresholdsCrossed_.set(index, value);
onChanged();
} else {
thresholdsCrossedBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
public Builder setThresholdsCrossed(
int index, com.google.apphosting.executor.Queue.ThresholdCrossing.Builder builderForValue) {
if (thresholdsCrossedBuilder_ == null) {
ensureThresholdsCrossedIsMutable();
thresholdsCrossed_.set(index, builderForValue.build());
onChanged();
} else {
thresholdsCrossedBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
public Builder addThresholdsCrossed(com.google.apphosting.executor.Queue.ThresholdCrossing value) {
if (thresholdsCrossedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureThresholdsCrossedIsMutable();
thresholdsCrossed_.add(value);
onChanged();
} else {
thresholdsCrossedBuilder_.addMessage(value);
}
return this;
}
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
public Builder addThresholdsCrossed(
int index, com.google.apphosting.executor.Queue.ThresholdCrossing value) {
if (thresholdsCrossedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureThresholdsCrossedIsMutable();
thresholdsCrossed_.add(index, value);
onChanged();
} else {
thresholdsCrossedBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
public Builder addThresholdsCrossed(
com.google.apphosting.executor.Queue.ThresholdCrossing.Builder builderForValue) {
if (thresholdsCrossedBuilder_ == null) {
ensureThresholdsCrossedIsMutable();
thresholdsCrossed_.add(builderForValue.build());
onChanged();
} else {
thresholdsCrossedBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
public Builder addThresholdsCrossed(
int index, com.google.apphosting.executor.Queue.ThresholdCrossing.Builder builderForValue) {
if (thresholdsCrossedBuilder_ == null) {
ensureThresholdsCrossedIsMutable();
thresholdsCrossed_.add(index, builderForValue.build());
onChanged();
} else {
thresholdsCrossedBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
public Builder addAllThresholdsCrossed(
java.lang.Iterable extends com.google.apphosting.executor.Queue.ThresholdCrossing> values) {
if (thresholdsCrossedBuilder_ == null) {
ensureThresholdsCrossedIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, thresholdsCrossed_);
onChanged();
} else {
thresholdsCrossedBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
public Builder clearThresholdsCrossed() {
if (thresholdsCrossedBuilder_ == null) {
thresholdsCrossed_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
thresholdsCrossedBuilder_.clear();
}
return this;
}
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
public Builder removeThresholdsCrossed(int index) {
if (thresholdsCrossedBuilder_ == null) {
ensureThresholdsCrossedIsMutable();
thresholdsCrossed_.remove(index);
onChanged();
} else {
thresholdsCrossedBuilder_.remove(index);
}
return this;
}
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
public com.google.apphosting.executor.Queue.ThresholdCrossing.Builder getThresholdsCrossedBuilder(
int index) {
return getThresholdsCrossedFieldBuilder().getBuilder(index);
}
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
public com.google.apphosting.executor.Queue.ThresholdCrossingOrBuilder getThresholdsCrossedOrBuilder(
int index) {
if (thresholdsCrossedBuilder_ == null) {
return thresholdsCrossed_.get(index); } else {
return thresholdsCrossedBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
public java.util.List extends com.google.apphosting.executor.Queue.ThresholdCrossingOrBuilder>
getThresholdsCrossedOrBuilderList() {
if (thresholdsCrossedBuilder_ != null) {
return thresholdsCrossedBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(thresholdsCrossed_);
}
}
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
public com.google.apphosting.executor.Queue.ThresholdCrossing.Builder addThresholdsCrossedBuilder() {
return getThresholdsCrossedFieldBuilder().addBuilder(
com.google.apphosting.executor.Queue.ThresholdCrossing.getDefaultInstance());
}
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
public com.google.apphosting.executor.Queue.ThresholdCrossing.Builder addThresholdsCrossedBuilder(
int index) {
return getThresholdsCrossedFieldBuilder().addBuilder(
index, com.google.apphosting.executor.Queue.ThresholdCrossing.getDefaultInstance());
}
/**
*
* Latest timestamps when capacity bucket thresholds were crossed for a queue.
* It contains the capacity bucket that a queue belongs to from a moment in
* time in response to capacity changes, either when increasing or decreasing.
* Although this does not necessarily need to match their actual allocated
* capacity, given adjustment delays.
*
*
* repeated .java.apphosting.ThresholdCrossing thresholds_crossed = 1;
*/
public java.util.List
getThresholdsCrossedBuilderList() {
return getThresholdsCrossedFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.executor.Queue.ThresholdCrossing, com.google.apphosting.executor.Queue.ThresholdCrossing.Builder, com.google.apphosting.executor.Queue.ThresholdCrossingOrBuilder>
getThresholdsCrossedFieldBuilder() {
if (thresholdsCrossedBuilder_ == null) {
thresholdsCrossedBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.executor.Queue.ThresholdCrossing, com.google.apphosting.executor.Queue.ThresholdCrossing.Builder, com.google.apphosting.executor.Queue.ThresholdCrossingOrBuilder>(
thresholdsCrossed_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
thresholdsCrossed_ = null;
}
return thresholdsCrossedBuilder_;
}
@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.QueueAllocation)
}
// @@protoc_insertion_point(class_scope:java.apphosting.QueueAllocation)
private static final com.google.apphosting.executor.Queue.QueueAllocation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.executor.Queue.QueueAllocation();
}
public static com.google.apphosting.executor.Queue.QueueAllocation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueueAllocation 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.apphosting.executor.Queue.QueueAllocation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TargetOverrideOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.TargetOverride)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* Modifies the target for all the tasks within the queue.
*
*
* Protobuf type {@code java.apphosting.TargetOverride}
*/
public static final class TargetOverride extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.TargetOverride)
TargetOverrideOrBuilder {
private static final long serialVersionUID = 0L;
// Use TargetOverride.newBuilder() to construct.
private TargetOverride(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TargetOverride() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TargetOverride();
}
@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.apphosting.executor.Queue.internal_static_java_apphosting_TargetOverride_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_TargetOverride_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.TargetOverride.class, com.google.apphosting.executor.Queue.TargetOverride.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.apphosting.executor.Queue.TargetOverride)) {
return super.equals(obj);
}
com.google.apphosting.executor.Queue.TargetOverride other = (com.google.apphosting.executor.Queue.TargetOverride) 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.apphosting.executor.Queue.TargetOverride parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.TargetOverride parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.TargetOverride parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.TargetOverride 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.apphosting.executor.Queue.TargetOverride parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.TargetOverride parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.TargetOverride parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.TargetOverride 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.apphosting.executor.Queue.TargetOverride parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.TargetOverride 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.apphosting.executor.Queue.TargetOverride parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.TargetOverride 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.apphosting.executor.Queue.TargetOverride 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;
}
/**
*
* Modifies the target for all the tasks within the queue.
*
*
* Protobuf type {@code java.apphosting.TargetOverride}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.TargetOverride)
com.google.apphosting.executor.Queue.TargetOverrideOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_TargetOverride_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_TargetOverride_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.TargetOverride.class, com.google.apphosting.executor.Queue.TargetOverride.Builder.class);
}
// Construct using com.google.apphosting.executor.Queue.TargetOverride.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.apphosting.executor.Queue.internal_static_java_apphosting_TargetOverride_descriptor;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.TargetOverride getDefaultInstanceForType() {
return com.google.apphosting.executor.Queue.TargetOverride.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.executor.Queue.TargetOverride build() {
com.google.apphosting.executor.Queue.TargetOverride result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.TargetOverride buildPartial() {
com.google.apphosting.executor.Queue.TargetOverride result = new com.google.apphosting.executor.Queue.TargetOverride(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.apphosting.executor.Queue.TargetOverride) {
return mergeFrom((com.google.apphosting.executor.Queue.TargetOverride)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.executor.Queue.TargetOverride other) {
if (other == com.google.apphosting.executor.Queue.TargetOverride.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.TargetOverride)
}
// @@protoc_insertion_point(class_scope:java.apphosting.TargetOverride)
private static final com.google.apphosting.executor.Queue.TargetOverride DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.executor.Queue.TargetOverride();
}
public static com.google.apphosting.executor.Queue.TargetOverride getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TargetOverride 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.apphosting.executor.Queue.TargetOverride getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface HttpTargetOverrideOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.HttpTargetOverride)
com.google.protobuf.MessageOrBuilder {
/**
*
* When specified, replaces the scheme from task Uri.
*
*
* optional .java.apphosting.HttpTargetOverride.Scheme scheme = 1;
* @return Whether the scheme field is set.
*/
boolean hasScheme();
/**
*
* When specified, replaces the scheme from task Uri.
*
*
* optional .java.apphosting.HttpTargetOverride.Scheme scheme = 1;
* @return The scheme.
*/
com.google.apphosting.executor.Queue.HttpTargetOverride.Scheme getScheme();
/**
*
* When specified, replaces the host from task Uri.
*
*
* optional string host = 2;
* @return Whether the host field is set.
*/
boolean hasHost();
/**
*
* When specified, replaces the host from task Uri.
*
*
* optional string host = 2;
* @return The host.
*/
java.lang.String getHost();
/**
*
* When specified, replaces the host from task Uri.
*
*
* optional string host = 2;
* @return The bytes for host.
*/
com.google.protobuf.ByteString
getHostBytes();
/**
*
* When specified, replaces the port from task Uri. If the Uri does not have
* port, it will be added.
*
*
* optional int64 port = 3;
* @return Whether the port field is set.
*/
boolean hasPort();
/**
*
* When specified, replaces the port from task Uri. If the Uri does not have
* port, it will be added.
*
*
* optional int64 port = 3;
* @return The port.
*/
long getPort();
/**
*
* Path string. When specified, will replace the path of task Uri.
*
*
* optional string path = 4;
* @return Whether the path field is set.
*/
boolean hasPath();
/**
*
* Path string. When specified, will replace the path of task Uri.
*
*
* optional string path = 4;
* @return The path.
*/
java.lang.String getPath();
/**
*
* Path string. When specified, will replace the path of task Uri.
*
*
* optional string path = 4;
* @return The bytes for path.
*/
com.google.protobuf.ByteString
getPathBytes();
/**
*
* The query string. When specified, will be appended (suffixed) to the query
* string of the task Uri.
*
*
* optional string query = 5;
* @return Whether the query field is set.
*/
boolean hasQuery();
/**
*
* The query string. When specified, will be appended (suffixed) to the query
* string of the task Uri.
*
*
* optional string query = 5;
* @return The query.
*/
java.lang.String getQuery();
/**
*
* The query string. When specified, will be appended (suffixed) to the query
* string of the task Uri.
*
*
* optional string query = 5;
* @return The bytes for query.
*/
com.google.protobuf.ByteString
getQueryBytes();
/**
*
* When specified, overrides the HttpMethod.
*
*
* optional .java.apphosting.HttpTargetOverride.HttpMethod http_method = 6;
* @return Whether the httpMethod field is set.
*/
boolean hasHttpMethod();
/**
*
* When specified, overrides the HttpMethod.
*
*
* optional .java.apphosting.HttpTargetOverride.HttpMethod http_method = 6;
* @return The httpMethod.
*/
com.google.apphosting.executor.Queue.HttpTargetOverride.HttpMethod getHttpMethod();
/**
*
* Task authorization method for all the tasks in the queue.
*
*
* optional .java.apphosting.TaskAuthorization task_authorization = 7;
* @return Whether the taskAuthorization field is set.
*/
boolean hasTaskAuthorization();
/**
*
* Task authorization method for all the tasks in the queue.
*
*
* optional .java.apphosting.TaskAuthorization task_authorization = 7;
* @return The taskAuthorization.
*/
com.google.apphosting.executor.Target.TaskAuthorization getTaskAuthorization();
/**
*
* Task authorization method for all the tasks in the queue.
*
*
* optional .java.apphosting.TaskAuthorization task_authorization = 7;
*/
com.google.apphosting.executor.Target.TaskAuthorizationOrBuilder getTaskAuthorizationOrBuilder();
}
/**
*
* LINT.IfChange
* Overrides the Http target for all the Http tasks in the queue.
*
*
* Protobuf type {@code java.apphosting.HttpTargetOverride}
*/
public static final class HttpTargetOverride extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.HttpTargetOverride)
HttpTargetOverrideOrBuilder {
private static final long serialVersionUID = 0L;
// Use HttpTargetOverride.newBuilder() to construct.
private HttpTargetOverride(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HttpTargetOverride() {
scheme_ = 0;
host_ = "";
path_ = "";
query_ = "";
httpMethod_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HttpTargetOverride();
}
@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.apphosting.executor.Queue.internal_static_java_apphosting_HttpTargetOverride_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_HttpTargetOverride_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.HttpTargetOverride.class, com.google.apphosting.executor.Queue.HttpTargetOverride.Builder.class);
}
/**
*
* The Scheme which can be one of HTTP or HTTPs.
*
*
* Protobuf enum {@code java.apphosting.HttpTargetOverride.Scheme}
*/
public enum Scheme
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SCHEME_UNSPECIFIED = 0;
*/
SCHEME_UNSPECIFIED(0),
/**
* HTTP = 1;
*/
HTTP(1),
/**
* HTTPS = 2;
*/
HTTPS(2),
;
/**
* SCHEME_UNSPECIFIED = 0;
*/
public static final int SCHEME_UNSPECIFIED_VALUE = 0;
/**
* HTTP = 1;
*/
public static final int HTTP_VALUE = 1;
/**
* HTTPS = 2;
*/
public static final int HTTPS_VALUE = 2;
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 Scheme 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 Scheme forNumber(int value) {
switch (value) {
case 0: return SCHEME_UNSPECIFIED;
case 1: return HTTP;
case 2: return HTTPS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Scheme> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Scheme findValueByNumber(int number) {
return Scheme.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.apphosting.executor.Queue.HttpTargetOverride.getDescriptor().getEnumTypes().get(0);
}
private static final Scheme[] VALUES = values();
public static Scheme 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 Scheme(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:java.apphosting.HttpTargetOverride.Scheme)
}
/**
* Protobuf enum {@code java.apphosting.HttpTargetOverride.HttpMethod}
*/
public enum HttpMethod
implements com.google.protobuf.ProtocolMessageEnum {
/**
* HTTP_METHOD_UNSPECIFIED = 0;
*/
HTTP_METHOD_UNSPECIFIED(0),
/**
* POST = 1;
*/
POST(1),
/**
* GET = 2;
*/
GET(2),
/**
* HEAD = 3;
*/
HEAD(3),
/**
* PUT = 4;
*/
PUT(4),
/**
* DELETE = 5;
*/
DELETE(5),
/**
* PATCH = 6;
*/
PATCH(6),
/**
* OPTIONS = 7;
*/
OPTIONS(7),
;
/**
* HTTP_METHOD_UNSPECIFIED = 0;
*/
public static final int HTTP_METHOD_UNSPECIFIED_VALUE = 0;
/**
* POST = 1;
*/
public static final int POST_VALUE = 1;
/**
* GET = 2;
*/
public static final int GET_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;
/**
* PATCH = 6;
*/
public static final int PATCH_VALUE = 6;
/**
* OPTIONS = 7;
*/
public static final int OPTIONS_VALUE = 7;
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 HttpMethod 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 HttpMethod forNumber(int value) {
switch (value) {
case 0: return HTTP_METHOD_UNSPECIFIED;
case 1: return POST;
case 2: return GET;
case 3: return HEAD;
case 4: return PUT;
case 5: return DELETE;
case 6: return PATCH;
case 7: return OPTIONS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
HttpMethod> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public HttpMethod findValueByNumber(int number) {
return HttpMethod.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.apphosting.executor.Queue.HttpTargetOverride.getDescriptor().getEnumTypes().get(1);
}
private static final HttpMethod[] VALUES = values();
public static HttpMethod 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 HttpMethod(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:java.apphosting.HttpTargetOverride.HttpMethod)
}
private int bitField0_;
public static final int SCHEME_FIELD_NUMBER = 1;
private int scheme_ = 0;
/**
*
* When specified, replaces the scheme from task Uri.
*
*
* optional .java.apphosting.HttpTargetOverride.Scheme scheme = 1;
* @return Whether the scheme field is set.
*/
@java.lang.Override public boolean hasScheme() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* When specified, replaces the scheme from task Uri.
*
*
* optional .java.apphosting.HttpTargetOverride.Scheme scheme = 1;
* @return The scheme.
*/
@java.lang.Override public com.google.apphosting.executor.Queue.HttpTargetOverride.Scheme getScheme() {
com.google.apphosting.executor.Queue.HttpTargetOverride.Scheme result = com.google.apphosting.executor.Queue.HttpTargetOverride.Scheme.forNumber(scheme_);
return result == null ? com.google.apphosting.executor.Queue.HttpTargetOverride.Scheme.SCHEME_UNSPECIFIED : result;
}
public static final int HOST_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object host_ = "";
/**
*
* When specified, replaces the host from task Uri.
*
*
* optional string host = 2;
* @return Whether the host field is set.
*/
@java.lang.Override
public boolean hasHost() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* When specified, replaces the host from task Uri.
*
*
* optional string host = 2;
* @return The host.
*/
@java.lang.Override
public java.lang.String getHost() {
java.lang.Object ref = host_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
host_ = s;
}
return s;
}
}
/**
*
* When specified, replaces the host from task Uri.
*
*
* optional string host = 2;
* @return The bytes for host.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PORT_FIELD_NUMBER = 3;
private long port_ = 0L;
/**
*
* When specified, replaces the port from task Uri. If the Uri does not have
* port, it will be added.
*
*
* optional int64 port = 3;
* @return Whether the port field is set.
*/
@java.lang.Override
public boolean hasPort() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* When specified, replaces the port from task Uri. If the Uri does not have
* port, it will be added.
*
*
* optional int64 port = 3;
* @return The port.
*/
@java.lang.Override
public long getPort() {
return port_;
}
public static final int PATH_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object path_ = "";
/**
*
* Path string. When specified, will replace the path of task Uri.
*
*
* optional string path = 4;
* @return Whether the path field is set.
*/
@java.lang.Override
public boolean hasPath() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Path string. When specified, will replace the path of task Uri.
*
*
* optional string path = 4;
* @return The path.
*/
@java.lang.Override
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
path_ = s;
}
return s;
}
}
/**
*
* Path string. When specified, will replace the path of task Uri.
*
*
* optional string path = 4;
* @return The bytes for path.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int QUERY_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object query_ = "";
/**
*
* The query string. When specified, will be appended (suffixed) to the query
* string of the task Uri.
*
*
* optional string query = 5;
* @return Whether the query field is set.
*/
@java.lang.Override
public boolean hasQuery() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* The query string. When specified, will be appended (suffixed) to the query
* string of the task Uri.
*
*
* optional string query = 5;
* @return The query.
*/
@java.lang.Override
public java.lang.String getQuery() {
java.lang.Object ref = query_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
query_ = s;
}
return s;
}
}
/**
*
* The query string. When specified, will be appended (suffixed) to the query
* string of the task Uri.
*
*
* optional string query = 5;
* @return The bytes for query.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getQueryBytes() {
java.lang.Object ref = query_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
query_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HTTP_METHOD_FIELD_NUMBER = 6;
private int httpMethod_ = 0;
/**
*
* When specified, overrides the HttpMethod.
*
*
* optional .java.apphosting.HttpTargetOverride.HttpMethod http_method = 6;
* @return Whether the httpMethod field is set.
*/
@java.lang.Override public boolean hasHttpMethod() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* When specified, overrides the HttpMethod.
*
*
* optional .java.apphosting.HttpTargetOverride.HttpMethod http_method = 6;
* @return The httpMethod.
*/
@java.lang.Override public com.google.apphosting.executor.Queue.HttpTargetOverride.HttpMethod getHttpMethod() {
com.google.apphosting.executor.Queue.HttpTargetOverride.HttpMethod result = com.google.apphosting.executor.Queue.HttpTargetOverride.HttpMethod.forNumber(httpMethod_);
return result == null ? com.google.apphosting.executor.Queue.HttpTargetOverride.HttpMethod.HTTP_METHOD_UNSPECIFIED : result;
}
public static final int TASK_AUTHORIZATION_FIELD_NUMBER = 7;
private com.google.apphosting.executor.Target.TaskAuthorization taskAuthorization_;
/**
*
* Task authorization method for all the tasks in the queue.
*
*
* optional .java.apphosting.TaskAuthorization task_authorization = 7;
* @return Whether the taskAuthorization field is set.
*/
@java.lang.Override
public boolean hasTaskAuthorization() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Task authorization method for all the tasks in the queue.
*
*
* optional .java.apphosting.TaskAuthorization task_authorization = 7;
* @return The taskAuthorization.
*/
@java.lang.Override
public com.google.apphosting.executor.Target.TaskAuthorization getTaskAuthorization() {
return taskAuthorization_ == null ? com.google.apphosting.executor.Target.TaskAuthorization.getDefaultInstance() : taskAuthorization_;
}
/**
*
* Task authorization method for all the tasks in the queue.
*
*
* optional .java.apphosting.TaskAuthorization task_authorization = 7;
*/
@java.lang.Override
public com.google.apphosting.executor.Target.TaskAuthorizationOrBuilder getTaskAuthorizationOrBuilder() {
return taskAuthorization_ == null ? com.google.apphosting.executor.Target.TaskAuthorization.getDefaultInstance() : taskAuthorization_;
}
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.writeEnum(1, scheme_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, host_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(3, port_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, path_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, query_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeEnum(6, httpMethod_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(7, getTaskAuthorization());
}
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(1, scheme_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, host_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, port_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, path_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, query_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, httpMethod_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getTaskAuthorization());
}
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.apphosting.executor.Queue.HttpTargetOverride)) {
return super.equals(obj);
}
com.google.apphosting.executor.Queue.HttpTargetOverride other = (com.google.apphosting.executor.Queue.HttpTargetOverride) obj;
if (hasScheme() != other.hasScheme()) return false;
if (hasScheme()) {
if (scheme_ != other.scheme_) return false;
}
if (hasHost() != other.hasHost()) return false;
if (hasHost()) {
if (!getHost()
.equals(other.getHost())) return false;
}
if (hasPort() != other.hasPort()) return false;
if (hasPort()) {
if (getPort()
!= other.getPort()) return false;
}
if (hasPath() != other.hasPath()) return false;
if (hasPath()) {
if (!getPath()
.equals(other.getPath())) return false;
}
if (hasQuery() != other.hasQuery()) return false;
if (hasQuery()) {
if (!getQuery()
.equals(other.getQuery())) return false;
}
if (hasHttpMethod() != other.hasHttpMethod()) return false;
if (hasHttpMethod()) {
if (httpMethod_ != other.httpMethod_) return false;
}
if (hasTaskAuthorization() != other.hasTaskAuthorization()) return false;
if (hasTaskAuthorization()) {
if (!getTaskAuthorization()
.equals(other.getTaskAuthorization())) 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 (hasScheme()) {
hash = (37 * hash) + SCHEME_FIELD_NUMBER;
hash = (53 * hash) + scheme_;
}
if (hasHost()) {
hash = (37 * hash) + HOST_FIELD_NUMBER;
hash = (53 * hash) + getHost().hashCode();
}
if (hasPort()) {
hash = (37 * hash) + PORT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPort());
}
if (hasPath()) {
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
}
if (hasQuery()) {
hash = (37 * hash) + QUERY_FIELD_NUMBER;
hash = (53 * hash) + getQuery().hashCode();
}
if (hasHttpMethod()) {
hash = (37 * hash) + HTTP_METHOD_FIELD_NUMBER;
hash = (53 * hash) + httpMethod_;
}
if (hasTaskAuthorization()) {
hash = (37 * hash) + TASK_AUTHORIZATION_FIELD_NUMBER;
hash = (53 * hash) + getTaskAuthorization().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.executor.Queue.HttpTargetOverride parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.HttpTargetOverride parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.HttpTargetOverride parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.HttpTargetOverride 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.apphosting.executor.Queue.HttpTargetOverride parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.HttpTargetOverride parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.HttpTargetOverride parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.HttpTargetOverride 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.apphosting.executor.Queue.HttpTargetOverride parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.HttpTargetOverride 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.apphosting.executor.Queue.HttpTargetOverride parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.HttpTargetOverride 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.apphosting.executor.Queue.HttpTargetOverride 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;
}
/**
*
* LINT.IfChange
* Overrides the Http target for all the Http tasks in the queue.
*
*
* Protobuf type {@code java.apphosting.HttpTargetOverride}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.HttpTargetOverride)
com.google.apphosting.executor.Queue.HttpTargetOverrideOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_HttpTargetOverride_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_HttpTargetOverride_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.HttpTargetOverride.class, com.google.apphosting.executor.Queue.HttpTargetOverride.Builder.class);
}
// Construct using com.google.apphosting.executor.Queue.HttpTargetOverride.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTaskAuthorizationFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
scheme_ = 0;
host_ = "";
port_ = 0L;
path_ = "";
query_ = "";
httpMethod_ = 0;
taskAuthorization_ = null;
if (taskAuthorizationBuilder_ != null) {
taskAuthorizationBuilder_.dispose();
taskAuthorizationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_HttpTargetOverride_descriptor;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.HttpTargetOverride getDefaultInstanceForType() {
return com.google.apphosting.executor.Queue.HttpTargetOverride.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.executor.Queue.HttpTargetOverride build() {
com.google.apphosting.executor.Queue.HttpTargetOverride result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.HttpTargetOverride buildPartial() {
com.google.apphosting.executor.Queue.HttpTargetOverride result = new com.google.apphosting.executor.Queue.HttpTargetOverride(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.executor.Queue.HttpTargetOverride result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.scheme_ = scheme_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.host_ = host_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.port_ = port_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.path_ = path_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.query_ = query_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.httpMethod_ = httpMethod_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.taskAuthorization_ = taskAuthorizationBuilder_ == null
? taskAuthorization_
: taskAuthorizationBuilder_.build();
to_bitField0_ |= 0x00000040;
}
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.apphosting.executor.Queue.HttpTargetOverride) {
return mergeFrom((com.google.apphosting.executor.Queue.HttpTargetOverride)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.executor.Queue.HttpTargetOverride other) {
if (other == com.google.apphosting.executor.Queue.HttpTargetOverride.getDefaultInstance()) return this;
if (other.hasScheme()) {
setScheme(other.getScheme());
}
if (other.hasHost()) {
host_ = other.host_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasPort()) {
setPort(other.getPort());
}
if (other.hasPath()) {
path_ = other.path_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasQuery()) {
query_ = other.query_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasHttpMethod()) {
setHttpMethod(other.getHttpMethod());
}
if (other.hasTaskAuthorization()) {
mergeTaskAuthorization(other.getTaskAuthorization());
}
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: {
int tmpRaw = input.readEnum();
com.google.apphosting.executor.Queue.HttpTargetOverride.Scheme tmpValue =
com.google.apphosting.executor.Queue.HttpTargetOverride.Scheme.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(1, tmpRaw);
} else {
scheme_ = tmpRaw;
bitField0_ |= 0x00000001;
}
break;
} // case 8
case 18: {
host_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
port_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
path_ = input.readBytes();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
query_ = input.readBytes();
bitField0_ |= 0x00000010;
break;
} // case 42
case 48: {
int tmpRaw = input.readEnum();
com.google.apphosting.executor.Queue.HttpTargetOverride.HttpMethod tmpValue =
com.google.apphosting.executor.Queue.HttpTargetOverride.HttpMethod.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(6, tmpRaw);
} else {
httpMethod_ = tmpRaw;
bitField0_ |= 0x00000020;
}
break;
} // case 48
case 58: {
input.readMessage(
getTaskAuthorizationFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
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 scheme_ = 0;
/**
*
* When specified, replaces the scheme from task Uri.
*
*
* optional .java.apphosting.HttpTargetOverride.Scheme scheme = 1;
* @return Whether the scheme field is set.
*/
@java.lang.Override public boolean hasScheme() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* When specified, replaces the scheme from task Uri.
*
*
* optional .java.apphosting.HttpTargetOverride.Scheme scheme = 1;
* @return The scheme.
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.HttpTargetOverride.Scheme getScheme() {
com.google.apphosting.executor.Queue.HttpTargetOverride.Scheme result = com.google.apphosting.executor.Queue.HttpTargetOverride.Scheme.forNumber(scheme_);
return result == null ? com.google.apphosting.executor.Queue.HttpTargetOverride.Scheme.SCHEME_UNSPECIFIED : result;
}
/**
*
* When specified, replaces the scheme from task Uri.
*
*
* optional .java.apphosting.HttpTargetOverride.Scheme scheme = 1;
* @param value The scheme to set.
* @return This builder for chaining.
*/
public Builder setScheme(com.google.apphosting.executor.Queue.HttpTargetOverride.Scheme value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
scheme_ = value.getNumber();
onChanged();
return this;
}
/**
*
* When specified, replaces the scheme from task Uri.
*
*
* optional .java.apphosting.HttpTargetOverride.Scheme scheme = 1;
* @return This builder for chaining.
*/
public Builder clearScheme() {
bitField0_ = (bitField0_ & ~0x00000001);
scheme_ = 0;
onChanged();
return this;
}
private java.lang.Object host_ = "";
/**
*
* When specified, replaces the host from task Uri.
*
*
* optional string host = 2;
* @return Whether the host field is set.
*/
public boolean hasHost() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* When specified, replaces the host from task Uri.
*
*
* optional string host = 2;
* @return The host.
*/
public java.lang.String getHost() {
java.lang.Object ref = host_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
host_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* When specified, replaces the host from task Uri.
*
*
* optional string host = 2;
* @return The bytes for host.
*/
public com.google.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* When specified, replaces the host from task Uri.
*
*
* optional string host = 2;
* @param value The host to set.
* @return This builder for chaining.
*/
public Builder setHost(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
host_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* When specified, replaces the host from task Uri.
*
*
* optional string host = 2;
* @return This builder for chaining.
*/
public Builder clearHost() {
host_ = getDefaultInstance().getHost();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* When specified, replaces the host from task Uri.
*
*
* optional string host = 2;
* @param value The bytes for host to set.
* @return This builder for chaining.
*/
public Builder setHostBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
host_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private long port_ ;
/**
*
* When specified, replaces the port from task Uri. If the Uri does not have
* port, it will be added.
*
*
* optional int64 port = 3;
* @return Whether the port field is set.
*/
@java.lang.Override
public boolean hasPort() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* When specified, replaces the port from task Uri. If the Uri does not have
* port, it will be added.
*
*
* optional int64 port = 3;
* @return The port.
*/
@java.lang.Override
public long getPort() {
return port_;
}
/**
*
* When specified, replaces the port from task Uri. If the Uri does not have
* port, it will be added.
*
*
* optional int64 port = 3;
* @param value The port to set.
* @return This builder for chaining.
*/
public Builder setPort(long value) {
port_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* When specified, replaces the port from task Uri. If the Uri does not have
* port, it will be added.
*
*
* optional int64 port = 3;
* @return This builder for chaining.
*/
public Builder clearPort() {
bitField0_ = (bitField0_ & ~0x00000004);
port_ = 0L;
onChanged();
return this;
}
private java.lang.Object path_ = "";
/**
*
* Path string. When specified, will replace the path of task Uri.
*
*
* optional string path = 4;
* @return Whether the path field is set.
*/
public boolean hasPath() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Path string. When specified, will replace the path of task Uri.
*
*
* optional string path = 4;
* @return The path.
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
path_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Path string. When specified, will replace the path of task Uri.
*
*
* optional string path = 4;
* @return The bytes for path.
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Path string. When specified, will replace the path of task Uri.
*
*
* optional string path = 4;
* @param value The path to set.
* @return This builder for chaining.
*/
public Builder setPath(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
path_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Path string. When specified, will replace the path of task Uri.
*
*
* optional string path = 4;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* Path string. When specified, will replace the path of task Uri.
*
*
* optional string path = 4;
* @param value The bytes for path to set.
* @return This builder for chaining.
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
path_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object query_ = "";
/**
*
* The query string. When specified, will be appended (suffixed) to the query
* string of the task Uri.
*
*
* optional string query = 5;
* @return Whether the query field is set.
*/
public boolean hasQuery() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* The query string. When specified, will be appended (suffixed) to the query
* string of the task Uri.
*
*
* optional string query = 5;
* @return The query.
*/
public java.lang.String getQuery() {
java.lang.Object ref = query_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
query_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The query string. When specified, will be appended (suffixed) to the query
* string of the task Uri.
*
*
* optional string query = 5;
* @return The bytes for query.
*/
public com.google.protobuf.ByteString
getQueryBytes() {
java.lang.Object ref = query_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
query_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The query string. When specified, will be appended (suffixed) to the query
* string of the task Uri.
*
*
* optional string query = 5;
* @param value The query to set.
* @return This builder for chaining.
*/
public Builder setQuery(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
query_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* The query string. When specified, will be appended (suffixed) to the query
* string of the task Uri.
*
*
* optional string query = 5;
* @return This builder for chaining.
*/
public Builder clearQuery() {
query_ = getDefaultInstance().getQuery();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* The query string. When specified, will be appended (suffixed) to the query
* string of the task Uri.
*
*
* optional string query = 5;
* @param value The bytes for query to set.
* @return This builder for chaining.
*/
public Builder setQueryBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
query_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private int httpMethod_ = 0;
/**
*
* When specified, overrides the HttpMethod.
*
*
* optional .java.apphosting.HttpTargetOverride.HttpMethod http_method = 6;
* @return Whether the httpMethod field is set.
*/
@java.lang.Override public boolean hasHttpMethod() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* When specified, overrides the HttpMethod.
*
*
* optional .java.apphosting.HttpTargetOverride.HttpMethod http_method = 6;
* @return The httpMethod.
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.HttpTargetOverride.HttpMethod getHttpMethod() {
com.google.apphosting.executor.Queue.HttpTargetOverride.HttpMethod result = com.google.apphosting.executor.Queue.HttpTargetOverride.HttpMethod.forNumber(httpMethod_);
return result == null ? com.google.apphosting.executor.Queue.HttpTargetOverride.HttpMethod.HTTP_METHOD_UNSPECIFIED : result;
}
/**
*
* When specified, overrides the HttpMethod.
*
*
* optional .java.apphosting.HttpTargetOverride.HttpMethod http_method = 6;
* @param value The httpMethod to set.
* @return This builder for chaining.
*/
public Builder setHttpMethod(com.google.apphosting.executor.Queue.HttpTargetOverride.HttpMethod value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
httpMethod_ = value.getNumber();
onChanged();
return this;
}
/**
*
* When specified, overrides the HttpMethod.
*
*
* optional .java.apphosting.HttpTargetOverride.HttpMethod http_method = 6;
* @return This builder for chaining.
*/
public Builder clearHttpMethod() {
bitField0_ = (bitField0_ & ~0x00000020);
httpMethod_ = 0;
onChanged();
return this;
}
private com.google.apphosting.executor.Target.TaskAuthorization taskAuthorization_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Target.TaskAuthorization, com.google.apphosting.executor.Target.TaskAuthorization.Builder, com.google.apphosting.executor.Target.TaskAuthorizationOrBuilder> taskAuthorizationBuilder_;
/**
*
* Task authorization method for all the tasks in the queue.
*
*
* optional .java.apphosting.TaskAuthorization task_authorization = 7;
* @return Whether the taskAuthorization field is set.
*/
public boolean hasTaskAuthorization() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Task authorization method for all the tasks in the queue.
*
*
* optional .java.apphosting.TaskAuthorization task_authorization = 7;
* @return The taskAuthorization.
*/
public com.google.apphosting.executor.Target.TaskAuthorization getTaskAuthorization() {
if (taskAuthorizationBuilder_ == null) {
return taskAuthorization_ == null ? com.google.apphosting.executor.Target.TaskAuthorization.getDefaultInstance() : taskAuthorization_;
} else {
return taskAuthorizationBuilder_.getMessage();
}
}
/**
*
* Task authorization method for all the tasks in the queue.
*
*
* optional .java.apphosting.TaskAuthorization task_authorization = 7;
*/
public Builder setTaskAuthorization(com.google.apphosting.executor.Target.TaskAuthorization value) {
if (taskAuthorizationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
taskAuthorization_ = value;
} else {
taskAuthorizationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Task authorization method for all the tasks in the queue.
*
*
* optional .java.apphosting.TaskAuthorization task_authorization = 7;
*/
public Builder setTaskAuthorization(
com.google.apphosting.executor.Target.TaskAuthorization.Builder builderForValue) {
if (taskAuthorizationBuilder_ == null) {
taskAuthorization_ = builderForValue.build();
} else {
taskAuthorizationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Task authorization method for all the tasks in the queue.
*
*
* optional .java.apphosting.TaskAuthorization task_authorization = 7;
*/
public Builder mergeTaskAuthorization(com.google.apphosting.executor.Target.TaskAuthorization value) {
if (taskAuthorizationBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
taskAuthorization_ != null &&
taskAuthorization_ != com.google.apphosting.executor.Target.TaskAuthorization.getDefaultInstance()) {
getTaskAuthorizationBuilder().mergeFrom(value);
} else {
taskAuthorization_ = value;
}
} else {
taskAuthorizationBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Task authorization method for all the tasks in the queue.
*
*
* optional .java.apphosting.TaskAuthorization task_authorization = 7;
*/
public Builder clearTaskAuthorization() {
bitField0_ = (bitField0_ & ~0x00000040);
taskAuthorization_ = null;
if (taskAuthorizationBuilder_ != null) {
taskAuthorizationBuilder_.dispose();
taskAuthorizationBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Task authorization method for all the tasks in the queue.
*
*
* optional .java.apphosting.TaskAuthorization task_authorization = 7;
*/
public com.google.apphosting.executor.Target.TaskAuthorization.Builder getTaskAuthorizationBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getTaskAuthorizationFieldBuilder().getBuilder();
}
/**
*
* Task authorization method for all the tasks in the queue.
*
*
* optional .java.apphosting.TaskAuthorization task_authorization = 7;
*/
public com.google.apphosting.executor.Target.TaskAuthorizationOrBuilder getTaskAuthorizationOrBuilder() {
if (taskAuthorizationBuilder_ != null) {
return taskAuthorizationBuilder_.getMessageOrBuilder();
} else {
return taskAuthorization_ == null ?
com.google.apphosting.executor.Target.TaskAuthorization.getDefaultInstance() : taskAuthorization_;
}
}
/**
*
* Task authorization method for all the tasks in the queue.
*
*
* optional .java.apphosting.TaskAuthorization task_authorization = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Target.TaskAuthorization, com.google.apphosting.executor.Target.TaskAuthorization.Builder, com.google.apphosting.executor.Target.TaskAuthorizationOrBuilder>
getTaskAuthorizationFieldBuilder() {
if (taskAuthorizationBuilder_ == null) {
taskAuthorizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Target.TaskAuthorization, com.google.apphosting.executor.Target.TaskAuthorization.Builder, com.google.apphosting.executor.Target.TaskAuthorizationOrBuilder>(
getTaskAuthorization(),
getParentForChildren(),
isClean());
taskAuthorization_ = null;
}
return taskAuthorizationBuilder_;
}
@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.HttpTargetOverride)
}
// @@protoc_insertion_point(class_scope:java.apphosting.HttpTargetOverride)
private static final com.google.apphosting.executor.Queue.HttpTargetOverride DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.executor.Queue.HttpTargetOverride();
}
public static com.google.apphosting.executor.Queue.HttpTargetOverride getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HttpTargetOverride 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.apphosting.executor.Queue.HttpTargetOverride getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueueDefinitionOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.QueueDefinition)
com.google.protobuf.MessageOrBuilder {
/**
* required .java.apphosting.QueueRef queue_ref = 1;
* @return Whether the queueRef field is set.
*/
boolean hasQueueRef();
/**
* required .java.apphosting.QueueRef queue_ref = 1;
* @return The queueRef.
*/
com.google.apphosting.executor.Queue.QueueRef getQueueRef();
/**
* required .java.apphosting.QueueRef queue_ref = 1;
*/
com.google.apphosting.executor.Queue.QueueRefOrBuilder getQueueRefOrBuilder();
/**
* required .java.apphosting.QueueThrottlingParameters throttling_parameters = 2;
* @return Whether the throttlingParameters field is set.
*/
boolean hasThrottlingParameters();
/**
* required .java.apphosting.QueueThrottlingParameters throttling_parameters = 2;
* @return The throttlingParameters.
*/
com.google.apphosting.executor.Queue.QueueThrottlingParameters getThrottlingParameters();
/**
* required .java.apphosting.QueueThrottlingParameters throttling_parameters = 2;
*/
com.google.apphosting.executor.Queue.QueueThrottlingParametersOrBuilder getThrottlingParametersOrBuilder();
/**
*
* 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". Note that this is
* specific to the App Engine Task Queue API but it saves us a lot of effort
* to store it here as opposed to somewhere else.
*
*
* optional string user_specified_rate = 3;
* @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". Note that this is
* specific to the App Engine Task Queue API but it saves us a lot of effort
* to store it here as opposed to somewhere else.
*
*
* optional string user_specified_rate = 3;
* @return The userSpecifiedRate.
*/
java.lang.String getUserSpecifiedRate();
/**
*
* 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". Note that this is
* specific to the App Engine Task Queue API but it saves us a lot of effort
* to store it here as opposed to somewhere else.
*
*
* optional string user_specified_rate = 3;
* @return The bytes for userSpecifiedRate.
*/
com.google.protobuf.ByteString
getUserSpecifiedRateBytes();
/**
*
* Timestamp at which this queue was last purged of tasks. While these purged
* tasks (the tasked enqueued before the purge time) are waiting to be
* tombstoned and eventually removed from our tables by a mapreduce, they
* should not be executed or returned by queries.
*
*
* optional int64 last_purge_usec = 4 [default = 0];
* @return Whether the lastPurgeUsec field is set.
*/
boolean hasLastPurgeUsec();
/**
*
* Timestamp at which this queue was last purged of tasks. While these purged
* tasks (the tasked enqueued before the purge time) are waiting to be
* tombstoned and eventually removed from our tables by a mapreduce, they
* should not be executed or returned by queries.
*
*
* optional int64 last_purge_usec = 4 [default = 0];
* @return The lastPurgeUsec.
*/
long getLastPurgeUsec();
/**
*
* A marker (separate from throttling parameters) that this queue is paused.
* When is_paused is true, Executor will not execute tasks.
*
*
* optional bool paused = 5 [default = false];
* @return Whether the paused field is set.
*/
boolean hasPaused();
/**
*
* A marker (separate from throttling parameters) that this queue is paused.
* When is_paused is true, Executor will not execute tasks.
*
*
* optional bool paused = 5 [default = false];
* @return The paused.
*/
boolean getPaused();
/**
*
* Queue-wide RetryParameters.
*
*
* optional .java.apphosting.RetryParameters retry_parameters = 6;
* @return Whether the retryParameters field is set.
*/
boolean hasRetryParameters();
/**
*
* Queue-wide RetryParameters.
*
*
* optional .java.apphosting.RetryParameters retry_parameters = 6;
* @return The retryParameters.
*/
com.google.apphosting.executor.Retry.RetryParameters getRetryParameters();
/**
*
* Queue-wide RetryParameters.
*
*
* optional .java.apphosting.RetryParameters retry_parameters = 6;
*/
com.google.apphosting.executor.Retry.RetryParametersOrBuilder getRetryParametersOrBuilder();
/**
*
* A queue can be a push queue (e.g. appengine's normal taskqueues) in which
* tasks are sent to workers at the queue's predefined rate, or it can be a
* pull queue, in which case workers will poll the queue for tasks that they
* are ready to execute.
*
*
* optional .java.apphosting.QueueDefinition.QueueMode mode = 7 [default = PUSH];
* @return Whether the mode field is set.
*/
boolean hasMode();
/**
*
* A queue can be a push queue (e.g. appengine's normal taskqueues) in which
* tasks are sent to workers at the queue's predefined rate, or it can be a
* pull queue, in which case workers will poll the queue for tasks that they
* are ready to execute.
*
*
* optional .java.apphosting.QueueDefinition.QueueMode mode = 7 [default = PUSH];
* @return The mode.
*/
com.google.apphosting.executor.Queue.QueueDefinition.QueueMode getMode();
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
java.util.List
getHeaderOverrideList();
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
com.google.apphosting.executor.Queue.HttpTaskRunnerHeader getHeaderOverride(int index);
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
int getHeaderOverrideCount();
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
java.util.List extends com.google.apphosting.executor.Queue.HttpTaskRunnerHeaderOrBuilder>
getHeaderOverrideOrBuilderList();
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
com.google.apphosting.executor.Queue.HttpTaskRunnerHeaderOrBuilder getHeaderOverrideOrBuilder(
int index);
/**
*
* Access Control. Executor stores but does not currently enforce the ACL.
* Should contain a serialized Acl.ACLProto whose definition we don't wish to
* leak into public code.
*
*
* optional bytes acl = 10 [ctype = CORD];
* @return Whether the acl field is set.
*/
boolean hasAcl();
/**
*
* Access Control. Executor stores but does not currently enforce the ACL.
* Should contain a serialized Acl.ACLProto whose definition we don't wish to
* leak into public code.
*
*
* optional bytes acl = 10 [ctype = CORD];
* @return The acl.
*/
com.google.protobuf.ByteString getAcl();
/**
*
* The creator of this queue. Defaults to "apphosting" for queues created via
* App Engine's Task Queue Api.
*
*
* optional string creator_name = 11 [default = "apphosting", ctype = CORD];
* @return Whether the creatorName field is set.
*/
boolean hasCreatorName();
/**
*
* The creator of this queue. Defaults to "apphosting" for queues created via
* App Engine's Task Queue Api.
*
*
* optional string creator_name = 11 [default = "apphosting", ctype = CORD];
* @return The creatorName.
*/
java.lang.String getCreatorName();
/**
*
* The creator of this queue. Defaults to "apphosting" for queues created via
* App Engine's Task Queue Api.
*
*
* optional string creator_name = 11 [default = "apphosting", ctype = CORD];
* @return The bytes for creatorName.
*/
com.google.protobuf.ByteString
getCreatorNameBytes();
/**
*
* Sets the sharding factors for a queue's index tables. The invariant
* that num_read_shards >= num_write_shards must be respected.
*
*
* optional uint32 num_read_shards = 12 [default = 1];
* @return Whether the numReadShards field is set.
*/
boolean hasNumReadShards();
/**
*
* Sets the sharding factors for a queue's index tables. The invariant
* that num_read_shards >= num_write_shards must be respected.
*
*
* optional uint32 num_read_shards = 12 [default = 1];
* @return The numReadShards.
*/
int getNumReadShards();
/**
* optional uint32 num_write_shards = 13 [default = 1];
* @return Whether the numWriteShards field is set.
*/
boolean hasNumWriteShards();
/**
* optional uint32 num_write_shards = 13 [default = 1];
* @return The numWriteShards.
*/
int getNumWriteShards();
/**
*
* Periodically updated to indicate if a queue is still active.
*
*
* optional int64 last_heartbeat_usec = 14;
* @return Whether the lastHeartbeatUsec field is set.
*/
boolean hasLastHeartbeatUsec();
/**
*
* Periodically updated to indicate if a queue is still active.
*
*
* optional int64 last_heartbeat_usec = 14;
* @return The lastHeartbeatUsec.
*/
long getLastHeartbeatUsec();
/**
*
* Periodically updated with a count of the alive tasks on the queue. The
* value is not updated on the queue but filled in by the Store similar to the
* implementation of last_heartbeat_used.
*
*
* optional int64 queue_task_count_checkpoint = 15 [default = 0];
* @return Whether the queueTaskCountCheckpoint field is set.
*/
boolean hasQueueTaskCountCheckpoint();
/**
*
* Periodically updated with a count of the alive tasks on the queue. The
* value is not updated on the queue but filled in by the Store similar to the
* implementation of last_heartbeat_used.
*
*
* optional int64 queue_task_count_checkpoint = 15 [default = 0];
* @return The queueTaskCountCheckpoint.
*/
long getQueueTaskCountCheckpoint();
/**
*
* Can only be specified for PUSH queues. And if specified, the queue will
* only accept pubsub tasks.
*
*
* optional .java.apphosting.PubsubQueueDefinition pubsub_queue_def = 16;
* @return Whether the pubsubQueueDef field is set.
*/
boolean hasPubsubQueueDef();
/**
*
* Can only be specified for PUSH queues. And if specified, the queue will
* only accept pubsub tasks.
*
*
* optional .java.apphosting.PubsubQueueDefinition pubsub_queue_def = 16;
* @return The pubsubQueueDef.
*/
com.google.apphosting.executor.Queue.PubsubQueueDefinition getPubsubQueueDef();
/**
*
* Can only be specified for PUSH queues. And if specified, the queue will
* only accept pubsub tasks.
*
*
* optional .java.apphosting.PubsubQueueDefinition pubsub_queue_def = 16;
*/
com.google.apphosting.executor.Queue.PubsubQueueDefinitionOrBuilder getPubsubQueueDefOrBuilder();
/**
*
* If true, Cloud Logging is enabled for this queue.
* No longer in use. Use log_sampling_fraction.
*
*
* optional bool enable_cloud_logging = 17 [default = false, deprecated = true];
* @deprecated java.apphosting.QueueDefinition.enable_cloud_logging is deprecated.
* See queue.proto;l=273
* @return Whether the enableCloudLogging field is set.
*/
@java.lang.Deprecated boolean hasEnableCloudLogging();
/**
*
* If true, Cloud Logging is enabled for this queue.
* No longer in use. Use log_sampling_fraction.
*
*
* optional bool enable_cloud_logging = 17 [default = false, deprecated = true];
* @deprecated java.apphosting.QueueDefinition.enable_cloud_logging is deprecated.
* See queue.proto;l=273
* @return The enableCloudLogging.
*/
@java.lang.Deprecated boolean getEnableCloudLogging();
/**
*
* The allocated rate capacity for this queue.
*
*
* optional int64 allocated_capacity = 18 [default = 0];
* @return Whether the allocatedCapacity field is set.
*/
boolean hasAllocatedCapacity();
/**
*
* The allocated rate capacity for this queue.
*
*
* optional int64 allocated_capacity = 18 [default = 0];
* @return The allocatedCapacity.
*/
long getAllocatedCapacity();
/**
*
* The amount of time a task is allowed to live until it's garbage collected.
* If this amount of time passes after the task's creation it is deleted,
* regardless of the state the task is in.
*
*
* optional int64 maximum_alive_lifetime_usec = 19;
* @return Whether the maximumAliveLifetimeUsec field is set.
*/
boolean hasMaximumAliveLifetimeUsec();
/**
*
* The amount of time a task is allowed to live until it's garbage collected.
* If this amount of time passes after the task's creation it is deleted,
* regardless of the state the task is in.
*
*
* optional int64 maximum_alive_lifetime_usec = 19;
* @return The maximumAliveLifetimeUsec.
*/
long getMaximumAliveLifetimeUsec();
/**
*
* The amount of time a task is allowed to be in a tombstoned states until
* it's garbage collected.
*
*
* optional int64 maximum_tombstone_lifetime_usec = 20;
* @return Whether the maximumTombstoneLifetimeUsec field is set.
*/
boolean hasMaximumTombstoneLifetimeUsec();
/**
*
* The amount of time a task is allowed to be in a tombstoned states until
* it's garbage collected.
*
*
* optional int64 maximum_tombstone_lifetime_usec = 20;
* @return The maximumTombstoneLifetimeUsec.
*/
long getMaximumTombstoneLifetimeUsec();
/**
*
* Metadata regarding this queue's allocation.
*
*
* optional .java.apphosting.QueueAllocation queue_allocation = 21;
* @return Whether the queueAllocation field is set.
*/
boolean hasQueueAllocation();
/**
*
* Metadata regarding this queue's allocation.
*
*
* optional .java.apphosting.QueueAllocation queue_allocation = 21;
* @return The queueAllocation.
*/
com.google.apphosting.executor.Queue.QueueAllocation getQueueAllocation();
/**
*
* Metadata regarding this queue's allocation.
*
*
* optional .java.apphosting.QueueAllocation queue_allocation = 21;
*/
com.google.apphosting.executor.Queue.QueueAllocationOrBuilder getQueueAllocationOrBuilder();
/**
*
* The fraction of operations to log. This field is now superceeded by
* stackdriver_logging_config.
*
*
* optional double log_sampling_ratio = 22 [deprecated = true];
* @deprecated java.apphosting.QueueDefinition.log_sampling_ratio is deprecated.
* See queue.proto;l=292
* @return Whether the logSamplingRatio field is set.
*/
@java.lang.Deprecated boolean hasLogSamplingRatio();
/**
*
* The fraction of operations to log. This field is now superceeded by
* stackdriver_logging_config.
*
*
* optional double log_sampling_ratio = 22 [deprecated = true];
* @deprecated java.apphosting.QueueDefinition.log_sampling_ratio is deprecated.
* See queue.proto;l=292
* @return The logSamplingRatio.
*/
@java.lang.Deprecated double getLogSamplingRatio();
/**
*
* Cloud logging configuration.
*
*
* optional .java.apphosting.StackdriverLoggingConfiguration stackdriver_logging_config = 23;
* @return Whether the stackdriverLoggingConfig field is set.
*/
boolean hasStackdriverLoggingConfig();
/**
*
* Cloud logging configuration.
*
*
* optional .java.apphosting.StackdriverLoggingConfiguration stackdriver_logging_config = 23;
* @return The stackdriverLoggingConfig.
*/
com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration getStackdriverLoggingConfig();
/**
*
* Cloud logging configuration.
*
*
* optional .java.apphosting.StackdriverLoggingConfiguration stackdriver_logging_config = 23;
*/
com.google.apphosting.executor.Queue.StackdriverLoggingConfigurationOrBuilder getStackdriverLoggingConfigOrBuilder();
/**
* optional .java.apphosting.QueueDefinition.ExecutionMode execution_mode = 24 [deprecated = true];
* @deprecated java.apphosting.QueueDefinition.execution_mode is deprecated.
* See queue.proto;l=305
* @return Whether the executionMode field is set.
*/
@java.lang.Deprecated boolean hasExecutionMode();
/**
* optional .java.apphosting.QueueDefinition.ExecutionMode execution_mode = 24 [deprecated = true];
* @deprecated java.apphosting.QueueDefinition.execution_mode is deprecated.
* See queue.proto;l=305
* @return The executionMode.
*/
@java.lang.Deprecated com.google.apphosting.executor.Queue.QueueDefinition.ExecutionMode getExecutionMode();
/**
*
* Target overrides on this queue. When specified, all the tasks in this queue
* will be executed according to this target.
*
*
* optional .java.apphosting.TargetOverride target_override = 25;
* @return Whether the targetOverride field is set.
*/
boolean hasTargetOverride();
/**
*
* Target overrides on this queue. When specified, all the tasks in this queue
* will be executed according to this target.
*
*
* optional .java.apphosting.TargetOverride target_override = 25;
* @return The targetOverride.
*/
com.google.apphosting.executor.Queue.TargetOverride getTargetOverride();
/**
*
* Target overrides on this queue. When specified, all the tasks in this queue
* will be executed according to this target.
*
*
* optional .java.apphosting.TargetOverride target_override = 25;
*/
com.google.apphosting.executor.Queue.TargetOverrideOrBuilder getTargetOverrideOrBuilder();
}
/**
*
* NEXT TAG: 26
*
*
* Protobuf type {@code java.apphosting.QueueDefinition}
*/
public static final class QueueDefinition extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.QueueDefinition)
QueueDefinitionOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueueDefinition.newBuilder() to construct.
private QueueDefinition(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueueDefinition() {
userSpecifiedRate_ = "";
mode_ = 0;
headerOverride_ = java.util.Collections.emptyList();
acl_ = com.google.protobuf.ByteString.EMPTY;
creatorName_ = "apphosting";
numReadShards_ = 1;
numWriteShards_ = 1;
executionMode_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueueDefinition();
}
@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.apphosting.executor.Queue.internal_static_java_apphosting_QueueDefinition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueDefinition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.QueueDefinition.class, com.google.apphosting.executor.Queue.QueueDefinition.Builder.class);
}
/**
*
* Allocation type determines what kind of scanner a queue is assigned to.
* High-throughput queues are directly assigned to "allocated" scanners, while
* the rest is assigned to a pool of "default" scanners.
* More information at go/queue-isolation.
*
*
* Protobuf enum {@code java.apphosting.QueueDefinition.AllocationType}
*/
public enum AllocationType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* ALLOCATION_TYPE_UNSPECIFIED = 0;
*/
ALLOCATION_TYPE_UNSPECIFIED(0),
/**
* DEFAULT = 1;
*/
DEFAULT(1),
/**
* ALLOCATED = 2;
*/
ALLOCATED(2),
;
/**
* ALLOCATION_TYPE_UNSPECIFIED = 0;
*/
public static final int ALLOCATION_TYPE_UNSPECIFIED_VALUE = 0;
/**
* DEFAULT = 1;
*/
public static final int DEFAULT_VALUE = 1;
/**
* ALLOCATED = 2;
*/
public static final int ALLOCATED_VALUE = 2;
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 AllocationType 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 AllocationType forNumber(int value) {
switch (value) {
case 0: return ALLOCATION_TYPE_UNSPECIFIED;
case 1: return DEFAULT;
case 2: return ALLOCATED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
AllocationType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public AllocationType findValueByNumber(int number) {
return AllocationType.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.apphosting.executor.Queue.QueueDefinition.getDescriptor().getEnumTypes().get(0);
}
private static final AllocationType[] VALUES = values();
public static AllocationType 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 AllocationType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:java.apphosting.QueueDefinition.AllocationType)
}
/**
* Protobuf enum {@code java.apphosting.QueueDefinition.QueueMode}
*/
public enum QueueMode
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 QueueMode 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 QueueMode 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<
QueueMode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public QueueMode findValueByNumber(int number) {
return QueueMode.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.apphosting.executor.Queue.QueueDefinition.getDescriptor().getEnumTypes().get(1);
}
private static final QueueMode[] VALUES = values();
public static QueueMode 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 QueueMode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:java.apphosting.QueueDefinition.QueueMode)
}
/**
*
* Executiuon mode of the queue. Can either be "interactive" or "batch"
* (for queues with large backlog of tasks).
* See go/interactive-cloud-tasks for more details.
*
*
* Protobuf enum {@code java.apphosting.QueueDefinition.ExecutionMode}
*/
public enum ExecutionMode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* EXECUTION_MODE_UNSPECIFIED = 0;
*/
EXECUTION_MODE_UNSPECIFIED(0),
/**
* INTERACTIVE = 1;
*/
INTERACTIVE(1),
/**
* BATCH = 2;
*/
BATCH(2),
;
/**
* EXECUTION_MODE_UNSPECIFIED = 0;
*/
public static final int EXECUTION_MODE_UNSPECIFIED_VALUE = 0;
/**
* INTERACTIVE = 1;
*/
public static final int INTERACTIVE_VALUE = 1;
/**
* BATCH = 2;
*/
public static final int BATCH_VALUE = 2;
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 ExecutionMode 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 ExecutionMode forNumber(int value) {
switch (value) {
case 0: return EXECUTION_MODE_UNSPECIFIED;
case 1: return INTERACTIVE;
case 2: return BATCH;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ExecutionMode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ExecutionMode findValueByNumber(int number) {
return ExecutionMode.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.apphosting.executor.Queue.QueueDefinition.getDescriptor().getEnumTypes().get(2);
}
private static final ExecutionMode[] VALUES = values();
public static ExecutionMode 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 ExecutionMode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:java.apphosting.QueueDefinition.ExecutionMode)
}
private int bitField0_;
public static final int QUEUE_REF_FIELD_NUMBER = 1;
private com.google.apphosting.executor.Queue.QueueRef queueRef_;
/**
* required .java.apphosting.QueueRef queue_ref = 1;
* @return Whether the queueRef field is set.
*/
@java.lang.Override
public boolean hasQueueRef() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required .java.apphosting.QueueRef queue_ref = 1;
* @return The queueRef.
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRef getQueueRef() {
return queueRef_ == null ? com.google.apphosting.executor.Queue.QueueRef.getDefaultInstance() : queueRef_;
}
/**
* required .java.apphosting.QueueRef queue_ref = 1;
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRefOrBuilder getQueueRefOrBuilder() {
return queueRef_ == null ? com.google.apphosting.executor.Queue.QueueRef.getDefaultInstance() : queueRef_;
}
public static final int THROTTLING_PARAMETERS_FIELD_NUMBER = 2;
private com.google.apphosting.executor.Queue.QueueThrottlingParameters throttlingParameters_;
/**
* required .java.apphosting.QueueThrottlingParameters throttling_parameters = 2;
* @return Whether the throttlingParameters field is set.
*/
@java.lang.Override
public boolean hasThrottlingParameters() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required .java.apphosting.QueueThrottlingParameters throttling_parameters = 2;
* @return The throttlingParameters.
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueThrottlingParameters getThrottlingParameters() {
return throttlingParameters_ == null ? com.google.apphosting.executor.Queue.QueueThrottlingParameters.getDefaultInstance() : throttlingParameters_;
}
/**
* required .java.apphosting.QueueThrottlingParameters throttling_parameters = 2;
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueThrottlingParametersOrBuilder getThrottlingParametersOrBuilder() {
return throttlingParameters_ == null ? com.google.apphosting.executor.Queue.QueueThrottlingParameters.getDefaultInstance() : throttlingParameters_;
}
public static final int USER_SPECIFIED_RATE_FIELD_NUMBER = 3;
@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". Note that this is
* specific to the App Engine Task Queue API but it saves us a lot of effort
* to store it here as opposed to somewhere else.
*
*
* optional string user_specified_rate = 3;
* @return Whether the userSpecifiedRate field is set.
*/
@java.lang.Override
public boolean hasUserSpecifiedRate() {
return ((bitField0_ & 0x00000004) != 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". Note that this is
* specific to the App Engine Task Queue API but it saves us a lot of effort
* to store it here as opposed to somewhere else.
*
*
* optional string user_specified_rate = 3;
* @return The userSpecifiedRate.
*/
@java.lang.Override
public java.lang.String getUserSpecifiedRate() {
java.lang.Object ref = userSpecifiedRate_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
userSpecifiedRate_ = s;
}
return 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". Note that this is
* specific to the App Engine Task Queue API but it saves us a lot of effort
* to store it here as opposed to somewhere else.
*
*
* optional string user_specified_rate = 3;
* @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 LAST_PURGE_USEC_FIELD_NUMBER = 4;
private long lastPurgeUsec_ = 0L;
/**
*
* Timestamp at which this queue was last purged of tasks. While these purged
* tasks (the tasked enqueued before the purge time) are waiting to be
* tombstoned and eventually removed from our tables by a mapreduce, they
* should not be executed or returned by queries.
*
*
* optional int64 last_purge_usec = 4 [default = 0];
* @return Whether the lastPurgeUsec field is set.
*/
@java.lang.Override
public boolean hasLastPurgeUsec() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Timestamp at which this queue was last purged of tasks. While these purged
* tasks (the tasked enqueued before the purge time) are waiting to be
* tombstoned and eventually removed from our tables by a mapreduce, they
* should not be executed or returned by queries.
*
*
* optional int64 last_purge_usec = 4 [default = 0];
* @return The lastPurgeUsec.
*/
@java.lang.Override
public long getLastPurgeUsec() {
return lastPurgeUsec_;
}
public static final int PAUSED_FIELD_NUMBER = 5;
private boolean paused_ = false;
/**
*
* A marker (separate from throttling parameters) that this queue is paused.
* When is_paused is true, Executor will not execute tasks.
*
*
* optional bool paused = 5 [default = false];
* @return Whether the paused field is set.
*/
@java.lang.Override
public boolean hasPaused() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* A marker (separate from throttling parameters) that this queue is paused.
* When is_paused is true, Executor will not execute tasks.
*
*
* optional bool paused = 5 [default = false];
* @return The paused.
*/
@java.lang.Override
public boolean getPaused() {
return paused_;
}
public static final int RETRY_PARAMETERS_FIELD_NUMBER = 6;
private com.google.apphosting.executor.Retry.RetryParameters retryParameters_;
/**
*
* Queue-wide RetryParameters.
*
*
* optional .java.apphosting.RetryParameters retry_parameters = 6;
* @return Whether the retryParameters field is set.
*/
@java.lang.Override
public boolean hasRetryParameters() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Queue-wide RetryParameters.
*
*
* optional .java.apphosting.RetryParameters retry_parameters = 6;
* @return The retryParameters.
*/
@java.lang.Override
public com.google.apphosting.executor.Retry.RetryParameters getRetryParameters() {
return retryParameters_ == null ? com.google.apphosting.executor.Retry.RetryParameters.getDefaultInstance() : retryParameters_;
}
/**
*
* Queue-wide RetryParameters.
*
*
* optional .java.apphosting.RetryParameters retry_parameters = 6;
*/
@java.lang.Override
public com.google.apphosting.executor.Retry.RetryParametersOrBuilder getRetryParametersOrBuilder() {
return retryParameters_ == null ? com.google.apphosting.executor.Retry.RetryParameters.getDefaultInstance() : retryParameters_;
}
public static final int MODE_FIELD_NUMBER = 7;
private int mode_ = 0;
/**
*
* A queue can be a push queue (e.g. appengine's normal taskqueues) in which
* tasks are sent to workers at the queue's predefined rate, or it can be a
* pull queue, in which case workers will poll the queue for tasks that they
* are ready to execute.
*
*
* optional .java.apphosting.QueueDefinition.QueueMode mode = 7 [default = PUSH];
* @return Whether the mode field is set.
*/
@java.lang.Override public boolean hasMode() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* A queue can be a push queue (e.g. appengine's normal taskqueues) in which
* tasks are sent to workers at the queue's predefined rate, or it can be a
* pull queue, in which case workers will poll the queue for tasks that they
* are ready to execute.
*
*
* optional .java.apphosting.QueueDefinition.QueueMode mode = 7 [default = PUSH];
* @return The mode.
*/
@java.lang.Override public com.google.apphosting.executor.Queue.QueueDefinition.QueueMode getMode() {
com.google.apphosting.executor.Queue.QueueDefinition.QueueMode result = com.google.apphosting.executor.Queue.QueueDefinition.QueueMode.forNumber(mode_);
return result == null ? com.google.apphosting.executor.Queue.QueueDefinition.QueueMode.PUSH : result;
}
public static final int HEADER_OVERRIDE_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private java.util.List headerOverride_;
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
@java.lang.Override
public java.util.List getHeaderOverrideList() {
return headerOverride_;
}
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
@java.lang.Override
public java.util.List extends com.google.apphosting.executor.Queue.HttpTaskRunnerHeaderOrBuilder>
getHeaderOverrideOrBuilderList() {
return headerOverride_;
}
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
@java.lang.Override
public int getHeaderOverrideCount() {
return headerOverride_.size();
}
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.HttpTaskRunnerHeader getHeaderOverride(int index) {
return headerOverride_.get(index);
}
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.HttpTaskRunnerHeaderOrBuilder getHeaderOverrideOrBuilder(
int index) {
return headerOverride_.get(index);
}
public static final int ACL_FIELD_NUMBER = 10;
private com.google.protobuf.ByteString acl_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Access Control. Executor stores but does not currently enforce the ACL.
* Should contain a serialized Acl.ACLProto whose definition we don't wish to
* leak into public code.
*
*
* optional bytes acl = 10 [ctype = CORD];
* @return Whether the acl field is set.
*/
@java.lang.Override
public boolean hasAcl() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Access Control. Executor stores but does not currently enforce the ACL.
* Should contain a serialized Acl.ACLProto whose definition we don't wish to
* leak into public code.
*
*
* optional bytes acl = 10 [ctype = CORD];
* @return The acl.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAcl() {
return acl_;
}
public static final int CREATOR_NAME_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private volatile java.lang.Object creatorName_ = "apphosting";
/**
*
* The creator of this queue. Defaults to "apphosting" for queues created via
* App Engine's Task Queue Api.
*
*
* optional string creator_name = 11 [default = "apphosting", ctype = CORD];
* @return Whether the creatorName field is set.
*/
@java.lang.Override
public boolean hasCreatorName() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* The creator of this queue. Defaults to "apphosting" for queues created via
* App Engine's Task Queue Api.
*
*
* optional string creator_name = 11 [default = "apphosting", ctype = CORD];
* @return The creatorName.
*/
@java.lang.Override
public java.lang.String getCreatorName() {
java.lang.Object ref = creatorName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
creatorName_ = s;
}
return s;
}
}
/**
*
* The creator of this queue. Defaults to "apphosting" for queues created via
* App Engine's Task Queue Api.
*
*
* optional string creator_name = 11 [default = "apphosting", ctype = CORD];
* @return The bytes for creatorName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCreatorNameBytes() {
java.lang.Object ref = creatorName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
creatorName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NUM_READ_SHARDS_FIELD_NUMBER = 12;
private int numReadShards_ = 1;
/**
*
* Sets the sharding factors for a queue's index tables. The invariant
* that num_read_shards >= num_write_shards must be respected.
*
*
* optional uint32 num_read_shards = 12 [default = 1];
* @return Whether the numReadShards field is set.
*/
@java.lang.Override
public boolean hasNumReadShards() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Sets the sharding factors for a queue's index tables. The invariant
* that num_read_shards >= num_write_shards must be respected.
*
*
* optional uint32 num_read_shards = 12 [default = 1];
* @return The numReadShards.
*/
@java.lang.Override
public int getNumReadShards() {
return numReadShards_;
}
public static final int NUM_WRITE_SHARDS_FIELD_NUMBER = 13;
private int numWriteShards_ = 1;
/**
* optional uint32 num_write_shards = 13 [default = 1];
* @return Whether the numWriteShards field is set.
*/
@java.lang.Override
public boolean hasNumWriteShards() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional uint32 num_write_shards = 13 [default = 1];
* @return The numWriteShards.
*/
@java.lang.Override
public int getNumWriteShards() {
return numWriteShards_;
}
public static final int LAST_HEARTBEAT_USEC_FIELD_NUMBER = 14;
private long lastHeartbeatUsec_ = 0L;
/**
*
* Periodically updated to indicate if a queue is still active.
*
*
* optional int64 last_heartbeat_usec = 14;
* @return Whether the lastHeartbeatUsec field is set.
*/
@java.lang.Override
public boolean hasLastHeartbeatUsec() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* Periodically updated to indicate if a queue is still active.
*
*
* optional int64 last_heartbeat_usec = 14;
* @return The lastHeartbeatUsec.
*/
@java.lang.Override
public long getLastHeartbeatUsec() {
return lastHeartbeatUsec_;
}
public static final int QUEUE_TASK_COUNT_CHECKPOINT_FIELD_NUMBER = 15;
private long queueTaskCountCheckpoint_ = 0L;
/**
*
* Periodically updated with a count of the alive tasks on the queue. The
* value is not updated on the queue but filled in by the Store similar to the
* implementation of last_heartbeat_used.
*
*
* optional int64 queue_task_count_checkpoint = 15 [default = 0];
* @return Whether the queueTaskCountCheckpoint field is set.
*/
@java.lang.Override
public boolean hasQueueTaskCountCheckpoint() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
* Periodically updated with a count of the alive tasks on the queue. The
* value is not updated on the queue but filled in by the Store similar to the
* implementation of last_heartbeat_used.
*
*
* optional int64 queue_task_count_checkpoint = 15 [default = 0];
* @return The queueTaskCountCheckpoint.
*/
@java.lang.Override
public long getQueueTaskCountCheckpoint() {
return queueTaskCountCheckpoint_;
}
public static final int PUBSUB_QUEUE_DEF_FIELD_NUMBER = 16;
private com.google.apphosting.executor.Queue.PubsubQueueDefinition pubsubQueueDef_;
/**
*
* Can only be specified for PUSH queues. And if specified, the queue will
* only accept pubsub tasks.
*
*
* optional .java.apphosting.PubsubQueueDefinition pubsub_queue_def = 16;
* @return Whether the pubsubQueueDef field is set.
*/
@java.lang.Override
public boolean hasPubsubQueueDef() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
* Can only be specified for PUSH queues. And if specified, the queue will
* only accept pubsub tasks.
*
*
* optional .java.apphosting.PubsubQueueDefinition pubsub_queue_def = 16;
* @return The pubsubQueueDef.
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.PubsubQueueDefinition getPubsubQueueDef() {
return pubsubQueueDef_ == null ? com.google.apphosting.executor.Queue.PubsubQueueDefinition.getDefaultInstance() : pubsubQueueDef_;
}
/**
*
* Can only be specified for PUSH queues. And if specified, the queue will
* only accept pubsub tasks.
*
*
* optional .java.apphosting.PubsubQueueDefinition pubsub_queue_def = 16;
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.PubsubQueueDefinitionOrBuilder getPubsubQueueDefOrBuilder() {
return pubsubQueueDef_ == null ? com.google.apphosting.executor.Queue.PubsubQueueDefinition.getDefaultInstance() : pubsubQueueDef_;
}
public static final int ENABLE_CLOUD_LOGGING_FIELD_NUMBER = 17;
private boolean enableCloudLogging_ = false;
/**
*
* If true, Cloud Logging is enabled for this queue.
* No longer in use. Use log_sampling_fraction.
*
*
* optional bool enable_cloud_logging = 17 [default = false, deprecated = true];
* @deprecated java.apphosting.QueueDefinition.enable_cloud_logging is deprecated.
* See queue.proto;l=273
* @return Whether the enableCloudLogging field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasEnableCloudLogging() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
*
* If true, Cloud Logging is enabled for this queue.
* No longer in use. Use log_sampling_fraction.
*
*
* optional bool enable_cloud_logging = 17 [default = false, deprecated = true];
* @deprecated java.apphosting.QueueDefinition.enable_cloud_logging is deprecated.
* See queue.proto;l=273
* @return The enableCloudLogging.
*/
@java.lang.Override
@java.lang.Deprecated public boolean getEnableCloudLogging() {
return enableCloudLogging_;
}
public static final int ALLOCATED_CAPACITY_FIELD_NUMBER = 18;
private long allocatedCapacity_ = 0L;
/**
*
* The allocated rate capacity for this queue.
*
*
* optional int64 allocated_capacity = 18 [default = 0];
* @return Whether the allocatedCapacity field is set.
*/
@java.lang.Override
public boolean hasAllocatedCapacity() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
*
* The allocated rate capacity for this queue.
*
*
* optional int64 allocated_capacity = 18 [default = 0];
* @return The allocatedCapacity.
*/
@java.lang.Override
public long getAllocatedCapacity() {
return allocatedCapacity_;
}
public static final int MAXIMUM_ALIVE_LIFETIME_USEC_FIELD_NUMBER = 19;
private long maximumAliveLifetimeUsec_ = 0L;
/**
*
* The amount of time a task is allowed to live until it's garbage collected.
* If this amount of time passes after the task's creation it is deleted,
* regardless of the state the task is in.
*
*
* optional int64 maximum_alive_lifetime_usec = 19;
* @return Whether the maximumAliveLifetimeUsec field is set.
*/
@java.lang.Override
public boolean hasMaximumAliveLifetimeUsec() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
*
* The amount of time a task is allowed to live until it's garbage collected.
* If this amount of time passes after the task's creation it is deleted,
* regardless of the state the task is in.
*
*
* optional int64 maximum_alive_lifetime_usec = 19;
* @return The maximumAliveLifetimeUsec.
*/
@java.lang.Override
public long getMaximumAliveLifetimeUsec() {
return maximumAliveLifetimeUsec_;
}
public static final int MAXIMUM_TOMBSTONE_LIFETIME_USEC_FIELD_NUMBER = 20;
private long maximumTombstoneLifetimeUsec_ = 0L;
/**
*
* The amount of time a task is allowed to be in a tombstoned states until
* it's garbage collected.
*
*
* optional int64 maximum_tombstone_lifetime_usec = 20;
* @return Whether the maximumTombstoneLifetimeUsec field is set.
*/
@java.lang.Override
public boolean hasMaximumTombstoneLifetimeUsec() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
*
* The amount of time a task is allowed to be in a tombstoned states until
* it's garbage collected.
*
*
* optional int64 maximum_tombstone_lifetime_usec = 20;
* @return The maximumTombstoneLifetimeUsec.
*/
@java.lang.Override
public long getMaximumTombstoneLifetimeUsec() {
return maximumTombstoneLifetimeUsec_;
}
public static final int QUEUE_ALLOCATION_FIELD_NUMBER = 21;
private com.google.apphosting.executor.Queue.QueueAllocation queueAllocation_;
/**
*
* Metadata regarding this queue's allocation.
*
*
* optional .java.apphosting.QueueAllocation queue_allocation = 21;
* @return Whether the queueAllocation field is set.
*/
@java.lang.Override
public boolean hasQueueAllocation() {
return ((bitField0_ & 0x00040000) != 0);
}
/**
*
* Metadata regarding this queue's allocation.
*
*
* optional .java.apphosting.QueueAllocation queue_allocation = 21;
* @return The queueAllocation.
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueAllocation getQueueAllocation() {
return queueAllocation_ == null ? com.google.apphosting.executor.Queue.QueueAllocation.getDefaultInstance() : queueAllocation_;
}
/**
*
* Metadata regarding this queue's allocation.
*
*
* optional .java.apphosting.QueueAllocation queue_allocation = 21;
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueAllocationOrBuilder getQueueAllocationOrBuilder() {
return queueAllocation_ == null ? com.google.apphosting.executor.Queue.QueueAllocation.getDefaultInstance() : queueAllocation_;
}
public static final int LOG_SAMPLING_RATIO_FIELD_NUMBER = 22;
private double logSamplingRatio_ = 0D;
/**
*
* The fraction of operations to log. This field is now superceeded by
* stackdriver_logging_config.
*
*
* optional double log_sampling_ratio = 22 [deprecated = true];
* @deprecated java.apphosting.QueueDefinition.log_sampling_ratio is deprecated.
* See queue.proto;l=292
* @return Whether the logSamplingRatio field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasLogSamplingRatio() {
return ((bitField0_ & 0x00080000) != 0);
}
/**
*
* The fraction of operations to log. This field is now superceeded by
* stackdriver_logging_config.
*
*
* optional double log_sampling_ratio = 22 [deprecated = true];
* @deprecated java.apphosting.QueueDefinition.log_sampling_ratio is deprecated.
* See queue.proto;l=292
* @return The logSamplingRatio.
*/
@java.lang.Override
@java.lang.Deprecated public double getLogSamplingRatio() {
return logSamplingRatio_;
}
public static final int STACKDRIVER_LOGGING_CONFIG_FIELD_NUMBER = 23;
private com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration stackdriverLoggingConfig_;
/**
*
* Cloud logging configuration.
*
*
* optional .java.apphosting.StackdriverLoggingConfiguration stackdriver_logging_config = 23;
* @return Whether the stackdriverLoggingConfig field is set.
*/
@java.lang.Override
public boolean hasStackdriverLoggingConfig() {
return ((bitField0_ & 0x00100000) != 0);
}
/**
*
* Cloud logging configuration.
*
*
* optional .java.apphosting.StackdriverLoggingConfiguration stackdriver_logging_config = 23;
* @return The stackdriverLoggingConfig.
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration getStackdriverLoggingConfig() {
return stackdriverLoggingConfig_ == null ? com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration.getDefaultInstance() : stackdriverLoggingConfig_;
}
/**
*
* Cloud logging configuration.
*
*
* optional .java.apphosting.StackdriverLoggingConfiguration stackdriver_logging_config = 23;
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.StackdriverLoggingConfigurationOrBuilder getStackdriverLoggingConfigOrBuilder() {
return stackdriverLoggingConfig_ == null ? com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration.getDefaultInstance() : stackdriverLoggingConfig_;
}
public static final int EXECUTION_MODE_FIELD_NUMBER = 24;
private int executionMode_ = 0;
/**
* optional .java.apphosting.QueueDefinition.ExecutionMode execution_mode = 24 [deprecated = true];
* @deprecated java.apphosting.QueueDefinition.execution_mode is deprecated.
* See queue.proto;l=305
* @return Whether the executionMode field is set.
*/
@java.lang.Override @java.lang.Deprecated public boolean hasExecutionMode() {
return ((bitField0_ & 0x00200000) != 0);
}
/**
* optional .java.apphosting.QueueDefinition.ExecutionMode execution_mode = 24 [deprecated = true];
* @deprecated java.apphosting.QueueDefinition.execution_mode is deprecated.
* See queue.proto;l=305
* @return The executionMode.
*/
@java.lang.Override @java.lang.Deprecated public com.google.apphosting.executor.Queue.QueueDefinition.ExecutionMode getExecutionMode() {
com.google.apphosting.executor.Queue.QueueDefinition.ExecutionMode result = com.google.apphosting.executor.Queue.QueueDefinition.ExecutionMode.forNumber(executionMode_);
return result == null ? com.google.apphosting.executor.Queue.QueueDefinition.ExecutionMode.EXECUTION_MODE_UNSPECIFIED : result;
}
public static final int TARGET_OVERRIDE_FIELD_NUMBER = 25;
private com.google.apphosting.executor.Queue.TargetOverride targetOverride_;
/**
*
* Target overrides on this queue. When specified, all the tasks in this queue
* will be executed according to this target.
*
*
* optional .java.apphosting.TargetOverride target_override = 25;
* @return Whether the targetOverride field is set.
*/
@java.lang.Override
public boolean hasTargetOverride() {
return ((bitField0_ & 0x00400000) != 0);
}
/**
*
* Target overrides on this queue. When specified, all the tasks in this queue
* will be executed according to this target.
*
*
* optional .java.apphosting.TargetOverride target_override = 25;
* @return The targetOverride.
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.TargetOverride getTargetOverride() {
return targetOverride_ == null ? com.google.apphosting.executor.Queue.TargetOverride.getDefaultInstance() : targetOverride_;
}
/**
*
* Target overrides on this queue. When specified, all the tasks in this queue
* will be executed according to this target.
*
*
* optional .java.apphosting.TargetOverride target_override = 25;
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.TargetOverrideOrBuilder getTargetOverrideOrBuilder() {
return targetOverride_ == null ? com.google.apphosting.executor.Queue.TargetOverride.getDefaultInstance() : targetOverride_;
}
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 (!hasQueueRef()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasThrottlingParameters()) {
memoizedIsInitialized = 0;
return false;
}
if (!getQueueRef().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (!getThrottlingParameters().isInitialized()) {
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.writeMessage(1, getQueueRef());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getThrottlingParameters());
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, userSpecifiedRate_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt64(4, lastPurgeUsec_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeBool(5, paused_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(6, getRetryParameters());
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeEnum(7, mode_);
}
for (int i = 0; i < headerOverride_.size(); i++) {
output.writeMessage(9, headerOverride_.get(i));
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeBytes(10, acl_);
}
if (((bitField0_ & 0x00000100) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, creatorName_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeUInt32(12, numReadShards_);
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeUInt32(13, numWriteShards_);
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeInt64(14, lastHeartbeatUsec_);
}
if (((bitField0_ & 0x00001000) != 0)) {
output.writeInt64(15, queueTaskCountCheckpoint_);
}
if (((bitField0_ & 0x00002000) != 0)) {
output.writeMessage(16, getPubsubQueueDef());
}
if (((bitField0_ & 0x00004000) != 0)) {
output.writeBool(17, enableCloudLogging_);
}
if (((bitField0_ & 0x00008000) != 0)) {
output.writeInt64(18, allocatedCapacity_);
}
if (((bitField0_ & 0x00010000) != 0)) {
output.writeInt64(19, maximumAliveLifetimeUsec_);
}
if (((bitField0_ & 0x00020000) != 0)) {
output.writeInt64(20, maximumTombstoneLifetimeUsec_);
}
if (((bitField0_ & 0x00040000) != 0)) {
output.writeMessage(21, getQueueAllocation());
}
if (((bitField0_ & 0x00080000) != 0)) {
output.writeDouble(22, logSamplingRatio_);
}
if (((bitField0_ & 0x00100000) != 0)) {
output.writeMessage(23, getStackdriverLoggingConfig());
}
if (((bitField0_ & 0x00200000) != 0)) {
output.writeEnum(24, executionMode_);
}
if (((bitField0_ & 0x00400000) != 0)) {
output.writeMessage(25, getTargetOverride());
}
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
.computeMessageSize(1, getQueueRef());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getThrottlingParameters());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, userSpecifiedRate_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, lastPurgeUsec_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, paused_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getRetryParameters());
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, mode_);
}
for (int i = 0; i < headerOverride_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, headerOverride_.get(i));
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(10, acl_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, creatorName_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(12, numReadShards_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(13, numWriteShards_);
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(14, lastHeartbeatUsec_);
}
if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(15, queueTaskCountCheckpoint_);
}
if (((bitField0_ & 0x00002000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, getPubsubQueueDef());
}
if (((bitField0_ & 0x00004000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(17, enableCloudLogging_);
}
if (((bitField0_ & 0x00008000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(18, allocatedCapacity_);
}
if (((bitField0_ & 0x00010000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(19, maximumAliveLifetimeUsec_);
}
if (((bitField0_ & 0x00020000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(20, maximumTombstoneLifetimeUsec_);
}
if (((bitField0_ & 0x00040000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(21, getQueueAllocation());
}
if (((bitField0_ & 0x00080000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(22, logSamplingRatio_);
}
if (((bitField0_ & 0x00100000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(23, getStackdriverLoggingConfig());
}
if (((bitField0_ & 0x00200000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(24, executionMode_);
}
if (((bitField0_ & 0x00400000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(25, getTargetOverride());
}
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.apphosting.executor.Queue.QueueDefinition)) {
return super.equals(obj);
}
com.google.apphosting.executor.Queue.QueueDefinition other = (com.google.apphosting.executor.Queue.QueueDefinition) obj;
if (hasQueueRef() != other.hasQueueRef()) return false;
if (hasQueueRef()) {
if (!getQueueRef()
.equals(other.getQueueRef())) return false;
}
if (hasThrottlingParameters() != other.hasThrottlingParameters()) return false;
if (hasThrottlingParameters()) {
if (!getThrottlingParameters()
.equals(other.getThrottlingParameters())) return false;
}
if (hasUserSpecifiedRate() != other.hasUserSpecifiedRate()) return false;
if (hasUserSpecifiedRate()) {
if (!getUserSpecifiedRate()
.equals(other.getUserSpecifiedRate())) return false;
}
if (hasLastPurgeUsec() != other.hasLastPurgeUsec()) return false;
if (hasLastPurgeUsec()) {
if (getLastPurgeUsec()
!= other.getLastPurgeUsec()) return false;
}
if (hasPaused() != other.hasPaused()) return false;
if (hasPaused()) {
if (getPaused()
!= other.getPaused()) 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 (!getHeaderOverrideList()
.equals(other.getHeaderOverrideList())) return false;
if (hasAcl() != other.hasAcl()) return false;
if (hasAcl()) {
if (!getAcl()
.equals(other.getAcl())) return false;
}
if (hasCreatorName() != other.hasCreatorName()) return false;
if (hasCreatorName()) {
if (!getCreatorName()
.equals(other.getCreatorName())) return false;
}
if (hasNumReadShards() != other.hasNumReadShards()) return false;
if (hasNumReadShards()) {
if (getNumReadShards()
!= other.getNumReadShards()) return false;
}
if (hasNumWriteShards() != other.hasNumWriteShards()) return false;
if (hasNumWriteShards()) {
if (getNumWriteShards()
!= other.getNumWriteShards()) return false;
}
if (hasLastHeartbeatUsec() != other.hasLastHeartbeatUsec()) return false;
if (hasLastHeartbeatUsec()) {
if (getLastHeartbeatUsec()
!= other.getLastHeartbeatUsec()) return false;
}
if (hasQueueTaskCountCheckpoint() != other.hasQueueTaskCountCheckpoint()) return false;
if (hasQueueTaskCountCheckpoint()) {
if (getQueueTaskCountCheckpoint()
!= other.getQueueTaskCountCheckpoint()) return false;
}
if (hasPubsubQueueDef() != other.hasPubsubQueueDef()) return false;
if (hasPubsubQueueDef()) {
if (!getPubsubQueueDef()
.equals(other.getPubsubQueueDef())) return false;
}
if (hasEnableCloudLogging() != other.hasEnableCloudLogging()) return false;
if (hasEnableCloudLogging()) {
if (getEnableCloudLogging()
!= other.getEnableCloudLogging()) return false;
}
if (hasAllocatedCapacity() != other.hasAllocatedCapacity()) return false;
if (hasAllocatedCapacity()) {
if (getAllocatedCapacity()
!= other.getAllocatedCapacity()) return false;
}
if (hasMaximumAliveLifetimeUsec() != other.hasMaximumAliveLifetimeUsec()) return false;
if (hasMaximumAliveLifetimeUsec()) {
if (getMaximumAliveLifetimeUsec()
!= other.getMaximumAliveLifetimeUsec()) return false;
}
if (hasMaximumTombstoneLifetimeUsec() != other.hasMaximumTombstoneLifetimeUsec()) return false;
if (hasMaximumTombstoneLifetimeUsec()) {
if (getMaximumTombstoneLifetimeUsec()
!= other.getMaximumTombstoneLifetimeUsec()) return false;
}
if (hasQueueAllocation() != other.hasQueueAllocation()) return false;
if (hasQueueAllocation()) {
if (!getQueueAllocation()
.equals(other.getQueueAllocation())) return false;
}
if (hasLogSamplingRatio() != other.hasLogSamplingRatio()) return false;
if (hasLogSamplingRatio()) {
if (java.lang.Double.doubleToLongBits(getLogSamplingRatio())
!= java.lang.Double.doubleToLongBits(
other.getLogSamplingRatio())) return false;
}
if (hasStackdriverLoggingConfig() != other.hasStackdriverLoggingConfig()) return false;
if (hasStackdriverLoggingConfig()) {
if (!getStackdriverLoggingConfig()
.equals(other.getStackdriverLoggingConfig())) return false;
}
if (hasExecutionMode() != other.hasExecutionMode()) return false;
if (hasExecutionMode()) {
if (executionMode_ != other.executionMode_) return false;
}
if (hasTargetOverride() != other.hasTargetOverride()) return false;
if (hasTargetOverride()) {
if (!getTargetOverride()
.equals(other.getTargetOverride())) 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 (hasQueueRef()) {
hash = (37 * hash) + QUEUE_REF_FIELD_NUMBER;
hash = (53 * hash) + getQueueRef().hashCode();
}
if (hasThrottlingParameters()) {
hash = (37 * hash) + THROTTLING_PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + getThrottlingParameters().hashCode();
}
if (hasUserSpecifiedRate()) {
hash = (37 * hash) + USER_SPECIFIED_RATE_FIELD_NUMBER;
hash = (53 * hash) + getUserSpecifiedRate().hashCode();
}
if (hasLastPurgeUsec()) {
hash = (37 * hash) + LAST_PURGE_USEC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLastPurgeUsec());
}
if (hasPaused()) {
hash = (37 * hash) + PAUSED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getPaused());
}
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 (getHeaderOverrideCount() > 0) {
hash = (37 * hash) + HEADER_OVERRIDE_FIELD_NUMBER;
hash = (53 * hash) + getHeaderOverrideList().hashCode();
}
if (hasAcl()) {
hash = (37 * hash) + ACL_FIELD_NUMBER;
hash = (53 * hash) + getAcl().hashCode();
}
if (hasCreatorName()) {
hash = (37 * hash) + CREATOR_NAME_FIELD_NUMBER;
hash = (53 * hash) + getCreatorName().hashCode();
}
if (hasNumReadShards()) {
hash = (37 * hash) + NUM_READ_SHARDS_FIELD_NUMBER;
hash = (53 * hash) + getNumReadShards();
}
if (hasNumWriteShards()) {
hash = (37 * hash) + NUM_WRITE_SHARDS_FIELD_NUMBER;
hash = (53 * hash) + getNumWriteShards();
}
if (hasLastHeartbeatUsec()) {
hash = (37 * hash) + LAST_HEARTBEAT_USEC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLastHeartbeatUsec());
}
if (hasQueueTaskCountCheckpoint()) {
hash = (37 * hash) + QUEUE_TASK_COUNT_CHECKPOINT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getQueueTaskCountCheckpoint());
}
if (hasPubsubQueueDef()) {
hash = (37 * hash) + PUBSUB_QUEUE_DEF_FIELD_NUMBER;
hash = (53 * hash) + getPubsubQueueDef().hashCode();
}
if (hasEnableCloudLogging()) {
hash = (37 * hash) + ENABLE_CLOUD_LOGGING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEnableCloudLogging());
}
if (hasAllocatedCapacity()) {
hash = (37 * hash) + ALLOCATED_CAPACITY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAllocatedCapacity());
}
if (hasMaximumAliveLifetimeUsec()) {
hash = (37 * hash) + MAXIMUM_ALIVE_LIFETIME_USEC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMaximumAliveLifetimeUsec());
}
if (hasMaximumTombstoneLifetimeUsec()) {
hash = (37 * hash) + MAXIMUM_TOMBSTONE_LIFETIME_USEC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMaximumTombstoneLifetimeUsec());
}
if (hasQueueAllocation()) {
hash = (37 * hash) + QUEUE_ALLOCATION_FIELD_NUMBER;
hash = (53 * hash) + getQueueAllocation().hashCode();
}
if (hasLogSamplingRatio()) {
hash = (37 * hash) + LOG_SAMPLING_RATIO_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getLogSamplingRatio()));
}
if (hasStackdriverLoggingConfig()) {
hash = (37 * hash) + STACKDRIVER_LOGGING_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getStackdriverLoggingConfig().hashCode();
}
if (hasExecutionMode()) {
hash = (37 * hash) + EXECUTION_MODE_FIELD_NUMBER;
hash = (53 * hash) + executionMode_;
}
if (hasTargetOverride()) {
hash = (37 * hash) + TARGET_OVERRIDE_FIELD_NUMBER;
hash = (53 * hash) + getTargetOverride().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.executor.Queue.QueueDefinition parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueDefinition parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.QueueDefinition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueDefinition 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.apphosting.executor.Queue.QueueDefinition parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueDefinition parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.QueueDefinition parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueDefinition 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.apphosting.executor.Queue.QueueDefinition parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueDefinition 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.apphosting.executor.Queue.QueueDefinition parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueDefinition 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.apphosting.executor.Queue.QueueDefinition 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;
}
/**
*
* NEXT TAG: 26
*
*
* Protobuf type {@code java.apphosting.QueueDefinition}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.QueueDefinition)
com.google.apphosting.executor.Queue.QueueDefinitionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueDefinition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueDefinition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.QueueDefinition.class, com.google.apphosting.executor.Queue.QueueDefinition.Builder.class);
}
// Construct using com.google.apphosting.executor.Queue.QueueDefinition.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getQueueRefFieldBuilder();
getThrottlingParametersFieldBuilder();
getRetryParametersFieldBuilder();
getHeaderOverrideFieldBuilder();
getPubsubQueueDefFieldBuilder();
getQueueAllocationFieldBuilder();
getStackdriverLoggingConfigFieldBuilder();
getTargetOverrideFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
queueRef_ = null;
if (queueRefBuilder_ != null) {
queueRefBuilder_.dispose();
queueRefBuilder_ = null;
}
throttlingParameters_ = null;
if (throttlingParametersBuilder_ != null) {
throttlingParametersBuilder_.dispose();
throttlingParametersBuilder_ = null;
}
userSpecifiedRate_ = "";
lastPurgeUsec_ = 0L;
paused_ = false;
retryParameters_ = null;
if (retryParametersBuilder_ != null) {
retryParametersBuilder_.dispose();
retryParametersBuilder_ = null;
}
mode_ = 0;
if (headerOverrideBuilder_ == null) {
headerOverride_ = java.util.Collections.emptyList();
} else {
headerOverride_ = null;
headerOverrideBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
acl_ = com.google.protobuf.ByteString.EMPTY;
creatorName_ = "apphosting";
numReadShards_ = 1;
numWriteShards_ = 1;
lastHeartbeatUsec_ = 0L;
queueTaskCountCheckpoint_ = 0L;
pubsubQueueDef_ = null;
if (pubsubQueueDefBuilder_ != null) {
pubsubQueueDefBuilder_.dispose();
pubsubQueueDefBuilder_ = null;
}
enableCloudLogging_ = false;
allocatedCapacity_ = 0L;
maximumAliveLifetimeUsec_ = 0L;
maximumTombstoneLifetimeUsec_ = 0L;
queueAllocation_ = null;
if (queueAllocationBuilder_ != null) {
queueAllocationBuilder_.dispose();
queueAllocationBuilder_ = null;
}
logSamplingRatio_ = 0D;
stackdriverLoggingConfig_ = null;
if (stackdriverLoggingConfigBuilder_ != null) {
stackdriverLoggingConfigBuilder_.dispose();
stackdriverLoggingConfigBuilder_ = null;
}
executionMode_ = 0;
targetOverride_ = null;
if (targetOverrideBuilder_ != null) {
targetOverrideBuilder_.dispose();
targetOverrideBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueDefinition_descriptor;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueDefinition getDefaultInstanceForType() {
return com.google.apphosting.executor.Queue.QueueDefinition.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueDefinition build() {
com.google.apphosting.executor.Queue.QueueDefinition result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueDefinition buildPartial() {
com.google.apphosting.executor.Queue.QueueDefinition result = new com.google.apphosting.executor.Queue.QueueDefinition(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.apphosting.executor.Queue.QueueDefinition result) {
if (headerOverrideBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)) {
headerOverride_ = java.util.Collections.unmodifiableList(headerOverride_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.headerOverride_ = headerOverride_;
} else {
result.headerOverride_ = headerOverrideBuilder_.build();
}
}
private void buildPartial0(com.google.apphosting.executor.Queue.QueueDefinition result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.queueRef_ = queueRefBuilder_ == null
? queueRef_
: queueRefBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.throttlingParameters_ = throttlingParametersBuilder_ == null
? throttlingParameters_
: throttlingParametersBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.userSpecifiedRate_ = userSpecifiedRate_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.lastPurgeUsec_ = lastPurgeUsec_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.paused_ = paused_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.retryParameters_ = retryParametersBuilder_ == null
? retryParameters_
: retryParametersBuilder_.build();
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.mode_ = mode_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.acl_ = acl_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.creatorName_ = creatorName_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.numReadShards_ = numReadShards_;
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.numWriteShards_ = numWriteShards_;
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.lastHeartbeatUsec_ = lastHeartbeatUsec_;
to_bitField0_ |= 0x00000800;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.queueTaskCountCheckpoint_ = queueTaskCountCheckpoint_;
to_bitField0_ |= 0x00001000;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.pubsubQueueDef_ = pubsubQueueDefBuilder_ == null
? pubsubQueueDef_
: pubsubQueueDefBuilder_.build();
to_bitField0_ |= 0x00002000;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.enableCloudLogging_ = enableCloudLogging_;
to_bitField0_ |= 0x00004000;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.allocatedCapacity_ = allocatedCapacity_;
to_bitField0_ |= 0x00008000;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.maximumAliveLifetimeUsec_ = maximumAliveLifetimeUsec_;
to_bitField0_ |= 0x00010000;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.maximumTombstoneLifetimeUsec_ = maximumTombstoneLifetimeUsec_;
to_bitField0_ |= 0x00020000;
}
if (((from_bitField0_ & 0x00080000) != 0)) {
result.queueAllocation_ = queueAllocationBuilder_ == null
? queueAllocation_
: queueAllocationBuilder_.build();
to_bitField0_ |= 0x00040000;
}
if (((from_bitField0_ & 0x00100000) != 0)) {
result.logSamplingRatio_ = logSamplingRatio_;
to_bitField0_ |= 0x00080000;
}
if (((from_bitField0_ & 0x00200000) != 0)) {
result.stackdriverLoggingConfig_ = stackdriverLoggingConfigBuilder_ == null
? stackdriverLoggingConfig_
: stackdriverLoggingConfigBuilder_.build();
to_bitField0_ |= 0x00100000;
}
if (((from_bitField0_ & 0x00400000) != 0)) {
result.executionMode_ = executionMode_;
to_bitField0_ |= 0x00200000;
}
if (((from_bitField0_ & 0x00800000) != 0)) {
result.targetOverride_ = targetOverrideBuilder_ == null
? targetOverride_
: targetOverrideBuilder_.build();
to_bitField0_ |= 0x00400000;
}
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.apphosting.executor.Queue.QueueDefinition) {
return mergeFrom((com.google.apphosting.executor.Queue.QueueDefinition)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.executor.Queue.QueueDefinition other) {
if (other == com.google.apphosting.executor.Queue.QueueDefinition.getDefaultInstance()) return this;
if (other.hasQueueRef()) {
mergeQueueRef(other.getQueueRef());
}
if (other.hasThrottlingParameters()) {
mergeThrottlingParameters(other.getThrottlingParameters());
}
if (other.hasUserSpecifiedRate()) {
userSpecifiedRate_ = other.userSpecifiedRate_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasLastPurgeUsec()) {
setLastPurgeUsec(other.getLastPurgeUsec());
}
if (other.hasPaused()) {
setPaused(other.getPaused());
}
if (other.hasRetryParameters()) {
mergeRetryParameters(other.getRetryParameters());
}
if (other.hasMode()) {
setMode(other.getMode());
}
if (headerOverrideBuilder_ == null) {
if (!other.headerOverride_.isEmpty()) {
if (headerOverride_.isEmpty()) {
headerOverride_ = other.headerOverride_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureHeaderOverrideIsMutable();
headerOverride_.addAll(other.headerOverride_);
}
onChanged();
}
} else {
if (!other.headerOverride_.isEmpty()) {
if (headerOverrideBuilder_.isEmpty()) {
headerOverrideBuilder_.dispose();
headerOverrideBuilder_ = null;
headerOverride_ = other.headerOverride_;
bitField0_ = (bitField0_ & ~0x00000080);
headerOverrideBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getHeaderOverrideFieldBuilder() : null;
} else {
headerOverrideBuilder_.addAllMessages(other.headerOverride_);
}
}
}
if (other.hasAcl()) {
setAcl(other.getAcl());
}
if (other.hasCreatorName()) {
creatorName_ = other.creatorName_;
bitField0_ |= 0x00000200;
onChanged();
}
if (other.hasNumReadShards()) {
setNumReadShards(other.getNumReadShards());
}
if (other.hasNumWriteShards()) {
setNumWriteShards(other.getNumWriteShards());
}
if (other.hasLastHeartbeatUsec()) {
setLastHeartbeatUsec(other.getLastHeartbeatUsec());
}
if (other.hasQueueTaskCountCheckpoint()) {
setQueueTaskCountCheckpoint(other.getQueueTaskCountCheckpoint());
}
if (other.hasPubsubQueueDef()) {
mergePubsubQueueDef(other.getPubsubQueueDef());
}
if (other.hasEnableCloudLogging()) {
setEnableCloudLogging(other.getEnableCloudLogging());
}
if (other.hasAllocatedCapacity()) {
setAllocatedCapacity(other.getAllocatedCapacity());
}
if (other.hasMaximumAliveLifetimeUsec()) {
setMaximumAliveLifetimeUsec(other.getMaximumAliveLifetimeUsec());
}
if (other.hasMaximumTombstoneLifetimeUsec()) {
setMaximumTombstoneLifetimeUsec(other.getMaximumTombstoneLifetimeUsec());
}
if (other.hasQueueAllocation()) {
mergeQueueAllocation(other.getQueueAllocation());
}
if (other.hasLogSamplingRatio()) {
setLogSamplingRatio(other.getLogSamplingRatio());
}
if (other.hasStackdriverLoggingConfig()) {
mergeStackdriverLoggingConfig(other.getStackdriverLoggingConfig());
}
if (other.hasExecutionMode()) {
setExecutionMode(other.getExecutionMode());
}
if (other.hasTargetOverride()) {
mergeTargetOverride(other.getTargetOverride());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasQueueRef()) {
return false;
}
if (!hasThrottlingParameters()) {
return false;
}
if (!getQueueRef().isInitialized()) {
return false;
}
if (!getThrottlingParameters().isInitialized()) {
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: {
input.readMessage(
getQueueRefFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getThrottlingParametersFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
userSpecifiedRate_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
lastPurgeUsec_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
paused_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 40
case 50: {
input.readMessage(
getRetryParametersFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 56: {
int tmpRaw = input.readEnum();
com.google.apphosting.executor.Queue.QueueDefinition.QueueMode tmpValue =
com.google.apphosting.executor.Queue.QueueDefinition.QueueMode.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(7, tmpRaw);
} else {
mode_ = tmpRaw;
bitField0_ |= 0x00000040;
}
break;
} // case 56
case 74: {
com.google.apphosting.executor.Queue.HttpTaskRunnerHeader m =
input.readMessage(
com.google.apphosting.executor.Queue.HttpTaskRunnerHeader.PARSER,
extensionRegistry);
if (headerOverrideBuilder_ == null) {
ensureHeaderOverrideIsMutable();
headerOverride_.add(m);
} else {
headerOverrideBuilder_.addMessage(m);
}
break;
} // case 74
case 82: {
acl_ = input.readBytes();
bitField0_ |= 0x00000100;
break;
} // case 82
case 90: {
creatorName_ = input.readBytes();
bitField0_ |= 0x00000200;
break;
} // case 90
case 96: {
numReadShards_ = input.readUInt32();
bitField0_ |= 0x00000400;
break;
} // case 96
case 104: {
numWriteShards_ = input.readUInt32();
bitField0_ |= 0x00000800;
break;
} // case 104
case 112: {
lastHeartbeatUsec_ = input.readInt64();
bitField0_ |= 0x00001000;
break;
} // case 112
case 120: {
queueTaskCountCheckpoint_ = input.readInt64();
bitField0_ |= 0x00002000;
break;
} // case 120
case 130: {
input.readMessage(
getPubsubQueueDefFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00004000;
break;
} // case 130
case 136: {
enableCloudLogging_ = input.readBool();
bitField0_ |= 0x00008000;
break;
} // case 136
case 144: {
allocatedCapacity_ = input.readInt64();
bitField0_ |= 0x00010000;
break;
} // case 144
case 152: {
maximumAliveLifetimeUsec_ = input.readInt64();
bitField0_ |= 0x00020000;
break;
} // case 152
case 160: {
maximumTombstoneLifetimeUsec_ = input.readInt64();
bitField0_ |= 0x00040000;
break;
} // case 160
case 170: {
input.readMessage(
getQueueAllocationFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00080000;
break;
} // case 170
case 177: {
logSamplingRatio_ = input.readDouble();
bitField0_ |= 0x00100000;
break;
} // case 177
case 186: {
input.readMessage(
getStackdriverLoggingConfigFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00200000;
break;
} // case 186
case 192: {
int tmpRaw = input.readEnum();
com.google.apphosting.executor.Queue.QueueDefinition.ExecutionMode tmpValue =
com.google.apphosting.executor.Queue.QueueDefinition.ExecutionMode.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(24, tmpRaw);
} else {
executionMode_ = tmpRaw;
bitField0_ |= 0x00400000;
}
break;
} // case 192
case 202: {
input.readMessage(
getTargetOverrideFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00800000;
break;
} // case 202
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.apphosting.executor.Queue.QueueRef queueRef_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueRef, com.google.apphosting.executor.Queue.QueueRef.Builder, com.google.apphosting.executor.Queue.QueueRefOrBuilder> queueRefBuilder_;
/**
* required .java.apphosting.QueueRef queue_ref = 1;
* @return Whether the queueRef field is set.
*/
public boolean hasQueueRef() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required .java.apphosting.QueueRef queue_ref = 1;
* @return The queueRef.
*/
public com.google.apphosting.executor.Queue.QueueRef getQueueRef() {
if (queueRefBuilder_ == null) {
return queueRef_ == null ? com.google.apphosting.executor.Queue.QueueRef.getDefaultInstance() : queueRef_;
} else {
return queueRefBuilder_.getMessage();
}
}
/**
* required .java.apphosting.QueueRef queue_ref = 1;
*/
public Builder setQueueRef(com.google.apphosting.executor.Queue.QueueRef value) {
if (queueRefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queueRef_ = value;
} else {
queueRefBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required .java.apphosting.QueueRef queue_ref = 1;
*/
public Builder setQueueRef(
com.google.apphosting.executor.Queue.QueueRef.Builder builderForValue) {
if (queueRefBuilder_ == null) {
queueRef_ = builderForValue.build();
} else {
queueRefBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required .java.apphosting.QueueRef queue_ref = 1;
*/
public Builder mergeQueueRef(com.google.apphosting.executor.Queue.QueueRef value) {
if (queueRefBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
queueRef_ != null &&
queueRef_ != com.google.apphosting.executor.Queue.QueueRef.getDefaultInstance()) {
getQueueRefBuilder().mergeFrom(value);
} else {
queueRef_ = value;
}
} else {
queueRefBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required .java.apphosting.QueueRef queue_ref = 1;
*/
public Builder clearQueueRef() {
bitField0_ = (bitField0_ & ~0x00000001);
queueRef_ = null;
if (queueRefBuilder_ != null) {
queueRefBuilder_.dispose();
queueRefBuilder_ = null;
}
onChanged();
return this;
}
/**
* required .java.apphosting.QueueRef queue_ref = 1;
*/
public com.google.apphosting.executor.Queue.QueueRef.Builder getQueueRefBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getQueueRefFieldBuilder().getBuilder();
}
/**
* required .java.apphosting.QueueRef queue_ref = 1;
*/
public com.google.apphosting.executor.Queue.QueueRefOrBuilder getQueueRefOrBuilder() {
if (queueRefBuilder_ != null) {
return queueRefBuilder_.getMessageOrBuilder();
} else {
return queueRef_ == null ?
com.google.apphosting.executor.Queue.QueueRef.getDefaultInstance() : queueRef_;
}
}
/**
* required .java.apphosting.QueueRef queue_ref = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueRef, com.google.apphosting.executor.Queue.QueueRef.Builder, com.google.apphosting.executor.Queue.QueueRefOrBuilder>
getQueueRefFieldBuilder() {
if (queueRefBuilder_ == null) {
queueRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueRef, com.google.apphosting.executor.Queue.QueueRef.Builder, com.google.apphosting.executor.Queue.QueueRefOrBuilder>(
getQueueRef(),
getParentForChildren(),
isClean());
queueRef_ = null;
}
return queueRefBuilder_;
}
private com.google.apphosting.executor.Queue.QueueThrottlingParameters throttlingParameters_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueThrottlingParameters, com.google.apphosting.executor.Queue.QueueThrottlingParameters.Builder, com.google.apphosting.executor.Queue.QueueThrottlingParametersOrBuilder> throttlingParametersBuilder_;
/**
* required .java.apphosting.QueueThrottlingParameters throttling_parameters = 2;
* @return Whether the throttlingParameters field is set.
*/
public boolean hasThrottlingParameters() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required .java.apphosting.QueueThrottlingParameters throttling_parameters = 2;
* @return The throttlingParameters.
*/
public com.google.apphosting.executor.Queue.QueueThrottlingParameters getThrottlingParameters() {
if (throttlingParametersBuilder_ == null) {
return throttlingParameters_ == null ? com.google.apphosting.executor.Queue.QueueThrottlingParameters.getDefaultInstance() : throttlingParameters_;
} else {
return throttlingParametersBuilder_.getMessage();
}
}
/**
* required .java.apphosting.QueueThrottlingParameters throttling_parameters = 2;
*/
public Builder setThrottlingParameters(com.google.apphosting.executor.Queue.QueueThrottlingParameters value) {
if (throttlingParametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
throttlingParameters_ = value;
} else {
throttlingParametersBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* required .java.apphosting.QueueThrottlingParameters throttling_parameters = 2;
*/
public Builder setThrottlingParameters(
com.google.apphosting.executor.Queue.QueueThrottlingParameters.Builder builderForValue) {
if (throttlingParametersBuilder_ == null) {
throttlingParameters_ = builderForValue.build();
} else {
throttlingParametersBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* required .java.apphosting.QueueThrottlingParameters throttling_parameters = 2;
*/
public Builder mergeThrottlingParameters(com.google.apphosting.executor.Queue.QueueThrottlingParameters value) {
if (throttlingParametersBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
throttlingParameters_ != null &&
throttlingParameters_ != com.google.apphosting.executor.Queue.QueueThrottlingParameters.getDefaultInstance()) {
getThrottlingParametersBuilder().mergeFrom(value);
} else {
throttlingParameters_ = value;
}
} else {
throttlingParametersBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* required .java.apphosting.QueueThrottlingParameters throttling_parameters = 2;
*/
public Builder clearThrottlingParameters() {
bitField0_ = (bitField0_ & ~0x00000002);
throttlingParameters_ = null;
if (throttlingParametersBuilder_ != null) {
throttlingParametersBuilder_.dispose();
throttlingParametersBuilder_ = null;
}
onChanged();
return this;
}
/**
* required .java.apphosting.QueueThrottlingParameters throttling_parameters = 2;
*/
public com.google.apphosting.executor.Queue.QueueThrottlingParameters.Builder getThrottlingParametersBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getThrottlingParametersFieldBuilder().getBuilder();
}
/**
* required .java.apphosting.QueueThrottlingParameters throttling_parameters = 2;
*/
public com.google.apphosting.executor.Queue.QueueThrottlingParametersOrBuilder getThrottlingParametersOrBuilder() {
if (throttlingParametersBuilder_ != null) {
return throttlingParametersBuilder_.getMessageOrBuilder();
} else {
return throttlingParameters_ == null ?
com.google.apphosting.executor.Queue.QueueThrottlingParameters.getDefaultInstance() : throttlingParameters_;
}
}
/**
* required .java.apphosting.QueueThrottlingParameters throttling_parameters = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueThrottlingParameters, com.google.apphosting.executor.Queue.QueueThrottlingParameters.Builder, com.google.apphosting.executor.Queue.QueueThrottlingParametersOrBuilder>
getThrottlingParametersFieldBuilder() {
if (throttlingParametersBuilder_ == null) {
throttlingParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueThrottlingParameters, com.google.apphosting.executor.Queue.QueueThrottlingParameters.Builder, com.google.apphosting.executor.Queue.QueueThrottlingParametersOrBuilder>(
getThrottlingParameters(),
getParentForChildren(),
isClean());
throttlingParameters_ = null;
}
return throttlingParametersBuilder_;
}
private 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". Note that this is
* specific to the App Engine Task Queue API but it saves us a lot of effort
* to store it here as opposed to somewhere else.
*
*
* optional string user_specified_rate = 3;
* @return Whether the userSpecifiedRate field is set.
*/
public boolean hasUserSpecifiedRate() {
return ((bitField0_ & 0x00000004) != 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". Note that this is
* specific to the App Engine Task Queue API but it saves us a lot of effort
* to store it here as opposed to somewhere else.
*
*
* optional string user_specified_rate = 3;
* @return The userSpecifiedRate.
*/
public java.lang.String getUserSpecifiedRate() {
java.lang.Object ref = userSpecifiedRate_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
userSpecifiedRate_ = s;
}
return s;
} else {
return (java.lang.String) 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". Note that this is
* specific to the App Engine Task Queue API but it saves us a lot of effort
* to store it here as opposed to somewhere else.
*
*
* optional string user_specified_rate = 3;
* @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". Note that this is
* specific to the App Engine Task Queue API but it saves us a lot of effort
* to store it here as opposed to somewhere else.
*
*
* optional string user_specified_rate = 3;
* @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_ |= 0x00000004;
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". Note that this is
* specific to the App Engine Task Queue API but it saves us a lot of effort
* to store it here as opposed to somewhere else.
*
*
* optional string user_specified_rate = 3;
* @return This builder for chaining.
*/
public Builder clearUserSpecifiedRate() {
userSpecifiedRate_ = getDefaultInstance().getUserSpecifiedRate();
bitField0_ = (bitField0_ & ~0x00000004);
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". Note that this is
* specific to the App Engine Task Queue API but it saves us a lot of effort
* to store it here as opposed to somewhere else.
*
*
* optional string user_specified_rate = 3;
* @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_ |= 0x00000004;
onChanged();
return this;
}
private long lastPurgeUsec_ ;
/**
*
* Timestamp at which this queue was last purged of tasks. While these purged
* tasks (the tasked enqueued before the purge time) are waiting to be
* tombstoned and eventually removed from our tables by a mapreduce, they
* should not be executed or returned by queries.
*
*
* optional int64 last_purge_usec = 4 [default = 0];
* @return Whether the lastPurgeUsec field is set.
*/
@java.lang.Override
public boolean hasLastPurgeUsec() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Timestamp at which this queue was last purged of tasks. While these purged
* tasks (the tasked enqueued before the purge time) are waiting to be
* tombstoned and eventually removed from our tables by a mapreduce, they
* should not be executed or returned by queries.
*
*
* optional int64 last_purge_usec = 4 [default = 0];
* @return The lastPurgeUsec.
*/
@java.lang.Override
public long getLastPurgeUsec() {
return lastPurgeUsec_;
}
/**
*
* Timestamp at which this queue was last purged of tasks. While these purged
* tasks (the tasked enqueued before the purge time) are waiting to be
* tombstoned and eventually removed from our tables by a mapreduce, they
* should not be executed or returned by queries.
*
*
* optional int64 last_purge_usec = 4 [default = 0];
* @param value The lastPurgeUsec to set.
* @return This builder for chaining.
*/
public Builder setLastPurgeUsec(long value) {
lastPurgeUsec_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Timestamp at which this queue was last purged of tasks. While these purged
* tasks (the tasked enqueued before the purge time) are waiting to be
* tombstoned and eventually removed from our tables by a mapreduce, they
* should not be executed or returned by queries.
*
*
* optional int64 last_purge_usec = 4 [default = 0];
* @return This builder for chaining.
*/
public Builder clearLastPurgeUsec() {
bitField0_ = (bitField0_ & ~0x00000008);
lastPurgeUsec_ = 0L;
onChanged();
return this;
}
private boolean paused_ ;
/**
*
* A marker (separate from throttling parameters) that this queue is paused.
* When is_paused is true, Executor will not execute tasks.
*
*
* optional bool paused = 5 [default = false];
* @return Whether the paused field is set.
*/
@java.lang.Override
public boolean hasPaused() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* A marker (separate from throttling parameters) that this queue is paused.
* When is_paused is true, Executor will not execute tasks.
*
*
* optional bool paused = 5 [default = false];
* @return The paused.
*/
@java.lang.Override
public boolean getPaused() {
return paused_;
}
/**
*
* A marker (separate from throttling parameters) that this queue is paused.
* When is_paused is true, Executor will not execute tasks.
*
*
* optional bool paused = 5 [default = false];
* @param value The paused to set.
* @return This builder for chaining.
*/
public Builder setPaused(boolean value) {
paused_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* A marker (separate from throttling parameters) that this queue is paused.
* When is_paused is true, Executor will not execute tasks.
*
*
* optional bool paused = 5 [default = false];
* @return This builder for chaining.
*/
public Builder clearPaused() {
bitField0_ = (bitField0_ & ~0x00000010);
paused_ = false;
onChanged();
return this;
}
private com.google.apphosting.executor.Retry.RetryParameters retryParameters_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Retry.RetryParameters, com.google.apphosting.executor.Retry.RetryParameters.Builder, com.google.apphosting.executor.Retry.RetryParametersOrBuilder> retryParametersBuilder_;
/**
*
* Queue-wide RetryParameters.
*
*
* optional .java.apphosting.RetryParameters retry_parameters = 6;
* @return Whether the retryParameters field is set.
*/
public boolean hasRetryParameters() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Queue-wide RetryParameters.
*
*
* optional .java.apphosting.RetryParameters retry_parameters = 6;
* @return The retryParameters.
*/
public com.google.apphosting.executor.Retry.RetryParameters getRetryParameters() {
if (retryParametersBuilder_ == null) {
return retryParameters_ == null ? com.google.apphosting.executor.Retry.RetryParameters.getDefaultInstance() : retryParameters_;
} else {
return retryParametersBuilder_.getMessage();
}
}
/**
*
* Queue-wide RetryParameters.
*
*
* optional .java.apphosting.RetryParameters retry_parameters = 6;
*/
public Builder setRetryParameters(com.google.apphosting.executor.Retry.RetryParameters value) {
if (retryParametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
retryParameters_ = value;
} else {
retryParametersBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Queue-wide RetryParameters.
*
*
* optional .java.apphosting.RetryParameters retry_parameters = 6;
*/
public Builder setRetryParameters(
com.google.apphosting.executor.Retry.RetryParameters.Builder builderForValue) {
if (retryParametersBuilder_ == null) {
retryParameters_ = builderForValue.build();
} else {
retryParametersBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Queue-wide RetryParameters.
*
*
* optional .java.apphosting.RetryParameters retry_parameters = 6;
*/
public Builder mergeRetryParameters(com.google.apphosting.executor.Retry.RetryParameters value) {
if (retryParametersBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
retryParameters_ != null &&
retryParameters_ != com.google.apphosting.executor.Retry.RetryParameters.getDefaultInstance()) {
getRetryParametersBuilder().mergeFrom(value);
} else {
retryParameters_ = value;
}
} else {
retryParametersBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Queue-wide RetryParameters.
*
*
* optional .java.apphosting.RetryParameters retry_parameters = 6;
*/
public Builder clearRetryParameters() {
bitField0_ = (bitField0_ & ~0x00000020);
retryParameters_ = null;
if (retryParametersBuilder_ != null) {
retryParametersBuilder_.dispose();
retryParametersBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Queue-wide RetryParameters.
*
*
* optional .java.apphosting.RetryParameters retry_parameters = 6;
*/
public com.google.apphosting.executor.Retry.RetryParameters.Builder getRetryParametersBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getRetryParametersFieldBuilder().getBuilder();
}
/**
*
* Queue-wide RetryParameters.
*
*
* optional .java.apphosting.RetryParameters retry_parameters = 6;
*/
public com.google.apphosting.executor.Retry.RetryParametersOrBuilder getRetryParametersOrBuilder() {
if (retryParametersBuilder_ != null) {
return retryParametersBuilder_.getMessageOrBuilder();
} else {
return retryParameters_ == null ?
com.google.apphosting.executor.Retry.RetryParameters.getDefaultInstance() : retryParameters_;
}
}
/**
*
* Queue-wide RetryParameters.
*
*
* optional .java.apphosting.RetryParameters retry_parameters = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Retry.RetryParameters, com.google.apphosting.executor.Retry.RetryParameters.Builder, com.google.apphosting.executor.Retry.RetryParametersOrBuilder>
getRetryParametersFieldBuilder() {
if (retryParametersBuilder_ == null) {
retryParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Retry.RetryParameters, com.google.apphosting.executor.Retry.RetryParameters.Builder, com.google.apphosting.executor.Retry.RetryParametersOrBuilder>(
getRetryParameters(),
getParentForChildren(),
isClean());
retryParameters_ = null;
}
return retryParametersBuilder_;
}
private int mode_ = 0;
/**
*
* A queue can be a push queue (e.g. appengine's normal taskqueues) in which
* tasks are sent to workers at the queue's predefined rate, or it can be a
* pull queue, in which case workers will poll the queue for tasks that they
* are ready to execute.
*
*
* optional .java.apphosting.QueueDefinition.QueueMode mode = 7 [default = PUSH];
* @return Whether the mode field is set.
*/
@java.lang.Override public boolean hasMode() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* A queue can be a push queue (e.g. appengine's normal taskqueues) in which
* tasks are sent to workers at the queue's predefined rate, or it can be a
* pull queue, in which case workers will poll the queue for tasks that they
* are ready to execute.
*
*
* optional .java.apphosting.QueueDefinition.QueueMode mode = 7 [default = PUSH];
* @return The mode.
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueDefinition.QueueMode getMode() {
com.google.apphosting.executor.Queue.QueueDefinition.QueueMode result = com.google.apphosting.executor.Queue.QueueDefinition.QueueMode.forNumber(mode_);
return result == null ? com.google.apphosting.executor.Queue.QueueDefinition.QueueMode.PUSH : result;
}
/**
*
* A queue can be a push queue (e.g. appengine's normal taskqueues) in which
* tasks are sent to workers at the queue's predefined rate, or it can be a
* pull queue, in which case workers will poll the queue for tasks that they
* are ready to execute.
*
*
* optional .java.apphosting.QueueDefinition.QueueMode mode = 7 [default = PUSH];
* @param value The mode to set.
* @return This builder for chaining.
*/
public Builder setMode(com.google.apphosting.executor.Queue.QueueDefinition.QueueMode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
mode_ = value.getNumber();
onChanged();
return this;
}
/**
*
* A queue can be a push queue (e.g. appengine's normal taskqueues) in which
* tasks are sent to workers at the queue's predefined rate, or it can be a
* pull queue, in which case workers will poll the queue for tasks that they
* are ready to execute.
*
*
* optional .java.apphosting.QueueDefinition.QueueMode mode = 7 [default = PUSH];
* @return This builder for chaining.
*/
public Builder clearMode() {
bitField0_ = (bitField0_ & ~0x00000040);
mode_ = 0;
onChanged();
return this;
}
private java.util.List headerOverride_ =
java.util.Collections.emptyList();
private void ensureHeaderOverrideIsMutable() {
if (!((bitField0_ & 0x00000080) != 0)) {
headerOverride_ = new java.util.ArrayList(headerOverride_);
bitField0_ |= 0x00000080;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.executor.Queue.HttpTaskRunnerHeader, com.google.apphosting.executor.Queue.HttpTaskRunnerHeader.Builder, com.google.apphosting.executor.Queue.HttpTaskRunnerHeaderOrBuilder> headerOverrideBuilder_;
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
public java.util.List getHeaderOverrideList() {
if (headerOverrideBuilder_ == null) {
return java.util.Collections.unmodifiableList(headerOverride_);
} else {
return headerOverrideBuilder_.getMessageList();
}
}
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
public int getHeaderOverrideCount() {
if (headerOverrideBuilder_ == null) {
return headerOverride_.size();
} else {
return headerOverrideBuilder_.getCount();
}
}
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
public com.google.apphosting.executor.Queue.HttpTaskRunnerHeader getHeaderOverride(int index) {
if (headerOverrideBuilder_ == null) {
return headerOverride_.get(index);
} else {
return headerOverrideBuilder_.getMessage(index);
}
}
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
public Builder setHeaderOverride(
int index, com.google.apphosting.executor.Queue.HttpTaskRunnerHeader value) {
if (headerOverrideBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHeaderOverrideIsMutable();
headerOverride_.set(index, value);
onChanged();
} else {
headerOverrideBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
public Builder setHeaderOverride(
int index, com.google.apphosting.executor.Queue.HttpTaskRunnerHeader.Builder builderForValue) {
if (headerOverrideBuilder_ == null) {
ensureHeaderOverrideIsMutable();
headerOverride_.set(index, builderForValue.build());
onChanged();
} else {
headerOverrideBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
public Builder addHeaderOverride(com.google.apphosting.executor.Queue.HttpTaskRunnerHeader value) {
if (headerOverrideBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHeaderOverrideIsMutable();
headerOverride_.add(value);
onChanged();
} else {
headerOverrideBuilder_.addMessage(value);
}
return this;
}
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
public Builder addHeaderOverride(
int index, com.google.apphosting.executor.Queue.HttpTaskRunnerHeader value) {
if (headerOverrideBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHeaderOverrideIsMutable();
headerOverride_.add(index, value);
onChanged();
} else {
headerOverrideBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
public Builder addHeaderOverride(
com.google.apphosting.executor.Queue.HttpTaskRunnerHeader.Builder builderForValue) {
if (headerOverrideBuilder_ == null) {
ensureHeaderOverrideIsMutable();
headerOverride_.add(builderForValue.build());
onChanged();
} else {
headerOverrideBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
public Builder addHeaderOverride(
int index, com.google.apphosting.executor.Queue.HttpTaskRunnerHeader.Builder builderForValue) {
if (headerOverrideBuilder_ == null) {
ensureHeaderOverrideIsMutable();
headerOverride_.add(index, builderForValue.build());
onChanged();
} else {
headerOverrideBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
public Builder addAllHeaderOverride(
java.lang.Iterable extends com.google.apphosting.executor.Queue.HttpTaskRunnerHeader> values) {
if (headerOverrideBuilder_ == null) {
ensureHeaderOverrideIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, headerOverride_);
onChanged();
} else {
headerOverrideBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
public Builder clearHeaderOverride() {
if (headerOverrideBuilder_ == null) {
headerOverride_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
headerOverrideBuilder_.clear();
}
return this;
}
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
public Builder removeHeaderOverride(int index) {
if (headerOverrideBuilder_ == null) {
ensureHeaderOverrideIsMutable();
headerOverride_.remove(index);
onChanged();
} else {
headerOverrideBuilder_.remove(index);
}
return this;
}
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
public com.google.apphosting.executor.Queue.HttpTaskRunnerHeader.Builder getHeaderOverrideBuilder(
int index) {
return getHeaderOverrideFieldBuilder().getBuilder(index);
}
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
public com.google.apphosting.executor.Queue.HttpTaskRunnerHeaderOrBuilder getHeaderOverrideOrBuilder(
int index) {
if (headerOverrideBuilder_ == null) {
return headerOverride_.get(index); } else {
return headerOverrideBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
public java.util.List extends com.google.apphosting.executor.Queue.HttpTaskRunnerHeaderOrBuilder>
getHeaderOverrideOrBuilderList() {
if (headerOverrideBuilder_ != null) {
return headerOverrideBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(headerOverride_);
}
}
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
public com.google.apphosting.executor.Queue.HttpTaskRunnerHeader.Builder addHeaderOverrideBuilder() {
return getHeaderOverrideFieldBuilder().addBuilder(
com.google.apphosting.executor.Queue.HttpTaskRunnerHeader.getDefaultInstance());
}
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
public com.google.apphosting.executor.Queue.HttpTaskRunnerHeader.Builder addHeaderOverrideBuilder(
int index) {
return getHeaderOverrideFieldBuilder().addBuilder(
index, com.google.apphosting.executor.Queue.HttpTaskRunnerHeader.getDefaultInstance());
}
/**
*
* A set of header overrides that are applied to all HttpTaskRunnerPayloads.
* NOTE: Overrides of X-Appengine-{Queue,Task}* headers will not be applied.
*
*
* repeated .java.apphosting.HttpTaskRunnerHeader header_override = 9;
*/
public java.util.List
getHeaderOverrideBuilderList() {
return getHeaderOverrideFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.executor.Queue.HttpTaskRunnerHeader, com.google.apphosting.executor.Queue.HttpTaskRunnerHeader.Builder, com.google.apphosting.executor.Queue.HttpTaskRunnerHeaderOrBuilder>
getHeaderOverrideFieldBuilder() {
if (headerOverrideBuilder_ == null) {
headerOverrideBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.executor.Queue.HttpTaskRunnerHeader, com.google.apphosting.executor.Queue.HttpTaskRunnerHeader.Builder, com.google.apphosting.executor.Queue.HttpTaskRunnerHeaderOrBuilder>(
headerOverride_,
((bitField0_ & 0x00000080) != 0),
getParentForChildren(),
isClean());
headerOverride_ = null;
}
return headerOverrideBuilder_;
}
private com.google.protobuf.ByteString acl_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Access Control. Executor stores but does not currently enforce the ACL.
* Should contain a serialized Acl.ACLProto whose definition we don't wish to
* leak into public code.
*
*
* optional bytes acl = 10 [ctype = CORD];
* @return Whether the acl field is set.
*/
@java.lang.Override
public boolean hasAcl() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Access Control. Executor stores but does not currently enforce the ACL.
* Should contain a serialized Acl.ACLProto whose definition we don't wish to
* leak into public code.
*
*
* optional bytes acl = 10 [ctype = CORD];
* @return The acl.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAcl() {
return acl_;
}
/**
*
* Access Control. Executor stores but does not currently enforce the ACL.
* Should contain a serialized Acl.ACLProto whose definition we don't wish to
* leak into public code.
*
*
* optional bytes acl = 10 [ctype = CORD];
* @param value The acl to set.
* @return This builder for chaining.
*/
public Builder setAcl(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
acl_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* Access Control. Executor stores but does not currently enforce the ACL.
* Should contain a serialized Acl.ACLProto whose definition we don't wish to
* leak into public code.
*
*
* optional bytes acl = 10 [ctype = CORD];
* @return This builder for chaining.
*/
public Builder clearAcl() {
bitField0_ = (bitField0_ & ~0x00000100);
acl_ = getDefaultInstance().getAcl();
onChanged();
return this;
}
private java.lang.Object creatorName_ = "apphosting";
/**
*
* The creator of this queue. Defaults to "apphosting" for queues created via
* App Engine's Task Queue Api.
*
*
* optional string creator_name = 11 [default = "apphosting", ctype = CORD];
* @return Whether the creatorName field is set.
*/
public boolean hasCreatorName() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* The creator of this queue. Defaults to "apphosting" for queues created via
* App Engine's Task Queue Api.
*
*
* optional string creator_name = 11 [default = "apphosting", ctype = CORD];
* @return The creatorName.
*/
public java.lang.String getCreatorName() {
java.lang.Object ref = creatorName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
creatorName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The creator of this queue. Defaults to "apphosting" for queues created via
* App Engine's Task Queue Api.
*
*
* optional string creator_name = 11 [default = "apphosting", ctype = CORD];
* @return The bytes for creatorName.
*/
public com.google.protobuf.ByteString
getCreatorNameBytes() {
java.lang.Object ref = creatorName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
creatorName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The creator of this queue. Defaults to "apphosting" for queues created via
* App Engine's Task Queue Api.
*
*
* optional string creator_name = 11 [default = "apphosting", ctype = CORD];
* @param value The creatorName to set.
* @return This builder for chaining.
*/
public Builder setCreatorName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
creatorName_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* The creator of this queue. Defaults to "apphosting" for queues created via
* App Engine's Task Queue Api.
*
*
* optional string creator_name = 11 [default = "apphosting", ctype = CORD];
* @return This builder for chaining.
*/
public Builder clearCreatorName() {
creatorName_ = getDefaultInstance().getCreatorName();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
*
* The creator of this queue. Defaults to "apphosting" for queues created via
* App Engine's Task Queue Api.
*
*
* optional string creator_name = 11 [default = "apphosting", ctype = CORD];
* @param value The bytes for creatorName to set.
* @return This builder for chaining.
*/
public Builder setCreatorNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
creatorName_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
private int numReadShards_ = 1;
/**
*
* Sets the sharding factors for a queue's index tables. The invariant
* that num_read_shards >= num_write_shards must be respected.
*
*
* optional uint32 num_read_shards = 12 [default = 1];
* @return Whether the numReadShards field is set.
*/
@java.lang.Override
public boolean hasNumReadShards() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* Sets the sharding factors for a queue's index tables. The invariant
* that num_read_shards >= num_write_shards must be respected.
*
*
* optional uint32 num_read_shards = 12 [default = 1];
* @return The numReadShards.
*/
@java.lang.Override
public int getNumReadShards() {
return numReadShards_;
}
/**
*
* Sets the sharding factors for a queue's index tables. The invariant
* that num_read_shards >= num_write_shards must be respected.
*
*
* optional uint32 num_read_shards = 12 [default = 1];
* @param value The numReadShards to set.
* @return This builder for chaining.
*/
public Builder setNumReadShards(int value) {
numReadShards_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
* Sets the sharding factors for a queue's index tables. The invariant
* that num_read_shards >= num_write_shards must be respected.
*
*
* optional uint32 num_read_shards = 12 [default = 1];
* @return This builder for chaining.
*/
public Builder clearNumReadShards() {
bitField0_ = (bitField0_ & ~0x00000400);
numReadShards_ = 1;
onChanged();
return this;
}
private int numWriteShards_ = 1;
/**
* optional uint32 num_write_shards = 13 [default = 1];
* @return Whether the numWriteShards field is set.
*/
@java.lang.Override
public boolean hasNumWriteShards() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional uint32 num_write_shards = 13 [default = 1];
* @return The numWriteShards.
*/
@java.lang.Override
public int getNumWriteShards() {
return numWriteShards_;
}
/**
* optional uint32 num_write_shards = 13 [default = 1];
* @param value The numWriteShards to set.
* @return This builder for chaining.
*/
public Builder setNumWriteShards(int value) {
numWriteShards_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* optional uint32 num_write_shards = 13 [default = 1];
* @return This builder for chaining.
*/
public Builder clearNumWriteShards() {
bitField0_ = (bitField0_ & ~0x00000800);
numWriteShards_ = 1;
onChanged();
return this;
}
private long lastHeartbeatUsec_ ;
/**
*
* Periodically updated to indicate if a queue is still active.
*
*
* optional int64 last_heartbeat_usec = 14;
* @return Whether the lastHeartbeatUsec field is set.
*/
@java.lang.Override
public boolean hasLastHeartbeatUsec() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
* Periodically updated to indicate if a queue is still active.
*
*
* optional int64 last_heartbeat_usec = 14;
* @return The lastHeartbeatUsec.
*/
@java.lang.Override
public long getLastHeartbeatUsec() {
return lastHeartbeatUsec_;
}
/**
*
* Periodically updated to indicate if a queue is still active.
*
*
* optional int64 last_heartbeat_usec = 14;
* @param value The lastHeartbeatUsec to set.
* @return This builder for chaining.
*/
public Builder setLastHeartbeatUsec(long value) {
lastHeartbeatUsec_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
* Periodically updated to indicate if a queue is still active.
*
*
* optional int64 last_heartbeat_usec = 14;
* @return This builder for chaining.
*/
public Builder clearLastHeartbeatUsec() {
bitField0_ = (bitField0_ & ~0x00001000);
lastHeartbeatUsec_ = 0L;
onChanged();
return this;
}
private long queueTaskCountCheckpoint_ ;
/**
*
* Periodically updated with a count of the alive tasks on the queue. The
* value is not updated on the queue but filled in by the Store similar to the
* implementation of last_heartbeat_used.
*
*
* optional int64 queue_task_count_checkpoint = 15 [default = 0];
* @return Whether the queueTaskCountCheckpoint field is set.
*/
@java.lang.Override
public boolean hasQueueTaskCountCheckpoint() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
* Periodically updated with a count of the alive tasks on the queue. The
* value is not updated on the queue but filled in by the Store similar to the
* implementation of last_heartbeat_used.
*
*
* optional int64 queue_task_count_checkpoint = 15 [default = 0];
* @return The queueTaskCountCheckpoint.
*/
@java.lang.Override
public long getQueueTaskCountCheckpoint() {
return queueTaskCountCheckpoint_;
}
/**
*
* Periodically updated with a count of the alive tasks on the queue. The
* value is not updated on the queue but filled in by the Store similar to the
* implementation of last_heartbeat_used.
*
*
* optional int64 queue_task_count_checkpoint = 15 [default = 0];
* @param value The queueTaskCountCheckpoint to set.
* @return This builder for chaining.
*/
public Builder setQueueTaskCountCheckpoint(long value) {
queueTaskCountCheckpoint_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
* Periodically updated with a count of the alive tasks on the queue. The
* value is not updated on the queue but filled in by the Store similar to the
* implementation of last_heartbeat_used.
*
*
* optional int64 queue_task_count_checkpoint = 15 [default = 0];
* @return This builder for chaining.
*/
public Builder clearQueueTaskCountCheckpoint() {
bitField0_ = (bitField0_ & ~0x00002000);
queueTaskCountCheckpoint_ = 0L;
onChanged();
return this;
}
private com.google.apphosting.executor.Queue.PubsubQueueDefinition pubsubQueueDef_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.PubsubQueueDefinition, com.google.apphosting.executor.Queue.PubsubQueueDefinition.Builder, com.google.apphosting.executor.Queue.PubsubQueueDefinitionOrBuilder> pubsubQueueDefBuilder_;
/**
*
* Can only be specified for PUSH queues. And if specified, the queue will
* only accept pubsub tasks.
*
*
* optional .java.apphosting.PubsubQueueDefinition pubsub_queue_def = 16;
* @return Whether the pubsubQueueDef field is set.
*/
public boolean hasPubsubQueueDef() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
*
* Can only be specified for PUSH queues. And if specified, the queue will
* only accept pubsub tasks.
*
*
* optional .java.apphosting.PubsubQueueDefinition pubsub_queue_def = 16;
* @return The pubsubQueueDef.
*/
public com.google.apphosting.executor.Queue.PubsubQueueDefinition getPubsubQueueDef() {
if (pubsubQueueDefBuilder_ == null) {
return pubsubQueueDef_ == null ? com.google.apphosting.executor.Queue.PubsubQueueDefinition.getDefaultInstance() : pubsubQueueDef_;
} else {
return pubsubQueueDefBuilder_.getMessage();
}
}
/**
*
* Can only be specified for PUSH queues. And if specified, the queue will
* only accept pubsub tasks.
*
*
* optional .java.apphosting.PubsubQueueDefinition pubsub_queue_def = 16;
*/
public Builder setPubsubQueueDef(com.google.apphosting.executor.Queue.PubsubQueueDefinition value) {
if (pubsubQueueDefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pubsubQueueDef_ = value;
} else {
pubsubQueueDefBuilder_.setMessage(value);
}
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
* Can only be specified for PUSH queues. And if specified, the queue will
* only accept pubsub tasks.
*
*
* optional .java.apphosting.PubsubQueueDefinition pubsub_queue_def = 16;
*/
public Builder setPubsubQueueDef(
com.google.apphosting.executor.Queue.PubsubQueueDefinition.Builder builderForValue) {
if (pubsubQueueDefBuilder_ == null) {
pubsubQueueDef_ = builderForValue.build();
} else {
pubsubQueueDefBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
* Can only be specified for PUSH queues. And if specified, the queue will
* only accept pubsub tasks.
*
*
* optional .java.apphosting.PubsubQueueDefinition pubsub_queue_def = 16;
*/
public Builder mergePubsubQueueDef(com.google.apphosting.executor.Queue.PubsubQueueDefinition value) {
if (pubsubQueueDefBuilder_ == null) {
if (((bitField0_ & 0x00004000) != 0) &&
pubsubQueueDef_ != null &&
pubsubQueueDef_ != com.google.apphosting.executor.Queue.PubsubQueueDefinition.getDefaultInstance()) {
getPubsubQueueDefBuilder().mergeFrom(value);
} else {
pubsubQueueDef_ = value;
}
} else {
pubsubQueueDefBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
* Can only be specified for PUSH queues. And if specified, the queue will
* only accept pubsub tasks.
*
*
* optional .java.apphosting.PubsubQueueDefinition pubsub_queue_def = 16;
*/
public Builder clearPubsubQueueDef() {
bitField0_ = (bitField0_ & ~0x00004000);
pubsubQueueDef_ = null;
if (pubsubQueueDefBuilder_ != null) {
pubsubQueueDefBuilder_.dispose();
pubsubQueueDefBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Can only be specified for PUSH queues. And if specified, the queue will
* only accept pubsub tasks.
*
*
* optional .java.apphosting.PubsubQueueDefinition pubsub_queue_def = 16;
*/
public com.google.apphosting.executor.Queue.PubsubQueueDefinition.Builder getPubsubQueueDefBuilder() {
bitField0_ |= 0x00004000;
onChanged();
return getPubsubQueueDefFieldBuilder().getBuilder();
}
/**
*
* Can only be specified for PUSH queues. And if specified, the queue will
* only accept pubsub tasks.
*
*
* optional .java.apphosting.PubsubQueueDefinition pubsub_queue_def = 16;
*/
public com.google.apphosting.executor.Queue.PubsubQueueDefinitionOrBuilder getPubsubQueueDefOrBuilder() {
if (pubsubQueueDefBuilder_ != null) {
return pubsubQueueDefBuilder_.getMessageOrBuilder();
} else {
return pubsubQueueDef_ == null ?
com.google.apphosting.executor.Queue.PubsubQueueDefinition.getDefaultInstance() : pubsubQueueDef_;
}
}
/**
*
* Can only be specified for PUSH queues. And if specified, the queue will
* only accept pubsub tasks.
*
*
* optional .java.apphosting.PubsubQueueDefinition pubsub_queue_def = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.PubsubQueueDefinition, com.google.apphosting.executor.Queue.PubsubQueueDefinition.Builder, com.google.apphosting.executor.Queue.PubsubQueueDefinitionOrBuilder>
getPubsubQueueDefFieldBuilder() {
if (pubsubQueueDefBuilder_ == null) {
pubsubQueueDefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.PubsubQueueDefinition, com.google.apphosting.executor.Queue.PubsubQueueDefinition.Builder, com.google.apphosting.executor.Queue.PubsubQueueDefinitionOrBuilder>(
getPubsubQueueDef(),
getParentForChildren(),
isClean());
pubsubQueueDef_ = null;
}
return pubsubQueueDefBuilder_;
}
private boolean enableCloudLogging_ ;
/**
*
* If true, Cloud Logging is enabled for this queue.
* No longer in use. Use log_sampling_fraction.
*
*
* optional bool enable_cloud_logging = 17 [default = false, deprecated = true];
* @deprecated java.apphosting.QueueDefinition.enable_cloud_logging is deprecated.
* See queue.proto;l=273
* @return Whether the enableCloudLogging field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasEnableCloudLogging() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
*
* If true, Cloud Logging is enabled for this queue.
* No longer in use. Use log_sampling_fraction.
*
*
* optional bool enable_cloud_logging = 17 [default = false, deprecated = true];
* @deprecated java.apphosting.QueueDefinition.enable_cloud_logging is deprecated.
* See queue.proto;l=273
* @return The enableCloudLogging.
*/
@java.lang.Override
@java.lang.Deprecated public boolean getEnableCloudLogging() {
return enableCloudLogging_;
}
/**
*
* If true, Cloud Logging is enabled for this queue.
* No longer in use. Use log_sampling_fraction.
*
*
* optional bool enable_cloud_logging = 17 [default = false, deprecated = true];
* @deprecated java.apphosting.QueueDefinition.enable_cloud_logging is deprecated.
* See queue.proto;l=273
* @param value The enableCloudLogging to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setEnableCloudLogging(boolean value) {
enableCloudLogging_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
* If true, Cloud Logging is enabled for this queue.
* No longer in use. Use log_sampling_fraction.
*
*
* optional bool enable_cloud_logging = 17 [default = false, deprecated = true];
* @deprecated java.apphosting.QueueDefinition.enable_cloud_logging is deprecated.
* See queue.proto;l=273
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearEnableCloudLogging() {
bitField0_ = (bitField0_ & ~0x00008000);
enableCloudLogging_ = false;
onChanged();
return this;
}
private long allocatedCapacity_ ;
/**
*
* The allocated rate capacity for this queue.
*
*
* optional int64 allocated_capacity = 18 [default = 0];
* @return Whether the allocatedCapacity field is set.
*/
@java.lang.Override
public boolean hasAllocatedCapacity() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
*
* The allocated rate capacity for this queue.
*
*
* optional int64 allocated_capacity = 18 [default = 0];
* @return The allocatedCapacity.
*/
@java.lang.Override
public long getAllocatedCapacity() {
return allocatedCapacity_;
}
/**
*
* The allocated rate capacity for this queue.
*
*
* optional int64 allocated_capacity = 18 [default = 0];
* @param value The allocatedCapacity to set.
* @return This builder for chaining.
*/
public Builder setAllocatedCapacity(long value) {
allocatedCapacity_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
*
* The allocated rate capacity for this queue.
*
*
* optional int64 allocated_capacity = 18 [default = 0];
* @return This builder for chaining.
*/
public Builder clearAllocatedCapacity() {
bitField0_ = (bitField0_ & ~0x00010000);
allocatedCapacity_ = 0L;
onChanged();
return this;
}
private long maximumAliveLifetimeUsec_ ;
/**
*
* The amount of time a task is allowed to live until it's garbage collected.
* If this amount of time passes after the task's creation it is deleted,
* regardless of the state the task is in.
*
*
* optional int64 maximum_alive_lifetime_usec = 19;
* @return Whether the maximumAliveLifetimeUsec field is set.
*/
@java.lang.Override
public boolean hasMaximumAliveLifetimeUsec() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
*
* The amount of time a task is allowed to live until it's garbage collected.
* If this amount of time passes after the task's creation it is deleted,
* regardless of the state the task is in.
*
*
* optional int64 maximum_alive_lifetime_usec = 19;
* @return The maximumAliveLifetimeUsec.
*/
@java.lang.Override
public long getMaximumAliveLifetimeUsec() {
return maximumAliveLifetimeUsec_;
}
/**
*
* The amount of time a task is allowed to live until it's garbage collected.
* If this amount of time passes after the task's creation it is deleted,
* regardless of the state the task is in.
*
*
* optional int64 maximum_alive_lifetime_usec = 19;
* @param value The maximumAliveLifetimeUsec to set.
* @return This builder for chaining.
*/
public Builder setMaximumAliveLifetimeUsec(long value) {
maximumAliveLifetimeUsec_ = value;
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
*
* The amount of time a task is allowed to live until it's garbage collected.
* If this amount of time passes after the task's creation it is deleted,
* regardless of the state the task is in.
*
*
* optional int64 maximum_alive_lifetime_usec = 19;
* @return This builder for chaining.
*/
public Builder clearMaximumAliveLifetimeUsec() {
bitField0_ = (bitField0_ & ~0x00020000);
maximumAliveLifetimeUsec_ = 0L;
onChanged();
return this;
}
private long maximumTombstoneLifetimeUsec_ ;
/**
*
* The amount of time a task is allowed to be in a tombstoned states until
* it's garbage collected.
*
*
* optional int64 maximum_tombstone_lifetime_usec = 20;
* @return Whether the maximumTombstoneLifetimeUsec field is set.
*/
@java.lang.Override
public boolean hasMaximumTombstoneLifetimeUsec() {
return ((bitField0_ & 0x00040000) != 0);
}
/**
*
* The amount of time a task is allowed to be in a tombstoned states until
* it's garbage collected.
*
*
* optional int64 maximum_tombstone_lifetime_usec = 20;
* @return The maximumTombstoneLifetimeUsec.
*/
@java.lang.Override
public long getMaximumTombstoneLifetimeUsec() {
return maximumTombstoneLifetimeUsec_;
}
/**
*
* The amount of time a task is allowed to be in a tombstoned states until
* it's garbage collected.
*
*
* optional int64 maximum_tombstone_lifetime_usec = 20;
* @param value The maximumTombstoneLifetimeUsec to set.
* @return This builder for chaining.
*/
public Builder setMaximumTombstoneLifetimeUsec(long value) {
maximumTombstoneLifetimeUsec_ = value;
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
*
* The amount of time a task is allowed to be in a tombstoned states until
* it's garbage collected.
*
*
* optional int64 maximum_tombstone_lifetime_usec = 20;
* @return This builder for chaining.
*/
public Builder clearMaximumTombstoneLifetimeUsec() {
bitField0_ = (bitField0_ & ~0x00040000);
maximumTombstoneLifetimeUsec_ = 0L;
onChanged();
return this;
}
private com.google.apphosting.executor.Queue.QueueAllocation queueAllocation_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueAllocation, com.google.apphosting.executor.Queue.QueueAllocation.Builder, com.google.apphosting.executor.Queue.QueueAllocationOrBuilder> queueAllocationBuilder_;
/**
*
* Metadata regarding this queue's allocation.
*
*
* optional .java.apphosting.QueueAllocation queue_allocation = 21;
* @return Whether the queueAllocation field is set.
*/
public boolean hasQueueAllocation() {
return ((bitField0_ & 0x00080000) != 0);
}
/**
*
* Metadata regarding this queue's allocation.
*
*
* optional .java.apphosting.QueueAllocation queue_allocation = 21;
* @return The queueAllocation.
*/
public com.google.apphosting.executor.Queue.QueueAllocation getQueueAllocation() {
if (queueAllocationBuilder_ == null) {
return queueAllocation_ == null ? com.google.apphosting.executor.Queue.QueueAllocation.getDefaultInstance() : queueAllocation_;
} else {
return queueAllocationBuilder_.getMessage();
}
}
/**
*
* Metadata regarding this queue's allocation.
*
*
* optional .java.apphosting.QueueAllocation queue_allocation = 21;
*/
public Builder setQueueAllocation(com.google.apphosting.executor.Queue.QueueAllocation value) {
if (queueAllocationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queueAllocation_ = value;
} else {
queueAllocationBuilder_.setMessage(value);
}
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
*
* Metadata regarding this queue's allocation.
*
*
* optional .java.apphosting.QueueAllocation queue_allocation = 21;
*/
public Builder setQueueAllocation(
com.google.apphosting.executor.Queue.QueueAllocation.Builder builderForValue) {
if (queueAllocationBuilder_ == null) {
queueAllocation_ = builderForValue.build();
} else {
queueAllocationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
*
* Metadata regarding this queue's allocation.
*
*
* optional .java.apphosting.QueueAllocation queue_allocation = 21;
*/
public Builder mergeQueueAllocation(com.google.apphosting.executor.Queue.QueueAllocation value) {
if (queueAllocationBuilder_ == null) {
if (((bitField0_ & 0x00080000) != 0) &&
queueAllocation_ != null &&
queueAllocation_ != com.google.apphosting.executor.Queue.QueueAllocation.getDefaultInstance()) {
getQueueAllocationBuilder().mergeFrom(value);
} else {
queueAllocation_ = value;
}
} else {
queueAllocationBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
*
* Metadata regarding this queue's allocation.
*
*
* optional .java.apphosting.QueueAllocation queue_allocation = 21;
*/
public Builder clearQueueAllocation() {
bitField0_ = (bitField0_ & ~0x00080000);
queueAllocation_ = null;
if (queueAllocationBuilder_ != null) {
queueAllocationBuilder_.dispose();
queueAllocationBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Metadata regarding this queue's allocation.
*
*
* optional .java.apphosting.QueueAllocation queue_allocation = 21;
*/
public com.google.apphosting.executor.Queue.QueueAllocation.Builder getQueueAllocationBuilder() {
bitField0_ |= 0x00080000;
onChanged();
return getQueueAllocationFieldBuilder().getBuilder();
}
/**
*
* Metadata regarding this queue's allocation.
*
*
* optional .java.apphosting.QueueAllocation queue_allocation = 21;
*/
public com.google.apphosting.executor.Queue.QueueAllocationOrBuilder getQueueAllocationOrBuilder() {
if (queueAllocationBuilder_ != null) {
return queueAllocationBuilder_.getMessageOrBuilder();
} else {
return queueAllocation_ == null ?
com.google.apphosting.executor.Queue.QueueAllocation.getDefaultInstance() : queueAllocation_;
}
}
/**
*
* Metadata regarding this queue's allocation.
*
*
* optional .java.apphosting.QueueAllocation queue_allocation = 21;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueAllocation, com.google.apphosting.executor.Queue.QueueAllocation.Builder, com.google.apphosting.executor.Queue.QueueAllocationOrBuilder>
getQueueAllocationFieldBuilder() {
if (queueAllocationBuilder_ == null) {
queueAllocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueAllocation, com.google.apphosting.executor.Queue.QueueAllocation.Builder, com.google.apphosting.executor.Queue.QueueAllocationOrBuilder>(
getQueueAllocation(),
getParentForChildren(),
isClean());
queueAllocation_ = null;
}
return queueAllocationBuilder_;
}
private double logSamplingRatio_ ;
/**
*
* The fraction of operations to log. This field is now superceeded by
* stackdriver_logging_config.
*
*
* optional double log_sampling_ratio = 22 [deprecated = true];
* @deprecated java.apphosting.QueueDefinition.log_sampling_ratio is deprecated.
* See queue.proto;l=292
* @return Whether the logSamplingRatio field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasLogSamplingRatio() {
return ((bitField0_ & 0x00100000) != 0);
}
/**
*
* The fraction of operations to log. This field is now superceeded by
* stackdriver_logging_config.
*
*
* optional double log_sampling_ratio = 22 [deprecated = true];
* @deprecated java.apphosting.QueueDefinition.log_sampling_ratio is deprecated.
* See queue.proto;l=292
* @return The logSamplingRatio.
*/
@java.lang.Override
@java.lang.Deprecated public double getLogSamplingRatio() {
return logSamplingRatio_;
}
/**
*
* The fraction of operations to log. This field is now superceeded by
* stackdriver_logging_config.
*
*
* optional double log_sampling_ratio = 22 [deprecated = true];
* @deprecated java.apphosting.QueueDefinition.log_sampling_ratio is deprecated.
* See queue.proto;l=292
* @param value The logSamplingRatio to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setLogSamplingRatio(double value) {
logSamplingRatio_ = value;
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
* The fraction of operations to log. This field is now superceeded by
* stackdriver_logging_config.
*
*
* optional double log_sampling_ratio = 22 [deprecated = true];
* @deprecated java.apphosting.QueueDefinition.log_sampling_ratio is deprecated.
* See queue.proto;l=292
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearLogSamplingRatio() {
bitField0_ = (bitField0_ & ~0x00100000);
logSamplingRatio_ = 0D;
onChanged();
return this;
}
private com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration stackdriverLoggingConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration, com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration.Builder, com.google.apphosting.executor.Queue.StackdriverLoggingConfigurationOrBuilder> stackdriverLoggingConfigBuilder_;
/**
*
* Cloud logging configuration.
*
*
* optional .java.apphosting.StackdriverLoggingConfiguration stackdriver_logging_config = 23;
* @return Whether the stackdriverLoggingConfig field is set.
*/
public boolean hasStackdriverLoggingConfig() {
return ((bitField0_ & 0x00200000) != 0);
}
/**
*
* Cloud logging configuration.
*
*
* optional .java.apphosting.StackdriverLoggingConfiguration stackdriver_logging_config = 23;
* @return The stackdriverLoggingConfig.
*/
public com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration getStackdriverLoggingConfig() {
if (stackdriverLoggingConfigBuilder_ == null) {
return stackdriverLoggingConfig_ == null ? com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration.getDefaultInstance() : stackdriverLoggingConfig_;
} else {
return stackdriverLoggingConfigBuilder_.getMessage();
}
}
/**
*
* Cloud logging configuration.
*
*
* optional .java.apphosting.StackdriverLoggingConfiguration stackdriver_logging_config = 23;
*/
public Builder setStackdriverLoggingConfig(com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration value) {
if (stackdriverLoggingConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stackdriverLoggingConfig_ = value;
} else {
stackdriverLoggingConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00200000;
onChanged();
return this;
}
/**
*
* Cloud logging configuration.
*
*
* optional .java.apphosting.StackdriverLoggingConfiguration stackdriver_logging_config = 23;
*/
public Builder setStackdriverLoggingConfig(
com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration.Builder builderForValue) {
if (stackdriverLoggingConfigBuilder_ == null) {
stackdriverLoggingConfig_ = builderForValue.build();
} else {
stackdriverLoggingConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00200000;
onChanged();
return this;
}
/**
*
* Cloud logging configuration.
*
*
* optional .java.apphosting.StackdriverLoggingConfiguration stackdriver_logging_config = 23;
*/
public Builder mergeStackdriverLoggingConfig(com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration value) {
if (stackdriverLoggingConfigBuilder_ == null) {
if (((bitField0_ & 0x00200000) != 0) &&
stackdriverLoggingConfig_ != null &&
stackdriverLoggingConfig_ != com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration.getDefaultInstance()) {
getStackdriverLoggingConfigBuilder().mergeFrom(value);
} else {
stackdriverLoggingConfig_ = value;
}
} else {
stackdriverLoggingConfigBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00200000;
onChanged();
return this;
}
/**
*
* Cloud logging configuration.
*
*
* optional .java.apphosting.StackdriverLoggingConfiguration stackdriver_logging_config = 23;
*/
public Builder clearStackdriverLoggingConfig() {
bitField0_ = (bitField0_ & ~0x00200000);
stackdriverLoggingConfig_ = null;
if (stackdriverLoggingConfigBuilder_ != null) {
stackdriverLoggingConfigBuilder_.dispose();
stackdriverLoggingConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Cloud logging configuration.
*
*
* optional .java.apphosting.StackdriverLoggingConfiguration stackdriver_logging_config = 23;
*/
public com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration.Builder getStackdriverLoggingConfigBuilder() {
bitField0_ |= 0x00200000;
onChanged();
return getStackdriverLoggingConfigFieldBuilder().getBuilder();
}
/**
*
* Cloud logging configuration.
*
*
* optional .java.apphosting.StackdriverLoggingConfiguration stackdriver_logging_config = 23;
*/
public com.google.apphosting.executor.Queue.StackdriverLoggingConfigurationOrBuilder getStackdriverLoggingConfigOrBuilder() {
if (stackdriverLoggingConfigBuilder_ != null) {
return stackdriverLoggingConfigBuilder_.getMessageOrBuilder();
} else {
return stackdriverLoggingConfig_ == null ?
com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration.getDefaultInstance() : stackdriverLoggingConfig_;
}
}
/**
*
* Cloud logging configuration.
*
*
* optional .java.apphosting.StackdriverLoggingConfiguration stackdriver_logging_config = 23;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration, com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration.Builder, com.google.apphosting.executor.Queue.StackdriverLoggingConfigurationOrBuilder>
getStackdriverLoggingConfigFieldBuilder() {
if (stackdriverLoggingConfigBuilder_ == null) {
stackdriverLoggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration, com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration.Builder, com.google.apphosting.executor.Queue.StackdriverLoggingConfigurationOrBuilder>(
getStackdriverLoggingConfig(),
getParentForChildren(),
isClean());
stackdriverLoggingConfig_ = null;
}
return stackdriverLoggingConfigBuilder_;
}
private int executionMode_ = 0;
/**
* optional .java.apphosting.QueueDefinition.ExecutionMode execution_mode = 24 [deprecated = true];
* @deprecated java.apphosting.QueueDefinition.execution_mode is deprecated.
* See queue.proto;l=305
* @return Whether the executionMode field is set.
*/
@java.lang.Override @java.lang.Deprecated public boolean hasExecutionMode() {
return ((bitField0_ & 0x00400000) != 0);
}
/**
* optional .java.apphosting.QueueDefinition.ExecutionMode execution_mode = 24 [deprecated = true];
* @deprecated java.apphosting.QueueDefinition.execution_mode is deprecated.
* See queue.proto;l=305
* @return The executionMode.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.apphosting.executor.Queue.QueueDefinition.ExecutionMode getExecutionMode() {
com.google.apphosting.executor.Queue.QueueDefinition.ExecutionMode result = com.google.apphosting.executor.Queue.QueueDefinition.ExecutionMode.forNumber(executionMode_);
return result == null ? com.google.apphosting.executor.Queue.QueueDefinition.ExecutionMode.EXECUTION_MODE_UNSPECIFIED : result;
}
/**
* optional .java.apphosting.QueueDefinition.ExecutionMode execution_mode = 24 [deprecated = true];
* @deprecated java.apphosting.QueueDefinition.execution_mode is deprecated.
* See queue.proto;l=305
* @param value The executionMode to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setExecutionMode(com.google.apphosting.executor.Queue.QueueDefinition.ExecutionMode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00400000;
executionMode_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .java.apphosting.QueueDefinition.ExecutionMode execution_mode = 24 [deprecated = true];
* @deprecated java.apphosting.QueueDefinition.execution_mode is deprecated.
* See queue.proto;l=305
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearExecutionMode() {
bitField0_ = (bitField0_ & ~0x00400000);
executionMode_ = 0;
onChanged();
return this;
}
private com.google.apphosting.executor.Queue.TargetOverride targetOverride_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.TargetOverride, com.google.apphosting.executor.Queue.TargetOverride.Builder, com.google.apphosting.executor.Queue.TargetOverrideOrBuilder> targetOverrideBuilder_;
/**
*
* Target overrides on this queue. When specified, all the tasks in this queue
* will be executed according to this target.
*
*
* optional .java.apphosting.TargetOverride target_override = 25;
* @return Whether the targetOverride field is set.
*/
public boolean hasTargetOverride() {
return ((bitField0_ & 0x00800000) != 0);
}
/**
*
* Target overrides on this queue. When specified, all the tasks in this queue
* will be executed according to this target.
*
*
* optional .java.apphosting.TargetOverride target_override = 25;
* @return The targetOverride.
*/
public com.google.apphosting.executor.Queue.TargetOverride getTargetOverride() {
if (targetOverrideBuilder_ == null) {
return targetOverride_ == null ? com.google.apphosting.executor.Queue.TargetOverride.getDefaultInstance() : targetOverride_;
} else {
return targetOverrideBuilder_.getMessage();
}
}
/**
*
* Target overrides on this queue. When specified, all the tasks in this queue
* will be executed according to this target.
*
*
* optional .java.apphosting.TargetOverride target_override = 25;
*/
public Builder setTargetOverride(com.google.apphosting.executor.Queue.TargetOverride value) {
if (targetOverrideBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
targetOverride_ = value;
} else {
targetOverrideBuilder_.setMessage(value);
}
bitField0_ |= 0x00800000;
onChanged();
return this;
}
/**
*
* Target overrides on this queue. When specified, all the tasks in this queue
* will be executed according to this target.
*
*
* optional .java.apphosting.TargetOverride target_override = 25;
*/
public Builder setTargetOverride(
com.google.apphosting.executor.Queue.TargetOverride.Builder builderForValue) {
if (targetOverrideBuilder_ == null) {
targetOverride_ = builderForValue.build();
} else {
targetOverrideBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00800000;
onChanged();
return this;
}
/**
*
* Target overrides on this queue. When specified, all the tasks in this queue
* will be executed according to this target.
*
*
* optional .java.apphosting.TargetOverride target_override = 25;
*/
public Builder mergeTargetOverride(com.google.apphosting.executor.Queue.TargetOverride value) {
if (targetOverrideBuilder_ == null) {
if (((bitField0_ & 0x00800000) != 0) &&
targetOverride_ != null &&
targetOverride_ != com.google.apphosting.executor.Queue.TargetOverride.getDefaultInstance()) {
getTargetOverrideBuilder().mergeFrom(value);
} else {
targetOverride_ = value;
}
} else {
targetOverrideBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00800000;
onChanged();
return this;
}
/**
*
* Target overrides on this queue. When specified, all the tasks in this queue
* will be executed according to this target.
*
*
* optional .java.apphosting.TargetOverride target_override = 25;
*/
public Builder clearTargetOverride() {
bitField0_ = (bitField0_ & ~0x00800000);
targetOverride_ = null;
if (targetOverrideBuilder_ != null) {
targetOverrideBuilder_.dispose();
targetOverrideBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Target overrides on this queue. When specified, all the tasks in this queue
* will be executed according to this target.
*
*
* optional .java.apphosting.TargetOverride target_override = 25;
*/
public com.google.apphosting.executor.Queue.TargetOverride.Builder getTargetOverrideBuilder() {
bitField0_ |= 0x00800000;
onChanged();
return getTargetOverrideFieldBuilder().getBuilder();
}
/**
*
* Target overrides on this queue. When specified, all the tasks in this queue
* will be executed according to this target.
*
*
* optional .java.apphosting.TargetOverride target_override = 25;
*/
public com.google.apphosting.executor.Queue.TargetOverrideOrBuilder getTargetOverrideOrBuilder() {
if (targetOverrideBuilder_ != null) {
return targetOverrideBuilder_.getMessageOrBuilder();
} else {
return targetOverride_ == null ?
com.google.apphosting.executor.Queue.TargetOverride.getDefaultInstance() : targetOverride_;
}
}
/**
*
* Target overrides on this queue. When specified, all the tasks in this queue
* will be executed according to this target.
*
*
* optional .java.apphosting.TargetOverride target_override = 25;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.TargetOverride, com.google.apphosting.executor.Queue.TargetOverride.Builder, com.google.apphosting.executor.Queue.TargetOverrideOrBuilder>
getTargetOverrideFieldBuilder() {
if (targetOverrideBuilder_ == null) {
targetOverrideBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.TargetOverride, com.google.apphosting.executor.Queue.TargetOverride.Builder, com.google.apphosting.executor.Queue.TargetOverrideOrBuilder>(
getTargetOverride(),
getParentForChildren(),
isClean());
targetOverride_ = null;
}
return targetOverrideBuilder_;
}
@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.QueueDefinition)
}
// @@protoc_insertion_point(class_scope:java.apphosting.QueueDefinition)
private static final com.google.apphosting.executor.Queue.QueueDefinition DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.executor.Queue.QueueDefinition();
}
public static com.google.apphosting.executor.Queue.QueueDefinition getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueueDefinition 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.apphosting.executor.Queue.QueueDefinition getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PubsubQueueDefinitionOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.PubsubQueueDefinition)
com.google.protobuf.MessageOrBuilder {
/**
*
* The pubsub topic name that this queue is allowed to post to.
* NOTE: If this topic is changed on an existing queue using UpdateQueue(),
* previously added tasks (that haven't yet run) will publish to this new
* topic.
*
*
* optional string topic_name = 1;
* @return Whether the topicName field is set.
*/
boolean hasTopicName();
/**
*
* The pubsub topic name that this queue is allowed to post to.
* NOTE: If this topic is changed on an existing queue using UpdateQueue(),
* previously added tasks (that haven't yet run) will publish to this new
* topic.
*
*
* optional string topic_name = 1;
* @return The topicName.
*/
java.lang.String getTopicName();
/**
*
* The pubsub topic name that this queue is allowed to post to.
* NOTE: If this topic is changed on an existing queue using UpdateQueue(),
* previously added tasks (that haven't yet run) will publish to this new
* topic.
*
*
* optional string topic_name = 1;
* @return The bytes for topicName.
*/
com.google.protobuf.ByteString
getTopicNameBytes();
}
/**
*
* Pubsub specific parameters for a push queue
*
*
* Protobuf type {@code java.apphosting.PubsubQueueDefinition}
*/
public static final class PubsubQueueDefinition extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.PubsubQueueDefinition)
PubsubQueueDefinitionOrBuilder {
private static final long serialVersionUID = 0L;
// Use PubsubQueueDefinition.newBuilder() to construct.
private PubsubQueueDefinition(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PubsubQueueDefinition() {
topicName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PubsubQueueDefinition();
}
@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.apphosting.executor.Queue.internal_static_java_apphosting_PubsubQueueDefinition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_PubsubQueueDefinition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.PubsubQueueDefinition.class, com.google.apphosting.executor.Queue.PubsubQueueDefinition.Builder.class);
}
private int bitField0_;
public static final int TOPIC_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object topicName_ = "";
/**
*
* The pubsub topic name that this queue is allowed to post to.
* NOTE: If this topic is changed on an existing queue using UpdateQueue(),
* previously added tasks (that haven't yet run) will publish to this new
* topic.
*
*
* optional string topic_name = 1;
* @return Whether the topicName field is set.
*/
@java.lang.Override
public boolean hasTopicName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The pubsub topic name that this queue is allowed to post to.
* NOTE: If this topic is changed on an existing queue using UpdateQueue(),
* previously added tasks (that haven't yet run) will publish to this new
* topic.
*
*
* optional string topic_name = 1;
* @return The topicName.
*/
@java.lang.Override
public java.lang.String getTopicName() {
java.lang.Object ref = topicName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
topicName_ = s;
}
return s;
}
}
/**
*
* The pubsub topic name that this queue is allowed to post to.
* NOTE: If this topic is changed on an existing queue using UpdateQueue(),
* previously added tasks (that haven't yet run) will publish to this new
* topic.
*
*
* optional string topic_name = 1;
* @return The bytes for topicName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTopicNameBytes() {
java.lang.Object ref = topicName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
topicName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topicName_);
}
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.GeneratedMessageV3.computeStringSize(1, topicName_);
}
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.apphosting.executor.Queue.PubsubQueueDefinition)) {
return super.equals(obj);
}
com.google.apphosting.executor.Queue.PubsubQueueDefinition other = (com.google.apphosting.executor.Queue.PubsubQueueDefinition) obj;
if (hasTopicName() != other.hasTopicName()) return false;
if (hasTopicName()) {
if (!getTopicName()
.equals(other.getTopicName())) 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 (hasTopicName()) {
hash = (37 * hash) + TOPIC_NAME_FIELD_NUMBER;
hash = (53 * hash) + getTopicName().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.executor.Queue.PubsubQueueDefinition parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.PubsubQueueDefinition parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.PubsubQueueDefinition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.PubsubQueueDefinition 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.apphosting.executor.Queue.PubsubQueueDefinition parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.PubsubQueueDefinition parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.PubsubQueueDefinition parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.PubsubQueueDefinition 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.apphosting.executor.Queue.PubsubQueueDefinition parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.PubsubQueueDefinition 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.apphosting.executor.Queue.PubsubQueueDefinition parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.PubsubQueueDefinition 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.apphosting.executor.Queue.PubsubQueueDefinition 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;
}
/**
*
* Pubsub specific parameters for a push queue
*
*
* Protobuf type {@code java.apphosting.PubsubQueueDefinition}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.PubsubQueueDefinition)
com.google.apphosting.executor.Queue.PubsubQueueDefinitionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_PubsubQueueDefinition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_PubsubQueueDefinition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.PubsubQueueDefinition.class, com.google.apphosting.executor.Queue.PubsubQueueDefinition.Builder.class);
}
// Construct using com.google.apphosting.executor.Queue.PubsubQueueDefinition.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
topicName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_PubsubQueueDefinition_descriptor;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.PubsubQueueDefinition getDefaultInstanceForType() {
return com.google.apphosting.executor.Queue.PubsubQueueDefinition.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.executor.Queue.PubsubQueueDefinition build() {
com.google.apphosting.executor.Queue.PubsubQueueDefinition result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.PubsubQueueDefinition buildPartial() {
com.google.apphosting.executor.Queue.PubsubQueueDefinition result = new com.google.apphosting.executor.Queue.PubsubQueueDefinition(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.executor.Queue.PubsubQueueDefinition result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.topicName_ = topicName_;
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.apphosting.executor.Queue.PubsubQueueDefinition) {
return mergeFrom((com.google.apphosting.executor.Queue.PubsubQueueDefinition)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.executor.Queue.PubsubQueueDefinition other) {
if (other == com.google.apphosting.executor.Queue.PubsubQueueDefinition.getDefaultInstance()) return this;
if (other.hasTopicName()) {
topicName_ = other.topicName_;
bitField0_ |= 0x00000001;
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: {
topicName_ = 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 java.lang.Object topicName_ = "";
/**
*
* The pubsub topic name that this queue is allowed to post to.
* NOTE: If this topic is changed on an existing queue using UpdateQueue(),
* previously added tasks (that haven't yet run) will publish to this new
* topic.
*
*
* optional string topic_name = 1;
* @return Whether the topicName field is set.
*/
public boolean hasTopicName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The pubsub topic name that this queue is allowed to post to.
* NOTE: If this topic is changed on an existing queue using UpdateQueue(),
* previously added tasks (that haven't yet run) will publish to this new
* topic.
*
*
* optional string topic_name = 1;
* @return The topicName.
*/
public java.lang.String getTopicName() {
java.lang.Object ref = topicName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
topicName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The pubsub topic name that this queue is allowed to post to.
* NOTE: If this topic is changed on an existing queue using UpdateQueue(),
* previously added tasks (that haven't yet run) will publish to this new
* topic.
*
*
* optional string topic_name = 1;
* @return The bytes for topicName.
*/
public com.google.protobuf.ByteString
getTopicNameBytes() {
java.lang.Object ref = topicName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
topicName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The pubsub topic name that this queue is allowed to post to.
* NOTE: If this topic is changed on an existing queue using UpdateQueue(),
* previously added tasks (that haven't yet run) will publish to this new
* topic.
*
*
* optional string topic_name = 1;
* @param value The topicName to set.
* @return This builder for chaining.
*/
public Builder setTopicName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
topicName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The pubsub topic name that this queue is allowed to post to.
* NOTE: If this topic is changed on an existing queue using UpdateQueue(),
* previously added tasks (that haven't yet run) will publish to this new
* topic.
*
*
* optional string topic_name = 1;
* @return This builder for chaining.
*/
public Builder clearTopicName() {
topicName_ = getDefaultInstance().getTopicName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The pubsub topic name that this queue is allowed to post to.
* NOTE: If this topic is changed on an existing queue using UpdateQueue(),
* previously added tasks (that haven't yet run) will publish to this new
* topic.
*
*
* optional string topic_name = 1;
* @param value The bytes for topicName to set.
* @return This builder for chaining.
*/
public Builder setTopicNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
topicName_ = value;
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.PubsubQueueDefinition)
}
// @@protoc_insertion_point(class_scope:java.apphosting.PubsubQueueDefinition)
private static final com.google.apphosting.executor.Queue.PubsubQueueDefinition DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.executor.Queue.PubsubQueueDefinition();
}
public static com.google.apphosting.executor.Queue.PubsubQueueDefinition getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PubsubQueueDefinition 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.apphosting.executor.Queue.PubsubQueueDefinition getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueueRangeAssignmentOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.QueueRangeAssignment)
com.google.protobuf.MessageOrBuilder {
/**
* required .java.apphosting.QueueRange queue_range = 1;
* @return Whether the queueRange field is set.
*/
boolean hasQueueRange();
/**
* required .java.apphosting.QueueRange queue_range = 1;
* @return The queueRange.
*/
com.google.apphosting.executor.Queue.QueueRange getQueueRange();
/**
* required .java.apphosting.QueueRange queue_range = 1;
*/
com.google.apphosting.executor.Queue.QueueRangeOrBuilder getQueueRangeOrBuilder();
/**
*
* The bns address of the scanner that owns the queues in this range.
*
*
* required bytes scanner_task = 2;
* @return Whether the scannerTask field is set.
*/
boolean hasScannerTask();
/**
*
* The bns address of the scanner that owns the queues in this range.
*
*
* required bytes scanner_task = 2;
* @return The scannerTask.
*/
com.google.protobuf.ByteString getScannerTask();
/**
*
* Time at which this queue range assignment was first created.
*
*
* optional int64 timestamp_usec = 3;
* @return Whether the timestampUsec field is set.
*/
boolean hasTimestampUsec();
/**
*
* Time at which this queue range assignment was first created.
*
*
* optional int64 timestamp_usec = 3;
* @return The timestampUsec.
*/
long getTimestampUsec();
}
/**
* Protobuf type {@code java.apphosting.QueueRangeAssignment}
*/
public static final class QueueRangeAssignment extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.QueueRangeAssignment)
QueueRangeAssignmentOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueueRangeAssignment.newBuilder() to construct.
private QueueRangeAssignment(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueueRangeAssignment() {
scannerTask_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueueRangeAssignment();
}
@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.apphosting.executor.Queue.internal_static_java_apphosting_QueueRangeAssignment_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueRangeAssignment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.QueueRangeAssignment.class, com.google.apphosting.executor.Queue.QueueRangeAssignment.Builder.class);
}
private int bitField0_;
public static final int QUEUE_RANGE_FIELD_NUMBER = 1;
private com.google.apphosting.executor.Queue.QueueRange queueRange_;
/**
* required .java.apphosting.QueueRange queue_range = 1;
* @return Whether the queueRange field is set.
*/
@java.lang.Override
public boolean hasQueueRange() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required .java.apphosting.QueueRange queue_range = 1;
* @return The queueRange.
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRange getQueueRange() {
return queueRange_ == null ? com.google.apphosting.executor.Queue.QueueRange.getDefaultInstance() : queueRange_;
}
/**
* required .java.apphosting.QueueRange queue_range = 1;
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRangeOrBuilder getQueueRangeOrBuilder() {
return queueRange_ == null ? com.google.apphosting.executor.Queue.QueueRange.getDefaultInstance() : queueRange_;
}
public static final int SCANNER_TASK_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString scannerTask_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* The bns address of the scanner that owns the queues in this range.
*
*
* required bytes scanner_task = 2;
* @return Whether the scannerTask field is set.
*/
@java.lang.Override
public boolean hasScannerTask() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The bns address of the scanner that owns the queues in this range.
*
*
* required bytes scanner_task = 2;
* @return The scannerTask.
*/
@java.lang.Override
public com.google.protobuf.ByteString getScannerTask() {
return scannerTask_;
}
public static final int TIMESTAMP_USEC_FIELD_NUMBER = 3;
private long timestampUsec_ = 0L;
/**
*
* Time at which this queue range assignment was first created.
*
*
* optional int64 timestamp_usec = 3;
* @return Whether the timestampUsec field is set.
*/
@java.lang.Override
public boolean hasTimestampUsec() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Time at which this queue range assignment was first created.
*
*
* optional int64 timestamp_usec = 3;
* @return The timestampUsec.
*/
@java.lang.Override
public long getTimestampUsec() {
return timestampUsec_;
}
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 (!hasQueueRange()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasScannerTask()) {
memoizedIsInitialized = 0;
return false;
}
if (!getQueueRange().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.writeMessage(1, getQueueRange());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBytes(2, scannerTask_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(3, timestampUsec_);
}
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
.computeMessageSize(1, getQueueRange());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, scannerTask_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, timestampUsec_);
}
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.apphosting.executor.Queue.QueueRangeAssignment)) {
return super.equals(obj);
}
com.google.apphosting.executor.Queue.QueueRangeAssignment other = (com.google.apphosting.executor.Queue.QueueRangeAssignment) obj;
if (hasQueueRange() != other.hasQueueRange()) return false;
if (hasQueueRange()) {
if (!getQueueRange()
.equals(other.getQueueRange())) return false;
}
if (hasScannerTask() != other.hasScannerTask()) return false;
if (hasScannerTask()) {
if (!getScannerTask()
.equals(other.getScannerTask())) return false;
}
if (hasTimestampUsec() != other.hasTimestampUsec()) return false;
if (hasTimestampUsec()) {
if (getTimestampUsec()
!= other.getTimestampUsec()) 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 (hasQueueRange()) {
hash = (37 * hash) + QUEUE_RANGE_FIELD_NUMBER;
hash = (53 * hash) + getQueueRange().hashCode();
}
if (hasScannerTask()) {
hash = (37 * hash) + SCANNER_TASK_FIELD_NUMBER;
hash = (53 * hash) + getScannerTask().hashCode();
}
if (hasTimestampUsec()) {
hash = (37 * hash) + TIMESTAMP_USEC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestampUsec());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.executor.Queue.QueueRangeAssignment parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueRangeAssignment parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.QueueRangeAssignment parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueRangeAssignment 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.apphosting.executor.Queue.QueueRangeAssignment parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueRangeAssignment parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.QueueRangeAssignment parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueRangeAssignment 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.apphosting.executor.Queue.QueueRangeAssignment parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueRangeAssignment 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.apphosting.executor.Queue.QueueRangeAssignment parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueRangeAssignment 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.apphosting.executor.Queue.QueueRangeAssignment 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.QueueRangeAssignment}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.QueueRangeAssignment)
com.google.apphosting.executor.Queue.QueueRangeAssignmentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueRangeAssignment_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueRangeAssignment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.QueueRangeAssignment.class, com.google.apphosting.executor.Queue.QueueRangeAssignment.Builder.class);
}
// Construct using com.google.apphosting.executor.Queue.QueueRangeAssignment.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getQueueRangeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
queueRange_ = null;
if (queueRangeBuilder_ != null) {
queueRangeBuilder_.dispose();
queueRangeBuilder_ = null;
}
scannerTask_ = com.google.protobuf.ByteString.EMPTY;
timestampUsec_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueRangeAssignment_descriptor;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRangeAssignment getDefaultInstanceForType() {
return com.google.apphosting.executor.Queue.QueueRangeAssignment.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRangeAssignment build() {
com.google.apphosting.executor.Queue.QueueRangeAssignment result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRangeAssignment buildPartial() {
com.google.apphosting.executor.Queue.QueueRangeAssignment result = new com.google.apphosting.executor.Queue.QueueRangeAssignment(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.executor.Queue.QueueRangeAssignment result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.queueRange_ = queueRangeBuilder_ == null
? queueRange_
: queueRangeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.scannerTask_ = scannerTask_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.timestampUsec_ = timestampUsec_;
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.apphosting.executor.Queue.QueueRangeAssignment) {
return mergeFrom((com.google.apphosting.executor.Queue.QueueRangeAssignment)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.executor.Queue.QueueRangeAssignment other) {
if (other == com.google.apphosting.executor.Queue.QueueRangeAssignment.getDefaultInstance()) return this;
if (other.hasQueueRange()) {
mergeQueueRange(other.getQueueRange());
}
if (other.hasScannerTask()) {
setScannerTask(other.getScannerTask());
}
if (other.hasTimestampUsec()) {
setTimestampUsec(other.getTimestampUsec());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasQueueRange()) {
return false;
}
if (!hasScannerTask()) {
return false;
}
if (!getQueueRange().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: {
input.readMessage(
getQueueRangeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
scannerTask_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
timestampUsec_ = input.readInt64();
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.apphosting.executor.Queue.QueueRange queueRange_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueRange, com.google.apphosting.executor.Queue.QueueRange.Builder, com.google.apphosting.executor.Queue.QueueRangeOrBuilder> queueRangeBuilder_;
/**
* required .java.apphosting.QueueRange queue_range = 1;
* @return Whether the queueRange field is set.
*/
public boolean hasQueueRange() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required .java.apphosting.QueueRange queue_range = 1;
* @return The queueRange.
*/
public com.google.apphosting.executor.Queue.QueueRange getQueueRange() {
if (queueRangeBuilder_ == null) {
return queueRange_ == null ? com.google.apphosting.executor.Queue.QueueRange.getDefaultInstance() : queueRange_;
} else {
return queueRangeBuilder_.getMessage();
}
}
/**
* required .java.apphosting.QueueRange queue_range = 1;
*/
public Builder setQueueRange(com.google.apphosting.executor.Queue.QueueRange value) {
if (queueRangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queueRange_ = value;
} else {
queueRangeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required .java.apphosting.QueueRange queue_range = 1;
*/
public Builder setQueueRange(
com.google.apphosting.executor.Queue.QueueRange.Builder builderForValue) {
if (queueRangeBuilder_ == null) {
queueRange_ = builderForValue.build();
} else {
queueRangeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required .java.apphosting.QueueRange queue_range = 1;
*/
public Builder mergeQueueRange(com.google.apphosting.executor.Queue.QueueRange value) {
if (queueRangeBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
queueRange_ != null &&
queueRange_ != com.google.apphosting.executor.Queue.QueueRange.getDefaultInstance()) {
getQueueRangeBuilder().mergeFrom(value);
} else {
queueRange_ = value;
}
} else {
queueRangeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required .java.apphosting.QueueRange queue_range = 1;
*/
public Builder clearQueueRange() {
bitField0_ = (bitField0_ & ~0x00000001);
queueRange_ = null;
if (queueRangeBuilder_ != null) {
queueRangeBuilder_.dispose();
queueRangeBuilder_ = null;
}
onChanged();
return this;
}
/**
* required .java.apphosting.QueueRange queue_range = 1;
*/
public com.google.apphosting.executor.Queue.QueueRange.Builder getQueueRangeBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getQueueRangeFieldBuilder().getBuilder();
}
/**
* required .java.apphosting.QueueRange queue_range = 1;
*/
public com.google.apphosting.executor.Queue.QueueRangeOrBuilder getQueueRangeOrBuilder() {
if (queueRangeBuilder_ != null) {
return queueRangeBuilder_.getMessageOrBuilder();
} else {
return queueRange_ == null ?
com.google.apphosting.executor.Queue.QueueRange.getDefaultInstance() : queueRange_;
}
}
/**
* required .java.apphosting.QueueRange queue_range = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueRange, com.google.apphosting.executor.Queue.QueueRange.Builder, com.google.apphosting.executor.Queue.QueueRangeOrBuilder>
getQueueRangeFieldBuilder() {
if (queueRangeBuilder_ == null) {
queueRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueRange, com.google.apphosting.executor.Queue.QueueRange.Builder, com.google.apphosting.executor.Queue.QueueRangeOrBuilder>(
getQueueRange(),
getParentForChildren(),
isClean());
queueRange_ = null;
}
return queueRangeBuilder_;
}
private com.google.protobuf.ByteString scannerTask_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* The bns address of the scanner that owns the queues in this range.
*
*
* required bytes scanner_task = 2;
* @return Whether the scannerTask field is set.
*/
@java.lang.Override
public boolean hasScannerTask() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The bns address of the scanner that owns the queues in this range.
*
*
* required bytes scanner_task = 2;
* @return The scannerTask.
*/
@java.lang.Override
public com.google.protobuf.ByteString getScannerTask() {
return scannerTask_;
}
/**
*
* The bns address of the scanner that owns the queues in this range.
*
*
* required bytes scanner_task = 2;
* @param value The scannerTask to set.
* @return This builder for chaining.
*/
public Builder setScannerTask(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
scannerTask_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The bns address of the scanner that owns the queues in this range.
*
*
* required bytes scanner_task = 2;
* @return This builder for chaining.
*/
public Builder clearScannerTask() {
bitField0_ = (bitField0_ & ~0x00000002);
scannerTask_ = getDefaultInstance().getScannerTask();
onChanged();
return this;
}
private long timestampUsec_ ;
/**
*
* Time at which this queue range assignment was first created.
*
*
* optional int64 timestamp_usec = 3;
* @return Whether the timestampUsec field is set.
*/
@java.lang.Override
public boolean hasTimestampUsec() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Time at which this queue range assignment was first created.
*
*
* optional int64 timestamp_usec = 3;
* @return The timestampUsec.
*/
@java.lang.Override
public long getTimestampUsec() {
return timestampUsec_;
}
/**
*
* Time at which this queue range assignment was first created.
*
*
* optional int64 timestamp_usec = 3;
* @param value The timestampUsec to set.
* @return This builder for chaining.
*/
public Builder setTimestampUsec(long value) {
timestampUsec_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Time at which this queue range assignment was first created.
*
*
* optional int64 timestamp_usec = 3;
* @return This builder for chaining.
*/
public Builder clearTimestampUsec() {
bitField0_ = (bitField0_ & ~0x00000004);
timestampUsec_ = 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.QueueRangeAssignment)
}
// @@protoc_insertion_point(class_scope:java.apphosting.QueueRangeAssignment)
private static final com.google.apphosting.executor.Queue.QueueRangeAssignment DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.executor.Queue.QueueRangeAssignment();
}
public static com.google.apphosting.executor.Queue.QueueRangeAssignment getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueueRangeAssignment 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.apphosting.executor.Queue.QueueRangeAssignment getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueueMapOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.QueueMap)
com.google.protobuf.MessageOrBuilder {
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
java.util.List
getPushRangeList();
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
com.google.apphosting.executor.Queue.QueueRangeAssignment getPushRange(int index);
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
int getPushRangeCount();
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
java.util.List extends com.google.apphosting.executor.Queue.QueueRangeAssignmentOrBuilder>
getPushRangeOrBuilderList();
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
com.google.apphosting.executor.Queue.QueueRangeAssignmentOrBuilder getPushRangeOrBuilder(
int index);
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
java.util.List
getPullRangeList();
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
com.google.apphosting.executor.Queue.QueueRangeAssignment getPullRange(int index);
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
int getPullRangeCount();
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
java.util.List extends com.google.apphosting.executor.Queue.QueueRangeAssignmentOrBuilder>
getPullRangeOrBuilderList();
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
com.google.apphosting.executor.Queue.QueueRangeAssignmentOrBuilder getPullRangeOrBuilder(
int index);
/**
*
* Time at which this queue map was generated.
*
*
* required int64 timestamp_usec = 4;
* @return Whether the timestampUsec field is set.
*/
boolean hasTimestampUsec();
/**
*
* Time at which this queue map was generated.
*
*
* required int64 timestamp_usec = 4;
* @return The timestampUsec.
*/
long getTimestampUsec();
}
/**
*
* Encodes a mapping from queue to scanner task.
*
*
* Protobuf type {@code java.apphosting.QueueMap}
*/
public static final class QueueMap extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.QueueMap)
QueueMapOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueueMap.newBuilder() to construct.
private QueueMap(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueueMap() {
pushRange_ = java.util.Collections.emptyList();
pullRange_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueueMap();
}
@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.apphosting.executor.Queue.internal_static_java_apphosting_QueueMap_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.QueueMap.class, com.google.apphosting.executor.Queue.QueueMap.Builder.class);
}
private int bitField0_;
public static final int PUSH_RANGE_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private java.util.List pushRange_;
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
@java.lang.Override
public java.util.List getPushRangeList() {
return pushRange_;
}
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
@java.lang.Override
public java.util.List extends com.google.apphosting.executor.Queue.QueueRangeAssignmentOrBuilder>
getPushRangeOrBuilderList() {
return pushRange_;
}
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
@java.lang.Override
public int getPushRangeCount() {
return pushRange_.size();
}
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRangeAssignment getPushRange(int index) {
return pushRange_.get(index);
}
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRangeAssignmentOrBuilder getPushRangeOrBuilder(
int index) {
return pushRange_.get(index);
}
public static final int PULL_RANGE_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private java.util.List pullRange_;
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
@java.lang.Override
public java.util.List getPullRangeList() {
return pullRange_;
}
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
@java.lang.Override
public java.util.List extends com.google.apphosting.executor.Queue.QueueRangeAssignmentOrBuilder>
getPullRangeOrBuilderList() {
return pullRange_;
}
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
@java.lang.Override
public int getPullRangeCount() {
return pullRange_.size();
}
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRangeAssignment getPullRange(int index) {
return pullRange_.get(index);
}
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueRangeAssignmentOrBuilder getPullRangeOrBuilder(
int index) {
return pullRange_.get(index);
}
public static final int TIMESTAMP_USEC_FIELD_NUMBER = 4;
private long timestampUsec_ = 0L;
/**
*
* Time at which this queue map was generated.
*
*
* required int64 timestamp_usec = 4;
* @return Whether the timestampUsec field is set.
*/
@java.lang.Override
public boolean hasTimestampUsec() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Time at which this queue map was generated.
*
*
* required int64 timestamp_usec = 4;
* @return The timestampUsec.
*/
@java.lang.Override
public long getTimestampUsec() {
return timestampUsec_;
}
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 (!hasTimestampUsec()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getPushRangeCount(); i++) {
if (!getPushRange(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getPullRangeCount(); i++) {
if (!getPullRange(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.writeInt64(4, timestampUsec_);
}
for (int i = 0; i < pushRange_.size(); i++) {
output.writeMessage(5, pushRange_.get(i));
}
for (int i = 0; i < pullRange_.size(); i++) {
output.writeMessage(6, pullRange_.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
.computeInt64Size(4, timestampUsec_);
}
for (int i = 0; i < pushRange_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, pushRange_.get(i));
}
for (int i = 0; i < pullRange_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, pullRange_.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.apphosting.executor.Queue.QueueMap)) {
return super.equals(obj);
}
com.google.apphosting.executor.Queue.QueueMap other = (com.google.apphosting.executor.Queue.QueueMap) obj;
if (!getPushRangeList()
.equals(other.getPushRangeList())) return false;
if (!getPullRangeList()
.equals(other.getPullRangeList())) return false;
if (hasTimestampUsec() != other.hasTimestampUsec()) return false;
if (hasTimestampUsec()) {
if (getTimestampUsec()
!= other.getTimestampUsec()) 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 (getPushRangeCount() > 0) {
hash = (37 * hash) + PUSH_RANGE_FIELD_NUMBER;
hash = (53 * hash) + getPushRangeList().hashCode();
}
if (getPullRangeCount() > 0) {
hash = (37 * hash) + PULL_RANGE_FIELD_NUMBER;
hash = (53 * hash) + getPullRangeList().hashCode();
}
if (hasTimestampUsec()) {
hash = (37 * hash) + TIMESTAMP_USEC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestampUsec());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.executor.Queue.QueueMap parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueMap parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.QueueMap parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueMap 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.apphosting.executor.Queue.QueueMap parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.QueueMap parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.QueueMap parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueMap 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.apphosting.executor.Queue.QueueMap parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueMap 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.apphosting.executor.Queue.QueueMap parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.QueueMap 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.apphosting.executor.Queue.QueueMap 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;
}
/**
*
* Encodes a mapping from queue to scanner task.
*
*
* Protobuf type {@code java.apphosting.QueueMap}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.QueueMap)
com.google.apphosting.executor.Queue.QueueMapOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueMap_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.QueueMap.class, com.google.apphosting.executor.Queue.QueueMap.Builder.class);
}
// Construct using com.google.apphosting.executor.Queue.QueueMap.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (pushRangeBuilder_ == null) {
pushRange_ = java.util.Collections.emptyList();
} else {
pushRange_ = null;
pushRangeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (pullRangeBuilder_ == null) {
pullRange_ = java.util.Collections.emptyList();
} else {
pullRange_ = null;
pullRangeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
timestampUsec_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_QueueMap_descriptor;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueMap getDefaultInstanceForType() {
return com.google.apphosting.executor.Queue.QueueMap.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueMap build() {
com.google.apphosting.executor.Queue.QueueMap result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.QueueMap buildPartial() {
com.google.apphosting.executor.Queue.QueueMap result = new com.google.apphosting.executor.Queue.QueueMap(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.apphosting.executor.Queue.QueueMap result) {
if (pushRangeBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
pushRange_ = java.util.Collections.unmodifiableList(pushRange_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.pushRange_ = pushRange_;
} else {
result.pushRange_ = pushRangeBuilder_.build();
}
if (pullRangeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
pullRange_ = java.util.Collections.unmodifiableList(pullRange_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.pullRange_ = pullRange_;
} else {
result.pullRange_ = pullRangeBuilder_.build();
}
}
private void buildPartial0(com.google.apphosting.executor.Queue.QueueMap result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.timestampUsec_ = timestampUsec_;
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.apphosting.executor.Queue.QueueMap) {
return mergeFrom((com.google.apphosting.executor.Queue.QueueMap)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.executor.Queue.QueueMap other) {
if (other == com.google.apphosting.executor.Queue.QueueMap.getDefaultInstance()) return this;
if (pushRangeBuilder_ == null) {
if (!other.pushRange_.isEmpty()) {
if (pushRange_.isEmpty()) {
pushRange_ = other.pushRange_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePushRangeIsMutable();
pushRange_.addAll(other.pushRange_);
}
onChanged();
}
} else {
if (!other.pushRange_.isEmpty()) {
if (pushRangeBuilder_.isEmpty()) {
pushRangeBuilder_.dispose();
pushRangeBuilder_ = null;
pushRange_ = other.pushRange_;
bitField0_ = (bitField0_ & ~0x00000001);
pushRangeBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPushRangeFieldBuilder() : null;
} else {
pushRangeBuilder_.addAllMessages(other.pushRange_);
}
}
}
if (pullRangeBuilder_ == null) {
if (!other.pullRange_.isEmpty()) {
if (pullRange_.isEmpty()) {
pullRange_ = other.pullRange_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensurePullRangeIsMutable();
pullRange_.addAll(other.pullRange_);
}
onChanged();
}
} else {
if (!other.pullRange_.isEmpty()) {
if (pullRangeBuilder_.isEmpty()) {
pullRangeBuilder_.dispose();
pullRangeBuilder_ = null;
pullRange_ = other.pullRange_;
bitField0_ = (bitField0_ & ~0x00000002);
pullRangeBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPullRangeFieldBuilder() : null;
} else {
pullRangeBuilder_.addAllMessages(other.pullRange_);
}
}
}
if (other.hasTimestampUsec()) {
setTimestampUsec(other.getTimestampUsec());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasTimestampUsec()) {
return false;
}
for (int i = 0; i < getPushRangeCount(); i++) {
if (!getPushRange(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getPullRangeCount(); i++) {
if (!getPullRange(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 32: {
timestampUsec_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 32
case 42: {
com.google.apphosting.executor.Queue.QueueRangeAssignment m =
input.readMessage(
com.google.apphosting.executor.Queue.QueueRangeAssignment.PARSER,
extensionRegistry);
if (pushRangeBuilder_ == null) {
ensurePushRangeIsMutable();
pushRange_.add(m);
} else {
pushRangeBuilder_.addMessage(m);
}
break;
} // case 42
case 50: {
com.google.apphosting.executor.Queue.QueueRangeAssignment m =
input.readMessage(
com.google.apphosting.executor.Queue.QueueRangeAssignment.PARSER,
extensionRegistry);
if (pullRangeBuilder_ == null) {
ensurePullRangeIsMutable();
pullRange_.add(m);
} else {
pullRangeBuilder_.addMessage(m);
}
break;
} // case 50
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 pushRange_ =
java.util.Collections.emptyList();
private void ensurePushRangeIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
pushRange_ = new java.util.ArrayList(pushRange_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueRangeAssignment, com.google.apphosting.executor.Queue.QueueRangeAssignment.Builder, com.google.apphosting.executor.Queue.QueueRangeAssignmentOrBuilder> pushRangeBuilder_;
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
public java.util.List getPushRangeList() {
if (pushRangeBuilder_ == null) {
return java.util.Collections.unmodifiableList(pushRange_);
} else {
return pushRangeBuilder_.getMessageList();
}
}
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
public int getPushRangeCount() {
if (pushRangeBuilder_ == null) {
return pushRange_.size();
} else {
return pushRangeBuilder_.getCount();
}
}
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
public com.google.apphosting.executor.Queue.QueueRangeAssignment getPushRange(int index) {
if (pushRangeBuilder_ == null) {
return pushRange_.get(index);
} else {
return pushRangeBuilder_.getMessage(index);
}
}
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
public Builder setPushRange(
int index, com.google.apphosting.executor.Queue.QueueRangeAssignment value) {
if (pushRangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePushRangeIsMutable();
pushRange_.set(index, value);
onChanged();
} else {
pushRangeBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
public Builder setPushRange(
int index, com.google.apphosting.executor.Queue.QueueRangeAssignment.Builder builderForValue) {
if (pushRangeBuilder_ == null) {
ensurePushRangeIsMutable();
pushRange_.set(index, builderForValue.build());
onChanged();
} else {
pushRangeBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
public Builder addPushRange(com.google.apphosting.executor.Queue.QueueRangeAssignment value) {
if (pushRangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePushRangeIsMutable();
pushRange_.add(value);
onChanged();
} else {
pushRangeBuilder_.addMessage(value);
}
return this;
}
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
public Builder addPushRange(
int index, com.google.apphosting.executor.Queue.QueueRangeAssignment value) {
if (pushRangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePushRangeIsMutable();
pushRange_.add(index, value);
onChanged();
} else {
pushRangeBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
public Builder addPushRange(
com.google.apphosting.executor.Queue.QueueRangeAssignment.Builder builderForValue) {
if (pushRangeBuilder_ == null) {
ensurePushRangeIsMutable();
pushRange_.add(builderForValue.build());
onChanged();
} else {
pushRangeBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
public Builder addPushRange(
int index, com.google.apphosting.executor.Queue.QueueRangeAssignment.Builder builderForValue) {
if (pushRangeBuilder_ == null) {
ensurePushRangeIsMutable();
pushRange_.add(index, builderForValue.build());
onChanged();
} else {
pushRangeBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
public Builder addAllPushRange(
java.lang.Iterable extends com.google.apphosting.executor.Queue.QueueRangeAssignment> values) {
if (pushRangeBuilder_ == null) {
ensurePushRangeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, pushRange_);
onChanged();
} else {
pushRangeBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
public Builder clearPushRange() {
if (pushRangeBuilder_ == null) {
pushRange_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
pushRangeBuilder_.clear();
}
return this;
}
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
public Builder removePushRange(int index) {
if (pushRangeBuilder_ == null) {
ensurePushRangeIsMutable();
pushRange_.remove(index);
onChanged();
} else {
pushRangeBuilder_.remove(index);
}
return this;
}
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
public com.google.apphosting.executor.Queue.QueueRangeAssignment.Builder getPushRangeBuilder(
int index) {
return getPushRangeFieldBuilder().getBuilder(index);
}
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
public com.google.apphosting.executor.Queue.QueueRangeAssignmentOrBuilder getPushRangeOrBuilder(
int index) {
if (pushRangeBuilder_ == null) {
return pushRange_.get(index); } else {
return pushRangeBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
public java.util.List extends com.google.apphosting.executor.Queue.QueueRangeAssignmentOrBuilder>
getPushRangeOrBuilderList() {
if (pushRangeBuilder_ != null) {
return pushRangeBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(pushRange_);
}
}
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
public com.google.apphosting.executor.Queue.QueueRangeAssignment.Builder addPushRangeBuilder() {
return getPushRangeFieldBuilder().addBuilder(
com.google.apphosting.executor.Queue.QueueRangeAssignment.getDefaultInstance());
}
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
public com.google.apphosting.executor.Queue.QueueRangeAssignment.Builder addPushRangeBuilder(
int index) {
return getPushRangeFieldBuilder().addBuilder(
index, com.google.apphosting.executor.Queue.QueueRangeAssignment.getDefaultInstance());
}
/**
*
* The scanner assignments for PUSH queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in pull_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment push_range = 5;
*/
public java.util.List
getPushRangeBuilderList() {
return getPushRangeFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueRangeAssignment, com.google.apphosting.executor.Queue.QueueRangeAssignment.Builder, com.google.apphosting.executor.Queue.QueueRangeAssignmentOrBuilder>
getPushRangeFieldBuilder() {
if (pushRangeBuilder_ == null) {
pushRangeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueRangeAssignment, com.google.apphosting.executor.Queue.QueueRangeAssignment.Builder, com.google.apphosting.executor.Queue.QueueRangeAssignmentOrBuilder>(
pushRange_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
pushRange_ = null;
}
return pushRangeBuilder_;
}
private java.util.List pullRange_ =
java.util.Collections.emptyList();
private void ensurePullRangeIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
pullRange_ = new java.util.ArrayList(pullRange_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueRangeAssignment, com.google.apphosting.executor.Queue.QueueRangeAssignment.Builder, com.google.apphosting.executor.Queue.QueueRangeAssignmentOrBuilder> pullRangeBuilder_;
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
public java.util.List getPullRangeList() {
if (pullRangeBuilder_ == null) {
return java.util.Collections.unmodifiableList(pullRange_);
} else {
return pullRangeBuilder_.getMessageList();
}
}
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
public int getPullRangeCount() {
if (pullRangeBuilder_ == null) {
return pullRange_.size();
} else {
return pullRangeBuilder_.getCount();
}
}
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
public com.google.apphosting.executor.Queue.QueueRangeAssignment getPullRange(int index) {
if (pullRangeBuilder_ == null) {
return pullRange_.get(index);
} else {
return pullRangeBuilder_.getMessage(index);
}
}
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
public Builder setPullRange(
int index, com.google.apphosting.executor.Queue.QueueRangeAssignment value) {
if (pullRangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePullRangeIsMutable();
pullRange_.set(index, value);
onChanged();
} else {
pullRangeBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
public Builder setPullRange(
int index, com.google.apphosting.executor.Queue.QueueRangeAssignment.Builder builderForValue) {
if (pullRangeBuilder_ == null) {
ensurePullRangeIsMutable();
pullRange_.set(index, builderForValue.build());
onChanged();
} else {
pullRangeBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
public Builder addPullRange(com.google.apphosting.executor.Queue.QueueRangeAssignment value) {
if (pullRangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePullRangeIsMutable();
pullRange_.add(value);
onChanged();
} else {
pullRangeBuilder_.addMessage(value);
}
return this;
}
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
public Builder addPullRange(
int index, com.google.apphosting.executor.Queue.QueueRangeAssignment value) {
if (pullRangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePullRangeIsMutable();
pullRange_.add(index, value);
onChanged();
} else {
pullRangeBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
public Builder addPullRange(
com.google.apphosting.executor.Queue.QueueRangeAssignment.Builder builderForValue) {
if (pullRangeBuilder_ == null) {
ensurePullRangeIsMutable();
pullRange_.add(builderForValue.build());
onChanged();
} else {
pullRangeBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
public Builder addPullRange(
int index, com.google.apphosting.executor.Queue.QueueRangeAssignment.Builder builderForValue) {
if (pullRangeBuilder_ == null) {
ensurePullRangeIsMutable();
pullRange_.add(index, builderForValue.build());
onChanged();
} else {
pullRangeBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
public Builder addAllPullRange(
java.lang.Iterable extends com.google.apphosting.executor.Queue.QueueRangeAssignment> values) {
if (pullRangeBuilder_ == null) {
ensurePullRangeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, pullRange_);
onChanged();
} else {
pullRangeBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
public Builder clearPullRange() {
if (pullRangeBuilder_ == null) {
pullRange_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
pullRangeBuilder_.clear();
}
return this;
}
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
public Builder removePullRange(int index) {
if (pullRangeBuilder_ == null) {
ensurePullRangeIsMutable();
pullRange_.remove(index);
onChanged();
} else {
pullRangeBuilder_.remove(index);
}
return this;
}
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
public com.google.apphosting.executor.Queue.QueueRangeAssignment.Builder getPullRangeBuilder(
int index) {
return getPullRangeFieldBuilder().getBuilder(index);
}
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
public com.google.apphosting.executor.Queue.QueueRangeAssignmentOrBuilder getPullRangeOrBuilder(
int index) {
if (pullRangeBuilder_ == null) {
return pullRange_.get(index); } else {
return pullRangeBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
public java.util.List extends com.google.apphosting.executor.Queue.QueueRangeAssignmentOrBuilder>
getPullRangeOrBuilderList() {
if (pullRangeBuilder_ != null) {
return pullRangeBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(pullRange_);
}
}
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
public com.google.apphosting.executor.Queue.QueueRangeAssignment.Builder addPullRangeBuilder() {
return getPullRangeFieldBuilder().addBuilder(
com.google.apphosting.executor.Queue.QueueRangeAssignment.getDefaultInstance());
}
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
public com.google.apphosting.executor.Queue.QueueRangeAssignment.Builder addPullRangeBuilder(
int index) {
return getPullRangeFieldBuilder().addBuilder(
index, com.google.apphosting.executor.Queue.QueueRangeAssignment.getDefaultInstance());
}
/**
*
* The scanner assignments for PULL queues in each range. Ranges should be
* non-overlapping and in ascending order. Note, the ranges may overlap those
* in push_range.
*
*
* repeated .java.apphosting.QueueRangeAssignment pull_range = 6;
*/
public java.util.List
getPullRangeBuilderList() {
return getPullRangeFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueRangeAssignment, com.google.apphosting.executor.Queue.QueueRangeAssignment.Builder, com.google.apphosting.executor.Queue.QueueRangeAssignmentOrBuilder>
getPullRangeFieldBuilder() {
if (pullRangeBuilder_ == null) {
pullRangeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.executor.Queue.QueueRangeAssignment, com.google.apphosting.executor.Queue.QueueRangeAssignment.Builder, com.google.apphosting.executor.Queue.QueueRangeAssignmentOrBuilder>(
pullRange_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
pullRange_ = null;
}
return pullRangeBuilder_;
}
private long timestampUsec_ ;
/**
*
* Time at which this queue map was generated.
*
*
* required int64 timestamp_usec = 4;
* @return Whether the timestampUsec field is set.
*/
@java.lang.Override
public boolean hasTimestampUsec() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Time at which this queue map was generated.
*
*
* required int64 timestamp_usec = 4;
* @return The timestampUsec.
*/
@java.lang.Override
public long getTimestampUsec() {
return timestampUsec_;
}
/**
*
* Time at which this queue map was generated.
*
*
* required int64 timestamp_usec = 4;
* @param value The timestampUsec to set.
* @return This builder for chaining.
*/
public Builder setTimestampUsec(long value) {
timestampUsec_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Time at which this queue map was generated.
*
*
* required int64 timestamp_usec = 4;
* @return This builder for chaining.
*/
public Builder clearTimestampUsec() {
bitField0_ = (bitField0_ & ~0x00000004);
timestampUsec_ = 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.QueueMap)
}
// @@protoc_insertion_point(class_scope:java.apphosting.QueueMap)
private static final com.google.apphosting.executor.Queue.QueueMap DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.executor.Queue.QueueMap();
}
public static com.google.apphosting.executor.Queue.QueueMap getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueueMap 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.apphosting.executor.Queue.QueueMap getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StackdriverLoggingConfigurationOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.StackdriverLoggingConfiguration)
com.google.protobuf.MessageOrBuilder {
/**
*
* The fraction of operations to log.
*
*
* optional double sampling_ratio = 1;
* @return Whether the samplingRatio field is set.
*/
boolean hasSamplingRatio();
/**
*
* The fraction of operations to log.
*
*
* optional double sampling_ratio = 1;
* @return The samplingRatio.
*/
double getSamplingRatio();
}
/**
*
* Stackdriver logging configuration
*
*
* Protobuf type {@code java.apphosting.StackdriverLoggingConfiguration}
*/
public static final class StackdriverLoggingConfiguration extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.StackdriverLoggingConfiguration)
StackdriverLoggingConfigurationOrBuilder {
private static final long serialVersionUID = 0L;
// Use StackdriverLoggingConfiguration.newBuilder() to construct.
private StackdriverLoggingConfiguration(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StackdriverLoggingConfiguration() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StackdriverLoggingConfiguration();
}
@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.apphosting.executor.Queue.internal_static_java_apphosting_StackdriverLoggingConfiguration_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_StackdriverLoggingConfiguration_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration.class, com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration.Builder.class);
}
private int bitField0_;
public static final int SAMPLING_RATIO_FIELD_NUMBER = 1;
private double samplingRatio_ = 0D;
/**
*
* The fraction of operations to log.
*
*
* optional double sampling_ratio = 1;
* @return Whether the samplingRatio field is set.
*/
@java.lang.Override
public boolean hasSamplingRatio() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The fraction of operations to log.
*
*
* optional double sampling_ratio = 1;
* @return The samplingRatio.
*/
@java.lang.Override
public double getSamplingRatio() {
return samplingRatio_;
}
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.writeDouble(1, samplingRatio_);
}
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
.computeDoubleSize(1, samplingRatio_);
}
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.apphosting.executor.Queue.StackdriverLoggingConfiguration)) {
return super.equals(obj);
}
com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration other = (com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration) obj;
if (hasSamplingRatio() != other.hasSamplingRatio()) return false;
if (hasSamplingRatio()) {
if (java.lang.Double.doubleToLongBits(getSamplingRatio())
!= java.lang.Double.doubleToLongBits(
other.getSamplingRatio())) 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 (hasSamplingRatio()) {
hash = (37 * hash) + SAMPLING_RATIO_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getSamplingRatio()));
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration 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.apphosting.executor.Queue.StackdriverLoggingConfiguration parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration 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.apphosting.executor.Queue.StackdriverLoggingConfiguration parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration 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.apphosting.executor.Queue.StackdriverLoggingConfiguration parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration 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.apphosting.executor.Queue.StackdriverLoggingConfiguration 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;
}
/**
*
* Stackdriver logging configuration
*
*
* Protobuf type {@code java.apphosting.StackdriverLoggingConfiguration}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.StackdriverLoggingConfiguration)
com.google.apphosting.executor.Queue.StackdriverLoggingConfigurationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_StackdriverLoggingConfiguration_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_StackdriverLoggingConfiguration_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration.class, com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration.Builder.class);
}
// Construct using com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
samplingRatio_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.executor.Queue.internal_static_java_apphosting_StackdriverLoggingConfiguration_descriptor;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration getDefaultInstanceForType() {
return com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration build() {
com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration buildPartial() {
com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration result = new com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.samplingRatio_ = samplingRatio_;
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.apphosting.executor.Queue.StackdriverLoggingConfiguration) {
return mergeFrom((com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration other) {
if (other == com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration.getDefaultInstance()) return this;
if (other.hasSamplingRatio()) {
setSamplingRatio(other.getSamplingRatio());
}
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 9: {
samplingRatio_ = input.readDouble();
bitField0_ |= 0x00000001;
break;
} // case 9
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 double samplingRatio_ ;
/**
*
* The fraction of operations to log.
*
*
* optional double sampling_ratio = 1;
* @return Whether the samplingRatio field is set.
*/
@java.lang.Override
public boolean hasSamplingRatio() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The fraction of operations to log.
*
*
* optional double sampling_ratio = 1;
* @return The samplingRatio.
*/
@java.lang.Override
public double getSamplingRatio() {
return samplingRatio_;
}
/**
*
* The fraction of operations to log.
*
*
* optional double sampling_ratio = 1;
* @param value The samplingRatio to set.
* @return This builder for chaining.
*/
public Builder setSamplingRatio(double value) {
samplingRatio_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The fraction of operations to log.
*
*
* optional double sampling_ratio = 1;
* @return This builder for chaining.
*/
public Builder clearSamplingRatio() {
bitField0_ = (bitField0_ & ~0x00000001);
samplingRatio_ = 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.StackdriverLoggingConfiguration)
}
// @@protoc_insertion_point(class_scope:java.apphosting.StackdriverLoggingConfiguration)
private static final com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration();
}
public static com.google.apphosting.executor.Queue.StackdriverLoggingConfiguration getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StackdriverLoggingConfiguration 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.apphosting.executor.Queue.StackdriverLoggingConfiguration getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_java_apphosting_QueueRef_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_java_apphosting_QueueRef_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_java_apphosting_QueueRangeBorder_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_java_apphosting_QueueRangeBorder_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_java_apphosting_QueueRange_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_java_apphosting_QueueRange_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_java_apphosting_QueueRampupParameters_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_java_apphosting_QueueRampupParameters_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_java_apphosting_QueueThrottlingParameters_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_java_apphosting_QueueThrottlingParameters_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_java_apphosting_HttpTaskRunnerHeader_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_java_apphosting_HttpTaskRunnerHeader_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_java_apphosting_ThresholdCrossing_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_java_apphosting_ThresholdCrossing_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_java_apphosting_QueueAllocation_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_java_apphosting_QueueAllocation_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_java_apphosting_TargetOverride_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_java_apphosting_TargetOverride_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_java_apphosting_HttpTargetOverride_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_java_apphosting_HttpTargetOverride_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_java_apphosting_QueueDefinition_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_java_apphosting_QueueDefinition_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_java_apphosting_PubsubQueueDefinition_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_java_apphosting_PubsubQueueDefinition_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_java_apphosting_QueueRangeAssignment_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_java_apphosting_QueueRangeAssignment_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_java_apphosting_QueueMap_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_java_apphosting_QueueMap_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_java_apphosting_StackdriverLoggingConfiguration_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_java_apphosting_StackdriverLoggingConfiguration_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\013queue.proto\022\017java.apphosting\032\013group.pr" +
"oto\032\013retry.proto\032\014target.proto\"F\n\010QueueR" +
"ef\022,\n\tgroup_ref\030\001 \002(\0132\031.java.apphosting." +
"GroupRef\022\014\n\004name\030\002 \002(\014\"B\n\020QueueRangeBord" +
"er\022\020\n\010customer\030\001 \002(\014\022\r\n\005group\030\002 \001(\014\022\r\n\005q" +
"ueue\030\003 \001(\014\"p\n\nQueueRange\0220\n\005start\030\001 \002(\0132" +
"!.java.apphosting.QueueRangeBorder\0220\n\005li" +
"mit\030\002 \002(\0132!.java.apphosting.QueueRangeBo" +
"rder\"/\n\025QueueRampupParameters\022\026\n\016speedup" +
"_factor\030\001 \001(\001\"\231\003\n\031QueueThrottlingParamet" +
"ers\022 \n\030bucket_refill_per_second\030\001 \002(\001\022\027\n" +
"\017bucket_capacity\030\002 \002(\001\022\037\n\027max_concurrent" +
"_requests\030\003 \001(\005\022\'\n\034max_pull_requests_per" +
"_second\030\010 \001(\005:\0010\022A\n\021rampup_parameters\030\n " +
"\001(\0132&.java.apphosting.QueueRampupParamet" +
"ers\022-\n!override_bucket_refill_per_second" +
"\030\004 \001(\001:\002-1\022$\n\030override_bucket_capacity\030\005" +
" \001(\001:\002-1\022,\n override_max_concurrent_requ" +
"ests\030\007 \001(\005:\002-1\0221\n%override_max_pull_requ" +
"ests_per_second\030\t \001(\005:\002-1\"2\n\024HttpTaskRun" +
"nerHeader\022\013\n\003key\030\001 \002(\014\022\r\n\005value\030\002 \002(\014\"A\n" +
"\021ThresholdCrossing\022\021\n\tthreshold\030\001 \001(\003\022\031\n" +
"\021last_crossed_usec\030\002 \001(\003\"Q\n\017QueueAllocat" +
"ion\022>\n\022thresholds_crossed\030\001 \003(\0132\".java.a" +
"pphosting.ThresholdCrossing\"\020\n\016TargetOve" +
"rride\"\272\003\n\022HttpTargetOverride\022:\n\006scheme\030\001" +
" \001(\0162*.java.apphosting.HttpTargetOverrid" +
"e.Scheme\022\014\n\004host\030\002 \001(\t\022\014\n\004port\030\003 \001(\003\022\014\n\004" +
"path\030\004 \001(\t\022\r\n\005query\030\005 \001(\t\022C\n\013http_method" +
"\030\006 \001(\0162..java.apphosting.HttpTargetOverr" +
"ide.HttpMethod\022>\n\022task_authorization\030\007 \001" +
"(\0132\".java.apphosting.TaskAuthorization\"5" +
"\n\006Scheme\022\026\n\022SCHEME_UNSPECIFIED\020\000\022\010\n\004HTTP" +
"\020\001\022\t\n\005HTTPS\020\002\"s\n\nHttpMethod\022\033\n\027HTTP_METH" +
"OD_UNSPECIFIED\020\000\022\010\n\004POST\020\001\022\007\n\003GET\020\002\022\010\n\004H" +
"EAD\020\003\022\007\n\003PUT\020\004\022\n\n\006DELETE\020\005\022\t\n\005PATCH\020\006\022\013\n" +
"\007OPTIONS\020\007\"\230\n\n\017QueueDefinition\022,\n\tqueue_" +
"ref\030\001 \002(\0132\031.java.apphosting.QueueRef\022I\n\025" +
"throttling_parameters\030\002 \002(\0132*.java.appho" +
"sting.QueueThrottlingParameters\022\033\n\023user_" +
"specified_rate\030\003 \001(\t\022\032\n\017last_purge_usec\030" +
"\004 \001(\003:\0010\022\025\n\006paused\030\005 \001(\010:\005false\022:\n\020retry" +
"_parameters\030\006 \001(\0132 .java.apphosting.Retr" +
"yParameters\022>\n\004mode\030\007 \001(\0162*.java.apphost" +
"ing.QueueDefinition.QueueMode:\004PUSH\022>\n\017h" +
"eader_override\030\t \003(\0132%.java.apphosting.H" +
"ttpTaskRunnerHeader\022\017\n\003acl\030\n \001(\014B\002\010\001\022$\n\014" +
"creator_name\030\013 \001(\t:\napphostingB\002\010\001\022\032\n\017nu" +
"m_read_shards\030\014 \001(\r:\0011\022\033\n\020num_write_shar" +
"ds\030\r \001(\r:\0011\022\033\n\023last_heartbeat_usec\030\016 \001(\003" +
"\022&\n\033queue_task_count_checkpoint\030\017 \001(\003:\0010" +
"\022@\n\020pubsub_queue_def\030\020 \001(\0132&.java.apphos" +
"ting.PubsubQueueDefinition\022\'\n\024enable_clo" +
"ud_logging\030\021 \001(\010:\005falseB\002\030\001\022\035\n\022allocated" +
"_capacity\030\022 \001(\003:\0010\022#\n\033maximum_alive_life" +
"time_usec\030\023 \001(\003\022\'\n\037maximum_tombstone_lif" +
"etime_usec\030\024 \001(\003\022:\n\020queue_allocation\030\025 \001" +
"(\0132 .java.apphosting.QueueAllocation\022\036\n\022" +
"log_sampling_ratio\030\026 \001(\001B\002\030\001\022T\n\032stackdri" +
"ver_logging_config\030\027 \001(\01320.java.apphosti" +
"ng.StackdriverLoggingConfiguration\022J\n\016ex" +
"ecution_mode\030\030 \001(\0162..java.apphosting.Que" +
"ueDefinition.ExecutionModeB\002\030\001\0228\n\017target" +
"_override\030\031 \001(\0132\037.java.apphosting.Target" +
"Override\"M\n\016AllocationType\022\037\n\033ALLOCATION" +
"_TYPE_UNSPECIFIED\020\000\022\013\n\007DEFAULT\020\001\022\r\n\tALLO" +
"CATED\020\002\"\037\n\tQueueMode\022\010\n\004PUSH\020\000\022\010\n\004PULL\020\001" +
"\"K\n\rExecutionMode\022\036\n\032EXECUTION_MODE_UNSP" +
"ECIFIED\020\000\022\017\n\013INTERACTIVE\020\001\022\t\n\005BATCH\020\002\"+\n" +
"\025PubsubQueueDefinition\022\022\n\ntopic_name\030\001 \001" +
"(\t\"v\n\024QueueRangeAssignment\0220\n\013queue_rang" +
"e\030\001 \002(\0132\033.java.apphosting.QueueRange\022\024\n\014" +
"scanner_task\030\002 \002(\014\022\026\n\016timestamp_usec\030\003 \001" +
"(\003\"\230\001\n\010QueueMap\0229\n\npush_range\030\005 \003(\0132%.ja" +
"va.apphosting.QueueRangeAssignment\0229\n\npu" +
"ll_range\030\006 \003(\0132%.java.apphosting.QueueRa" +
"ngeAssignment\022\026\n\016timestamp_usec\030\004 \002(\003\"9\n" +
"\037StackdriverLoggingConfiguration\022\026\n\016samp" +
"ling_ratio\030\001 \001(\001B \n\036com.google.apphostin" +
"g.executor"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.apphosting.executor.Group.getDescriptor(),
com.google.apphosting.executor.Retry.getDescriptor(),
com.google.apphosting.executor.Target.getDescriptor(),
});
internal_static_java_apphosting_QueueRef_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_java_apphosting_QueueRef_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_java_apphosting_QueueRef_descriptor,
new java.lang.String[] { "GroupRef", "Name", });
internal_static_java_apphosting_QueueRangeBorder_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_java_apphosting_QueueRangeBorder_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_java_apphosting_QueueRangeBorder_descriptor,
new java.lang.String[] { "Customer", "Group", "Queue", });
internal_static_java_apphosting_QueueRange_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_java_apphosting_QueueRange_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_java_apphosting_QueueRange_descriptor,
new java.lang.String[] { "Start", "Limit", });
internal_static_java_apphosting_QueueRampupParameters_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_java_apphosting_QueueRampupParameters_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_java_apphosting_QueueRampupParameters_descriptor,
new java.lang.String[] { "SpeedupFactor", });
internal_static_java_apphosting_QueueThrottlingParameters_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_java_apphosting_QueueThrottlingParameters_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_java_apphosting_QueueThrottlingParameters_descriptor,
new java.lang.String[] { "BucketRefillPerSecond", "BucketCapacity", "MaxConcurrentRequests", "MaxPullRequestsPerSecond", "RampupParameters", "OverrideBucketRefillPerSecond", "OverrideBucketCapacity", "OverrideMaxConcurrentRequests", "OverrideMaxPullRequestsPerSecond", });
internal_static_java_apphosting_HttpTaskRunnerHeader_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_java_apphosting_HttpTaskRunnerHeader_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_java_apphosting_HttpTaskRunnerHeader_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_java_apphosting_ThresholdCrossing_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_java_apphosting_ThresholdCrossing_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_java_apphosting_ThresholdCrossing_descriptor,
new java.lang.String[] { "Threshold", "LastCrossedUsec", });
internal_static_java_apphosting_QueueAllocation_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_java_apphosting_QueueAllocation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_java_apphosting_QueueAllocation_descriptor,
new java.lang.String[] { "ThresholdsCrossed", });
internal_static_java_apphosting_TargetOverride_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_java_apphosting_TargetOverride_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_java_apphosting_TargetOverride_descriptor,
new java.lang.String[] { });
internal_static_java_apphosting_HttpTargetOverride_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_java_apphosting_HttpTargetOverride_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_java_apphosting_HttpTargetOverride_descriptor,
new java.lang.String[] { "Scheme", "Host", "Port", "Path", "Query", "HttpMethod", "TaskAuthorization", });
internal_static_java_apphosting_QueueDefinition_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_java_apphosting_QueueDefinition_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_java_apphosting_QueueDefinition_descriptor,
new java.lang.String[] { "QueueRef", "ThrottlingParameters", "UserSpecifiedRate", "LastPurgeUsec", "Paused", "RetryParameters", "Mode", "HeaderOverride", "Acl", "CreatorName", "NumReadShards", "NumWriteShards", "LastHeartbeatUsec", "QueueTaskCountCheckpoint", "PubsubQueueDef", "EnableCloudLogging", "AllocatedCapacity", "MaximumAliveLifetimeUsec", "MaximumTombstoneLifetimeUsec", "QueueAllocation", "LogSamplingRatio", "StackdriverLoggingConfig", "ExecutionMode", "TargetOverride", });
internal_static_java_apphosting_PubsubQueueDefinition_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_java_apphosting_PubsubQueueDefinition_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_java_apphosting_PubsubQueueDefinition_descriptor,
new java.lang.String[] { "TopicName", });
internal_static_java_apphosting_QueueRangeAssignment_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_java_apphosting_QueueRangeAssignment_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_java_apphosting_QueueRangeAssignment_descriptor,
new java.lang.String[] { "QueueRange", "ScannerTask", "TimestampUsec", });
internal_static_java_apphosting_QueueMap_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_java_apphosting_QueueMap_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_java_apphosting_QueueMap_descriptor,
new java.lang.String[] { "PushRange", "PullRange", "TimestampUsec", });
internal_static_java_apphosting_StackdriverLoggingConfiguration_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_java_apphosting_StackdriverLoggingConfiguration_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_java_apphosting_StackdriverLoggingConfiguration_descriptor,
new java.lang.String[] { "SamplingRatio", });
com.google.apphosting.executor.Group.getDescriptor();
com.google.apphosting.executor.Retry.getDescriptor();
com.google.apphosting.executor.Target.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy