All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: GetHashmapResponse.proto
package com.alachisoft.ncache.common.protobuf;
public final class GetHashmapResponseProtocol {
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_alachisoft_ncache_common_protobuf_GetHashmapResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_alachisoft_ncache_common_protobuf_GetHashmapResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\030GetHashmapResponse.proto\022%com.alachiso" +
"ft.ncache.common.protobuf\032\022KeyValuePair." +
"proto\"\224\001\n\022GetHashmapResponse\022\016\n\006viewId\030\001" +
" \001(\003\022\017\n\007members\030\002 \003(\t\022I\n\014keyValuePair\030\003 " +
"\003(\01323.com.alachisoft.ncache.common.proto" +
"buf.KeyValuePair\022\022\n\nbucketSize\030\004 \001(\005B\034B\032" +
"GetHashmapResponseProtocol"
};
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_GetHashmapResponse_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_alachisoft_ncache_common_protobuf_GetHashmapResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_alachisoft_ncache_common_protobuf_GetHashmapResponse_descriptor,
new java.lang.String[]{"ViewId", "Members", "KeyValuePair", "BucketSize",},
com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol.GetHashmapResponse.class,
com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol.GetHashmapResponse.Builder.class);
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[]{
com.alachisoft.ncache.common.protobuf.KeyValuePairProtocol.getDescriptor(),
}, assigner);
}
private GetHashmapResponseProtocol() {
}
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 GetHashmapResponse extends
com.google.protobuf.GeneratedMessage {
// optional int64 viewId = 1;
public static final int VIEWID_FIELD_NUMBER = 1;
// repeated string members = 2;
public static final int MEMBERS_FIELD_NUMBER = 2;
// repeated .com.alachisoft.ncache.common.protobuf.KeyValuePair keyValuePair = 3;
public static final int KEYVALUEPAIR_FIELD_NUMBER = 3;
// optional int32 bucketSize = 4;
public static final int BUCKETSIZE_FIELD_NUMBER = 4;
private static final GetHashmapResponse defaultInstance;
static {
defaultInstance = new GetHashmapResponse(true);
com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol.internalForceInit();
defaultInstance.initFields();
}
private boolean hasViewId;
private long viewId_ = 0L;
private java.util.List members_ =
java.util.Collections.emptyList();
private java.util.List keyValuePair_ =
java.util.Collections.emptyList();
private boolean hasBucketSize;
private int bucketSize_ = 0;
private int memoizedSerializedSize = -1;
// Use GetHashmapResponse.newBuilder() to construct.
private GetHashmapResponse() {
initFields();
}
private GetHashmapResponse(boolean noInit) {
}
public static GetHashmapResponse getDefaultInstance() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol.internal_static_com_alachisoft_ncache_common_protobuf_GetHashmapResponse_descriptor;
}
public static com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol.GetHashmapResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol.GetHashmapResponse 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.GetHashmapResponseProtocol.GetHashmapResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol.GetHashmapResponse 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.GetHashmapResponseProtocol.GetHashmapResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol.GetHashmapResponse 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.GetHashmapResponseProtocol.GetHashmapResponse 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.GetHashmapResponseProtocol.GetHashmapResponse 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.GetHashmapResponseProtocol.GetHashmapResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol.GetHashmapResponse 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.GetHashmapResponseProtocol.GetHashmapResponse prototype) {
return newBuilder().mergeFrom(prototype);
}
public GetHashmapResponse getDefaultInstanceForType() {
return defaultInstance;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol.internal_static_com_alachisoft_ncache_common_protobuf_GetHashmapResponse_fieldAccessorTable;
}
public boolean hasViewId() {
return hasViewId;
}
public long getViewId() {
return viewId_;
}
public java.util.List getMembersList() {
return members_;
}
public int getMembersCount() {
return members_.size();
}
public java.lang.String getMembers(int index) {
return members_.get(index);
}
public java.util.List getKeyValuePairList() {
return keyValuePair_;
}
public int getKeyValuePairCount() {
return keyValuePair_.size();
}
public com.alachisoft.ncache.common.protobuf.KeyValuePairProtocol.KeyValuePair getKeyValuePair(int index) {
return keyValuePair_.get(index);
}
public boolean hasBucketSize() {
return hasBucketSize;
}
public int getBucketSize() {
return bucketSize_;
}
private void initFields() {
}
public final boolean isInitialized() {
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (hasViewId()) {
output.writeInt64(1, getViewId());
}
for (java.lang.String element : getMembersList()) {
output.writeString(2, element);
}
for (com.alachisoft.ncache.common.protobuf.KeyValuePairProtocol.KeyValuePair element : getKeyValuePairList()) {
output.writeMessage(3, element);
}
if (hasBucketSize()) {
output.writeInt32(4, getBucketSize());
}
getUnknownFields().writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasViewId()) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, getViewId());
}
{
int dataSize = 0;
for (java.lang.String element : getMembersList()) {
dataSize += com.google.protobuf.CodedOutputStream
.computeStringSizeNoTag(element);
}
size += dataSize;
size += 1 * getMembersList().size();
}
for (com.alachisoft.ncache.common.protobuf.KeyValuePairProtocol.KeyValuePair element : getKeyValuePairList()) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, element);
}
if (hasBucketSize()) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, getBucketSize());
}
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.GetHashmapResponseProtocol.GetHashmapResponse result;
// Construct using com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol.GetHashmapResponse.newBuilder()
private Builder() {
}
private static Builder create() {
Builder builder = new Builder();
builder.result = new com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol.GetHashmapResponse();
return builder;
}
protected com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol.GetHashmapResponse internalGetResult() {
return result;
}
public Builder clear() {
if (result == null) {
throw new IllegalStateException(
"Cannot call clear() after build().");
}
result = new com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol.GetHashmapResponse();
return this;
}
public Builder clone() {
return create().mergeFrom(result);
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol.GetHashmapResponse.getDescriptor();
}
public com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol.GetHashmapResponse getDefaultInstanceForType() {
return com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol.GetHashmapResponse.getDefaultInstance();
}
public boolean isInitialized() {
return result.isInitialized();
}
public com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol.GetHashmapResponse build() {
if (result != null && !isInitialized()) {
throw newUninitializedMessageException(result);
}
return buildPartial();
}
private com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol.GetHashmapResponse buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol.GetHashmapResponse buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder.");
}
if (result.members_ != java.util.Collections.EMPTY_LIST) {
result.members_ =
java.util.Collections.unmodifiableList(result.members_);
}
if (result.keyValuePair_ != java.util.Collections.EMPTY_LIST) {
result.keyValuePair_ =
java.util.Collections.unmodifiableList(result.keyValuePair_);
}
com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol.GetHashmapResponse returnMe = result;
result = null;
return returnMe;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol.GetHashmapResponse) {
return mergeFrom((com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol.GetHashmapResponse) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol.GetHashmapResponse other) {
if (other == com.alachisoft.ncache.common.protobuf.GetHashmapResponseProtocol.GetHashmapResponse.getDefaultInstance())
return this;
if (other.hasViewId()) {
setViewId(other.getViewId());
}
if (!other.members_.isEmpty()) {
if (result.members_.isEmpty()) {
result.members_ = new java.util.ArrayList();
}
result.members_.addAll(other.members_);
}
if (!other.keyValuePair_.isEmpty()) {
if (result.keyValuePair_.isEmpty()) {
result.keyValuePair_ = new java.util.ArrayList();
}
result.keyValuePair_.addAll(other.keyValuePair_);
}
if (other.hasBucketSize()) {
setBucketSize(other.getBucketSize());
}
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: {
setViewId(input.readInt64());
break;
}
case 18: {
addMembers(input.readString());
break;
}
case 26: {
com.alachisoft.ncache.common.protobuf.KeyValuePairProtocol.KeyValuePair.Builder subBuilder = com.alachisoft.ncache.common.protobuf.KeyValuePairProtocol.KeyValuePair.newBuilder();
input.readMessage(subBuilder, extensionRegistry);
addKeyValuePair(subBuilder.buildPartial());
break;
}
case 32: {
setBucketSize(input.readInt32());
break;
}
}
}
}
// optional int64 viewId = 1;
public boolean hasViewId() {
return result.hasViewId();
}
public long getViewId() {
return result.getViewId();
}
public Builder setViewId(long value) {
result.hasViewId = true;
result.viewId_ = value;
return this;
}
public Builder clearViewId() {
result.hasViewId = false;
result.viewId_ = 0L;
return this;
}
// repeated string members = 2;
public java.util.List getMembersList() {
return java.util.Collections.unmodifiableList(result.members_);
}
public int getMembersCount() {
return result.getMembersCount();
}
public java.lang.String getMembers(int index) {
return result.getMembers(index);
}
public Builder setMembers(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.members_.set(index, value);
return this;
}
public Builder addMembers(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
if (result.members_.isEmpty()) {
result.members_ = new java.util.ArrayList();
}
result.members_.add(value);
return this;
}
public Builder addAllMembers(
java.lang.Iterable extends java.lang.String> values) {
if (result.members_.isEmpty()) {
result.members_ = new java.util.ArrayList();
}
super.addAll(values, result.members_);
return this;
}
public Builder clearMembers() {
result.members_ = java.util.Collections.emptyList();
return this;
}
// repeated .com.alachisoft.ncache.common.protobuf.KeyValuePair keyValuePair = 3;
public java.util.List getKeyValuePairList() {
return java.util.Collections.unmodifiableList(result.keyValuePair_);
}
public int getKeyValuePairCount() {
return result.getKeyValuePairCount();
}
public com.alachisoft.ncache.common.protobuf.KeyValuePairProtocol.KeyValuePair getKeyValuePair(int index) {
return result.getKeyValuePair(index);
}
public Builder setKeyValuePair(int index, com.alachisoft.ncache.common.protobuf.KeyValuePairProtocol.KeyValuePair value) {
if (value == null) {
throw new NullPointerException();
}
result.keyValuePair_.set(index, value);
return this;
}
public Builder setKeyValuePair(int index, com.alachisoft.ncache.common.protobuf.KeyValuePairProtocol.KeyValuePair.Builder builderForValue) {
result.keyValuePair_.set(index, builderForValue.build());
return this;
}
public Builder addKeyValuePair(com.alachisoft.ncache.common.protobuf.KeyValuePairProtocol.KeyValuePair value) {
if (value == null) {
throw new NullPointerException();
}
if (result.keyValuePair_.isEmpty()) {
result.keyValuePair_ = new java.util.ArrayList();
}
result.keyValuePair_.add(value);
return this;
}
public Builder addKeyValuePair(com.alachisoft.ncache.common.protobuf.KeyValuePairProtocol.KeyValuePair.Builder builderForValue) {
if (result.keyValuePair_.isEmpty()) {
result.keyValuePair_ = new java.util.ArrayList();
}
result.keyValuePair_.add(builderForValue.build());
return this;
}
public Builder addAllKeyValuePair(
java.lang.Iterable extends com.alachisoft.ncache.common.protobuf.KeyValuePairProtocol.KeyValuePair> values) {
if (result.keyValuePair_.isEmpty()) {
result.keyValuePair_ = new java.util.ArrayList();
}
super.addAll(values, result.keyValuePair_);
return this;
}
public Builder clearKeyValuePair() {
result.keyValuePair_ = java.util.Collections.emptyList();
return this;
}
// optional int32 bucketSize = 4;
public boolean hasBucketSize() {
return result.hasBucketSize();
}
public int getBucketSize() {
return result.getBucketSize();
}
public Builder setBucketSize(int value) {
result.hasBucketSize = true;
result.bucketSize_ = value;
return this;
}
public Builder clearBucketSize() {
result.hasBucketSize = false;
result.bucketSize_ = 0;
return this;
}
// @@protoc_insertion_point(builder_scope:com.alachisoft.ncache.common.protobuf.GetHashmapResponse)
}
// @@protoc_insertion_point(class_scope:com.alachisoft.ncache.common.protobuf.GetHashmapResponse)
}
// @@protoc_insertion_point(outer_class_scope)
}