com.alachisoft.ncache.common.protobuf.QueueCommandProtocol Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nc-common Show documentation
Show all versions of nc-common Show documentation
Internal package of Alachisoft.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: QueueCommand.proto
package com.alachisoft.ncache.common.protobuf;
public final class QueueCommandProtocol {
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_alachisoft_ncache_common_protobuf_QueueCommand_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_alachisoft_ncache_common_protobuf_QueueCommand_fieldAccessorTable;
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\022QueueCommand.proto\022%com.alachisoft.nca" +
"che.common.protobuf\032\016LockInfo.proto\032\022Que" +
"ueEnqueue.proto\032\022QueueDequeue.proto\032\021Que" +
"ueSearch.proto\032\017QueuePeek.proto\"\333\004\n\014Queu" +
"eCommand\022F\n\004type\030\001 \001(\01628.com.alachisoft." +
"ncache.common.protobuf.QueueCommand.Type" +
"\022I\n\014queueEnqueue\030\002 \001(\01323.com.alachisoft." +
"ncache.common.protobuf.QueueEnqueue\022I\n\014q" +
"ueueDequeue\030\003 \001(\01323.com.alachisoft.ncach" +
"e.common.protobuf.QueueDequeue\022G\n\013queueS",
"earch\030\004 \001(\01322.com.alachisoft.ncache.comm" +
"on.protobuf.QueueSearch\022C\n\tqueuePeek\030\005 \001" +
"(\01320.com.alachisoft.ncache.common.protob" +
"uf.QueuePeek\022\021\n\trequestId\030\006 \001(\003\022\014\n\004name\030" +
"\007 \001(\t\022A\n\010lockInfo\030\010 \001(\0132/.com.alachisoft" +
".ncache.common.protobuf.LockInfo\022\025\n\rdsWr" +
"iteOption\030\t \001(\005\022\024\n\014providerName\030\n \001(\t\"N\n" +
"\004Type\022\021\n\rQUEUE_ENQUEUE\020\001\022\021\n\rQUEUE_DEQUEU" +
"E\020\002\022\020\n\014QUEUE_SEARCH\020\004\022\016\n\nQUEUE_PEEK\020\005B\026B" +
"\024QueueCommandProtocol"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
internal_static_com_alachisoft_ncache_common_protobuf_QueueCommand_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_alachisoft_ncache_common_protobuf_QueueCommand_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_alachisoft_ncache_common_protobuf_QueueCommand_descriptor,
new java.lang.String[]{"Type", "QueueEnqueue", "QueueDequeue", "QueueSearch", "QueuePeek", "RequestId", "Name", "LockInfo", "DsWriteOption", "ProviderName",},
com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand.class,
com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand.Builder.class);
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[]{
com.alachisoft.ncache.common.protobuf.LockInfoProtocol.getDescriptor(),
com.alachisoft.ncache.common.protobuf.QueueEnqueueProtocol.getDescriptor(),
com.alachisoft.ncache.common.protobuf.QueueDequeueProtocol.getDescriptor(),
com.alachisoft.ncache.common.protobuf.QueueSerachProtocol.getDescriptor(),
com.alachisoft.ncache.common.protobuf.QueuePeekProtocol.getDescriptor(),
}, assigner);
}
private QueueCommandProtocol() {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
public static void internalForceInit() {
}
public static final class QueueCommand extends
com.google.protobuf.GeneratedMessage {
// optional .com.alachisoft.ncache.common.protobuf.QueueCommand.Type type = 1;
public static final int TYPE_FIELD_NUMBER = 1;
// optional .com.alachisoft.ncache.common.protobuf.QueueEnqueue queueEnqueue = 2;
public static final int QUEUEENQUEUE_FIELD_NUMBER = 2;
// optional .com.alachisoft.ncache.common.protobuf.QueueDequeue queueDequeue = 3;
public static final int QUEUEDEQUEUE_FIELD_NUMBER = 3;
// optional .com.alachisoft.ncache.common.protobuf.QueueSearch queueSearch = 4;
public static final int QUEUESEARCH_FIELD_NUMBER = 4;
// optional .com.alachisoft.ncache.common.protobuf.QueuePeek queuePeek = 5;
public static final int QUEUEPEEK_FIELD_NUMBER = 5;
// optional int64 requestId = 6;
public static final int REQUESTID_FIELD_NUMBER = 6;
// optional string name = 7;
public static final int NAME_FIELD_NUMBER = 7;
// optional .com.alachisoft.ncache.common.protobuf.LockInfo lockInfo = 8;
public static final int LOCKINFO_FIELD_NUMBER = 8;
// optional int32 dsWriteOption = 9;
public static final int DSWRITEOPTION_FIELD_NUMBER = 9;
// optional string providerName = 10;
public static final int PROVIDERNAME_FIELD_NUMBER = 10;
private static final QueueCommand defaultInstance;
static {
defaultInstance = new QueueCommand(true);
com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.internalForceInit();
defaultInstance.initFields();
}
private boolean hasType;
private com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand.Type type_;
private boolean hasQueueEnqueue;
private com.alachisoft.ncache.common.protobuf.QueueEnqueueProtocol.QueueEnqueue queueEnqueue_;
private boolean hasQueueDequeue;
private com.alachisoft.ncache.common.protobuf.QueueDequeueProtocol.QueueDequeue queueDequeue_;
private boolean hasQueueSearch;
private com.alachisoft.ncache.common.protobuf.QueueSerachProtocol.QueueSearch queueSearch_;
private boolean hasQueuePeek;
private com.alachisoft.ncache.common.protobuf.QueuePeekProtocol.QueuePeek queuePeek_;
private boolean hasRequestId;
private long requestId_ = 0L;
private boolean hasName;
private java.lang.String name_ = "";
private boolean hasLockInfo;
private com.alachisoft.ncache.common.protobuf.LockInfoProtocol.LockInfo lockInfo_;
private boolean hasDsWriteOption;
private int dsWriteOption_ = 0;
private boolean hasProviderName;
private java.lang.String providerName_ = "";
private int memoizedSerializedSize = -1;
// Use QueueCommand.newBuilder() to construct.
private QueueCommand() {
initFields();
}
private QueueCommand(boolean noInit) {
}
public static QueueCommand getDefaultInstance() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.internal_static_com_alachisoft_ncache_common_protobuf_QueueCommand_descriptor;
}
public static com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() {
return Builder.create();
}
public static Builder newBuilder(com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand prototype) {
return newBuilder().mergeFrom(prototype);
}
public QueueCommand getDefaultInstanceForType() {
return defaultInstance;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.internal_static_com_alachisoft_ncache_common_protobuf_QueueCommand_fieldAccessorTable;
}
public boolean hasType() {
return hasType;
}
public com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand.Type getType() {
return type_;
}
public boolean hasQueueEnqueue() {
return hasQueueEnqueue;
}
public com.alachisoft.ncache.common.protobuf.QueueEnqueueProtocol.QueueEnqueue getQueueEnqueue() {
return queueEnqueue_;
}
public boolean hasQueueDequeue() {
return hasQueueDequeue;
}
public com.alachisoft.ncache.common.protobuf.QueueDequeueProtocol.QueueDequeue getQueueDequeue() {
return queueDequeue_;
}
public boolean hasQueueSearch() {
return hasQueueSearch;
}
public com.alachisoft.ncache.common.protobuf.QueueSerachProtocol.QueueSearch getQueueSearch() {
return queueSearch_;
}
public boolean hasQueuePeek() {
return hasQueuePeek;
}
public com.alachisoft.ncache.common.protobuf.QueuePeekProtocol.QueuePeek getQueuePeek() {
return queuePeek_;
}
public boolean hasRequestId() {
return hasRequestId;
}
public long getRequestId() {
return requestId_;
}
public boolean hasName() {
return hasName;
}
public java.lang.String getName() {
return name_;
}
public boolean hasLockInfo() {
return hasLockInfo;
}
public com.alachisoft.ncache.common.protobuf.LockInfoProtocol.LockInfo getLockInfo() {
return lockInfo_;
}
public boolean hasDsWriteOption() {
return hasDsWriteOption;
}
public int getDsWriteOption() {
return dsWriteOption_;
}
public boolean hasProviderName() {
return hasProviderName;
}
public java.lang.String getProviderName() {
return providerName_;
}
private void initFields() {
type_ = com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand.Type.QUEUE_ENQUEUE;
queueEnqueue_ = com.alachisoft.ncache.common.protobuf.QueueEnqueueProtocol.QueueEnqueue.getDefaultInstance();
queueDequeue_ = com.alachisoft.ncache.common.protobuf.QueueDequeueProtocol.QueueDequeue.getDefaultInstance();
queueSearch_ = com.alachisoft.ncache.common.protobuf.QueueSerachProtocol.QueueSearch.getDefaultInstance();
queuePeek_ = com.alachisoft.ncache.common.protobuf.QueuePeekProtocol.QueuePeek.getDefaultInstance();
lockInfo_ = com.alachisoft.ncache.common.protobuf.LockInfoProtocol.LockInfo.getDefaultInstance();
}
public final boolean isInitialized() {
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (hasType()) {
output.writeEnum(1, getType().getNumber());
}
if (hasQueueEnqueue()) {
output.writeMessage(2, getQueueEnqueue());
}
if (hasQueueDequeue()) {
output.writeMessage(3, getQueueDequeue());
}
if (hasQueueSearch()) {
output.writeMessage(4, getQueueSearch());
}
if (hasQueuePeek()) {
output.writeMessage(5, getQueuePeek());
}
if (hasRequestId()) {
output.writeInt64(6, getRequestId());
}
if (hasName()) {
output.writeString(7, getName());
}
if (hasLockInfo()) {
output.writeMessage(8, getLockInfo());
}
if (hasDsWriteOption()) {
output.writeInt32(9, getDsWriteOption());
}
if (hasProviderName()) {
output.writeString(10, getProviderName());
}
getUnknownFields().writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasType()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, getType().getNumber());
}
if (hasQueueEnqueue()) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getQueueEnqueue());
}
if (hasQueueDequeue()) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getQueueDequeue());
}
if (hasQueueSearch()) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getQueueSearch());
}
if (hasQueuePeek()) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getQueuePeek());
}
if (hasRequestId()) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, getRequestId());
}
if (hasName()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(7, getName());
}
if (hasLockInfo()) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getLockInfo());
}
if (hasDsWriteOption()) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(9, getDsWriteOption());
}
if (hasProviderName()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(10, getProviderName());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
public Builder newBuilderForType() {
return newBuilder();
}
public Builder toBuilder() {
return newBuilder(this);
}
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
QUEUE_ENQUEUE(0, 1),
QUEUE_DEQUEUE(1, 2),
QUEUE_SEARCH(2, 4),
QUEUE_PEEK(3, 5),
;
private static final Type[] VALUES = {
QUEUE_ENQUEUE, QUEUE_DEQUEUE, QUEUE_SEARCH, QUEUE_PEEK,
};
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.valueOf(number)
;
}
};
static {
com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.getDescriptor();
}
private final int index;
private final int value;
private Type(int index, int value) {
this.index = index;
this.value = value;
}
public static Type valueOf(int value) {
switch (value) {
case 1:
return QUEUE_ENQUEUE;
case 2:
return QUEUE_DEQUEUE;
case 4:
return QUEUE_SEARCH;
case 5:
return QUEUE_PEEK;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand.getDescriptor().getEnumTypes().get(0);
}
public static Type 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()];
}
public final int getNumber() {
return value;
}
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
// @@protoc_insertion_point(enum_scope:com.alachisoft.ncache.common.protobuf.QueueCommand.Type)
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder {
private com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand result;
// Construct using com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand.newBuilder()
private Builder() {
}
private static Builder create() {
Builder builder = new Builder();
builder.result = new com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand();
return builder;
}
protected com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand internalGetResult() {
return result;
}
public Builder clear() {
if (result == null) {
throw new IllegalStateException(
"Cannot call clear() after build().");
}
result = new com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand();
return this;
}
public Builder clone() {
return create().mergeFrom(result);
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand.getDescriptor();
}
public com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand getDefaultInstanceForType() {
return com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand.getDefaultInstance();
}
public boolean isInitialized() {
return result.isInitialized();
}
public com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand build() {
if (result != null && !isInitialized()) {
throw newUninitializedMessageException(result);
}
return buildPartial();
}
private com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder.");
}
com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand returnMe = result;
result = null;
return returnMe;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand) {
return mergeFrom((com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand other) {
if (other == com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand.getDefaultInstance())
return this;
if (other.hasType()) {
setType(other.getType());
}
if (other.hasQueueEnqueue()) {
mergeQueueEnqueue(other.getQueueEnqueue());
}
if (other.hasQueueDequeue()) {
mergeQueueDequeue(other.getQueueDequeue());
}
if (other.hasQueueSearch()) {
mergeQueueSearch(other.getQueueSearch());
}
if (other.hasQueuePeek()) {
mergeQueuePeek(other.getQueuePeek());
}
if (other.hasRequestId()) {
setRequestId(other.getRequestId());
}
if (other.hasName()) {
setName(other.getName());
}
if (other.hasLockInfo()) {
mergeLockInfo(other.getLockInfo());
}
if (other.hasDsWriteOption()) {
setDsWriteOption(other.getDsWriteOption());
}
if (other.hasProviderName()) {
setProviderName(other.getProviderName());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder(
this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
return this;
}
break;
}
case 8: {
int rawValue = input.readEnum();
com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand.Type value = com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand.Type.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
setType(value);
}
break;
}
case 18: {
com.alachisoft.ncache.common.protobuf.QueueEnqueueProtocol.QueueEnqueue.Builder subBuilder = com.alachisoft.ncache.common.protobuf.QueueEnqueueProtocol.QueueEnqueue.newBuilder();
if (hasQueueEnqueue()) {
subBuilder.mergeFrom(getQueueEnqueue());
}
input.readMessage(subBuilder, extensionRegistry);
setQueueEnqueue(subBuilder.buildPartial());
break;
}
case 26: {
com.alachisoft.ncache.common.protobuf.QueueDequeueProtocol.QueueDequeue.Builder subBuilder = com.alachisoft.ncache.common.protobuf.QueueDequeueProtocol.QueueDequeue.newBuilder();
if (hasQueueDequeue()) {
subBuilder.mergeFrom(getQueueDequeue());
}
input.readMessage(subBuilder, extensionRegistry);
setQueueDequeue(subBuilder.buildPartial());
break;
}
case 34: {
com.alachisoft.ncache.common.protobuf.QueueSerachProtocol.QueueSearch.Builder subBuilder = com.alachisoft.ncache.common.protobuf.QueueSerachProtocol.QueueSearch.newBuilder();
if (hasQueueSearch()) {
subBuilder.mergeFrom(getQueueSearch());
}
input.readMessage(subBuilder, extensionRegistry);
setQueueSearch(subBuilder.buildPartial());
break;
}
case 42: {
com.alachisoft.ncache.common.protobuf.QueuePeekProtocol.QueuePeek.Builder subBuilder = com.alachisoft.ncache.common.protobuf.QueuePeekProtocol.QueuePeek.newBuilder();
if (hasQueuePeek()) {
subBuilder.mergeFrom(getQueuePeek());
}
input.readMessage(subBuilder, extensionRegistry);
setQueuePeek(subBuilder.buildPartial());
break;
}
case 48: {
setRequestId(input.readInt64());
break;
}
case 58: {
setName(input.readString());
break;
}
case 66: {
com.alachisoft.ncache.common.protobuf.LockInfoProtocol.LockInfo.Builder subBuilder = com.alachisoft.ncache.common.protobuf.LockInfoProtocol.LockInfo.newBuilder();
if (hasLockInfo()) {
subBuilder.mergeFrom(getLockInfo());
}
input.readMessage(subBuilder, extensionRegistry);
setLockInfo(subBuilder.buildPartial());
break;
}
case 72: {
setDsWriteOption(input.readInt32());
break;
}
case 82: {
setProviderName(input.readString());
break;
}
}
}
}
// optional .com.alachisoft.ncache.common.protobuf.QueueCommand.Type type = 1;
public boolean hasType() {
return result.hasType();
}
public com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand.Type getType() {
return result.getType();
}
public Builder setType(com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand.Type value) {
if (value == null) {
throw new NullPointerException();
}
result.hasType = true;
result.type_ = value;
return this;
}
public Builder clearType() {
result.hasType = false;
result.type_ = com.alachisoft.ncache.common.protobuf.QueueCommandProtocol.QueueCommand.Type.QUEUE_ENQUEUE;
return this;
}
// optional .com.alachisoft.ncache.common.protobuf.QueueEnqueue queueEnqueue = 2;
public boolean hasQueueEnqueue() {
return result.hasQueueEnqueue();
}
public com.alachisoft.ncache.common.protobuf.QueueEnqueueProtocol.QueueEnqueue getQueueEnqueue() {
return result.getQueueEnqueue();
}
public Builder setQueueEnqueue(com.alachisoft.ncache.common.protobuf.QueueEnqueueProtocol.QueueEnqueue value) {
if (value == null) {
throw new NullPointerException();
}
result.hasQueueEnqueue = true;
result.queueEnqueue_ = value;
return this;
}
public Builder setQueueEnqueue(com.alachisoft.ncache.common.protobuf.QueueEnqueueProtocol.QueueEnqueue.Builder builderForValue) {
result.hasQueueEnqueue = true;
result.queueEnqueue_ = builderForValue.build();
return this;
}
public Builder mergeQueueEnqueue(com.alachisoft.ncache.common.protobuf.QueueEnqueueProtocol.QueueEnqueue value) {
if (result.hasQueueEnqueue() &&
result.queueEnqueue_ != com.alachisoft.ncache.common.protobuf.QueueEnqueueProtocol.QueueEnqueue.getDefaultInstance()) {
result.queueEnqueue_ =
com.alachisoft.ncache.common.protobuf.QueueEnqueueProtocol.QueueEnqueue.newBuilder(result.queueEnqueue_).mergeFrom(value).buildPartial();
} else {
result.queueEnqueue_ = value;
}
result.hasQueueEnqueue = true;
return this;
}
public Builder clearQueueEnqueue() {
result.hasQueueEnqueue = false;
result.queueEnqueue_ = com.alachisoft.ncache.common.protobuf.QueueEnqueueProtocol.QueueEnqueue.getDefaultInstance();
return this;
}
// optional .com.alachisoft.ncache.common.protobuf.QueueDequeue queueDequeue = 3;
public boolean hasQueueDequeue() {
return result.hasQueueDequeue();
}
public com.alachisoft.ncache.common.protobuf.QueueDequeueProtocol.QueueDequeue getQueueDequeue() {
return result.getQueueDequeue();
}
public Builder setQueueDequeue(com.alachisoft.ncache.common.protobuf.QueueDequeueProtocol.QueueDequeue value) {
if (value == null) {
throw new NullPointerException();
}
result.hasQueueDequeue = true;
result.queueDequeue_ = value;
return this;
}
public Builder setQueueDequeue(com.alachisoft.ncache.common.protobuf.QueueDequeueProtocol.QueueDequeue.Builder builderForValue) {
result.hasQueueDequeue = true;
result.queueDequeue_ = builderForValue.build();
return this;
}
public Builder mergeQueueDequeue(com.alachisoft.ncache.common.protobuf.QueueDequeueProtocol.QueueDequeue value) {
if (result.hasQueueDequeue() &&
result.queueDequeue_ != com.alachisoft.ncache.common.protobuf.QueueDequeueProtocol.QueueDequeue.getDefaultInstance()) {
result.queueDequeue_ =
com.alachisoft.ncache.common.protobuf.QueueDequeueProtocol.QueueDequeue.newBuilder(result.queueDequeue_).mergeFrom(value).buildPartial();
} else {
result.queueDequeue_ = value;
}
result.hasQueueDequeue = true;
return this;
}
public Builder clearQueueDequeue() {
result.hasQueueDequeue = false;
result.queueDequeue_ = com.alachisoft.ncache.common.protobuf.QueueDequeueProtocol.QueueDequeue.getDefaultInstance();
return this;
}
// optional .com.alachisoft.ncache.common.protobuf.QueueSearch queueSearch = 4;
public boolean hasQueueSearch() {
return result.hasQueueSearch();
}
public com.alachisoft.ncache.common.protobuf.QueueSerachProtocol.QueueSearch getQueueSearch() {
return result.getQueueSearch();
}
public Builder setQueueSearch(com.alachisoft.ncache.common.protobuf.QueueSerachProtocol.QueueSearch value) {
if (value == null) {
throw new NullPointerException();
}
result.hasQueueSearch = true;
result.queueSearch_ = value;
return this;
}
public Builder setQueueSearch(com.alachisoft.ncache.common.protobuf.QueueSerachProtocol.QueueSearch.Builder builderForValue) {
result.hasQueueSearch = true;
result.queueSearch_ = builderForValue.build();
return this;
}
public Builder mergeQueueSearch(com.alachisoft.ncache.common.protobuf.QueueSerachProtocol.QueueSearch value) {
if (result.hasQueueSearch() &&
result.queueSearch_ != com.alachisoft.ncache.common.protobuf.QueueSerachProtocol.QueueSearch.getDefaultInstance()) {
result.queueSearch_ =
com.alachisoft.ncache.common.protobuf.QueueSerachProtocol.QueueSearch.newBuilder(result.queueSearch_).mergeFrom(value).buildPartial();
} else {
result.queueSearch_ = value;
}
result.hasQueueSearch = true;
return this;
}
public Builder clearQueueSearch() {
result.hasQueueSearch = false;
result.queueSearch_ = com.alachisoft.ncache.common.protobuf.QueueSerachProtocol.QueueSearch.getDefaultInstance();
return this;
}
// optional .com.alachisoft.ncache.common.protobuf.QueuePeek queuePeek = 5;
public boolean hasQueuePeek() {
return result.hasQueuePeek();
}
public com.alachisoft.ncache.common.protobuf.QueuePeekProtocol.QueuePeek getQueuePeek() {
return result.getQueuePeek();
}
public Builder setQueuePeek(com.alachisoft.ncache.common.protobuf.QueuePeekProtocol.QueuePeek value) {
if (value == null) {
throw new NullPointerException();
}
result.hasQueuePeek = true;
result.queuePeek_ = value;
return this;
}
public Builder setQueuePeek(com.alachisoft.ncache.common.protobuf.QueuePeekProtocol.QueuePeek.Builder builderForValue) {
result.hasQueuePeek = true;
result.queuePeek_ = builderForValue.build();
return this;
}
public Builder mergeQueuePeek(com.alachisoft.ncache.common.protobuf.QueuePeekProtocol.QueuePeek value) {
if (result.hasQueuePeek() &&
result.queuePeek_ != com.alachisoft.ncache.common.protobuf.QueuePeekProtocol.QueuePeek.getDefaultInstance()) {
result.queuePeek_ =
com.alachisoft.ncache.common.protobuf.QueuePeekProtocol.QueuePeek.newBuilder(result.queuePeek_).mergeFrom(value).buildPartial();
} else {
result.queuePeek_ = value;
}
result.hasQueuePeek = true;
return this;
}
public Builder clearQueuePeek() {
result.hasQueuePeek = false;
result.queuePeek_ = com.alachisoft.ncache.common.protobuf.QueuePeekProtocol.QueuePeek.getDefaultInstance();
return this;
}
// optional int64 requestId = 6;
public boolean hasRequestId() {
return result.hasRequestId();
}
public long getRequestId() {
return result.getRequestId();
}
public Builder setRequestId(long value) {
result.hasRequestId = true;
result.requestId_ = value;
return this;
}
public Builder clearRequestId() {
result.hasRequestId = false;
result.requestId_ = 0L;
return this;
}
// optional string name = 7;
public boolean hasName() {
return result.hasName();
}
public java.lang.String getName() {
return result.getName();
}
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasName = true;
result.name_ = value;
return this;
}
public Builder clearName() {
result.hasName = false;
result.name_ = getDefaultInstance().getName();
return this;
}
// optional .com.alachisoft.ncache.common.protobuf.LockInfo lockInfo = 8;
public boolean hasLockInfo() {
return result.hasLockInfo();
}
public com.alachisoft.ncache.common.protobuf.LockInfoProtocol.LockInfo getLockInfo() {
return result.getLockInfo();
}
public Builder setLockInfo(com.alachisoft.ncache.common.protobuf.LockInfoProtocol.LockInfo value) {
if (value == null) {
throw new NullPointerException();
}
result.hasLockInfo = true;
result.lockInfo_ = value;
return this;
}
public Builder setLockInfo(com.alachisoft.ncache.common.protobuf.LockInfoProtocol.LockInfo.Builder builderForValue) {
result.hasLockInfo = true;
result.lockInfo_ = builderForValue.build();
return this;
}
public Builder mergeLockInfo(com.alachisoft.ncache.common.protobuf.LockInfoProtocol.LockInfo value) {
if (result.hasLockInfo() &&
result.lockInfo_ != com.alachisoft.ncache.common.protobuf.LockInfoProtocol.LockInfo.getDefaultInstance()) {
result.lockInfo_ =
com.alachisoft.ncache.common.protobuf.LockInfoProtocol.LockInfo.newBuilder(result.lockInfo_).mergeFrom(value).buildPartial();
} else {
result.lockInfo_ = value;
}
result.hasLockInfo = true;
return this;
}
public Builder clearLockInfo() {
result.hasLockInfo = false;
result.lockInfo_ = com.alachisoft.ncache.common.protobuf.LockInfoProtocol.LockInfo.getDefaultInstance();
return this;
}
// optional int32 dsWriteOption = 9;
public boolean hasDsWriteOption() {
return result.hasDsWriteOption();
}
public int getDsWriteOption() {
return result.getDsWriteOption();
}
public Builder setDsWriteOption(int value) {
result.hasDsWriteOption = true;
result.dsWriteOption_ = value;
return this;
}
public Builder clearDsWriteOption() {
result.hasDsWriteOption = false;
result.dsWriteOption_ = 0;
return this;
}
// optional string providerName = 10;
public boolean hasProviderName() {
return result.hasProviderName();
}
public java.lang.String getProviderName() {
return result.getProviderName();
}
public Builder setProviderName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasProviderName = true;
result.providerName_ = value;
return this;
}
public Builder clearProviderName() {
result.hasProviderName = false;
result.providerName_ = getDefaultInstance().getProviderName();
return this;
}
// @@protoc_insertion_point(builder_scope:com.alachisoft.ncache.common.protobuf.QueueCommand)
}
// @@protoc_insertion_point(class_scope:com.alachisoft.ncache.common.protobuf.QueueCommand)
}
// @@protoc_insertion_point(outer_class_scope)
}