com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol 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: InternalPayload.proto
package com.alachisoft.ncache.common.protobuf;
public final class InternalPayloadProtocol {
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_alachisoft_ncache_common_protobuf_InternalPayload_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_alachisoft_ncache_common_protobuf_InternalPayload_fieldAccessorTable;
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\025InternalPayload.proto\022%com.alachisoft." +
"ncache.common.protobuf\032\022EventMessage.pro" +
"to\032\034CollectionEventMessage.proto\"\344\002\n\017Int" +
"ernalPayload\022I\n\014eventMessage\030\001 \001(\01323.com" +
".alachisoft.ncache.common.protobuf.Event" +
"Message\022]\n\026collectionEventMessage\030\002 \001(\0132" +
"=.com.alachisoft.ncache.common.protobuf." +
"CollectionEventMessage\022j\n\013payloadType\030\003 " +
"\001(\0162B.com.alachisoft.ncache.common.proto" +
"buf.InternalPayload.PayloadType:\021CACHE_I",
"TEM_EVENTS\";\n\013PayloadType\022\025\n\021CACHE_ITEM_" +
"EVENTS\020\001\022\025\n\021COLLECTION_EVENTS\020\002B\031B\027Inter" +
"nalPayloadProtocol"
};
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_InternalPayload_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_alachisoft_ncache_common_protobuf_InternalPayload_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_alachisoft_ncache_common_protobuf_InternalPayload_descriptor,
new java.lang.String[]{"EventMessage", "CollectionEventMessage", "PayloadType",},
com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload.class,
com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload.Builder.class);
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[]{
com.alachisoft.ncache.common.protobuf.EventMessageProtocol.getDescriptor(),
com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.getDescriptor(),
}, assigner);
}
private InternalPayloadProtocol() {
}
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 InternalPayload extends
com.google.protobuf.GeneratedMessage {
// optional .com.alachisoft.ncache.common.protobuf.EventMessage eventMessage = 1;
public static final int EVENTMESSAGE_FIELD_NUMBER = 1;
// optional .com.alachisoft.ncache.common.protobuf.CollectionEventMessage collectionEventMessage = 2;
public static final int COLLECTIONEVENTMESSAGE_FIELD_NUMBER = 2;
// optional .com.alachisoft.ncache.common.protobuf.InternalPayload.PayloadType payloadType = 3 [default = CACHE_ITEM_EVENTS];
public static final int PAYLOADTYPE_FIELD_NUMBER = 3;
private static final InternalPayload defaultInstance;
static {
defaultInstance = new InternalPayload(true);
com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.internalForceInit();
defaultInstance.initFields();
}
private boolean hasEventMessage;
private com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage eventMessage_;
private boolean hasCollectionEventMessage;
private com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage collectionEventMessage_;
private boolean hasPayloadType;
private com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload.PayloadType payloadType_;
private int memoizedSerializedSize = -1;
// Use InternalPayload.newBuilder() to construct.
private InternalPayload() {
initFields();
}
private InternalPayload(boolean noInit) {
}
public static InternalPayload getDefaultInstance() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.internal_static_com_alachisoft_ncache_common_protobuf_InternalPayload_descriptor;
}
public static com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload 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.InternalPayloadProtocol.InternalPayload parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload 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.InternalPayloadProtocol.InternalPayload parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload 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.InternalPayloadProtocol.InternalPayload 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.InternalPayloadProtocol.InternalPayload 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.InternalPayloadProtocol.InternalPayload parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload 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.InternalPayloadProtocol.InternalPayload prototype) {
return newBuilder().mergeFrom(prototype);
}
public InternalPayload getDefaultInstanceForType() {
return defaultInstance;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.internal_static_com_alachisoft_ncache_common_protobuf_InternalPayload_fieldAccessorTable;
}
public boolean hasEventMessage() {
return hasEventMessage;
}
public com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage getEventMessage() {
return eventMessage_;
}
public boolean hasCollectionEventMessage() {
return hasCollectionEventMessage;
}
public com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage getCollectionEventMessage() {
return collectionEventMessage_;
}
public boolean hasPayloadType() {
return hasPayloadType;
}
public com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload.PayloadType getPayloadType() {
return payloadType_;
}
private void initFields() {
eventMessage_ = com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage.getDefaultInstance();
collectionEventMessage_ = com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage.getDefaultInstance();
payloadType_ = com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload.PayloadType.CACHE_ITEM_EVENTS;
}
public final boolean isInitialized() {
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (hasEventMessage()) {
output.writeMessage(1, getEventMessage());
}
if (hasCollectionEventMessage()) {
output.writeMessage(2, getCollectionEventMessage());
}
if (hasPayloadType()) {
output.writeEnum(3, getPayloadType().getNumber());
}
getUnknownFields().writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasEventMessage()) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getEventMessage());
}
if (hasCollectionEventMessage()) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getCollectionEventMessage());
}
if (hasPayloadType()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, getPayloadType().getNumber());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
public Builder newBuilderForType() {
return newBuilder();
}
public Builder toBuilder() {
return newBuilder(this);
}
public enum PayloadType
implements com.google.protobuf.ProtocolMessageEnum {
CACHE_ITEM_EVENTS(0, 1),
COLLECTION_EVENTS(1, 2),
;
private static final PayloadType[] VALUES = {
CACHE_ITEM_EVENTS, COLLECTION_EVENTS,
};
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public PayloadType findValueByNumber(int number) {
return PayloadType.valueOf(number)
;
}
};
static {
com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.getDescriptor();
}
private final int index;
private final int value;
private PayloadType(int index, int value) {
this.index = index;
this.value = value;
}
public static PayloadType valueOf(int value) {
switch (value) {
case 1:
return CACHE_ITEM_EVENTS;
case 2:
return COLLECTION_EVENTS;
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.InternalPayloadProtocol.InternalPayload.getDescriptor().getEnumTypes().get(0);
}
public static PayloadType 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.InternalPayload.PayloadType)
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder {
private com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload result;
// Construct using com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload.newBuilder()
private Builder() {
}
private static Builder create() {
Builder builder = new Builder();
builder.result = new com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload();
return builder;
}
protected com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload internalGetResult() {
return result;
}
public Builder clear() {
if (result == null) {
throw new IllegalStateException(
"Cannot call clear() after build().");
}
result = new com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload();
return this;
}
public Builder clone() {
return create().mergeFrom(result);
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload.getDescriptor();
}
public com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload getDefaultInstanceForType() {
return com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload.getDefaultInstance();
}
public boolean isInitialized() {
return result.isInitialized();
}
public com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload build() {
if (result != null && !isInitialized()) {
throw newUninitializedMessageException(result);
}
return buildPartial();
}
private com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder.");
}
com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload returnMe = result;
result = null;
return returnMe;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload) {
return mergeFrom((com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload other) {
if (other == com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload.getDefaultInstance())
return this;
if (other.hasEventMessage()) {
mergeEventMessage(other.getEventMessage());
}
if (other.hasCollectionEventMessage()) {
mergeCollectionEventMessage(other.getCollectionEventMessage());
}
if (other.hasPayloadType()) {
setPayloadType(other.getPayloadType());
}
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.EventMessageProtocol.EventMessage.Builder subBuilder = com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage.newBuilder();
if (hasEventMessage()) {
subBuilder.mergeFrom(getEventMessage());
}
input.readMessage(subBuilder, extensionRegistry);
setEventMessage(subBuilder.buildPartial());
break;
}
case 18: {
com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage.Builder subBuilder = com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage.newBuilder();
if (hasCollectionEventMessage()) {
subBuilder.mergeFrom(getCollectionEventMessage());
}
input.readMessage(subBuilder, extensionRegistry);
setCollectionEventMessage(subBuilder.buildPartial());
break;
}
case 24: {
int rawValue = input.readEnum();
com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload.PayloadType value = com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload.PayloadType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(3, rawValue);
} else {
setPayloadType(value);
}
break;
}
}
}
}
// optional .com.alachisoft.ncache.common.protobuf.EventMessage eventMessage = 1;
public boolean hasEventMessage() {
return result.hasEventMessage();
}
public com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage getEventMessage() {
return result.getEventMessage();
}
public Builder setEventMessage(com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage value) {
if (value == null) {
throw new NullPointerException();
}
result.hasEventMessage = true;
result.eventMessage_ = value;
return this;
}
public Builder setEventMessage(com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage.Builder builderForValue) {
result.hasEventMessage = true;
result.eventMessage_ = builderForValue.build();
return this;
}
public Builder mergeEventMessage(com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage value) {
if (result.hasEventMessage() &&
result.eventMessage_ != com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage.getDefaultInstance()) {
result.eventMessage_ =
com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage.newBuilder(result.eventMessage_).mergeFrom(value).buildPartial();
} else {
result.eventMessage_ = value;
}
result.hasEventMessage = true;
return this;
}
public Builder clearEventMessage() {
result.hasEventMessage = false;
result.eventMessage_ = com.alachisoft.ncache.common.protobuf.EventMessageProtocol.EventMessage.getDefaultInstance();
return this;
}
// optional .com.alachisoft.ncache.common.protobuf.CollectionEventMessage collectionEventMessage = 2;
public boolean hasCollectionEventMessage() {
return result.hasCollectionEventMessage();
}
public com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage getCollectionEventMessage() {
return result.getCollectionEventMessage();
}
public Builder setCollectionEventMessage(com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage value) {
if (value == null) {
throw new NullPointerException();
}
result.hasCollectionEventMessage = true;
result.collectionEventMessage_ = value;
return this;
}
public Builder setCollectionEventMessage(com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage.Builder builderForValue) {
result.hasCollectionEventMessage = true;
result.collectionEventMessage_ = builderForValue.build();
return this;
}
public Builder mergeCollectionEventMessage(com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage value) {
if (result.hasCollectionEventMessage() &&
result.collectionEventMessage_ != com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage.getDefaultInstance()) {
result.collectionEventMessage_ =
com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage.newBuilder(result.collectionEventMessage_).mergeFrom(value).buildPartial();
} else {
result.collectionEventMessage_ = value;
}
result.hasCollectionEventMessage = true;
return this;
}
public Builder clearCollectionEventMessage() {
result.hasCollectionEventMessage = false;
result.collectionEventMessage_ = com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage.getDefaultInstance();
return this;
}
// optional .com.alachisoft.ncache.common.protobuf.InternalPayload.PayloadType payloadType = 3 [default = CACHE_ITEM_EVENTS];
public boolean hasPayloadType() {
return result.hasPayloadType();
}
public com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload.PayloadType getPayloadType() {
return result.getPayloadType();
}
public Builder setPayloadType(com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload.PayloadType value) {
if (value == null) {
throw new NullPointerException();
}
result.hasPayloadType = true;
result.payloadType_ = value;
return this;
}
public Builder clearPayloadType() {
result.hasPayloadType = false;
result.payloadType_ = com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload.PayloadType.CACHE_ITEM_EVENTS;
return this;
}
// @@protoc_insertion_point(builder_scope:com.alachisoft.ncache.common.protobuf.InternalPayload)
}
// @@protoc_insertion_point(class_scope:com.alachisoft.ncache.common.protobuf.InternalPayload)
}
// @@protoc_insertion_point(outer_class_scope)
}