Skip to content
Browse files

regenerated 2.4.1 code for the proto

  • Loading branch information...
1 parent cd005df commit d452bc1c22b745340f770425d05d48fa8d9bd106 @akkumar committed Dec 31, 2011
View
22,114 src/java/voldemort/client/protocol/pb/VAdminProto.java
17,051 additions, 5,063 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
6,122 src/java/voldemort/client/protocol/pb/VProto.java
4,719 additions, 1,403 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
470 src/java/voldemort/serialization/VSlopProto.java
@@ -8,11 +8,39 @@ private VSlopProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
+ public interface SlopOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // optional string store = 1;
+ boolean hasStore();
+ String getStore();
+
+ // optional string operation = 2;
+ boolean hasOperation();
+ String getOperation();
+
+ // optional bytes key = 3;
+ boolean hasKey();
+ com.google.protobuf.ByteString getKey();
+
+ // optional bytes value = 4;
+ boolean hasValue();
+ com.google.protobuf.ByteString getValue();
+
+ // optional int32 node_id = 5;
+ boolean hasNodeId();
+ int getNodeId();
+
+ // optional int64 arrived = 6;
+ boolean hasArrived();
+ long getArrived();
+ }
public static final class Slop extends
- com.google.protobuf.GeneratedMessage {
+ com.google.protobuf.GeneratedMessage
+ implements SlopOrBuilder {
// Use Slop.newBuilder() to construct.
- private Slop() {
- initFields();
+ private Slop(Builder builder) {
+ super(builder);
}
private Slop(boolean noInit) {}
@@ -35,74 +63,148 @@ public Slop getDefaultInstanceForType() {
return voldemort.serialization.VSlopProto.internal_static_voldemort_Slop_fieldAccessorTable;
}
+ private int bitField0_;
// optional string store = 1;
public static final int STORE_FIELD_NUMBER = 1;
- private boolean hasStore;
- private java.lang.String store_ = "";
- public boolean hasStore() { return hasStore; }
- public java.lang.String getStore() { return store_; }
+ private Object store_;
+ public boolean hasStore() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public String getStore() {
+ Object ref = store_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (com.google.protobuf.Internal.isValidUtf8(bs)) {
+ store_ = s;
+ }
+ return s;
+ }
+ }
+ private com.google.protobuf.ByteString getStoreBytes() {
+ Object ref = store_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ store_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
// optional string operation = 2;
public static final int OPERATION_FIELD_NUMBER = 2;
- private boolean hasOperation;
- private java.lang.String operation_ = "";
- public boolean hasOperation() { return hasOperation; }
- public java.lang.String getOperation() { return operation_; }
+ private Object operation_;
+ public boolean hasOperation() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ public String getOperation() {
+ Object ref = operation_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (com.google.protobuf.Internal.isValidUtf8(bs)) {
+ operation_ = s;
+ }
+ return s;
+ }
+ }
+ private com.google.protobuf.ByteString getOperationBytes() {
+ Object ref = operation_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ operation_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
// optional bytes key = 3;
public static final int KEY_FIELD_NUMBER = 3;
- private boolean hasKey;
- private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
- public boolean hasKey() { return hasKey; }
- public com.google.protobuf.ByteString getKey() { return key_; }
+ private com.google.protobuf.ByteString key_;
+ public boolean hasKey() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ public com.google.protobuf.ByteString getKey() {
+ return key_;
+ }
// optional bytes value = 4;
public static final int VALUE_FIELD_NUMBER = 4;
- private boolean hasValue;
- private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
- public boolean hasValue() { return hasValue; }
- public com.google.protobuf.ByteString getValue() { return value_; }
+ private com.google.protobuf.ByteString value_;
+ public boolean hasValue() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ public com.google.protobuf.ByteString getValue() {
+ return value_;
+ }
// optional int32 node_id = 5;
public static final int NODE_ID_FIELD_NUMBER = 5;
- private boolean hasNodeId;
- private int nodeId_ = 0;
- public boolean hasNodeId() { return hasNodeId; }
- public int getNodeId() { return nodeId_; }
+ private int nodeId_;
+ public boolean hasNodeId() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+ public int getNodeId() {
+ return nodeId_;
+ }
// optional int64 arrived = 6;
public static final int ARRIVED_FIELD_NUMBER = 6;
- private boolean hasArrived;
- private long arrived_ = 0L;
- public boolean hasArrived() { return hasArrived; }
- public long getArrived() { return arrived_; }
+ private long arrived_;
+ public boolean hasArrived() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+ public long getArrived() {
+ return arrived_;
+ }
private void initFields() {
+ store_ = "";
+ operation_ = "";
+ key_ = com.google.protobuf.ByteString.EMPTY;
+ value_ = com.google.protobuf.ByteString.EMPTY;
+ nodeId_ = 0;
+ arrived_ = 0L;
}
+ private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
- if (hasStore()) {
- output.writeString(1, getStore());
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getStoreBytes());
}
- if (hasOperation()) {
- output.writeString(2, getOperation());
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeBytes(2, getOperationBytes());
}
- if (hasKey()) {
- output.writeBytes(3, getKey());
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeBytes(3, key_);
}
- if (hasValue()) {
- output.writeBytes(4, getValue());
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ output.writeBytes(4, value_);
}
- if (hasNodeId()) {
- output.writeInt32(5, getNodeId());
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ output.writeInt32(5, nodeId_);
}
- if (hasArrived()) {
- output.writeInt64(6, getArrived());
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ output.writeInt64(6, arrived_);
}
getUnknownFields().writeTo(output);
}
@@ -113,35 +215,40 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (hasStore()) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeStringSize(1, getStore());
+ .computeBytesSize(1, getStoreBytes());
}
- if (hasOperation()) {
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeStringSize(2, getOperation());
+ .computeBytesSize(2, getOperationBytes());
}
- if (hasKey()) {
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, getKey());
+ .computeBytesSize(3, key_);
}
- if (hasValue()) {
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getValue());
+ .computeBytesSize(4, value_);
}
- if (hasNodeId()) {
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(5, getNodeId());
+ .computeInt32Size(5, nodeId_);
}
- if (hasArrived()) {
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(6, getArrived());
+ .computeInt64Size(6, arrived_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
+ @java.lang.Override
+ protected Object writeReplace() throws java.io.ObjectStreamException {
+ return super.writeReplace();
+ }
+
public static voldemort.serialization.VSlopProto.Slop parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -216,34 +323,61 @@ public static Builder newBuilder(voldemort.serialization.VSlopProto.Slop prototy
}
public Builder toBuilder() { return newBuilder(this); }
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> {
- private voldemort.serialization.VSlopProto.Slop result;
+ com.google.protobuf.GeneratedMessage.Builder<Builder>
+ implements voldemort.serialization.VSlopProto.SlopOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return voldemort.serialization.VSlopProto.internal_static_voldemort_Slop_descriptor;
+ }
- // Construct using voldemort.serialization.VSlopProto.Slop.newBuilder()
- private Builder() {}
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return voldemort.serialization.VSlopProto.internal_static_voldemort_Slop_fieldAccessorTable;
+ }
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new voldemort.serialization.VSlopProto.Slop();
- return builder;
+ // Construct using voldemort.serialization.VSlopProto.Slop.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
}
- protected voldemort.serialization.VSlopProto.Slop internalGetResult() {
- return result;
+ private Builder(BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ }
+ }
+ private static Builder create() {
+ return new Builder();
}
public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
- }
- result = new voldemort.serialization.VSlopProto.Slop();
+ super.clear();
+ store_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ operation_ = "";
+ bitField0_ = (bitField0_ & ~0x00000002);
+ key_ = com.google.protobuf.ByteString.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ value_ = com.google.protobuf.ByteString.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ nodeId_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ arrived_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
public Builder clone() {
- return create().mergeFrom(result);
+ return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
@@ -255,33 +389,55 @@ public Builder clone() {
return voldemort.serialization.VSlopProto.Slop.getDefaultInstance();
}
- public boolean isInitialized() {
- return result.isInitialized();
- }
public voldemort.serialization.VSlopProto.Slop build() {
- if (result != null && !isInitialized()) {
+ voldemort.serialization.VSlopProto.Slop result = buildPartial();
+ if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
- return buildPartial();
+ return result;
}
private voldemort.serialization.VSlopProto.Slop buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
+ voldemort.serialization.VSlopProto.Slop result = buildPartial();
+ if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
- return buildPartial();
+ return result;
}
public voldemort.serialization.VSlopProto.Slop buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
+ voldemort.serialization.VSlopProto.Slop result = new voldemort.serialization.VSlopProto.Slop(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.store_ = store_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.operation_ = operation_;
+ if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ to_bitField0_ |= 0x00000004;
+ }
+ result.key_ = key_;
+ if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ to_bitField0_ |= 0x00000008;
+ }
+ result.value_ = value_;
+ if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
+ to_bitField0_ |= 0x00000010;
}
- voldemort.serialization.VSlopProto.Slop returnMe = result;
- result = null;
- return returnMe;
+ result.nodeId_ = nodeId_;
+ if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
+ to_bitField0_ |= 0x00000020;
+ }
+ result.arrived_ = arrived_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
@@ -317,6 +473,10 @@ public Builder mergeFrom(voldemort.serialization.VSlopProto.Slop other) {
return this;
}
+ public final boolean isInitialized() {
+ return true;
+ }
+
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -329,161 +489,212 @@ public Builder mergeFrom(
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
+ onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
+ onChanged();
return this;
}
break;
}
case 10: {
- setStore(input.readString());
+ bitField0_ |= 0x00000001;
+ store_ = input.readBytes();
break;
}
case 18: {
- setOperation(input.readString());
+ bitField0_ |= 0x00000002;
+ operation_ = input.readBytes();
break;
}
case 26: {
- setKey(input.readBytes());
+ bitField0_ |= 0x00000004;
+ key_ = input.readBytes();
break;
}
case 34: {
- setValue(input.readBytes());
+ bitField0_ |= 0x00000008;
+ value_ = input.readBytes();
break;
}
case 40: {
- setNodeId(input.readInt32());
+ bitField0_ |= 0x00000010;
+ nodeId_ = input.readInt32();
break;
}
case 48: {
- setArrived(input.readInt64());
+ bitField0_ |= 0x00000020;
+ arrived_ = input.readInt64();
break;
}
}
}
}
+ private int bitField0_;
// optional string store = 1;
+ private Object store_ = "";
public boolean hasStore() {
- return result.hasStore();
- }
- public java.lang.String getStore() {
- return result.getStore();
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public String getStore() {
+ Object ref = store_;
+ if (!(ref instanceof String)) {
+ String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ store_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
}
- public Builder setStore(java.lang.String value) {
+ public Builder setStore(String value) {
if (value == null) {
throw new NullPointerException();
}
- result.hasStore = true;
- result.store_ = value;
+ bitField0_ |= 0x00000001;
+ store_ = value;
+ onChanged();
return this;
}
public Builder clearStore() {
- result.hasStore = false;
- result.store_ = getDefaultInstance().getStore();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ store_ = getDefaultInstance().getStore();
+ onChanged();
return this;
}
+ void setStore(com.google.protobuf.ByteString value) {
+ bitField0_ |= 0x00000001;
+ store_ = value;
+ onChanged();
+ }
// optional string operation = 2;
+ private Object operation_ = "";
public boolean hasOperation() {
- return result.hasOperation();
- }
- public java.lang.String getOperation() {
- return result.getOperation();
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ public String getOperation() {
+ Object ref = operation_;
+ if (!(ref instanceof String)) {
+ String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ operation_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
}
- public Builder setOperation(java.lang.String value) {
+ public Builder setOperation(String value) {
if (value == null) {
throw new NullPointerException();
}
- result.hasOperation = true;
- result.operation_ = value;
+ bitField0_ |= 0x00000002;
+ operation_ = value;
+ onChanged();
return this;
}
public Builder clearOperation() {
- result.hasOperation = false;
- result.operation_ = getDefaultInstance().getOperation();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ operation_ = getDefaultInstance().getOperation();
+ onChanged();
return this;
}
+ void setOperation(com.google.protobuf.ByteString value) {
+ bitField0_ |= 0x00000002;
+ operation_ = value;
+ onChanged();
+ }
// optional bytes key = 3;
+ private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasKey() {
- return result.hasKey();
+ return ((bitField0_ & 0x00000004) == 0x00000004);
}
public com.google.protobuf.ByteString getKey() {
- return result.getKey();
+ return key_;
}
public Builder setKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- result.hasKey = true;
- result.key_ = value;
+ bitField0_ |= 0x00000004;
+ key_ = value;
+ onChanged();
return this;
}
public Builder clearKey() {
- result.hasKey = false;
- result.key_ = getDefaultInstance().getKey();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ key_ = getDefaultInstance().getKey();
+ onChanged();
return this;
}
// optional bytes value = 4;
+ private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasValue() {
- return result.hasValue();
+ return ((bitField0_ & 0x00000008) == 0x00000008);
}
public com.google.protobuf.ByteString getValue() {
- return result.getValue();
+ return value_;
}
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- result.hasValue = true;
- result.value_ = value;
+ bitField0_ |= 0x00000008;
+ value_ = value;
+ onChanged();
return this;
}
public Builder clearValue() {
- result.hasValue = false;
- result.value_ = getDefaultInstance().getValue();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ value_ = getDefaultInstance().getValue();
+ onChanged();
return this;
}
// optional int32 node_id = 5;
+ private int nodeId_ ;
public boolean hasNodeId() {
- return result.hasNodeId();
+ return ((bitField0_ & 0x00000010) == 0x00000010);
}
public int getNodeId() {
- return result.getNodeId();
+ return nodeId_;
}
public Builder setNodeId(int value) {
- result.hasNodeId = true;
- result.nodeId_ = value;
+ bitField0_ |= 0x00000010;
+ nodeId_ = value;
+ onChanged();
return this;
}
public Builder clearNodeId() {
- result.hasNodeId = false;
- result.nodeId_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ nodeId_ = 0;
+ onChanged();
return this;
}
// optional int64 arrived = 6;
+ private long arrived_ ;
public boolean hasArrived() {
- return result.hasArrived();
+ return ((bitField0_ & 0x00000020) == 0x00000020);
}
public long getArrived() {
- return result.getArrived();
+ return arrived_;
}
public Builder setArrived(long value) {
- result.hasArrived = true;
- result.arrived_ = value;
+ bitField0_ |= 0x00000020;
+ arrived_ = value;
+ onChanged();
return this;
}
public Builder clearArrived() {
- result.hasArrived = false;
- result.arrived_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ arrived_ = 0L;
+ onChanged();
return this;
}
@@ -492,7 +703,6 @@ public Builder clearArrived() {
static {
defaultInstance = new Slop(true);
- voldemort.serialization.VSlopProto.internalForceInit();
defaultInstance.initFields();
}
@@ -541,7 +751,5 @@ public Builder clearArrived() {
}, assigner);
}
- public static void internalForceInit() {}
-
// @@protoc_insertion_point(outer_class_scope)
}

0 comments on commit d452bc1

Please sign in to comment.
Something went wrong with that request. Please try again.