if (subBuilder != null) { subBuilder.mergeFrom(majorType_); majorType_ = subBuilder.buildPartial();
/** * <code>optional .common.MajorType major_type = 1;</code> * * <pre> * the type associated with this field. * </pre> */ public Builder mergeMajorType(org.apache.drill.common.types.TypeProtos.MajorType value) { if (majorTypeBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && majorType_ != org.apache.drill.common.types.TypeProtos.MajorType.getDefaultInstance()) { majorType_ = org.apache.drill.common.types.TypeProtos.MajorType.newBuilder(majorType_).mergeFrom(value).buildPartial(); } else { majorType_ = value; } onChanged(); } else { majorTypeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /**
if (subBuilder != null) { subBuilder.mergeFrom(majorType_); majorType_ = subBuilder.buildPartial();
/** * <code>optional .common.MajorType major_type = 1;</code> * * <pre> * the type associated with this field. * </pre> */ public Builder mergeMajorType(org.apache.drill.common.types.TypeProtos.MajorType value) { if (majorTypeBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && majorType_ != org.apache.drill.common.types.TypeProtos.MajorType.getDefaultInstance()) { majorType_ = org.apache.drill.common.types.TypeProtos.MajorType.newBuilder(majorType_).mergeFrom(value).buildPartial(); } else { majorType_ = value; } onChanged(); } else { majorTypeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /**
public Builder clone() { return create().mergeFrom(buildPartial()); }
public org.apache.drill.common.types.TypeProtos.MajorType build() { org.apache.drill.common.types.TypeProtos.MajorType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public Builder clone() { return create().mergeFrom(buildPartial()); }
public org.apache.drill.common.types.TypeProtos.MajorType build() { org.apache.drill.common.types.TypeProtos.MajorType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }