Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix the protocol buffers to use 2.3.0 compiled classes

  • Loading branch information...
commit 3f7ad511afc54ac3b0a159dc3585f487bc1ff29b 1 parent 0401c17
@rsumbaly authored
View
3  clients/python/voldemort/protocol/slop_pb2.py
@@ -7,7 +7,6 @@
# @@protoc_insertion_point(imports)
-
DESCRIPTOR = descriptor.FileDescriptor(
name='slop.proto',
package='voldemort',
@@ -78,7 +77,7 @@
serialized_end=127,
)
-DESCRIPTOR.message_types_by_name['Slop'] = _SLOP
+
class Slop(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
View
62 clients/python/voldemort/protocol/voldemort_admin_pb2.py
@@ -7,8 +7,6 @@
# @@protoc_insertion_point(imports)
-import voldemort_client_pb2
-
DESCRIPTOR = descriptor.FileDescriptor(
name='voldemort-admin.proto',
package='voldemort',
@@ -2417,6 +2415,8 @@
serialized_end=6968,
)
+import voldemort_client_pb2
+
_GETMETADATARESPONSE.fields_by_name['version'].message_type = voldemort_client_pb2._VERSIONED
_GETMETADATARESPONSE.fields_by_name['error'].message_type = voldemort_client_pb2._ERROR
_UPDATEMETADATAREQUEST.fields_by_name['versioned'].message_type = voldemort_client_pb2._VERSIONED
@@ -2492,64 +2492,6 @@
_VOLDEMORTADMINREQUEST.fields_by_name['delete_store_rebalance_state'].message_type = _DELETESTOREREBALANCESTATEREQUEST
_VOLDEMORTADMINREQUEST.fields_by_name['native_backup'].message_type = _NATIVEBACKUPREQUEST
_VOLDEMORTADMINREQUEST.fields_by_name['reserve_memory'].message_type = _RESERVEMEMORYREQUEST
-DESCRIPTOR.message_types_by_name['GetMetadataRequest'] = _GETMETADATAREQUEST
-DESCRIPTOR.message_types_by_name['GetMetadataResponse'] = _GETMETADATARESPONSE
-DESCRIPTOR.message_types_by_name['UpdateMetadataRequest'] = _UPDATEMETADATAREQUEST
-DESCRIPTOR.message_types_by_name['UpdateMetadataResponse'] = _UPDATEMETADATARESPONSE
-DESCRIPTOR.message_types_by_name['FileEntry'] = _FILEENTRY
-DESCRIPTOR.message_types_by_name['PartitionEntry'] = _PARTITIONENTRY
-DESCRIPTOR.message_types_by_name['UpdatePartitionEntriesRequest'] = _UPDATEPARTITIONENTRIESREQUEST
-DESCRIPTOR.message_types_by_name['UpdatePartitionEntriesResponse'] = _UPDATEPARTITIONENTRIESRESPONSE
-DESCRIPTOR.message_types_by_name['VoldemortFilter'] = _VOLDEMORTFILTER
-DESCRIPTOR.message_types_by_name['UpdateSlopEntriesRequest'] = _UPDATESLOPENTRIESREQUEST
-DESCRIPTOR.message_types_by_name['UpdateSlopEntriesResponse'] = _UPDATESLOPENTRIESRESPONSE
-DESCRIPTOR.message_types_by_name['FetchPartitionFilesRequest'] = _FETCHPARTITIONFILESREQUEST
-DESCRIPTOR.message_types_by_name['FetchPartitionEntriesRequest'] = _FETCHPARTITIONENTRIESREQUEST
-DESCRIPTOR.message_types_by_name['FetchPartitionEntriesResponse'] = _FETCHPARTITIONENTRIESRESPONSE
-DESCRIPTOR.message_types_by_name['DeletePartitionEntriesRequest'] = _DELETEPARTITIONENTRIESREQUEST
-DESCRIPTOR.message_types_by_name['DeletePartitionEntriesResponse'] = _DELETEPARTITIONENTRIESRESPONSE
-DESCRIPTOR.message_types_by_name['InitiateFetchAndUpdateRequest'] = _INITIATEFETCHANDUPDATEREQUEST
-DESCRIPTOR.message_types_by_name['AsyncOperationStatusRequest'] = _ASYNCOPERATIONSTATUSREQUEST
-DESCRIPTOR.message_types_by_name['AsyncOperationStopRequest'] = _ASYNCOPERATIONSTOPREQUEST
-DESCRIPTOR.message_types_by_name['AsyncOperationStopResponse'] = _ASYNCOPERATIONSTOPRESPONSE
-DESCRIPTOR.message_types_by_name['AsyncOperationListRequest'] = _ASYNCOPERATIONLISTREQUEST
-DESCRIPTOR.message_types_by_name['AsyncOperationListResponse'] = _ASYNCOPERATIONLISTRESPONSE
-DESCRIPTOR.message_types_by_name['PartitionTuple'] = _PARTITIONTUPLE
-DESCRIPTOR.message_types_by_name['PerStorePartitionTuple'] = _PERSTOREPARTITIONTUPLE
-DESCRIPTOR.message_types_by_name['RebalancePartitionInfoMap'] = _REBALANCEPARTITIONINFOMAP
-DESCRIPTOR.message_types_by_name['InitiateRebalanceNodeRequest'] = _INITIATEREBALANCENODEREQUEST
-DESCRIPTOR.message_types_by_name['InitiateRebalanceNodeOnDonorRequest'] = _INITIATEREBALANCENODEONDONORREQUEST
-DESCRIPTOR.message_types_by_name['AsyncOperationStatusResponse'] = _ASYNCOPERATIONSTATUSRESPONSE
-DESCRIPTOR.message_types_by_name['TruncateEntriesRequest'] = _TRUNCATEENTRIESREQUEST
-DESCRIPTOR.message_types_by_name['TruncateEntriesResponse'] = _TRUNCATEENTRIESRESPONSE
-DESCRIPTOR.message_types_by_name['AddStoreRequest'] = _ADDSTOREREQUEST
-DESCRIPTOR.message_types_by_name['AddStoreResponse'] = _ADDSTORERESPONSE
-DESCRIPTOR.message_types_by_name['DeleteStoreRequest'] = _DELETESTOREREQUEST
-DESCRIPTOR.message_types_by_name['DeleteStoreResponse'] = _DELETESTORERESPONSE
-DESCRIPTOR.message_types_by_name['FetchStoreRequest'] = _FETCHSTOREREQUEST
-DESCRIPTOR.message_types_by_name['SwapStoreRequest'] = _SWAPSTOREREQUEST
-DESCRIPTOR.message_types_by_name['SwapStoreResponse'] = _SWAPSTORERESPONSE
-DESCRIPTOR.message_types_by_name['RollbackStoreRequest'] = _ROLLBACKSTOREREQUEST
-DESCRIPTOR.message_types_by_name['RollbackStoreResponse'] = _ROLLBACKSTORERESPONSE
-DESCRIPTOR.message_types_by_name['RepairJobRequest'] = _REPAIRJOBREQUEST
-DESCRIPTOR.message_types_by_name['RepairJobResponse'] = _REPAIRJOBRESPONSE
-DESCRIPTOR.message_types_by_name['ROStoreVersionDirMap'] = _ROSTOREVERSIONDIRMAP
-DESCRIPTOR.message_types_by_name['GetROMaxVersionDirRequest'] = _GETROMAXVERSIONDIRREQUEST
-DESCRIPTOR.message_types_by_name['GetROMaxVersionDirResponse'] = _GETROMAXVERSIONDIRRESPONSE
-DESCRIPTOR.message_types_by_name['GetROCurrentVersionDirRequest'] = _GETROCURRENTVERSIONDIRREQUEST
-DESCRIPTOR.message_types_by_name['GetROCurrentVersionDirResponse'] = _GETROCURRENTVERSIONDIRRESPONSE
-DESCRIPTOR.message_types_by_name['GetROStorageFormatRequest'] = _GETROSTORAGEFORMATREQUEST
-DESCRIPTOR.message_types_by_name['GetROStorageFormatResponse'] = _GETROSTORAGEFORMATRESPONSE
-DESCRIPTOR.message_types_by_name['FailedFetchStoreRequest'] = _FAILEDFETCHSTOREREQUEST
-DESCRIPTOR.message_types_by_name['FailedFetchStoreResponse'] = _FAILEDFETCHSTORERESPONSE
-DESCRIPTOR.message_types_by_name['RebalanceStateChangeRequest'] = _REBALANCESTATECHANGEREQUEST
-DESCRIPTOR.message_types_by_name['RebalanceStateChangeResponse'] = _REBALANCESTATECHANGERESPONSE
-DESCRIPTOR.message_types_by_name['DeleteStoreRebalanceStateRequest'] = _DELETESTOREREBALANCESTATEREQUEST
-DESCRIPTOR.message_types_by_name['DeleteStoreRebalanceStateResponse'] = _DELETESTOREREBALANCESTATERESPONSE
-DESCRIPTOR.message_types_by_name['NativeBackupRequest'] = _NATIVEBACKUPREQUEST
-DESCRIPTOR.message_types_by_name['ReserveMemoryRequest'] = _RESERVEMEMORYREQUEST
-DESCRIPTOR.message_types_by_name['ReserveMemoryResponse'] = _RESERVEMEMORYRESPONSE
-DESCRIPTOR.message_types_by_name['VoldemortAdminRequest'] = _VOLDEMORTADMINREQUEST
class GetMetadataRequest(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
View
20 clients/python/voldemort/protocol/voldemort_client_pb2.py
@@ -7,7 +7,6 @@
# @@protoc_insertion_point(imports)
-
DESCRIPTOR = descriptor.FileDescriptor(
name='voldemort-client.proto',
package='voldemort',
@@ -765,6 +764,7 @@
serialized_end=1594,
)
+
_VECTORCLOCK.fields_by_name['entries'].message_type = _CLOCKENTRY
_VERSIONED.fields_by_name['version'].message_type = _VECTORCLOCK
_KEYEDVERSIONS.fields_by_name['versions'].message_type = _VERSIONED
@@ -788,24 +788,6 @@
_VOLDEMORTREQUEST.fields_by_name['put'].message_type = _PUTREQUEST
_VOLDEMORTREQUEST.fields_by_name['delete'].message_type = _DELETEREQUEST
_VOLDEMORTREQUEST.fields_by_name['hasKeys'].message_type = _HASKEYSREQUEST
-DESCRIPTOR.message_types_by_name['ClockEntry'] = _CLOCKENTRY
-DESCRIPTOR.message_types_by_name['VectorClock'] = _VECTORCLOCK
-DESCRIPTOR.message_types_by_name['Versioned'] = _VERSIONED
-DESCRIPTOR.message_types_by_name['Error'] = _ERROR
-DESCRIPTOR.message_types_by_name['KeyedVersions'] = _KEYEDVERSIONS
-DESCRIPTOR.message_types_by_name['KeyedBoolean'] = _KEYEDBOOLEAN
-DESCRIPTOR.message_types_by_name['GetRequest'] = _GETREQUEST
-DESCRIPTOR.message_types_by_name['GetResponse'] = _GETRESPONSE
-DESCRIPTOR.message_types_by_name['GetVersionResponse'] = _GETVERSIONRESPONSE
-DESCRIPTOR.message_types_by_name['GetAllRequest'] = _GETALLREQUEST
-DESCRIPTOR.message_types_by_name['GetAllResponse'] = _GETALLRESPONSE
-DESCRIPTOR.message_types_by_name['HasKeysRequest'] = _HASKEYSREQUEST
-DESCRIPTOR.message_types_by_name['HasKeysResponse'] = _HASKEYSRESPONSE
-DESCRIPTOR.message_types_by_name['PutRequest'] = _PUTREQUEST
-DESCRIPTOR.message_types_by_name['PutResponse'] = _PUTRESPONSE
-DESCRIPTOR.message_types_by_name['DeleteRequest'] = _DELETEREQUEST
-DESCRIPTOR.message_types_by_name['DeleteResponse'] = _DELETERESPONSE
-DESCRIPTOR.message_types_by_name['VoldemortRequest'] = _VOLDEMORTREQUEST
class ClockEntry(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
View
23,264 src/java/voldemort/client/protocol/pb/VAdminProto.java
5,270 additions, 17,994 deletions not shown
View
7,214 src/java/voldemort/client/protocol/pb/VProto.java
1,660 additions, 5,554 deletions not shown
View
472 src/java/voldemort/serialization/VSlopProto.java
@@ -8,39 +8,11 @@ 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
- implements SlopOrBuilder {
+ com.google.protobuf.GeneratedMessage {
// Use Slop.newBuilder() to construct.
- private Slop(Builder builder) {
- super(builder);
+ private Slop() {
+ initFields();
}
private Slop(boolean noInit) {}
@@ -63,148 +35,74 @@ 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 java.lang.Object store_;
- public boolean hasStore() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public String getStore() {
- java.lang.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() {
- java.lang.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;
- }
- }
+ private boolean hasStore;
+ private java.lang.String store_ = "";
+ public boolean hasStore() { return hasStore; }
+ public java.lang.String getStore() { return store_; }
// optional string operation = 2;
public static final int OPERATION_FIELD_NUMBER = 2;
- private java.lang.Object operation_;
- public boolean hasOperation() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public String getOperation() {
- java.lang.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() {
- java.lang.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;
- }
- }
+ private boolean hasOperation;
+ private java.lang.String operation_ = "";
+ public boolean hasOperation() { return hasOperation; }
+ public java.lang.String getOperation() { return operation_; }
// optional bytes key = 3;
public static final int KEY_FIELD_NUMBER = 3;
- private com.google.protobuf.ByteString key_;
- public boolean hasKey() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- public com.google.protobuf.ByteString getKey() {
- return key_;
- }
+ 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_; }
// optional bytes value = 4;
public static final int VALUE_FIELD_NUMBER = 4;
- private com.google.protobuf.ByteString value_;
- public boolean hasValue() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- public com.google.protobuf.ByteString getValue() {
- return value_;
- }
+ 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_; }
// optional int32 node_id = 5;
public static final int NODE_ID_FIELD_NUMBER = 5;
- private int nodeId_;
- public boolean hasNodeId() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- public int getNodeId() {
- return nodeId_;
- }
+ private boolean hasNodeId;
+ private int nodeId_ = 0;
+ public boolean hasNodeId() { return hasNodeId; }
+ public int getNodeId() { return nodeId_; }
// optional int64 arrived = 6;
public static final int ARRIVED_FIELD_NUMBER = 6;
- private long arrived_;
- public boolean hasArrived() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
- }
- public long getArrived() {
- return arrived_;
- }
+ private boolean hasArrived;
+ private long arrived_ = 0L;
+ public boolean hasArrived() { return hasArrived; }
+ 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 (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getStoreBytes());
+ if (hasStore()) {
+ output.writeString(1, getStore());
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getOperationBytes());
+ if (hasOperation()) {
+ output.writeString(2, getOperation());
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(3, key_);
+ if (hasKey()) {
+ output.writeBytes(3, getKey());
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(4, value_);
+ if (hasValue()) {
+ output.writeBytes(4, getValue());
}
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeInt32(5, nodeId_);
+ if (hasNodeId()) {
+ output.writeInt32(5, getNodeId());
}
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- output.writeInt64(6, arrived_);
+ if (hasArrived()) {
+ output.writeInt64(6, getArrived());
}
getUnknownFields().writeTo(output);
}
@@ -215,42 +113,35 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (hasStore()) {
size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getStoreBytes());
+ .computeStringSize(1, getStore());
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (hasOperation()) {
size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getOperationBytes());
+ .computeStringSize(2, getOperation());
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ if (hasKey()) {
size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, key_);
+ .computeBytesSize(3, getKey());
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ if (hasValue()) {
size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, value_);
+ .computeBytesSize(4, getValue());
}
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ if (hasNodeId()) {
size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(5, nodeId_);
+ .computeInt32Size(5, getNodeId());
}
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ if (hasArrived()) {
size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(6, arrived_);
+ .computeInt64Size(6, getArrived());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.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 {
@@ -325,61 +216,34 @@ 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>
- implements voldemort.serialization.VSlopProto.SlopOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return voldemort.serialization.VSlopProto.internal_static_voldemort_Slop_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return voldemort.serialization.VSlopProto.internal_static_voldemort_Slop_fieldAccessorTable;
- }
+ com.google.protobuf.GeneratedMessage.Builder<Builder> {
+ private voldemort.serialization.VSlopProto.Slop result;
// Construct using voldemort.serialization.VSlopProto.Slop.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
+ private Builder() {}
- private Builder(BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
private static Builder create() {
- return new Builder();
+ Builder builder = new Builder();
+ builder.result = new voldemort.serialization.VSlopProto.Slop();
+ return builder;
+ }
+
+ protected voldemort.serialization.VSlopProto.Slop internalGetResult() {
+ return result;
}
public Builder clear() {
- 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);
+ if (result == null) {
+ throw new IllegalStateException(
+ "Cannot call clear() after build().");
+ }
+ result = new voldemort.serialization.VSlopProto.Slop();
return this;
}
public Builder clone() {
- return create().mergeFrom(buildPartial());
+ return create().mergeFrom(result);
}
public com.google.protobuf.Descriptors.Descriptor
@@ -391,55 +255,33 @@ public Builder clone() {
return voldemort.serialization.VSlopProto.Slop.getDefaultInstance();
}
+ public boolean isInitialized() {
+ return result.isInitialized();
+ }
public voldemort.serialization.VSlopProto.Slop build() {
- voldemort.serialization.VSlopProto.Slop result = buildPartial();
- if (!result.isInitialized()) {
+ if (result != null && !isInitialized()) {
throw newUninitializedMessageException(result);
}
- return result;
+ return buildPartial();
}
private voldemort.serialization.VSlopProto.Slop buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
- voldemort.serialization.VSlopProto.Slop result = buildPartial();
- if (!result.isInitialized()) {
+ if (!isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
- return result;
+ return buildPartial();
}
public voldemort.serialization.VSlopProto.Slop buildPartial() {
- 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;
+ if (result == null) {
+ throw new IllegalStateException(
+ "build() has already been called on this Builder.");
}
- result.nodeId_ = nodeId_;
- if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
- to_bitField0_ |= 0x00000020;
- }
- result.arrived_ = arrived_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
+ voldemort.serialization.VSlopProto.Slop returnMe = result;
+ result = null;
+ return returnMe;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
@@ -475,10 +317,6 @@ 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)
@@ -491,212 +329,161 @@ 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: {
- bitField0_ |= 0x00000001;
- store_ = input.readBytes();
+ setStore(input.readString());
break;
}
case 18: {
- bitField0_ |= 0x00000002;
- operation_ = input.readBytes();
+ setOperation(input.readString());
break;
}
case 26: {
- bitField0_ |= 0x00000004;
- key_ = input.readBytes();
+ setKey(input.readBytes());
break;
}
case 34: {
- bitField0_ |= 0x00000008;
- value_ = input.readBytes();
+ setValue(input.readBytes());
break;
}
case 40: {
- bitField0_ |= 0x00000010;
- nodeId_ = input.readInt32();
+ setNodeId(input.readInt32());
break;
}
case 48: {
- bitField0_ |= 0x00000020;
- arrived_ = input.readInt64();
+ setArrived(input.readInt64());
break;
}
}
}
}
- private int bitField0_;
// optional string store = 1;
- private java.lang.Object store_ = "";
public boolean hasStore() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public String getStore() {
- java.lang.Object ref = store_;
- if (!(ref instanceof String)) {
- String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
- store_ = s;
- return s;
- } else {
- return (String) ref;
- }
+ return result.hasStore();
+ }
+ public java.lang.String getStore() {
+ return result.getStore();
}
- public Builder setStore(String value) {
+ public Builder setStore(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000001;
- store_ = value;
- onChanged();
+ result.hasStore = true;
+ result.store_ = value;
return this;
}
public Builder clearStore() {
- bitField0_ = (bitField0_ & ~0x00000001);
- store_ = getDefaultInstance().getStore();
- onChanged();
+ result.hasStore = false;
+ result.store_ = getDefaultInstance().getStore();
return this;
}
- void setStore(com.google.protobuf.ByteString value) {
- bitField0_ |= 0x00000001;
- store_ = value;
- onChanged();
- }
// optional string operation = 2;
- private java.lang.Object operation_ = "";
public boolean hasOperation() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public String getOperation() {
- java.lang.Object ref = operation_;
- if (!(ref instanceof String)) {
- String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
- operation_ = s;
- return s;
- } else {
- return (String) ref;
- }
+ return result.hasOperation();
+ }
+ public java.lang.String getOperation() {
+ return result.getOperation();
}
- public Builder setOperation(String value) {
+ public Builder setOperation(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000002;
- operation_ = value;
- onChanged();
+ result.hasOperation = true;
+ result.operation_ = value;
return this;
}
public Builder clearOperation() {
- bitField0_ = (bitField0_ & ~0x00000002);
- operation_ = getDefaultInstance().getOperation();
- onChanged();
+ result.hasOperation = false;
+ result.operation_ = getDefaultInstance().getOperation();
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 ((bitField0_ & 0x00000004) == 0x00000004);
+ return result.hasKey();
}
public com.google.protobuf.ByteString getKey() {
- return key_;
+ return result.getKey();
}
public Builder setKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000004;
- key_ = value;
- onChanged();
+ result.hasKey = true;
+ result.key_ = value;
return this;
}
public Builder clearKey() {
- bitField0_ = (bitField0_ & ~0x00000004);
- key_ = getDefaultInstance().getKey();
- onChanged();
+ result.hasKey = false;
+ result.key_ = getDefaultInstance().getKey();
return this;
}
// optional bytes value = 4;
- private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasValue() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ return result.hasValue();
}
public com.google.protobuf.ByteString getValue() {
- return value_;
+ return result.getValue();
}
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000008;
- value_ = value;
- onChanged();
+ result.hasValue = true;
+ result.value_ = value;
return this;
}
public Builder clearValue() {
- bitField0_ = (bitField0_ & ~0x00000008);
- value_ = getDefaultInstance().getValue();
- onChanged();
+ result.hasValue = false;
+ result.value_ = getDefaultInstance().getValue();
return this;
}
// optional int32 node_id = 5;
- private int nodeId_ ;
public boolean hasNodeId() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
+ return result.hasNodeId();
}
public int getNodeId() {
- return nodeId_;
+ return result.getNodeId();
}
public Builder setNodeId(int value) {
- bitField0_ |= 0x00000010;
- nodeId_ = value;
- onChanged();
+ result.hasNodeId = true;
+ result.nodeId_ = value;
return this;
}
public Builder clearNodeId() {
- bitField0_ = (bitField0_ & ~0x00000010);
- nodeId_ = 0;
- onChanged();
+ result.hasNodeId = false;
+ result.nodeId_ = 0;
return this;
}
// optional int64 arrived = 6;
- private long arrived_ ;
public boolean hasArrived() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
+ return result.hasArrived();
}
public long getArrived() {
- return arrived_;
+ return result.getArrived();
}
public Builder setArrived(long value) {
- bitField0_ |= 0x00000020;
- arrived_ = value;
- onChanged();
+ result.hasArrived = true;
+ result.arrived_ = value;
return this;
}
public Builder clearArrived() {
- bitField0_ = (bitField0_ & ~0x00000020);
- arrived_ = 0L;
- onChanged();
+ result.hasArrived = false;
+ result.arrived_ = 0L;
return this;
}
@@ -705,6 +492,7 @@ public Builder clearArrived() {
static {
defaultInstance = new Slop(true);
+ voldemort.serialization.VSlopProto.internalForceInit();
defaultInstance.initFields();
}
@@ -753,5 +541,7 @@ public Builder clearArrived() {
}, assigner);
}
+ public static void internalForceInit() {}
+
// @@protoc_insertion_point(outer_class_scope)
}
Please sign in to comment.
Something went wrong with that request. Please try again.