Пример #1
0
 public protos.KeyProto.Keys build() {
   protos.KeyProto.Keys result = buildPartial();
   if (!result.isInitialized()) {
     throw newUninitializedMessageException(result);
   }
   return result;
 }
Пример #2
0
 public protos.KeyProto.Keys buildPartial() {
   protos.KeyProto.Keys result = new protos.KeyProto.Keys(this);
   int from_bitField0_ = bitField0_;
   if (((bitField0_ & 0x00000001) == 0x00000001)) {
     key_ = java.util.Collections.unmodifiableList(key_);
     bitField0_ = (bitField0_ & ~0x00000001);
   }
   result.key_ = key_;
   onBuilt();
   return result;
 }
Пример #3
0
 public Builder mergeFrom(protos.KeyProto.Keys other) {
   if (other == protos.KeyProto.Keys.getDefaultInstance()) return this;
   if (!other.key_.isEmpty()) {
     if (key_.isEmpty()) {
       key_ = other.key_;
       bitField0_ = (bitField0_ & ~0x00000001);
     } else {
       ensureKeyIsMutable();
       key_.addAll(other.key_);
     }
     onChanged();
   }
   this.mergeUnknownFields(other.getUnknownFields());
   return this;
 }
Пример #4
0
 public protos.KeyProto.Keys getDefaultInstanceForType() {
   return protos.KeyProto.Keys.getDefaultInstance();
 }