viaProto = true;
}
@Override
public DelegationToken getRMDelegationToken() {
GetDelegationTokenResponseProtoOrBuilder p = viaProto ? proto : builder;
if (this.appToken != null) {
return this.appToken;
}
if (!p.hasToken()) {
return null;
}
this.appToken = convertFromProtoFormat(p.getToken());
return this.appToken;
}