/** * <code>optional string default_schema_name = 3;</code> * * <pre> * default schema in current session when the query is submitted * </pre> */ public Builder setDefaultSchemaNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; defaultSchemaName_ = value; onChanged(); return this; }
/** * <code>optional string session_id = 4;</code> * * <pre> * current session id * </pre> */ public Builder setSessionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; sessionId_ = value; onChanged(); return this; }
/** * <code>optional string default_schema_name = 3;</code> * * <pre> * default schema in current session when the query is submitted * </pre> */ public Builder setDefaultSchemaName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; defaultSchemaName_ = value; onChanged(); return this; } /**
/** * <code>optional string session_id = 4;</code> * * <pre> * current session id * </pre> */ public Builder setSessionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; sessionId_ = value; onChanged(); return this; } /**
/** * <code>optional string default_schema_name = 3;</code> * * <pre> * default schema in current session when the query is submitted * </pre> */ public Builder setDefaultSchemaNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; defaultSchemaName_ = value; onChanged(); return this; }
/** * <code>optional string session_id = 4;</code> * * <pre> * current session id * </pre> */ public Builder clearSessionId() { bitField0_ = (bitField0_ & ~0x00000008); sessionId_ = getDefaultInstance().getSessionId(); onChanged(); return this; } /**
/** * <code>optional int32 time_zone = 2;</code> * * <pre> * timezone of the Drillbit where user is connected * </pre> */ public Builder setTimeZone(int value) { bitField0_ |= 0x00000002; timeZone_ = value; onChanged(); return this; } /**
/** * <code>optional int64 query_start_time = 1;</code> * * <pre> * start time of query in milliseconds * </pre> */ public Builder setQueryStartTime(long value) { bitField0_ |= 0x00000001; queryStartTime_ = value; onChanged(); return this; } /**
/** * <code>optional string session_id = 4;</code> * * <pre> * current session id * </pre> */ public Builder setSessionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; sessionId_ = value; onChanged(); return this; }
/** * <code>optional string default_schema_name = 3;</code> * * <pre> * default schema in current session when the query is submitted * </pre> */ public Builder clearDefaultSchemaName() { bitField0_ = (bitField0_ & ~0x00000004); defaultSchemaName_ = getDefaultInstance().getDefaultSchemaName(); onChanged(); return this; } /**
/** * <code>optional int64 query_start_time = 1;</code> * * <pre> * start time of query in milliseconds * </pre> */ public Builder clearQueryStartTime() { bitField0_ = (bitField0_ & ~0x00000001); queryStartTime_ = 0L; onChanged(); return this; }
/** * <code>optional int32 time_zone = 2;</code> * * <pre> * timezone of the Drillbit where user is connected * </pre> */ public Builder clearTimeZone() { bitField0_ = (bitField0_ & ~0x00000002); timeZone_ = 0; onChanged(); return this; }
public Builder mergeFrom(org.apache.drill.exec.proto.BitControl.QueryContextInformation other) { if (other == org.apache.drill.exec.proto.BitControl.QueryContextInformation.getDefaultInstance()) return this; if (other.hasQueryStartTime()) { setQueryStartTime(other.getQueryStartTime()); } if (other.hasTimeZone()) { setTimeZone(other.getTimeZone()); } if (other.hasDefaultSchemaName()) { bitField0_ |= 0x00000004; defaultSchemaName_ = other.defaultSchemaName_; onChanged(); } if (other.hasSessionId()) { bitField0_ |= 0x00000008; sessionId_ = other.sessionId_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>optional string session_id = 4;</code> * * <pre> * current session id * </pre> */ public Builder setSessionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; sessionId_ = value; onChanged(); return this; } /**
/** * <code>optional int64 query_start_time = 1;</code> * * <pre> * start time of query in milliseconds * </pre> */ public Builder setQueryStartTime(long value) { bitField0_ |= 0x00000001; queryStartTime_ = value; onChanged(); return this; } /**
/** * <code>optional string session_id = 4;</code> * * <pre> * current session id * </pre> */ public Builder clearSessionId() { bitField0_ = (bitField0_ & ~0x00000008); sessionId_ = getDefaultInstance().getSessionId(); onChanged(); return this; } /**
/** * <code>optional int64 query_start_time = 1;</code> * * <pre> * start time of query in milliseconds * </pre> */ public Builder clearQueryStartTime() { bitField0_ = (bitField0_ & ~0x00000001); queryStartTime_ = 0L; onChanged(); return this; }
/** * <code>optional string default_schema_name = 3;</code> * * <pre> * default schema in current session when the query is submitted * </pre> */ public Builder clearDefaultSchemaName() { bitField0_ = (bitField0_ & ~0x00000004); defaultSchemaName_ = getDefaultInstance().getDefaultSchemaName(); onChanged(); return this; } /**
/** * <code>optional int32 time_zone = 2;</code> * * <pre> * timezone of the Drillbit where user is connected * </pre> */ public Builder setTimeZone(int value) { bitField0_ |= 0x00000002; timeZone_ = value; onChanged(); return this; } /**
/** * <code>optional int32 time_zone = 2;</code> * * <pre> * timezone of the Drillbit where user is connected * </pre> */ public Builder clearTimeZone() { bitField0_ = (bitField0_ & ~0x00000002); timeZone_ = 0; onChanged(); return this; }