properties_ = com.dremio.exec.proto.UserProtos.UserProperties.getDefaultInstance(); } else { propertiesBuilder_.clear();
public Builder mergeFrom(com.dremio.exec.proto.UserProtos.UserProperties other) { if (other == com.dremio.exec.proto.UserProtos.UserProperties.getDefaultInstance()) return this; if (propertiesBuilder_ == null) { if (!other.properties_.isEmpty()) {
/** * <code>optional .exec.user.UserProperties properties = 5;</code> */ public Builder clearProperties() { if (propertiesBuilder_ == null) { properties_ = com.dremio.exec.proto.UserProtos.UserProperties.getDefaultInstance(); onChanged(); } else { propertiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /**
.setUserName("foo") .build()) .withUserProperties(UserProperties.getDefaultInstance()) .withOptionManager(nodeContext1.getOptionManager()) .build();
.withUserProperties(UserProperties.getDefaultInstance()) .withOptionManager(nodeContext1.getOptionManager()) .build();
.setUserName(username) .build()) .withUserProperties(UserProtos.UserProperties.getDefaultInstance()) .withOptionManager(sabotContext.getOptionManager()) .withDefaultSchema(context)
/** * <code>optional .exec.user.UserProperties properties = 5;</code> */ public Builder mergeProperties(com.dremio.exec.proto.UserProtos.UserProperties value) { if (propertiesBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && properties_ != com.dremio.exec.proto.UserProtos.UserProperties.getDefaultInstance()) { properties_ = com.dremio.exec.proto.UserProtos.UserProperties.newBuilder(properties_).mergeFrom(value).buildPartial(); } else { properties_ = value; } onChanged(); } else { propertiesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /**
public com.dremio.exec.proto.UserProtos.UserProperties getDefaultInstanceForType() { return com.dremio.exec.proto.UserProtos.UserProperties.getDefaultInstance(); }
private void initFields() { channel_ = com.dremio.exec.proto.UserBitShared.RpcChannel.USER; supportListening_ = false; rpcVersion_ = 0; credentials_ = com.dremio.exec.proto.UserBitShared.UserCredentials.getDefaultInstance(); properties_ = com.dremio.exec.proto.UserProtos.UserProperties.getDefaultInstance(); supportComplexTypes_ = false; supportTimeout_ = false; clientInfos_ = com.dremio.exec.proto.UserBitShared.RpcEndpointInfos.getDefaultInstance(); recordBatchType_ = com.dremio.exec.proto.UserProtos.RecordBatchType.DRILL; supportedRecordBatchFormats_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1;
private QueryContext newQueryContext(SqlQuery query) { try (TimedBlock b = time("initParser")) { QueryId queryId = QueryId.newBuilder().setPart1(ID_MAJOR).setPart2(ID_MINOR.incrementAndGet()).build(); UserSession session = UserSession.Builder.newBuilder() .withCredentials(UserCredentials.newBuilder() .setUserName(query.getUsername()) .build()) .withUserProperties(UserProperties.getDefaultInstance()) .withOptionManager(sabotContext.getOptionManager()) .build(); return new QueryContext(session, sabotContext, queryId); } }
public static UserSession session() { return UserSession.Builder.newBuilder() .withUserProperties(UserProtos.UserProperties.getDefaultInstance()) .withCredentials(UserBitShared.UserCredentials.newBuilder().setUserName("foo").build()) .withOptionManager(getSabotContext().getOptionManager()) .setSupportComplexTypes(true) .build(); }
private static UserSession session() { return UserSession.Builder.newBuilder() .withUserProperties(UserProtos.UserProperties.getDefaultInstance()) .withCredentials(UserBitShared.UserCredentials.newBuilder().setUserName("foo").build()) .withOptionManager(getSabotContext().getOptionManager()) .setSupportComplexTypes(true) .build(); } }
private static UserSession session() { return UserSession.Builder.newBuilder() .withUserProperties(UserProtos.UserProperties.getDefaultInstance()) .withCredentials(UserBitShared.UserCredentials.newBuilder().setUserName("foo").build()) .withOptionManager(getSabotContext().getOptionManager()) .setSupportComplexTypes(true) .build(); }