/** * <code>repeated .common.MinorType sub_type = 7;</code> * * <pre> * used by Union type * </pre> */ public Builder clearSubType() { subType_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; }
/** * <code>optional .common.MinorType minor_type = 1;</code> */ public Builder setMinorType(org.apache.drill.common.types.TypeProtos.MinorType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; minorType_ = value; onChanged(); return this; } /**
/** * <code>optional .common.DataMode mode = 2;</code> */ public Builder setMode(org.apache.drill.common.types.TypeProtos.DataMode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; mode_ = value; onChanged(); return this; } /**
/** * <code>optional .common.MinorType minor_type = 1;</code> */ public Builder clearMinorType() { bitField0_ = (bitField0_ & ~0x00000001); minorType_ = org.apache.drill.common.types.TypeProtos.MinorType.LATE; onChanged(); return this; }
/** * <code>optional .common.DataMode mode = 2;</code> */ public Builder clearMode() { bitField0_ = (bitField0_ & ~0x00000002); mode_ = org.apache.drill.common.types.TypeProtos.DataMode.OPTIONAL; onChanged(); return this; }
/** * <code>optional int32 width = 3;</code> */ public Builder setWidth(int value) { bitField0_ |= 0x00000004; width_ = value; onChanged(); return this; } /**
subType_.addAll(other.subType_); onChanged();
/** * <code>repeated .common.MinorType sub_type = 7;</code> * * <pre> * used by Union type * </pre> */ public Builder setSubType( int index, org.apache.drill.common.types.TypeProtos.MinorType value) { if (value == null) { throw new NullPointerException(); } ensureSubTypeIsMutable(); subType_.set(index, value); onChanged(); return this; } /**
/** * <code>repeated .common.MinorType sub_type = 7;</code> * * <pre> * used by Union type * </pre> */ public Builder addSubType(org.apache.drill.common.types.TypeProtos.MinorType value) { if (value == null) { throw new NullPointerException(); } ensureSubTypeIsMutable(); subType_.add(value); onChanged(); return this; } /**
/** * <code>repeated .common.MinorType sub_type = 7;</code> * * <pre> * used by Union type * </pre> */ public Builder addAllSubType( java.lang.Iterable<? extends org.apache.drill.common.types.TypeProtos.MinorType> values) { ensureSubTypeIsMutable(); super.addAll(values, subType_); onChanged(); return this; } /**
/** * <code>optional int32 scale = 5;</code> * * <pre> * used for decimal types * </pre> */ public Builder setScale(int value) { bitField0_ |= 0x00000010; scale_ = value; onChanged(); return this; } /**
/** * <code>optional int32 precision = 4;</code> * * <pre> * used for decimal types or as optional length for fixed size value * </pre> */ public Builder setPrecision(int value) { bitField0_ |= 0x00000008; precision_ = value; onChanged(); return this; } /**
/** * <code>optional int32 timeZone = 6;</code> * * <pre> * used by TimeStamp type * </pre> */ public Builder setTimeZone(int value) { bitField0_ |= 0x00000020; timeZone_ = value; onChanged(); return this; } /**
/** * <code>optional int32 timeZone = 6;</code> * * <pre> * used by TimeStamp type * </pre> */ public Builder clearTimeZone() { bitField0_ = (bitField0_ & ~0x00000020); timeZone_ = 0; onChanged(); return this; }
/** * <code>optional int32 precision = 4;</code> * * <pre> * used for decimal types or as optional length for fixed size value * </pre> */ public Builder clearPrecision() { bitField0_ = (bitField0_ & ~0x00000008); precision_ = 0; onChanged(); return this; }
/** * <code>optional int32 scale = 5;</code> * * <pre> * used for decimal types * </pre> */ public Builder clearScale() { bitField0_ = (bitField0_ & ~0x00000010); scale_ = 0; onChanged(); return this; }
/** * <code>optional .common.DataMode mode = 2;</code> */ public Builder clearMode() { bitField0_ = (bitField0_ & ~0x00000002); mode_ = org.apache.drill.common.types.TypeProtos.DataMode.OPTIONAL; onChanged(); return this; }
/** * <code>optional .common.MinorType minor_type = 1;</code> */ public Builder clearMinorType() { bitField0_ = (bitField0_ & ~0x00000001); minorType_ = org.apache.drill.common.types.TypeProtos.MinorType.LATE; onChanged(); return this; }
/** * <code>optional int32 width = 3;</code> */ public Builder clearWidth() { bitField0_ = (bitField0_ & ~0x00000004); width_ = 0; onChanged(); return this; }
/** * <code>optional int32 width = 3;</code> */ public Builder setWidth(int value) { bitField0_ |= 0x00000004; width_ = value; onChanged(); return this; } /**