com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol 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: ListRemoveWithIndex.proto
package com.alachisoft.ncache.common.protobuf;
public final class ListRemoveWithPivotProtocol {
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_alachisoft_ncache_common_protobuf_ListRemoveWithIndex_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_alachisoft_ncache_common_protobuf_ListRemoveWithIndex_fieldAccessorTable;
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\031ListRemoveWithIndex.proto\022%com.alachis" +
"oft.ncache.common.protobuf\"\267\001\n\023ListRemov" +
"eWithIndex\022\r\n\005start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\022Q" +
"\n\006method\030\003 \001(\0162A.com.alachisoft.ncache.c" +
"ommon.protobuf.ListRemoveWithIndex.Metho" +
"d\"1\n\006Method\022\010\n\004TRIM\020\001\022\017\n\013REMOVERANGE\020\002\022\014" +
"\n\010REMOVEAT\020\003B\035B\033ListRemoveWithPivotProto" +
"col"
};
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_ListRemoveWithIndex_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_alachisoft_ncache_common_protobuf_ListRemoveWithIndex_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_alachisoft_ncache_common_protobuf_ListRemoveWithIndex_descriptor,
new java.lang.String[]{"Start", "End", "Method",},
com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex.class,
com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex.Builder.class);
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[]{
}, assigner);
}
private ListRemoveWithPivotProtocol() {
}
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 ListRemoveWithIndex extends
com.google.protobuf.GeneratedMessage {
// optional int32 start = 1;
public static final int START_FIELD_NUMBER = 1;
// optional int32 end = 2;
public static final int END_FIELD_NUMBER = 2;
// optional .com.alachisoft.ncache.common.protobuf.ListRemoveWithIndex.Method method = 3;
public static final int METHOD_FIELD_NUMBER = 3;
private static final ListRemoveWithIndex defaultInstance;
static {
defaultInstance = new ListRemoveWithIndex(true);
com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.internalForceInit();
defaultInstance.initFields();
}
private boolean hasStart;
private int start_ = 0;
private boolean hasEnd;
private int end_ = 0;
private boolean hasMethod;
private com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex.Method method_;
private int memoizedSerializedSize = -1;
// Use ListRemoveWithIndex.newBuilder() to construct.
private ListRemoveWithIndex() {
initFields();
}
private ListRemoveWithIndex(boolean noInit) {
}
public static ListRemoveWithIndex getDefaultInstance() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.internal_static_com_alachisoft_ncache_common_protobuf_ListRemoveWithIndex_descriptor;
}
public static com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex 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.ListRemoveWithPivotProtocol.ListRemoveWithIndex parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex 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.ListRemoveWithPivotProtocol.ListRemoveWithIndex parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex 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.ListRemoveWithPivotProtocol.ListRemoveWithIndex 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.ListRemoveWithPivotProtocol.ListRemoveWithIndex 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.ListRemoveWithPivotProtocol.ListRemoveWithIndex parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex 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.ListRemoveWithPivotProtocol.ListRemoveWithIndex prototype) {
return newBuilder().mergeFrom(prototype);
}
public ListRemoveWithIndex getDefaultInstanceForType() {
return defaultInstance;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.internal_static_com_alachisoft_ncache_common_protobuf_ListRemoveWithIndex_fieldAccessorTable;
}
public boolean hasStart() {
return hasStart;
}
public int getStart() {
return start_;
}
public boolean hasEnd() {
return hasEnd;
}
public int getEnd() {
return end_;
}
public boolean hasMethod() {
return hasMethod;
}
public com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex.Method getMethod() {
return method_;
}
private void initFields() {
method_ = com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex.Method.TRIM;
}
public final boolean isInitialized() {
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (hasStart()) {
output.writeInt32(1, getStart());
}
if (hasEnd()) {
output.writeInt32(2, getEnd());
}
if (hasMethod()) {
output.writeEnum(3, getMethod().getNumber());
}
getUnknownFields().writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasStart()) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, getStart());
}
if (hasEnd()) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, getEnd());
}
if (hasMethod()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, getMethod().getNumber());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
public Builder newBuilderForType() {
return newBuilder();
}
public Builder toBuilder() {
return newBuilder(this);
}
public enum Method
implements com.google.protobuf.ProtocolMessageEnum {
TRIM(0, 1),
REMOVERANGE(1, 2),
REMOVEAT(2, 3),
;
private static final Method[] VALUES = {
TRIM, REMOVERANGE, REMOVEAT,
};
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Method findValueByNumber(int number) {
return Method.valueOf(number)
;
}
};
static {
com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.getDescriptor();
}
private final int index;
private final int value;
private Method(int index, int value) {
this.index = index;
this.value = value;
}
public static Method valueOf(int value) {
switch (value) {
case 1:
return TRIM;
case 2:
return REMOVERANGE;
case 3:
return REMOVEAT;
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.ListRemoveWithPivotProtocol.ListRemoveWithIndex.getDescriptor().getEnumTypes().get(0);
}
public static Method 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.ListRemoveWithIndex.Method)
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder {
private com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex result;
// Construct using com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex.newBuilder()
private Builder() {
}
private static Builder create() {
Builder builder = new Builder();
builder.result = new com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex();
return builder;
}
protected com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex internalGetResult() {
return result;
}
public Builder clear() {
if (result == null) {
throw new IllegalStateException(
"Cannot call clear() after build().");
}
result = new com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex();
return this;
}
public Builder clone() {
return create().mergeFrom(result);
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex.getDescriptor();
}
public com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex getDefaultInstanceForType() {
return com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex.getDefaultInstance();
}
public boolean isInitialized() {
return result.isInitialized();
}
public com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex build() {
if (result != null && !isInitialized()) {
throw newUninitializedMessageException(result);
}
return buildPartial();
}
private com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder.");
}
com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex returnMe = result;
result = null;
return returnMe;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex) {
return mergeFrom((com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex other) {
if (other == com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex.getDefaultInstance())
return this;
if (other.hasStart()) {
setStart(other.getStart());
}
if (other.hasEnd()) {
setEnd(other.getEnd());
}
if (other.hasMethod()) {
setMethod(other.getMethod());
}
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: {
setStart(input.readInt32());
break;
}
case 16: {
setEnd(input.readInt32());
break;
}
case 24: {
int rawValue = input.readEnum();
com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex.Method value = com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex.Method.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(3, rawValue);
} else {
setMethod(value);
}
break;
}
}
}
}
// optional int32 start = 1;
public boolean hasStart() {
return result.hasStart();
}
public int getStart() {
return result.getStart();
}
public Builder setStart(int value) {
result.hasStart = true;
result.start_ = value;
return this;
}
public Builder clearStart() {
result.hasStart = false;
result.start_ = 0;
return this;
}
// optional int32 end = 2;
public boolean hasEnd() {
return result.hasEnd();
}
public int getEnd() {
return result.getEnd();
}
public Builder setEnd(int value) {
result.hasEnd = true;
result.end_ = value;
return this;
}
public Builder clearEnd() {
result.hasEnd = false;
result.end_ = 0;
return this;
}
// optional .com.alachisoft.ncache.common.protobuf.ListRemoveWithIndex.Method method = 3;
public boolean hasMethod() {
return result.hasMethod();
}
public com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex.Method getMethod() {
return result.getMethod();
}
public Builder setMethod(com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex.Method value) {
if (value == null) {
throw new NullPointerException();
}
result.hasMethod = true;
result.method_ = value;
return this;
}
public Builder clearMethod() {
result.hasMethod = false;
result.method_ = com.alachisoft.ncache.common.protobuf.ListRemoveWithPivotProtocol.ListRemoveWithIndex.Method.TRIM;
return this;
}
// @@protoc_insertion_point(builder_scope:com.alachisoft.ncache.common.protobuf.ListRemoveWithIndex)
}
// @@protoc_insertion_point(class_scope:com.alachisoft.ncache.common.protobuf.ListRemoveWithIndex)
}
// @@protoc_insertion_point(outer_class_scope)
}