public override NodeStatus GetNodeStatus()
 {
     YarnServerCommonServiceProtos.NodeHeartbeatRequestProtoOrBuilder p = viaProto ? proto
                          : builder;
     if (this.nodeStatus != null)
     {
         return(this.nodeStatus);
     }
     if (!p.HasNodeStatus())
     {
         return(null);
     }
     this.nodeStatus = ConvertFromProtoFormat(p.GetNodeStatus());
     return(this.nodeStatus);
 }
 public override MasterKey GetLastKnownNMTokenMasterKey()
 {
     YarnServerCommonServiceProtos.NodeHeartbeatRequestProtoOrBuilder p = viaProto ? proto
                          : builder;
     if (this.lastKnownNMTokenMasterKey != null)
     {
         return(this.lastKnownNMTokenMasterKey);
     }
     if (!p.HasLastKnownNmTokenMasterKey())
     {
         return(null);
     }
     this.lastKnownNMTokenMasterKey = ConvertFromProtoFormat(p.GetLastKnownNmTokenMasterKey
                                                                 ());
     return(this.lastKnownNMTokenMasterKey);
 }