public Builder clear() { super.clear(); if (majorTypeBuilder_ == null) { majorType_ = com.dremio.common.types.TypeProtos.MajorType.getDefaultInstance(); } else { majorTypeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (namePartBuilder_ == null) { namePart_ = com.dremio.exec.proto.UserBitShared.NamePart.getDefaultInstance(); } else { namePartBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (childBuilder_ == null) { child_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { childBuilder_.clear(); } valueCount_ = 0; bitField0_ = (bitField0_ & ~0x00000008); varByteLength_ = 0; bitField0_ = (bitField0_ & ~0x00000010); bufferLength_ = 0; bitField0_ = (bitField0_ & ~0x00000020); return this; }
private void initFields() { majorType_ = com.dremio.common.types.TypeProtos.MajorType.getDefaultInstance(); namePart_ = com.dremio.exec.proto.UserBitShared.NamePart.getDefaultInstance(); child_ = java.util.Collections.emptyList(); valueCount_ = 0; varByteLength_ = 0; bufferLength_ = 0; } private byte memoizedIsInitialized = -1;
/** * <code>optional .common.MajorType major_type = 1;</code> * * <pre> * the type associated with this field. * </pre> */ public Builder clearMajorType() { if (majorTypeBuilder_ == null) { majorType_ = com.dremio.common.types.TypeProtos.MajorType.getDefaultInstance(); onChanged(); } else { majorTypeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /**
public Builder mergeFrom(com.dremio.common.types.TypeProtos.MajorType other) { if (other == com.dremio.common.types.TypeProtos.MajorType.getDefaultInstance()) return this; if (other.hasMinorType()) { setMinorType(other.getMinorType());
/** * <code>optional .common.MajorType major_type = 1;</code> * * <pre> * the type associated with this field. * </pre> */ public Builder mergeMajorType(com.dremio.common.types.TypeProtos.MajorType value) { if (majorTypeBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && majorType_ != com.dremio.common.types.TypeProtos.MajorType.getDefaultInstance()) { majorType_ = com.dremio.common.types.TypeProtos.MajorType.newBuilder(majorType_).mergeFrom(value).buildPartial(); } else { majorType_ = value; } onChanged(); } else { majorTypeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /**
public com.dremio.common.types.TypeProtos.MajorType getDefaultInstanceForType() { return com.dremio.common.types.TypeProtos.MajorType.getDefaultInstance(); }