com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: CollectionNotificationCommand.proto
package com.alachisoft.ncache.common.protobuf;
public final class CollectionNotificationCommandProtocol {
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_alachisoft_ncache_common_protobuf_CollectionNotificationCommand_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_alachisoft_ncache_common_protobuf_CollectionNotificationCommand_fieldAccessorTable;
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n#CollectionNotificationCommand.proto\022%c" +
"om.alachisoft.ncache.common.protobuf\032\037Co" +
"llectionNotifRegCommand.proto\"\246\002\n\035Collec" +
"tionNotificationCommand\022e\n\004type\030\001 \001(\0162I." +
"com.alachisoft.ncache.common.protobuf.Co" +
"llectionNotificationCommand.Type:\014REGIST" +
"RATION\022c\n\031collectionNotifRegCommand\030\002 \001(" +
"\[email protected]" +
"f.CollectionNotifRegCommand\022\021\n\trequestId" +
"\030\003 \001(\003\022\014\n\004name\030\004 \001(\t\"\030\n\004Type\022\020\n\014REGISTRA",
"TION\020\001B\'B%CollectionNotificationCommandP" +
"rotocol"
};
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_CollectionNotificationCommand_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_alachisoft_ncache_common_protobuf_CollectionNotificationCommand_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_alachisoft_ncache_common_protobuf_CollectionNotificationCommand_descriptor,
new java.lang.String[]{"Type", "CollectionNotifRegCommand", "RequestId", "Name",},
com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand.class,
com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand.Builder.class);
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[]{
com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.getDescriptor(),
}, assigner);
}
private CollectionNotificationCommandProtocol() {
}
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 CollectionNotificationCommand extends
com.google.protobuf.GeneratedMessage {
// optional .com.alachisoft.ncache.common.protobuf.CollectionNotificationCommand.Type type = 1 [default = REGISTRATION];
public static final int TYPE_FIELD_NUMBER = 1;
// optional .com.alachisoft.ncache.common.protobuf.CollectionNotifRegCommand collectionNotifRegCommand = 2;
public static final int COLLECTIONNOTIFREGCOMMAND_FIELD_NUMBER = 2;
// optional int64 requestId = 3;
public static final int REQUESTID_FIELD_NUMBER = 3;
// optional string name = 4;
public static final int NAME_FIELD_NUMBER = 4;
private static final CollectionNotificationCommand defaultInstance;
static {
defaultInstance = new CollectionNotificationCommand(true);
com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.internalForceInit();
defaultInstance.initFields();
}
private boolean hasType;
private com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand.Type type_;
private boolean hasCollectionNotifRegCommand;
private com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand collectionNotifRegCommand_;
private boolean hasRequestId;
private long requestId_ = 0L;
private boolean hasName;
private java.lang.String name_ = "";
private int memoizedSerializedSize = -1;
// Use CollectionNotificationCommand.newBuilder() to construct.
private CollectionNotificationCommand() {
initFields();
}
private CollectionNotificationCommand(boolean noInit) {
}
public static CollectionNotificationCommand getDefaultInstance() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.internal_static_com_alachisoft_ncache_common_protobuf_CollectionNotificationCommand_descriptor;
}
public static com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand 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.CollectionNotificationCommandProtocol.CollectionNotificationCommand parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand 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.CollectionNotificationCommandProtocol.CollectionNotificationCommand parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand 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.CollectionNotificationCommandProtocol.CollectionNotificationCommand 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.CollectionNotificationCommandProtocol.CollectionNotificationCommand 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.CollectionNotificationCommandProtocol.CollectionNotificationCommand parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand 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.CollectionNotificationCommandProtocol.CollectionNotificationCommand prototype) {
return newBuilder().mergeFrom(prototype);
}
public CollectionNotificationCommand getDefaultInstanceForType() {
return defaultInstance;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.internal_static_com_alachisoft_ncache_common_protobuf_CollectionNotificationCommand_fieldAccessorTable;
}
public boolean hasType() {
return hasType;
}
public com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand.Type getType() {
return type_;
}
public boolean hasCollectionNotifRegCommand() {
return hasCollectionNotifRegCommand;
}
public com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand getCollectionNotifRegCommand() {
return collectionNotifRegCommand_;
}
public boolean hasRequestId() {
return hasRequestId;
}
public long getRequestId() {
return requestId_;
}
public boolean hasName() {
return hasName;
}
public java.lang.String getName() {
return name_;
}
private void initFields() {
type_ = com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand.Type.REGISTRATION;
collectionNotifRegCommand_ = com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand.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 (hasCollectionNotifRegCommand()) {
output.writeMessage(2, getCollectionNotifRegCommand());
}
if (hasRequestId()) {
output.writeInt64(3, getRequestId());
}
if (hasName()) {
output.writeString(4, getName());
}
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 (hasCollectionNotifRegCommand()) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getCollectionNotifRegCommand());
}
if (hasRequestId()) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, getRequestId());
}
if (hasName()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(4, getName());
}
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 {
REGISTRATION(0, 1),
;
private static final Type[] VALUES = {
REGISTRATION,
};
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.CollectionNotificationCommandProtocol.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 REGISTRATION;
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.CollectionNotificationCommandProtocol.CollectionNotificationCommand.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.CollectionNotificationCommand.Type)
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder {
private com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand result;
// Construct using com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand.newBuilder()
private Builder() {
}
private static Builder create() {
Builder builder = new Builder();
builder.result = new com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand();
return builder;
}
protected com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand internalGetResult() {
return result;
}
public Builder clear() {
if (result == null) {
throw new IllegalStateException(
"Cannot call clear() after build().");
}
result = new com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand();
return this;
}
public Builder clone() {
return create().mergeFrom(result);
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand.getDescriptor();
}
public com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand getDefaultInstanceForType() {
return com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand.getDefaultInstance();
}
public boolean isInitialized() {
return result.isInitialized();
}
public com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand build() {
if (result != null && !isInitialized()) {
throw newUninitializedMessageException(result);
}
return buildPartial();
}
private com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder.");
}
com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand returnMe = result;
result = null;
return returnMe;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand) {
return mergeFrom((com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand other) {
if (other == com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand.getDefaultInstance())
return this;
if (other.hasType()) {
setType(other.getType());
}
if (other.hasCollectionNotifRegCommand()) {
mergeCollectionNotifRegCommand(other.getCollectionNotifRegCommand());
}
if (other.hasRequestId()) {
setRequestId(other.getRequestId());
}
if (other.hasName()) {
setName(other.getName());
}
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.CollectionNotificationCommandProtocol.CollectionNotificationCommand.Type value = com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand.Type.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
setType(value);
}
break;
}
case 18: {
com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand.Builder subBuilder = com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand.newBuilder();
if (hasCollectionNotifRegCommand()) {
subBuilder.mergeFrom(getCollectionNotifRegCommand());
}
input.readMessage(subBuilder, extensionRegistry);
setCollectionNotifRegCommand(subBuilder.buildPartial());
break;
}
case 24: {
setRequestId(input.readInt64());
break;
}
case 34: {
setName(input.readString());
break;
}
}
}
}
// optional .com.alachisoft.ncache.common.protobuf.CollectionNotificationCommand.Type type = 1 [default = REGISTRATION];
public boolean hasType() {
return result.hasType();
}
public com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand.Type getType() {
return result.getType();
}
public Builder setType(com.alachisoft.ncache.common.protobuf.CollectionNotificationCommandProtocol.CollectionNotificationCommand.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.CollectionNotificationCommandProtocol.CollectionNotificationCommand.Type.REGISTRATION;
return this;
}
// optional .com.alachisoft.ncache.common.protobuf.CollectionNotifRegCommand collectionNotifRegCommand = 2;
public boolean hasCollectionNotifRegCommand() {
return result.hasCollectionNotifRegCommand();
}
public com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand getCollectionNotifRegCommand() {
return result.getCollectionNotifRegCommand();
}
public Builder setCollectionNotifRegCommand(com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand value) {
if (value == null) {
throw new NullPointerException();
}
result.hasCollectionNotifRegCommand = true;
result.collectionNotifRegCommand_ = value;
return this;
}
public Builder setCollectionNotifRegCommand(com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand.Builder builderForValue) {
result.hasCollectionNotifRegCommand = true;
result.collectionNotifRegCommand_ = builderForValue.build();
return this;
}
public Builder mergeCollectionNotifRegCommand(com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand value) {
if (result.hasCollectionNotifRegCommand() &&
result.collectionNotifRegCommand_ != com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand.getDefaultInstance()) {
result.collectionNotifRegCommand_ =
com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand.newBuilder(result.collectionNotifRegCommand_).mergeFrom(value).buildPartial();
} else {
result.collectionNotifRegCommand_ = value;
}
result.hasCollectionNotifRegCommand = true;
return this;
}
public Builder clearCollectionNotifRegCommand() {
result.hasCollectionNotifRegCommand = false;
result.collectionNotifRegCommand_ = com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand.getDefaultInstance();
return this;
}
// optional int64 requestId = 3;
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 = 4;
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;
}
// @@protoc_insertion_point(builder_scope:com.alachisoft.ncache.common.protobuf.CollectionNotificationCommand)
}
// @@protoc_insertion_point(class_scope:com.alachisoft.ncache.common.protobuf.CollectionNotificationCommand)
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy