/** * <code>optional .exec.shared.NamePart child = 3;</code> */ public Builder setChild(org.apache.drill.exec.proto.UserBitShared.NamePart value) { if (childBuilder_ == null) { if (value == null) { throw new NullPointerException(); } child_ = value; onChanged(); } else { childBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /**
/** * <code>optional .exec.shared.NamePart.Type type = 1;</code> */ public Builder setType(org.apache.drill.exec.proto.UserBitShared.NamePart.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /**
/** * <code>optional string name = 2;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /**
public Builder mergeFrom(org.apache.drill.exec.proto.UserBitShared.NamePart other) { if (other == org.apache.drill.exec.proto.UserBitShared.NamePart.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasChild()) { mergeChild(other.getChild()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>optional .exec.shared.NamePart child = 3;</code> */ public Builder setChild( org.apache.drill.exec.proto.UserBitShared.NamePart.Builder builderForValue) { if (childBuilder_ == null) { child_ = builderForValue.build(); onChanged(); } else { childBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /**
/** * <code>optional .exec.shared.NamePart child = 3;</code> */ public Builder clearChild() { if (childBuilder_ == null) { child_ = org.apache.drill.exec.proto.UserBitShared.NamePart.getDefaultInstance(); onChanged(); } else { childBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /**
/** * <code>optional string name = 2;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /**
/** * <code>optional string name = 2;</code> */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; }
/** * <code>optional string name = 2;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * <code>optional .exec.shared.NamePart.Type type = 1;</code> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = org.apache.drill.exec.proto.UserBitShared.NamePart.Type.NAME; onChanged(); return this; }
/** * <code>optional .exec.shared.NamePart.Type type = 1;</code> */ public Builder setType(org.apache.drill.exec.proto.UserBitShared.NamePart.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /**
/** * <code>optional .exec.shared.NamePart child = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.NamePart.Builder getChildBuilder() { bitField0_ |= 0x00000004; onChanged(); return getChildFieldBuilder().getBuilder(); } /**
/** * <code>optional .exec.shared.NamePart child = 3;</code> */ public Builder mergeChild(org.apache.drill.exec.proto.UserBitShared.NamePart value) { if (childBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && child_ != org.apache.drill.exec.proto.UserBitShared.NamePart.getDefaultInstance()) { child_ = org.apache.drill.exec.proto.UserBitShared.NamePart.newBuilder(child_).mergeFrom(value).buildPartial(); } else { child_ = value; } onChanged(); } else { childBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /**
/** * <code>optional .exec.shared.NamePart child = 3;</code> */ public Builder setChild( org.apache.drill.exec.proto.UserBitShared.NamePart.Builder builderForValue) { if (childBuilder_ == null) { child_ = builderForValue.build(); onChanged(); } else { childBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /**
/** * <code>optional .exec.shared.NamePart child = 3;</code> */ public Builder clearChild() { if (childBuilder_ == null) { child_ = org.apache.drill.exec.proto.UserBitShared.NamePart.getDefaultInstance(); onChanged(); } else { childBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /**
public Builder mergeFrom(org.apache.drill.exec.proto.UserBitShared.NamePart other) { if (other == org.apache.drill.exec.proto.UserBitShared.NamePart.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasChild()) { mergeChild(other.getChild()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>optional string name = 2;</code> */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; }
/** * <code>optional string name = 2;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * <code>optional .exec.shared.NamePart child = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.NamePart.Builder getChildBuilder() { bitField0_ |= 0x00000004; onChanged(); return getChildFieldBuilder().getBuilder(); } /**
/** * <code>optional .exec.shared.NamePart.Type type = 1;</code> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = org.apache.drill.exec.proto.UserBitShared.NamePart.Type.NAME; onChanged(); return this; }