/** * <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; } /**
subBuilder.mergeFrom(namePart_); namePart_ = subBuilder.buildPartial();
/** * <code>optional .exec.shared.NamePart child = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.NamePart.Builder getChildBuilder() { bitField0_ |= 0x00000004; onChanged(); return getChildFieldBuilder().getBuilder(); } /**
subBuilder.mergeFrom(namePart_); namePart_ = subBuilder.buildPartial();
subBuilder.mergeFrom(child_); child_ = subBuilder.buildPartial();
public void mergeFrom(com.dyuproject.protostuff.Input input, org.apache.drill.exec.proto.UserBitShared.NamePart.Builder builder) throws java.io.IOException { for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this)) { switch(number) { case 0: return; case 1: builder.setType(org.apache.drill.exec.proto.UserBitShared.NamePart.Type.valueOf(input.readEnum())); break; case 2: builder.setName(input.readString()); break; case 3: builder.setChild(input.mergeObject(org.apache.drill.exec.proto.UserBitShared.NamePart.newBuilder(), org.apache.drill.exec.proto.SchemaUserBitShared.NamePart.MERGE)); break; default: input.handleUnknownField(number, this); } } } public boolean isInitialized(org.apache.drill.exec.proto.UserBitShared.NamePart.Builder builder)
/** * <code>optional .exec.shared.NamePart name_part = 2;</code> */ public Builder mergeNamePart(org.apache.drill.exec.proto.UserBitShared.NamePart value) { if (namePartBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && namePart_ != org.apache.drill.exec.proto.UserBitShared.NamePart.getDefaultInstance()) { namePart_ = org.apache.drill.exec.proto.UserBitShared.NamePart.newBuilder(namePart_).mergeFrom(value).buildPartial(); } else { namePart_ = value; } onChanged(); } else { namePartBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /**
/** * <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; } /**
private static NamePart getNamePart(PathSegment s) { if (s == null) { return null; } NamePart.Builder b = NamePart.newBuilder(); if (s.getChild() != null) { NamePart namePart = getNamePart(s.getChild()); if (namePart != null) { b.setChild(namePart); } } if (s.isArray()) { if (s.getArraySegment().hasIndex()) { throw new IllegalStateException("You cannot convert a indexed schema path to a NamePart. NameParts can only reference Vectors, not individual records or values."); } b.setType(Type.ARRAY); } else { b.setType(Type.NAME); b.setName(s.getNameSegment().getPath()); } return b.build(); }
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 name_part = 2;</code> */ public Builder setNamePart( org.apache.drill.exec.proto.UserBitShared.NamePart.Builder builderForValue) { if (namePartBuilder_ == null) { namePart_ = builderForValue.build(); onChanged(); } else { namePartBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /**
/** * <code>optional .exec.shared.NamePart child = 3;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.NamePart, org.apache.drill.exec.proto.UserBitShared.NamePart.Builder, org.apache.drill.exec.proto.UserBitShared.NamePartOrBuilder> getChildFieldBuilder() { if (childBuilder_ == null) { childBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.NamePart, org.apache.drill.exec.proto.UserBitShared.NamePart.Builder, org.apache.drill.exec.proto.UserBitShared.NamePartOrBuilder>( child_, getParentForChildren(), isClean()); child_ = null; } return childBuilder_; }
/** * <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; } /**
private static Builder create() { return new Builder(); }
public Builder clone() { return create().mergeFrom(buildPartial()); }
/** * <code>optional .exec.shared.NamePart child = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.NamePart.Builder getChildBuilder() { bitField0_ |= 0x00000004; onChanged(); return getChildFieldBuilder().getBuilder(); } /**
private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getChildFieldBuilder(); } } private static Builder create() {
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
public org.apache.drill.exec.proto.UserBitShared.NamePart build() { org.apache.drill.exec.proto.UserBitShared.NamePart result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }