bitField0_ = (bitField0_ & ~0x00000004); if (credentialsBuilder_ == null) { credentials_ = com.dremio.exec.proto.UserBitShared.UserCredentials.getDefaultInstance(); } else { credentialsBuilder_.clear();
bitField0_ = (bitField0_ & ~0x00000400); if (credentialsBuilder_ == null) { credentials_ = com.dremio.exec.proto.UserBitShared.UserCredentials.getDefaultInstance(); } else { credentialsBuilder_.clear();
/** * <code>optional .exec.shared.UserCredentials credentials = 4;</code> */ public Builder clearCredentials() { if (credentialsBuilder_ == null) { credentials_ = com.dremio.exec.proto.UserBitShared.UserCredentials.getDefaultInstance(); onChanged(); } else { credentialsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /**
private void initFields() { handle_ = com.dremio.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance(); networkCost_ = 0F; cpuCost_ = 0F; diskCost_ = 0F; memoryCost_ = 0F; fragmentJson_ = com.google.protobuf.ByteString.EMPTY; leafFragment_ = false; assignment_ = com.dremio.exec.proto.CoordinationProtos.NodeEndpoint.getDefaultInstance(); foreman_ = com.dremio.exec.proto.CoordinationProtos.NodeEndpoint.getDefaultInstance(); memInitial_ = 20000000L; memMax_ = 2000000000L; credentials_ = com.dremio.exec.proto.UserBitShared.UserCredentials.getDefaultInstance(); optionsJson_ = com.google.protobuf.ByteString.EMPTY; context_ = com.dremio.exec.proto.CoordExecRPC.QueryContextInformation.getDefaultInstance(); collector_ = java.util.Collections.emptyList(); priority_ = com.dremio.exec.proto.CoordExecRPC.FragmentPriority.getDefaultInstance(); fragmentCodec_ = com.dremio.exec.proto.CoordExecRPC.FragmentCodec.NONE; allAssignment_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1;
public void setup() { try { storeProvider = new LocalKVStoreProvider(DremioTest.CLASSPATH_SCAN_RESULT, null, true, false); storeProvider.start(); final Provider<KVStoreProvider> storeProviderProvider = new Provider<KVStoreProvider>() { @Override public KVStoreProvider get() { return storeProvider; } }; provider = new KVPersistentStoreProvider(storeProviderProvider); options = new SystemOptionManager(result, persistence, provider); options.init(); compiler = new CodeCompiler(config, options); ec = new ExecutionControls(options, NodeEndpoint.getDefaultInstance()); functionLookup = new FunctionImplementationRegistry(config, result); contextInformation = new ContextInformationImpl(UserCredentials.getDefaultInstance(), QueryContextInformation.getDefaultInstance()); }catch(Exception e){ throw new RuntimeException(e); } }
/** * <code>optional .exec.shared.UserCredentials credentials = 14;</code> */ public Builder mergeCredentials(com.dremio.exec.proto.UserBitShared.UserCredentials value) { if (credentialsBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800) && credentials_ != com.dremio.exec.proto.UserBitShared.UserCredentials.getDefaultInstance()) { credentials_ = com.dremio.exec.proto.UserBitShared.UserCredentials.newBuilder(credentials_).mergeFrom(value).buildPartial(); } else { credentials_ = value; } onChanged(); } else { credentialsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000800; return this; } /**
/** * <code>optional .exec.shared.UserCredentials credentials = 4;</code> */ public Builder mergeCredentials(com.dremio.exec.proto.UserBitShared.UserCredentials value) { if (credentialsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && credentials_ != com.dremio.exec.proto.UserBitShared.UserCredentials.getDefaultInstance()) { credentials_ = com.dremio.exec.proto.UserBitShared.UserCredentials.newBuilder(credentials_).mergeFrom(value).buildPartial(); } else { credentials_ = value; } onChanged(); } else { credentialsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /**
/** * <code>optional .exec.shared.UserCredentials credentials = 14;</code> */ public Builder clearCredentials() { if (credentialsBuilder_ == null) { credentials_ = com.dremio.exec.proto.UserBitShared.UserCredentials.getDefaultInstance(); onChanged(); } else { credentialsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); return this; } /**
public com.dremio.exec.proto.UserBitShared.UserCredentials getDefaultInstanceForType() { return com.dremio.exec.proto.UserBitShared.UserCredentials.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;
/** * <code>optional string user_name = 1;</code> */ public Builder clearUserName() { bitField0_ = (bitField0_ & ~0x00000001); userName_ = getDefaultInstance().getUserName(); onChanged(); return this; } /**
public Builder mergeFrom(com.dremio.exec.proto.UserBitShared.UserCredentials other) { if (other == com.dremio.exec.proto.UserBitShared.UserCredentials.getDefaultInstance()) return this; if (other.hasUserName()) { bitField0_ |= 0x00000001; userName_ = other.userName_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }