Exemplo n.º 1
0
 public com.github.jsdossier.proto.JsTypeRenderSpec build() {
   com.github.jsdossier.proto.JsTypeRenderSpec result = buildPartial();
   if (!result.isInitialized()) {
     throw newUninitializedMessageException(result);
   }
   return result;
 }
Exemplo n.º 2
0
 public com.github.jsdossier.proto.JsTypeRenderSpec buildPartial() {
   com.github.jsdossier.proto.JsTypeRenderSpec result =
       new com.github.jsdossier.proto.JsTypeRenderSpec(this);
   int from_bitField0_ = bitField0_;
   int to_bitField0_ = 0;
   if (typeBuilder_ == null) {
     if (((bitField0_ & 0x00000001) == 0x00000001)) {
       type_ = java.util.Collections.unmodifiableList(type_);
       bitField0_ = (bitField0_ & ~0x00000001);
     }
     result.type_ = type_;
   } else {
     result.type_ = typeBuilder_.build();
   }
   if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
     to_bitField0_ |= 0x00000001;
   }
   if (resourcesBuilder_ == null) {
     result.resources_ = resources_;
   } else {
     result.resources_ = resourcesBuilder_.build();
   }
   if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
     to_bitField0_ |= 0x00000002;
   }
   if (indexBuilder_ == null) {
     result.index_ = index_;
   } else {
     result.index_ = indexBuilder_.build();
   }
   result.bitField0_ = to_bitField0_;
   onBuilt();
   return result;
 }
Exemplo n.º 3
0
 public Builder mergeFrom(com.github.jsdossier.proto.JsTypeRenderSpec other) {
   if (other == com.github.jsdossier.proto.JsTypeRenderSpec.getDefaultInstance()) return this;
   if (typeBuilder_ == null) {
     if (!other.type_.isEmpty()) {
       if (type_.isEmpty()) {
         type_ = other.type_;
         bitField0_ = (bitField0_ & ~0x00000001);
       } else {
         ensureTypeIsMutable();
         type_.addAll(other.type_);
       }
       onChanged();
     }
   } else {
     if (!other.type_.isEmpty()) {
       if (typeBuilder_.isEmpty()) {
         typeBuilder_.dispose();
         typeBuilder_ = null;
         type_ = other.type_;
         bitField0_ = (bitField0_ & ~0x00000001);
         typeBuilder_ =
             com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders
                 ? getTypeFieldBuilder()
                 : null;
       } else {
         typeBuilder_.addAllMessages(other.type_);
       }
     }
   }
   if (other.hasResources()) {
     mergeResources(other.getResources());
   }
   if (other.hasIndex()) {
     mergeIndex(other.getIndex());
   }
   this.mergeUnknownFields(other.getUnknownFields());
   return this;
 }
Exemplo n.º 4
0
 public com.github.jsdossier.proto.JsTypeRenderSpec getDefaultInstanceForType() {
   return com.github.jsdossier.proto.JsTypeRenderSpec.getDefaultInstance();
 }