com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol 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: ItemRemoveCallbackResponse.proto
package com.alachisoft.ncache.common.protobuf;
public final class ItemRemoveCallbackResponseProtocol {
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_alachisoft_ncache_common_protobuf_ItemRemoveCallbackResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_alachisoft_ncache_common_protobuf_ItemRemoveCallbackResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n ItemRemoveCallbackResponse.proto\022%com." +
"alachisoft.ncache.common.protobuf\032\rEvent" +
"Id.proto\"\311\001\n\032ItemRemoveCallbackResponse\022" +
"\013\n\003key\030\001 \001(\t\022\030\n\020itemRemoveReason\030\002 \001(\005\022\014" +
"\n\004flag\030\003 \001(\005\022\r\n\005value\030\004 \003(\014\022\022\n\ncallbackI" +
"d\030\005 \001(\021\022?\n\007eventId\030\006 \001(\0132..com.alachisof" +
"t.ncache.common.protobuf.EventId\022\022\n\ndata" +
"Filter\030\007 \001(\021B$B\"ItemRemoveCallbackRespon" +
"seProtocol"
};
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_ItemRemoveCallbackResponse_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_alachisoft_ncache_common_protobuf_ItemRemoveCallbackResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_alachisoft_ncache_common_protobuf_ItemRemoveCallbackResponse_descriptor,
new java.lang.String[]{"Key", "ItemRemoveReason", "Flag", "Value", "CallbackId", "EventId", "DataFilter",},
com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse.class,
com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse.Builder.class);
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[]{
com.alachisoft.ncache.common.protobuf.EventIdProtocol.getDescriptor(),
}, assigner);
}
private ItemRemoveCallbackResponseProtocol() {
}
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 ItemRemoveCallbackResponse extends
com.google.protobuf.GeneratedMessage {
// optional string key = 1;
public static final int KEY_FIELD_NUMBER = 1;
// optional int32 itemRemoveReason = 2;
public static final int ITEMREMOVEREASON_FIELD_NUMBER = 2;
// optional int32 flag = 3;
public static final int FLAG_FIELD_NUMBER = 3;
// repeated bytes value = 4;
public static final int VALUE_FIELD_NUMBER = 4;
// optional sint32 callbackId = 5;
public static final int CALLBACKID_FIELD_NUMBER = 5;
// optional .com.alachisoft.ncache.common.protobuf.EventId eventId = 6;
public static final int EVENTID_FIELD_NUMBER = 6;
// optional sint32 dataFilter = 7;
public static final int DATAFILTER_FIELD_NUMBER = 7;
private static final ItemRemoveCallbackResponse defaultInstance;
static {
defaultInstance = new ItemRemoveCallbackResponse(true);
com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.internalForceInit();
defaultInstance.initFields();
}
private boolean hasKey;
private java.lang.String key_ = "";
private boolean hasItemRemoveReason;
private int itemRemoveReason_ = 0;
private boolean hasFlag;
private int flag_ = 0;
private java.util.List value_ =
java.util.Collections.emptyList();
private boolean hasCallbackId;
private int callbackId_ = 0;
private boolean hasEventId;
private com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId eventId_;
private boolean hasDataFilter;
private int dataFilter_ = 0;
private int memoizedSerializedSize = -1;
// Use ItemRemoveCallbackResponse.newBuilder() to construct.
private ItemRemoveCallbackResponse() {
initFields();
}
private ItemRemoveCallbackResponse(boolean noInit) {
}
public static ItemRemoveCallbackResponse getDefaultInstance() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.internal_static_com_alachisoft_ncache_common_protobuf_ItemRemoveCallbackResponse_descriptor;
}
public static com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse 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.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse 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.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse 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.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse 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.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse 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.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse 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.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse prototype) {
return newBuilder().mergeFrom(prototype);
}
public ItemRemoveCallbackResponse getDefaultInstanceForType() {
return defaultInstance;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.internal_static_com_alachisoft_ncache_common_protobuf_ItemRemoveCallbackResponse_fieldAccessorTable;
}
public boolean hasKey() {
return hasKey;
}
public java.lang.String getKey() {
return key_;
}
public boolean hasItemRemoveReason() {
return hasItemRemoveReason;
}
public int getItemRemoveReason() {
return itemRemoveReason_;
}
public boolean hasFlag() {
return hasFlag;
}
public int getFlag() {
return flag_;
}
public java.util.List getValueList() {
return value_;
}
public int getValueCount() {
return value_.size();
}
public com.google.protobuf.ByteString getValue(int index) {
return value_.get(index);
}
public boolean hasCallbackId() {
return hasCallbackId;
}
public int getCallbackId() {
return callbackId_;
}
public boolean hasEventId() {
return hasEventId;
}
public com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId getEventId() {
return eventId_;
}
public boolean hasDataFilter() {
return hasDataFilter;
}
public int getDataFilter() {
return dataFilter_;
}
private void initFields() {
eventId_ = com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.getDefaultInstance();
}
public final boolean isInitialized() {
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (hasKey()) {
output.writeString(1, getKey());
}
if (hasItemRemoveReason()) {
output.writeInt32(2, getItemRemoveReason());
}
if (hasFlag()) {
output.writeInt32(3, getFlag());
}
for (com.google.protobuf.ByteString element : getValueList()) {
output.writeBytes(4, element);
}
if (hasCallbackId()) {
output.writeSInt32(5, getCallbackId());
}
if (hasEventId()) {
output.writeMessage(6, getEventId());
}
if (hasDataFilter()) {
output.writeSInt32(7, getDataFilter());
}
getUnknownFields().writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasKey()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(1, getKey());
}
if (hasItemRemoveReason()) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, getItemRemoveReason());
}
if (hasFlag()) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, getFlag());
}
{
int dataSize = 0;
for (com.google.protobuf.ByteString element : getValueList()) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(element);
}
size += dataSize;
size += 1 * getValueList().size();
}
if (hasCallbackId()) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(5, getCallbackId());
}
if (hasEventId()) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getEventId());
}
if (hasDataFilter()) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(7, getDataFilter());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
public Builder newBuilderForType() {
return newBuilder();
}
public Builder toBuilder() {
return newBuilder(this);
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder {
private com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse result;
// Construct using com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse.newBuilder()
private Builder() {
}
private static Builder create() {
Builder builder = new Builder();
builder.result = new com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse();
return builder;
}
protected com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse internalGetResult() {
return result;
}
public Builder clear() {
if (result == null) {
throw new IllegalStateException(
"Cannot call clear() after build().");
}
result = new com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse();
return this;
}
public Builder clone() {
return create().mergeFrom(result);
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse.getDescriptor();
}
public com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse getDefaultInstanceForType() {
return com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse.getDefaultInstance();
}
public boolean isInitialized() {
return result.isInitialized();
}
public com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse build() {
if (result != null && !isInitialized()) {
throw newUninitializedMessageException(result);
}
return buildPartial();
}
private com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder.");
}
if (result.value_ != java.util.Collections.EMPTY_LIST) {
result.value_ =
java.util.Collections.unmodifiableList(result.value_);
}
com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse returnMe = result;
result = null;
return returnMe;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse) {
return mergeFrom((com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse other) {
if (other == com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponseProtocol.ItemRemoveCallbackResponse.getDefaultInstance())
return this;
if (other.hasKey()) {
setKey(other.getKey());
}
if (other.hasItemRemoveReason()) {
setItemRemoveReason(other.getItemRemoveReason());
}
if (other.hasFlag()) {
setFlag(other.getFlag());
}
if (!other.value_.isEmpty()) {
if (result.value_.isEmpty()) {
result.value_ = new java.util.ArrayList();
}
result.value_.addAll(other.value_);
}
if (other.hasCallbackId()) {
setCallbackId(other.getCallbackId());
}
if (other.hasEventId()) {
mergeEventId(other.getEventId());
}
if (other.hasDataFilter()) {
setDataFilter(other.getDataFilter());
}
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 10: {
setKey(input.readString());
break;
}
case 16: {
setItemRemoveReason(input.readInt32());
break;
}
case 24: {
setFlag(input.readInt32());
break;
}
case 34: {
addValue(input.readBytes());
break;
}
case 40: {
setCallbackId(input.readSInt32());
break;
}
case 50: {
com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.Builder subBuilder = com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.newBuilder();
if (hasEventId()) {
subBuilder.mergeFrom(getEventId());
}
input.readMessage(subBuilder, extensionRegistry);
setEventId(subBuilder.buildPartial());
break;
}
case 56: {
setDataFilter(input.readSInt32());
break;
}
}
}
}
// optional string key = 1;
public boolean hasKey() {
return result.hasKey();
}
public java.lang.String getKey() {
return result.getKey();
}
public Builder setKey(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasKey = true;
result.key_ = value;
return this;
}
public Builder clearKey() {
result.hasKey = false;
result.key_ = getDefaultInstance().getKey();
return this;
}
// optional int32 itemRemoveReason = 2;
public boolean hasItemRemoveReason() {
return result.hasItemRemoveReason();
}
public int getItemRemoveReason() {
return result.getItemRemoveReason();
}
public Builder setItemRemoveReason(int value) {
result.hasItemRemoveReason = true;
result.itemRemoveReason_ = value;
return this;
}
public Builder clearItemRemoveReason() {
result.hasItemRemoveReason = false;
result.itemRemoveReason_ = 0;
return this;
}
// optional int32 flag = 3;
public boolean hasFlag() {
return result.hasFlag();
}
public int getFlag() {
return result.getFlag();
}
public Builder setFlag(int value) {
result.hasFlag = true;
result.flag_ = value;
return this;
}
public Builder clearFlag() {
result.hasFlag = false;
result.flag_ = 0;
return this;
}
// repeated bytes value = 4;
public java.util.List getValueList() {
return java.util.Collections.unmodifiableList(result.value_);
}
public int getValueCount() {
return result.getValueCount();
}
public com.google.protobuf.ByteString getValue(int index) {
return result.getValue(index);
}
public Builder setValue(int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
result.value_.set(index, value);
return this;
}
public Builder addValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
if (result.value_.isEmpty()) {
result.value_ = new java.util.ArrayList();
}
result.value_.add(value);
return this;
}
public Builder addAllValue(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
if (result.value_.isEmpty()) {
result.value_ = new java.util.ArrayList();
}
super.addAll(values, result.value_);
return this;
}
public Builder clearValue() {
result.value_ = java.util.Collections.emptyList();
return this;
}
// optional sint32 callbackId = 5;
public boolean hasCallbackId() {
return result.hasCallbackId();
}
public int getCallbackId() {
return result.getCallbackId();
}
public Builder setCallbackId(int value) {
result.hasCallbackId = true;
result.callbackId_ = value;
return this;
}
public Builder clearCallbackId() {
result.hasCallbackId = false;
result.callbackId_ = 0;
return this;
}
// optional .com.alachisoft.ncache.common.protobuf.EventId eventId = 6;
public boolean hasEventId() {
return result.hasEventId();
}
public com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId getEventId() {
return result.getEventId();
}
public Builder setEventId(com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId value) {
if (value == null) {
throw new NullPointerException();
}
result.hasEventId = true;
result.eventId_ = value;
return this;
}
public Builder setEventId(com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.Builder builderForValue) {
result.hasEventId = true;
result.eventId_ = builderForValue.build();
return this;
}
public Builder mergeEventId(com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId value) {
if (result.hasEventId() &&
result.eventId_ != com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.getDefaultInstance()) {
result.eventId_ =
com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.newBuilder(result.eventId_).mergeFrom(value).buildPartial();
} else {
result.eventId_ = value;
}
result.hasEventId = true;
return this;
}
public Builder clearEventId() {
result.hasEventId = false;
result.eventId_ = com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.getDefaultInstance();
return this;
}
// optional sint32 dataFilter = 7;
public boolean hasDataFilter() {
return result.hasDataFilter();
}
public int getDataFilter() {
return result.getDataFilter();
}
public Builder setDataFilter(int value) {
result.hasDataFilter = true;
result.dataFilter_ = value;
return this;
}
public Builder clearDataFilter() {
result.hasDataFilter = false;
result.dataFilter_ = 0;
return this;
}
// @@protoc_insertion_point(builder_scope:com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponse)
}
// @@protoc_insertion_point(class_scope:com.alachisoft.ncache.common.protobuf.ItemRemoveCallbackResponse)
}
// @@protoc_insertion_point(outer_class_scope)
}