com.alachisoft.ncache.common.protobuf.GetActiveQueryUpdatesCommandProtocol 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: GetActiveQueryUpdatesCommand.proto
package com.alachisoft.ncache.common.protobuf;
public final class GetActiveQueryUpdatesCommandProtocol {
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_alachisoft_ncache_protobuf_GetActiveQueryUpdatesCommand_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_alachisoft_ncache_protobuf_GetActiveQueryUpdatesCommand_fieldAccessorTable;
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\"GetActiveQueryUpdatesCommand.proto\022\036co" +
"m.alachisoft.ncache.protobuf\"d\n\034GetActiv" +
"eQueryUpdatesCommand\022\021\n\trequestId\030\001 \001(\003\022" +
"\017\n\007queryId\030\002 \001(\t\022\r\n\005nodes\030\003 \003(\t\022\021\n\tchang" +
"eIds\030\004 \003(\005B&B$GetActiveQueryUpdatesComma" +
"ndProtocol"
};
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_protobuf_GetActiveQueryUpdatesCommand_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_alachisoft_ncache_protobuf_GetActiveQueryUpdatesCommand_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_alachisoft_ncache_protobuf_GetActiveQueryUpdatesCommand_descriptor,
new java.lang.String[]{"RequestId", "QueryId", "Nodes", "ChangeIds",},
com.alachisoft.ncache.common.protobuf.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand.class,
com.alachisoft.ncache.common.protobuf.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand.Builder.class);
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[]{
}, assigner);
}
private GetActiveQueryUpdatesCommandProtocol() {
}
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 GetActiveQueryUpdatesCommand extends
com.google.protobuf.GeneratedMessage {
// optional int64 requestId = 1;
public static final int REQUESTID_FIELD_NUMBER = 1;
// optional string queryId = 2;
public static final int QUERYID_FIELD_NUMBER = 2;
// repeated string nodes = 3;
public static final int NODES_FIELD_NUMBER = 3;
// repeated int32 changeIds = 4;
public static final int CHANGEIDS_FIELD_NUMBER = 4;
private static final GetActiveQueryUpdatesCommand defaultInstance;
static {
defaultInstance = new GetActiveQueryUpdatesCommand(true);
com.alachisoft.ncache.common.protobuf.GetActiveQueryUpdatesCommandProtocol.internalForceInit();
defaultInstance.initFields();
}
private boolean hasRequestId;
private long requestId_ = 0L;
private boolean hasQueryId;
private java.lang.String queryId_ = "";
private java.util.List nodes_ =
java.util.Collections.emptyList();
private java.util.List changeIds_ =
java.util.Collections.emptyList();
private int memoizedSerializedSize = -1;
// Use GetActiveQueryUpdatesCommand.newBuilder() to construct.
private GetActiveQueryUpdatesCommand() {
initFields();
}
private GetActiveQueryUpdatesCommand(boolean noInit) {
}
public static GetActiveQueryUpdatesCommand getDefaultInstance() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alachisoft.ncache.common.protobuf.GetActiveQueryUpdatesCommandProtocol.internal_static_com_alachisoft_ncache_protobuf_GetActiveQueryUpdatesCommand_descriptor;
}
public static com.alachisoft.ncache.common.protobuf.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand 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.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand 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.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand 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.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand 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.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand 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.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand 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.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand prototype) {
return newBuilder().mergeFrom(prototype);
}
public GetActiveQueryUpdatesCommand getDefaultInstanceForType() {
return defaultInstance;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alachisoft.ncache.common.protobuf.GetActiveQueryUpdatesCommandProtocol.internal_static_com_alachisoft_ncache_protobuf_GetActiveQueryUpdatesCommand_fieldAccessorTable;
}
public boolean hasRequestId() {
return hasRequestId;
}
public long getRequestId() {
return requestId_;
}
public boolean hasQueryId() {
return hasQueryId;
}
public java.lang.String getQueryId() {
return queryId_;
}
public java.util.List getNodesList() {
return nodes_;
}
public int getNodesCount() {
return nodes_.size();
}
public java.lang.String getNodes(int index) {
return nodes_.get(index);
}
public java.util.List getChangeIdsList() {
return changeIds_;
}
public int getChangeIdsCount() {
return changeIds_.size();
}
public int getChangeIds(int index) {
return changeIds_.get(index);
}
private void initFields() {
}
public final boolean isInitialized() {
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (hasRequestId()) {
output.writeInt64(1, getRequestId());
}
if (hasQueryId()) {
output.writeString(2, getQueryId());
}
for (java.lang.String element : getNodesList()) {
output.writeString(3, element);
}
for (int element : getChangeIdsList()) {
output.writeInt32(4, element);
}
getUnknownFields().writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasRequestId()) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, getRequestId());
}
if (hasQueryId()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(2, getQueryId());
}
{
int dataSize = 0;
for (java.lang.String element : getNodesList()) {
dataSize += com.google.protobuf.CodedOutputStream
.computeStringSizeNoTag(element);
}
size += dataSize;
size += 1 * getNodesList().size();
}
{
int dataSize = 0;
for (int element : getChangeIdsList()) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(element);
}
size += dataSize;
size += 1 * getChangeIdsList().size();
}
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.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand result;
// Construct using com.alachisoft.ncache.protobuf.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand.newBuilder()
private Builder() {
}
private static Builder create() {
Builder builder = new Builder();
builder.result = new com.alachisoft.ncache.common.protobuf.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand();
return builder;
}
protected com.alachisoft.ncache.common.protobuf.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand internalGetResult() {
return result;
}
public Builder clear() {
if (result == null) {
throw new IllegalStateException(
"Cannot call clear() after build().");
}
result = new com.alachisoft.ncache.common.protobuf.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand();
return this;
}
public Builder clone() {
return create().mergeFrom(result);
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.alachisoft.ncache.common.protobuf.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand.getDescriptor();
}
public com.alachisoft.ncache.common.protobuf.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand getDefaultInstanceForType() {
return com.alachisoft.ncache.common.protobuf.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand.getDefaultInstance();
}
public boolean isInitialized() {
return result.isInitialized();
}
public com.alachisoft.ncache.common.protobuf.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand build() {
if (result != null && !isInitialized()) {
throw newUninitializedMessageException(result);
}
return buildPartial();
}
private com.alachisoft.ncache.common.protobuf.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public com.alachisoft.ncache.common.protobuf.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder.");
}
if (result.nodes_ != java.util.Collections.EMPTY_LIST) {
result.nodes_ =
java.util.Collections.unmodifiableList(result.nodes_);
}
if (result.changeIds_ != java.util.Collections.EMPTY_LIST) {
result.changeIds_ =
java.util.Collections.unmodifiableList(result.changeIds_);
}
com.alachisoft.ncache.common.protobuf.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand returnMe = result;
result = null;
return returnMe;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.alachisoft.ncache.common.protobuf.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand) {
return mergeFrom((com.alachisoft.ncache.common.protobuf.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand other) {
if (other == com.alachisoft.ncache.common.protobuf.GetActiveQueryUpdatesCommandProtocol.GetActiveQueryUpdatesCommand.getDefaultInstance())
return this;
if (other.hasRequestId()) {
setRequestId(other.getRequestId());
}
if (other.hasQueryId()) {
setQueryId(other.getQueryId());
}
if (!other.nodes_.isEmpty()) {
if (result.nodes_.isEmpty()) {
result.nodes_ = new java.util.ArrayList();
}
result.nodes_.addAll(other.nodes_);
}
if (!other.changeIds_.isEmpty()) {
if (result.changeIds_.isEmpty()) {
result.changeIds_ = new java.util.ArrayList();
}
result.changeIds_.addAll(other.changeIds_);
}
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: {
setRequestId(input.readInt64());
break;
}
case 18: {
setQueryId(input.readString());
break;
}
case 26: {
addNodes(input.readString());
break;
}
case 32: {
addChangeIds(input.readInt32());
break;
}
case 34: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
while (input.getBytesUntilLimit() > 0) {
addChangeIds(input.readInt32());
}
input.popLimit(limit);
break;
}
}
}
}
// optional int64 requestId = 1;
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 queryId = 2;
public boolean hasQueryId() {
return result.hasQueryId();
}
public java.lang.String getQueryId() {
return result.getQueryId();
}
public Builder setQueryId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasQueryId = true;
result.queryId_ = value;
return this;
}
public Builder clearQueryId() {
result.hasQueryId = false;
result.queryId_ = getDefaultInstance().getQueryId();
return this;
}
// repeated string nodes = 3;
public java.util.List getNodesList() {
return java.util.Collections.unmodifiableList(result.nodes_);
}
public int getNodesCount() {
return result.getNodesCount();
}
public java.lang.String getNodes(int index) {
return result.getNodes(index);
}
public Builder setNodes(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.nodes_.set(index, value);
return this;
}
public Builder addNodes(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
if (result.nodes_.isEmpty()) {
result.nodes_ = new java.util.ArrayList();
}
result.nodes_.add(value);
return this;
}
public Builder addAllNodes(
java.lang.Iterable extends java.lang.String> values) {
if (result.nodes_.isEmpty()) {
result.nodes_ = new java.util.ArrayList();
}
super.addAll(values, result.nodes_);
return this;
}
public Builder clearNodes() {
result.nodes_ = java.util.Collections.emptyList();
return this;
}
// repeated int32 changeIds = 4;
public java.util.List getChangeIdsList() {
return java.util.Collections.unmodifiableList(result.changeIds_);
}
public int getChangeIdsCount() {
return result.getChangeIdsCount();
}
public int getChangeIds(int index) {
return result.getChangeIds(index);
}
public Builder setChangeIds(int index, int value) {
result.changeIds_.set(index, value);
return this;
}
public Builder addChangeIds(int value) {
if (result.changeIds_.isEmpty()) {
result.changeIds_ = new java.util.ArrayList();
}
result.changeIds_.add(value);
return this;
}
public Builder addAllChangeIds(
java.lang.Iterable extends java.lang.Integer> values) {
if (result.changeIds_.isEmpty()) {
result.changeIds_ = new java.util.ArrayList();
}
super.addAll(values, result.changeIds_);
return this;
}
public Builder clearChangeIds() {
result.changeIds_ = java.util.Collections.emptyList();
return this;
}
// @@protoc_insertion_point(builder_scope:com.alachisoft.ncache.protobuf.GetActiveQueryUpdatesCommand)
}
// @@protoc_insertion_point(class_scope:com.alachisoft.ncache.protobuf.GetActiveQueryUpdatesCommand)
}
// @@protoc_insertion_point(outer_class_scope)
}