Example #1
0
 public com.cloudata.blockstore.IscsiProto.LogEntry build() {
   com.cloudata.blockstore.IscsiProto.LogEntry result = buildPartial();
   if (!result.isInitialized()) {
     throw newUninitializedMessageException(result);
   }
   return result;
 }
Example #2
0
 public com.cloudata.blockstore.IscsiProto.LogEntry buildPartial() {
   com.cloudata.blockstore.IscsiProto.LogEntry result =
       new com.cloudata.blockstore.IscsiProto.LogEntry(this);
   int from_bitField0_ = bitField0_;
   int to_bitField0_ = 0;
   if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
     to_bitField0_ |= 0x00000001;
   }
   result.storeId_ = storeId_;
   if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
     to_bitField0_ |= 0x00000002;
   }
   result.action_ = action_;
   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;
   }
   result.incrementBy_ = incrementBy_;
   result.bitField0_ = to_bitField0_;
   onBuilt();
   return result;
 }
Example #3
0
 public Builder mergeFrom(com.cloudata.blockstore.IscsiProto.LogEntry other) {
   if (other == com.cloudata.blockstore.IscsiProto.LogEntry.getDefaultInstance()) return this;
   if (other.hasStoreId()) {
     setStoreId(other.getStoreId());
   }
   if (other.hasAction()) {
     setAction(other.getAction());
   }
   if (other.hasKey()) {
     setKey(other.getKey());
   }
   if (other.hasValue()) {
     setValue(other.getValue());
   }
   if (other.hasIncrementBy()) {
     setIncrementBy(other.getIncrementBy());
   }
   this.mergeUnknownFields(other.getUnknownFields());
   return this;
 }
Example #4
0
 public com.cloudata.blockstore.IscsiProto.LogEntry getDefaultInstanceForType() {
   return com.cloudata.blockstore.IscsiProto.LogEntry.getDefaultInstance();
 }