com.alachisoft.ncache.common.protobuf.EventMessageProtocol 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: EventMessage.proto
package com.alachisoft.ncache.common.protobuf;
public final class EventMessageProtocol {
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_alachisoft_ncache_common_protobuf_EventMessage_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_alachisoft_ncache_common_protobuf_EventMessage_fieldAccessorTable;
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\022EventMessage.proto\022%com.alachisoft.nca" +
"che.common.protobuf\032\rEventId.proto\"\301\003\n\014E" +
"ventMessage\022=\n\005event\030\001 \001(\0132..com.alachis" +
"oft.ncache.common.protobuf.EventId\022P\n\tev" +
"entType\030\002 \001(\0162=.com.alachisoft.ncache.co" +
"mmon.protobuf.EventMessage.EventType\022\013\n\003" +
"key\030\003 \001(\t\022\023\n\013callbackIds\030\004 \003(\021\022\023\n\013dataFi" +
"lters\030\005 \003(\021\022\020\n\010queryIds\030\006 \003(\t\022\022\n\nchangeT" +
"ype\030\007 \001(\005\022\017\n\007flagMap\030\010 \001(\005\"\261\001\n\tEventType" +
"\022\031\n\025ITEM_REMOVED_CALLBACK\020\001\022\031\n\025ITEM_UPDA",
"TED_CALLBACK\020\002\022\024\n\020ITEM_ADDED_EVENT\020\003\022\026\n\022" +
"ITEM_REMOVED_EVENT\020\004\022\026\n\022ITEM_UPDATED_EVE" +
"NT\020\005\022\027\n\023CACHE_CLEARED_EVENT\020\006\022\017\n\013CQ_CALL" +
"BACK\020\007B\026B\024EventMessageProtocol"
};
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_EventMessage_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_alachisoft_ncache_common_protobuf_EventMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_alachisoft_ncache_common_protobuf_EventMessage_descriptor,
new java.lang.String[]{"Event", "EventType", "Key", "CallbackIds", "DataFilters", "QueryIds", "ChangeType", "FlagMap",},
com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage.class,
com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage.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 EventMessageProtocol() {
}
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 EventMessage extends
com.google.protobuf.GeneratedMessage {
// optional .com.alachisoft.ncache.common.protobuf.EventId event = 1;
public static final int EVENT_FIELD_NUMBER = 1;
// optional .com.alachisoft.ncache.common.protobuf.EventMessage.EventType eventType = 2;
public static final int EVENTTYPE_FIELD_NUMBER = 2;
// optional string key = 3;
public static final int KEY_FIELD_NUMBER = 3;
// repeated sint32 callbackIds = 4;
public static final int CALLBACKIDS_FIELD_NUMBER = 4;
// repeated sint32 dataFilters = 5;
public static final int DATAFILTERS_FIELD_NUMBER = 5;
// repeated string queryIds = 6;
public static final int QUERYIDS_FIELD_NUMBER = 6;
// optional int32 changeType = 7;
public static final int CHANGETYPE_FIELD_NUMBER = 7;
// optional int32 flagMap = 8;
public static final int FLAGMAP_FIELD_NUMBER = 8;
private static final EventMessage defaultInstance;
static {
defaultInstance = new EventMessage(true);
com.alachisoft.ncache.common.protobuf.EventMessageProtocol.internalForceInit();
defaultInstance.initFields();
}
private boolean hasEvent;
private com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId event_;
private boolean hasEventType;
private com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage.EventType eventType_;
private boolean hasKey;
private java.lang.String key_ = "";
private java.util.List callbackIds_ =
java.util.Collections.emptyList();
private java.util.List dataFilters_ =
java.util.Collections.emptyList();
private java.util.List queryIds_ =
java.util.Collections.emptyList();
private boolean hasChangeType;
private int changeType_ = 0;
private boolean hasFlagMap;
private int flagMap_ = 0;
private int memoizedSerializedSize = -1;
// Use EventMessage.newBuilder() to construct.
private EventMessage() {
initFields();
}
private EventMessage(boolean noInit) {
}
public static EventMessage getDefaultInstance() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alachisoft.ncache.common.protobuf.EventMessageProtocol.internal_static_com_alachisoft_ncache_common_protobuf_EventMessage_descriptor;
}
public static com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage 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.EventMessageProtocol.EventMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage 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.EventMessageProtocol.EventMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage 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.EventMessageProtocol.EventMessage 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.EventMessageProtocol.EventMessage 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.EventMessageProtocol.EventMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage 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.EventMessageProtocol.EventMessage prototype) {
return newBuilder().mergeFrom(prototype);
}
public EventMessage getDefaultInstanceForType() {
return defaultInstance;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alachisoft.ncache.common.protobuf.EventMessageProtocol.internal_static_com_alachisoft_ncache_common_protobuf_EventMessage_fieldAccessorTable;
}
public boolean hasEvent() {
return hasEvent;
}
public com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId getEvent() {
return event_;
}
public boolean hasEventType() {
return hasEventType;
}
public com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage.EventType getEventType() {
return eventType_;
}
public boolean hasKey() {
return hasKey;
}
public java.lang.String getKey() {
return key_;
}
public java.util.List getCallbackIdsList() {
return callbackIds_;
}
public int getCallbackIdsCount() {
return callbackIds_.size();
}
public int getCallbackIds(int index) {
return callbackIds_.get(index);
}
public java.util.List getDataFiltersList() {
return dataFilters_;
}
public int getDataFiltersCount() {
return dataFilters_.size();
}
public int getDataFilters(int index) {
return dataFilters_.get(index);
}
public java.util.List getQueryIdsList() {
return queryIds_;
}
public int getQueryIdsCount() {
return queryIds_.size();
}
public java.lang.String getQueryIds(int index) {
return queryIds_.get(index);
}
public boolean hasChangeType() {
return hasChangeType;
}
public int getChangeType() {
return changeType_;
}
public boolean hasFlagMap() {
return hasFlagMap;
}
public int getFlagMap() {
return flagMap_;
}
private void initFields() {
event_ = com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.getDefaultInstance();
eventType_ = com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage.EventType.ITEM_REMOVED_CALLBACK;
}
public final boolean isInitialized() {
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (hasEvent()) {
output.writeMessage(1, getEvent());
}
if (hasEventType()) {
output.writeEnum(2, getEventType().getNumber());
}
if (hasKey()) {
output.writeString(3, getKey());
}
for (int element : getCallbackIdsList()) {
output.writeSInt32(4, element);
}
for (int element : getDataFiltersList()) {
output.writeSInt32(5, element);
}
for (java.lang.String element : getQueryIdsList()) {
output.writeString(6, element);
}
if (hasChangeType()) {
output.writeInt32(7, getChangeType());
}
if (hasFlagMap()) {
output.writeInt32(8, getFlagMap());
}
getUnknownFields().writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasEvent()) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getEvent());
}
if (hasEventType()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, getEventType().getNumber());
}
if (hasKey()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(3, getKey());
}
{
int dataSize = 0;
for (int element : getCallbackIdsList()) {
dataSize += com.google.protobuf.CodedOutputStream
.computeSInt32SizeNoTag(element);
}
size += dataSize;
size += 1 * getCallbackIdsList().size();
}
{
int dataSize = 0;
for (int element : getDataFiltersList()) {
dataSize += com.google.protobuf.CodedOutputStream
.computeSInt32SizeNoTag(element);
}
size += dataSize;
size += 1 * getDataFiltersList().size();
}
{
int dataSize = 0;
for (java.lang.String element : getQueryIdsList()) {
dataSize += com.google.protobuf.CodedOutputStream
.computeStringSizeNoTag(element);
}
size += dataSize;
size += 1 * getQueryIdsList().size();
}
if (hasChangeType()) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, getChangeType());
}
if (hasFlagMap()) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(8, getFlagMap());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
public Builder newBuilderForType() {
return newBuilder();
}
public Builder toBuilder() {
return newBuilder(this);
}
public enum EventType
implements com.google.protobuf.ProtocolMessageEnum {
ITEM_REMOVED_CALLBACK(0, 1),
ITEM_UPDATED_CALLBACK(1, 2),
ITEM_ADDED_EVENT(2, 3),
ITEM_REMOVED_EVENT(3, 4),
ITEM_UPDATED_EVENT(4, 5),
CACHE_CLEARED_EVENT(5, 6),
CQ_CALLBACK(6, 7),
;
private static final EventType[] VALUES = {
ITEM_REMOVED_CALLBACK, ITEM_UPDATED_CALLBACK, ITEM_ADDED_EVENT, ITEM_REMOVED_EVENT, ITEM_UPDATED_EVENT, CACHE_CLEARED_EVENT, CQ_CALLBACK,
};
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public EventType findValueByNumber(int number) {
return EventType.valueOf(number)
;
}
};
static {
com.alachisoft.ncache.common.protobuf.EventMessageProtocol.getDescriptor();
}
private final int index;
private final int value;
private EventType(int index, int value) {
this.index = index;
this.value = value;
}
public static EventType valueOf(int value) {
switch (value) {
case 1:
return ITEM_REMOVED_CALLBACK;
case 2:
return ITEM_UPDATED_CALLBACK;
case 3:
return ITEM_ADDED_EVENT;
case 4:
return ITEM_REMOVED_EVENT;
case 5:
return ITEM_UPDATED_EVENT;
case 6:
return CACHE_CLEARED_EVENT;
case 7:
return CQ_CALLBACK;
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.EventMessageProtocol.EventMessage.getDescriptor().getEnumTypes().get(0);
}
public static EventType 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.EventMessage.EventType)
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder {
private com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage result;
// Construct using com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage.newBuilder()
private Builder() {
}
private static Builder create() {
Builder builder = new Builder();
builder.result = new com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage();
return builder;
}
protected com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage internalGetResult() {
return result;
}
public Builder clear() {
if (result == null) {
throw new IllegalStateException(
"Cannot call clear() after build().");
}
result = new com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage();
return this;
}
public Builder clone() {
return create().mergeFrom(result);
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage.getDescriptor();
}
public com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage getDefaultInstanceForType() {
return com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage.getDefaultInstance();
}
public boolean isInitialized() {
return result.isInitialized();
}
public com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage build() {
if (result != null && !isInitialized()) {
throw newUninitializedMessageException(result);
}
return buildPartial();
}
private com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder.");
}
if (result.callbackIds_ != java.util.Collections.EMPTY_LIST) {
result.callbackIds_ =
java.util.Collections.unmodifiableList(result.callbackIds_);
}
if (result.dataFilters_ != java.util.Collections.EMPTY_LIST) {
result.dataFilters_ =
java.util.Collections.unmodifiableList(result.dataFilters_);
}
if (result.queryIds_ != java.util.Collections.EMPTY_LIST) {
result.queryIds_ =
java.util.Collections.unmodifiableList(result.queryIds_);
}
com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage returnMe = result;
result = null;
return returnMe;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage) {
return mergeFrom((com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage other) {
if (other == com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage.getDefaultInstance())
return this;
if (other.hasEvent()) {
mergeEvent(other.getEvent());
}
if (other.hasEventType()) {
setEventType(other.getEventType());
}
if (other.hasKey()) {
setKey(other.getKey());
}
if (!other.callbackIds_.isEmpty()) {
if (result.callbackIds_.isEmpty()) {
result.callbackIds_ = new java.util.ArrayList();
}
result.callbackIds_.addAll(other.callbackIds_);
}
if (!other.dataFilters_.isEmpty()) {
if (result.dataFilters_.isEmpty()) {
result.dataFilters_ = new java.util.ArrayList();
}
result.dataFilters_.addAll(other.dataFilters_);
}
if (!other.queryIds_.isEmpty()) {
if (result.queryIds_.isEmpty()) {
result.queryIds_ = new java.util.ArrayList();
}
result.queryIds_.addAll(other.queryIds_);
}
if (other.hasChangeType()) {
setChangeType(other.getChangeType());
}
if (other.hasFlagMap()) {
setFlagMap(other.getFlagMap());
}
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: {
com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.Builder subBuilder = com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.newBuilder();
if (hasEvent()) {
subBuilder.mergeFrom(getEvent());
}
input.readMessage(subBuilder, extensionRegistry);
setEvent(subBuilder.buildPartial());
break;
}
case 16: {
int rawValue = input.readEnum();
com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage.EventType value = com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage.EventType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
setEventType(value);
}
break;
}
case 26: {
setKey(input.readString());
break;
}
case 32: {
addCallbackIds(input.readSInt32());
break;
}
case 34: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
while (input.getBytesUntilLimit() > 0) {
addCallbackIds(input.readSInt32());
}
input.popLimit(limit);
break;
}
case 40: {
addDataFilters(input.readSInt32());
break;
}
case 42: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
while (input.getBytesUntilLimit() > 0) {
addDataFilters(input.readSInt32());
}
input.popLimit(limit);
break;
}
case 50: {
addQueryIds(input.readString());
break;
}
case 56: {
setChangeType(input.readInt32());
break;
}
case 64: {
setFlagMap(input.readInt32());
break;
}
}
}
}
// optional .com.alachisoft.ncache.common.protobuf.EventId event = 1;
public boolean hasEvent() {
return result.hasEvent();
}
public com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId getEvent() {
return result.getEvent();
}
public Builder setEvent(com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId value) {
if (value == null) {
throw new NullPointerException();
}
result.hasEvent = true;
result.event_ = value;
return this;
}
public Builder setEvent(com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.Builder builderForValue) {
result.hasEvent = true;
result.event_ = builderForValue.build();
return this;
}
public Builder mergeEvent(com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId value) {
if (result.hasEvent() &&
result.event_ != com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.getDefaultInstance()) {
result.event_ =
com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.newBuilder(result.event_).mergeFrom(value).buildPartial();
} else {
result.event_ = value;
}
result.hasEvent = true;
return this;
}
public Builder clearEvent() {
result.hasEvent = false;
result.event_ = com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.getDefaultInstance();
return this;
}
// optional .com.alachisoft.ncache.common.protobuf.EventMessage.EventType eventType = 2;
public boolean hasEventType() {
return result.hasEventType();
}
public com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage.EventType getEventType() {
return result.getEventType();
}
public Builder setEventType(com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage.EventType value) {
if (value == null) {
throw new NullPointerException();
}
result.hasEventType = true;
result.eventType_ = value;
return this;
}
public Builder clearEventType() {
result.hasEventType = false;
result.eventType_ = com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage.EventType.ITEM_REMOVED_CALLBACK;
return this;
}
// optional string key = 3;
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;
}
// repeated sint32 callbackIds = 4;
public java.util.List getCallbackIdsList() {
return java.util.Collections.unmodifiableList(result.callbackIds_);
}
public int getCallbackIdsCount() {
return result.getCallbackIdsCount();
}
public int getCallbackIds(int index) {
return result.getCallbackIds(index);
}
public Builder setCallbackIds(int index, int value) {
result.callbackIds_.set(index, value);
return this;
}
public Builder addCallbackIds(int value) {
if (result.callbackIds_.isEmpty()) {
result.callbackIds_ = new java.util.ArrayList();
}
result.callbackIds_.add(value);
return this;
}
public Builder addAllCallbackIds(
java.lang.Iterable extends java.lang.Integer> values) {
if (result.callbackIds_.isEmpty()) {
result.callbackIds_ = new java.util.ArrayList();
}
super.addAll(values, result.callbackIds_);
return this;
}
public Builder clearCallbackIds() {
result.callbackIds_ = java.util.Collections.emptyList();
return this;
}
// repeated sint32 dataFilters = 5;
public java.util.List getDataFiltersList() {
return java.util.Collections.unmodifiableList(result.dataFilters_);
}
public int getDataFiltersCount() {
return result.getDataFiltersCount();
}
public int getDataFilters(int index) {
return result.getDataFilters(index);
}
public Builder setDataFilters(int index, int value) {
result.dataFilters_.set(index, value);
return this;
}
public Builder addDataFilters(int value) {
if (result.dataFilters_.isEmpty()) {
result.dataFilters_ = new java.util.ArrayList();
}
result.dataFilters_.add(value);
return this;
}
public Builder addAllDataFilters(
java.lang.Iterable extends java.lang.Integer> values) {
if (result.dataFilters_.isEmpty()) {
result.dataFilters_ = new java.util.ArrayList();
}
super.addAll(values, result.dataFilters_);
return this;
}
public Builder clearDataFilters() {
result.dataFilters_ = java.util.Collections.emptyList();
return this;
}
// repeated string queryIds = 6;
public java.util.List getQueryIdsList() {
return java.util.Collections.unmodifiableList(result.queryIds_);
}
public int getQueryIdsCount() {
return result.getQueryIdsCount();
}
public java.lang.String getQueryIds(int index) {
return result.getQueryIds(index);
}
public Builder setQueryIds(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.queryIds_.set(index, value);
return this;
}
public Builder addQueryIds(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
if (result.queryIds_.isEmpty()) {
result.queryIds_ = new java.util.ArrayList();
}
result.queryIds_.add(value);
return this;
}
public Builder addAllQueryIds(
java.lang.Iterable extends java.lang.String> values) {
if (result.queryIds_.isEmpty()) {
result.queryIds_ = new java.util.ArrayList();
}
super.addAll(values, result.queryIds_);
return this;
}
public Builder clearQueryIds() {
result.queryIds_ = java.util.Collections.emptyList();
return this;
}
// optional int32 changeType = 7;
public boolean hasChangeType() {
return result.hasChangeType();
}
public int getChangeType() {
return result.getChangeType();
}
public Builder setChangeType(int value) {
result.hasChangeType = true;
result.changeType_ = value;
return this;
}
public Builder clearChangeType() {
result.hasChangeType = false;
result.changeType_ = 0;
return this;
}
// optional int32 flagMap = 8;
public boolean hasFlagMap() {
return result.hasFlagMap();
}
public int getFlagMap() {
return result.getFlagMap();
}
public Builder setFlagMap(int value) {
result.hasFlagMap = true;
result.flagMap_ = value;
return this;
}
public Builder clearFlagMap() {
result.hasFlagMap = false;
result.flagMap_ = 0;
return this;
}
// @@protoc_insertion_point(builder_scope:com.alachisoft.ncache.common.protobuf.EventMessage)
}
// @@protoc_insertion_point(class_scope:com.alachisoft.ncache.common.protobuf.EventMessage)
}
// @@protoc_insertion_point(outer_class_scope)
}