All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alachisoft.ncache.common.protobuf.CounterCommandProtocol Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: CounterCommand.proto

package com.alachisoft.ncache.common.protobuf;

public final class CounterCommandProtocol {
    private static com.google.protobuf.Descriptors.Descriptor
            internal_static_com_alachisoft_ncache_common_protobuf_CounterCommand_descriptor;
    private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internal_static_com_alachisoft_ncache_common_protobuf_CounterCommand_fieldAccessorTable;
    private static com.google.protobuf.Descriptors.FileDescriptor
            descriptor;

    static {
        java.lang.String[] descriptorData = {
                "\n\024CounterCommand.proto\022%com.alachisoft.n" +
                        "cache.common.protobuf\032\016LockInfo.proto\032\031C" +
                        "ounterGetOperation.proto\032\027CounterOperati" +
                        "ons.proto\"\312\003\n\016CounterCommand\022H\n\004type\030\001 \001" +
                        "(\0162:.com.alachisoft.ncache.common.protob" +
                        "uf.CounterCommand.Type\022S\n\021counterOperati" +
                        "ons\030\002 \001(\01328.com.alachisoft.ncache.common" +
                        ".protobuf.CounterOperations\022W\n\023counterGe" +
                        "tOperation\030\003 \001(\0132:.com.alachisoft.ncache" +
                        ".common.protobuf.CounterGetOperation\022\021\n\t",
                "requestId\030\006 \001(\003\022\014\n\004name\030\007 \001(\t\022A\n\010lockInf" +
                        "o\030\010 \001(\0132/.com.alachisoft.ncache.common.p" +
                        "rotobuf.LockInfo\022\025\n\rdsWriteOption\030\t \001(\005\022" +
                        "\024\n\014providerName\030\n \001(\t\"/\n\004Type\022\026\n\022COUNTER" +
                        "_OPERATIONS\020\001\022\017\n\013COUNTER_GET\020\002B\030B\026Counte" +
                        "rCommandProtocol"
        };
        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_CounterCommand_descriptor =
                                getDescriptor().getMessageTypes().get(0);
                        internal_static_com_alachisoft_ncache_common_protobuf_CounterCommand_fieldAccessorTable = new
                                com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                                internal_static_com_alachisoft_ncache_common_protobuf_CounterCommand_descriptor,
                                new java.lang.String[]{"Type", "CounterOperations", "CounterGetOperation", "RequestId", "Name", "LockInfo", "DsWriteOption", "ProviderName",},
                                com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand.class,
                                com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand.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.CounterGetOperationProtocol.getDescriptor(),
                                com.alachisoft.ncache.common.protobuf.CounterOpertionsProtocol.getDescriptor(),
                        }, assigner);
    }
    private CounterCommandProtocol() {
    }

    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 CounterCommand extends
            com.google.protobuf.GeneratedMessage {
        // optional .com.alachisoft.ncache.common.protobuf.CounterCommand.Type type = 1;
        public static final int TYPE_FIELD_NUMBER = 1;
        // optional .com.alachisoft.ncache.common.protobuf.CounterOperations counterOperations = 2;
        public static final int COUNTEROPERATIONS_FIELD_NUMBER = 2;
        // optional .com.alachisoft.ncache.common.protobuf.CounterGetOperation counterGetOperation = 3;
        public static final int COUNTERGETOPERATION_FIELD_NUMBER = 3;
        // 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 CounterCommand defaultInstance;

        static {
            defaultInstance = new CounterCommand(true);
            com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.internalForceInit();
            defaultInstance.initFields();
        }

        private boolean hasType;
        private com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand.Type type_;
        private boolean hasCounterOperations;
        private com.alachisoft.ncache.common.protobuf.CounterOpertionsProtocol.CounterOperations counterOperations_;
        private boolean hasCounterGetOperation;
        private com.alachisoft.ncache.common.protobuf.CounterGetOperationProtocol.CounterGetOperation counterGetOperation_;
        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 CounterCommand.newBuilder() to construct.
        private CounterCommand() {
            initFields();
        }

        private CounterCommand(boolean noInit) {
        }

        public static CounterCommand getDefaultInstance() {
            return defaultInstance;
        }

        public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
            return com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.internal_static_com_alachisoft_ncache_common_protobuf_CounterCommand_descriptor;
        }

        public static com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand parseFrom(
                com.google.protobuf.ByteString data)
                throws com.google.protobuf.InvalidProtocolBufferException {
            return newBuilder().mergeFrom(data).buildParsed();
        }

        public static com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand 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.CounterCommandProtocol.CounterCommand parseFrom(byte[] data)
                throws com.google.protobuf.InvalidProtocolBufferException {
            return newBuilder().mergeFrom(data).buildParsed();
        }

        public static com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand 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.CounterCommandProtocol.CounterCommand parseFrom(java.io.InputStream input)
                throws java.io.IOException {
            return newBuilder().mergeFrom(input).buildParsed();
        }

        public static com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand 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.CounterCommandProtocol.CounterCommand 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.CounterCommandProtocol.CounterCommand 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.CounterCommandProtocol.CounterCommand parseFrom(
                com.google.protobuf.CodedInputStream input)
                throws java.io.IOException {
            return newBuilder().mergeFrom(input).buildParsed();
        }

        public static com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand 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.CounterCommandProtocol.CounterCommand prototype) {
            return newBuilder().mergeFrom(prototype);
        }

        public CounterCommand getDefaultInstanceForType() {
            return defaultInstance;
        }

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
            return com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.internal_static_com_alachisoft_ncache_common_protobuf_CounterCommand_fieldAccessorTable;
        }

        public boolean hasType() {
            return hasType;
        }

        public com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand.Type getType() {
            return type_;
        }

        public boolean hasCounterOperations() {
            return hasCounterOperations;
        }

        public com.alachisoft.ncache.common.protobuf.CounterOpertionsProtocol.CounterOperations getCounterOperations() {
            return counterOperations_;
        }

        public boolean hasCounterGetOperation() {
            return hasCounterGetOperation;
        }

        public com.alachisoft.ncache.common.protobuf.CounterGetOperationProtocol.CounterGetOperation getCounterGetOperation() {
            return counterGetOperation_;
        }

        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.CounterCommandProtocol.CounterCommand.Type.COUNTER_OPERATIONS;
            counterOperations_ = com.alachisoft.ncache.common.protobuf.CounterOpertionsProtocol.CounterOperations.getDefaultInstance();
            counterGetOperation_ = com.alachisoft.ncache.common.protobuf.CounterGetOperationProtocol.CounterGetOperation.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 (hasCounterOperations()) {
                output.writeMessage(2, getCounterOperations());
            }
            if (hasCounterGetOperation()) {
                output.writeMessage(3, getCounterGetOperation());
            }
            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 (hasCounterOperations()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(2, getCounterOperations());
            }
            if (hasCounterGetOperation()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(3, getCounterGetOperation());
            }
            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 {
            COUNTER_OPERATIONS(0, 1),
            COUNTER_GET(1, 2),
            ;


            private static final Type[] VALUES = {
                    COUNTER_OPERATIONS, COUNTER_GET,
            };
            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.CounterCommandProtocol.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 COUNTER_OPERATIONS;
                    case 2:
                        return COUNTER_GET;
                    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.CounterCommandProtocol.CounterCommand.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.CounterCommand.Type)
        }

        public static final class Builder extends
                com.google.protobuf.GeneratedMessage.Builder {
            private com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand result;

            // Construct using com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand.newBuilder()
            private Builder() {
            }

            private static Builder create() {
                Builder builder = new Builder();
                builder.result = new com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand();
                return builder;
            }

            protected com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand internalGetResult() {
                return result;
            }

            public Builder clear() {
                if (result == null) {
                    throw new IllegalStateException(
                            "Cannot call clear() after build().");
                }
                result = new com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand();
                return this;
            }

            public Builder clone() {
                return create().mergeFrom(result);
            }

            public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
                return com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand.getDescriptor();
            }

            public com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand getDefaultInstanceForType() {
                return com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand.getDefaultInstance();
            }

            public boolean isInitialized() {
                return result.isInitialized();
            }

            public com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand build() {
                if (result != null && !isInitialized()) {
                    throw newUninitializedMessageException(result);
                }
                return buildPartial();
            }

            private com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand buildParsed()
                    throws com.google.protobuf.InvalidProtocolBufferException {
                if (!isInitialized()) {
                    throw newUninitializedMessageException(
                            result).asInvalidProtocolBufferException();
                }
                return buildPartial();
            }

            public com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand buildPartial() {
                if (result == null) {
                    throw new IllegalStateException(
                            "build() has already been called on this Builder.");
                }
                com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand returnMe = result;
                result = null;
                return returnMe;
            }

            public Builder mergeFrom(com.google.protobuf.Message other) {
                if (other instanceof com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand) {
                    return mergeFrom((com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand) other);
                } else {
                    super.mergeFrom(other);
                    return this;
                }
            }

            public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand other) {
                if (other == com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand.getDefaultInstance())
                    return this;
                if (other.hasType()) {
                    setType(other.getType());
                }
                if (other.hasCounterOperations()) {
                    mergeCounterOperations(other.getCounterOperations());
                }
                if (other.hasCounterGetOperation()) {
                    mergeCounterGetOperation(other.getCounterGetOperation());
                }
                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.CounterCommandProtocol.CounterCommand.Type value = com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand.Type.valueOf(rawValue);
                            if (value == null) {
                                unknownFields.mergeVarintField(1, rawValue);
                            } else {
                                setType(value);
                            }
                            break;
                        }
                        case 18: {
                            com.alachisoft.ncache.common.protobuf.CounterOpertionsProtocol.CounterOperations.Builder subBuilder = com.alachisoft.ncache.common.protobuf.CounterOpertionsProtocol.CounterOperations.newBuilder();
                            if (hasCounterOperations()) {
                                subBuilder.mergeFrom(getCounterOperations());
                            }
                            input.readMessage(subBuilder, extensionRegistry);
                            setCounterOperations(subBuilder.buildPartial());
                            break;
                        }
                        case 26: {
                            com.alachisoft.ncache.common.protobuf.CounterGetOperationProtocol.CounterGetOperation.Builder subBuilder = com.alachisoft.ncache.common.protobuf.CounterGetOperationProtocol.CounterGetOperation.newBuilder();
                            if (hasCounterGetOperation()) {
                                subBuilder.mergeFrom(getCounterGetOperation());
                            }
                            input.readMessage(subBuilder, extensionRegistry);
                            setCounterGetOperation(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.CounterCommand.Type type = 1;
            public boolean hasType() {
                return result.hasType();
            }

            public com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand.Type getType() {
                return result.getType();
            }

            public Builder setType(com.alachisoft.ncache.common.protobuf.CounterCommandProtocol.CounterCommand.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.CounterCommandProtocol.CounterCommand.Type.COUNTER_OPERATIONS;
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.CounterOperations counterOperations = 2;
            public boolean hasCounterOperations() {
                return result.hasCounterOperations();
            }

            public com.alachisoft.ncache.common.protobuf.CounterOpertionsProtocol.CounterOperations getCounterOperations() {
                return result.getCounterOperations();
            }

            public Builder setCounterOperations(com.alachisoft.ncache.common.protobuf.CounterOpertionsProtocol.CounterOperations value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasCounterOperations = true;
                result.counterOperations_ = value;
                return this;
            }

            public Builder setCounterOperations(com.alachisoft.ncache.common.protobuf.CounterOpertionsProtocol.CounterOperations.Builder builderForValue) {
                result.hasCounterOperations = true;
                result.counterOperations_ = builderForValue.build();
                return this;
            }

            public Builder mergeCounterOperations(com.alachisoft.ncache.common.protobuf.CounterOpertionsProtocol.CounterOperations value) {
                if (result.hasCounterOperations() &&
                        result.counterOperations_ != com.alachisoft.ncache.common.protobuf.CounterOpertionsProtocol.CounterOperations.getDefaultInstance()) {
                    result.counterOperations_ =
                            com.alachisoft.ncache.common.protobuf.CounterOpertionsProtocol.CounterOperations.newBuilder(result.counterOperations_).mergeFrom(value).buildPartial();
                } else {
                    result.counterOperations_ = value;
                }
                result.hasCounterOperations = true;
                return this;
            }

            public Builder clearCounterOperations() {
                result.hasCounterOperations = false;
                result.counterOperations_ = com.alachisoft.ncache.common.protobuf.CounterOpertionsProtocol.CounterOperations.getDefaultInstance();
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.CounterGetOperation counterGetOperation = 3;
            public boolean hasCounterGetOperation() {
                return result.hasCounterGetOperation();
            }

            public com.alachisoft.ncache.common.protobuf.CounterGetOperationProtocol.CounterGetOperation getCounterGetOperation() {
                return result.getCounterGetOperation();
            }

            public Builder setCounterGetOperation(com.alachisoft.ncache.common.protobuf.CounterGetOperationProtocol.CounterGetOperation value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasCounterGetOperation = true;
                result.counterGetOperation_ = value;
                return this;
            }

            public Builder setCounterGetOperation(com.alachisoft.ncache.common.protobuf.CounterGetOperationProtocol.CounterGetOperation.Builder builderForValue) {
                result.hasCounterGetOperation = true;
                result.counterGetOperation_ = builderForValue.build();
                return this;
            }

            public Builder mergeCounterGetOperation(com.alachisoft.ncache.common.protobuf.CounterGetOperationProtocol.CounterGetOperation value) {
                if (result.hasCounterGetOperation() &&
                        result.counterGetOperation_ != com.alachisoft.ncache.common.protobuf.CounterGetOperationProtocol.CounterGetOperation.getDefaultInstance()) {
                    result.counterGetOperation_ =
                            com.alachisoft.ncache.common.protobuf.CounterGetOperationProtocol.CounterGetOperation.newBuilder(result.counterGetOperation_).mergeFrom(value).buildPartial();
                } else {
                    result.counterGetOperation_ = value;
                }
                result.hasCounterGetOperation = true;
                return this;
            }

            public Builder clearCounterGetOperation() {
                result.hasCounterGetOperation = false;
                result.counterGetOperation_ = com.alachisoft.ncache.common.protobuf.CounterGetOperationProtocol.CounterGetOperation.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.CounterCommand)
        }

        // @@protoc_insertion_point(class_scope:com.alachisoft.ncache.common.protobuf.CounterCommand)
    }

    // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy