Ejemplo n.º 1
0
 public com.google.bigtable.v2.Family build() {
   com.google.bigtable.v2.Family result = buildPartial();
   if (!result.isInitialized()) {
     throw newUninitializedMessageException(result);
   }
   return result;
 }
Ejemplo n.º 2
0
 public com.google.bigtable.v2.Family buildPartial() {
   com.google.bigtable.v2.Family result = new com.google.bigtable.v2.Family(this);
   int from_bitField0_ = bitField0_;
   int to_bitField0_ = 0;
   result.name_ = name_;
   if (columnsBuilder_ == null) {
     if (((bitField0_ & 0x00000002) == 0x00000002)) {
       columns_ = java.util.Collections.unmodifiableList(columns_);
       bitField0_ = (bitField0_ & ~0x00000002);
     }
     result.columns_ = columns_;
   } else {
     result.columns_ = columnsBuilder_.build();
   }
   result.bitField0_ = to_bitField0_;
   onBuilt();
   return result;
 }
Ejemplo n.º 3
0
 public Builder mergeFrom(com.google.bigtable.v2.Family other) {
   if (other == com.google.bigtable.v2.Family.getDefaultInstance()) return this;
   if (!other.getName().isEmpty()) {
     name_ = other.name_;
     onChanged();
   }
   if (columnsBuilder_ == null) {
     if (!other.columns_.isEmpty()) {
       if (columns_.isEmpty()) {
         columns_ = other.columns_;
         bitField0_ = (bitField0_ & ~0x00000002);
       } else {
         ensureColumnsIsMutable();
         columns_.addAll(other.columns_);
       }
       onChanged();
     }
   } else {
     if (!other.columns_.isEmpty()) {
       if (columnsBuilder_.isEmpty()) {
         columnsBuilder_.dispose();
         columnsBuilder_ = null;
         columns_ = other.columns_;
         bitField0_ = (bitField0_ & ~0x00000002);
         columnsBuilder_ =
             com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders
                 ? getColumnsFieldBuilder()
                 : null;
       } else {
         columnsBuilder_.addAllMessages(other.columns_);
       }
     }
   }
   onChanged();
   return this;
 }
Ejemplo n.º 4
0
 public com.google.bigtable.v2.Family getDefaultInstanceForType() {
   return com.google.bigtable.v2.Family.getDefaultInstance();
 }