public virtual ResourceStatusType GetStatus()
 {
     YarnServerNodemanagerServiceProtos.LocalResourceStatusProtoOrBuilder p = viaProto
                          ? proto : builder;
     if (!p.HasStatus())
     {
         return(null);
     }
     return(ConvertFromProtoFormat(p.GetStatus()));
 }
 public virtual LocalResource GetResource()
 {
     YarnServerNodemanagerServiceProtos.LocalResourceStatusProtoOrBuilder p = viaProto
                          ? proto : builder;
     if (this.resource != null)
     {
         return(this.resource);
     }
     if (!p.HasResource())
     {
         return(null);
     }
     this.resource = ConvertFromProtoFormat(p.GetResource());
     return(this.resource);
 }
 public virtual SerializedException GetException()
 {
     YarnServerNodemanagerServiceProtos.LocalResourceStatusProtoOrBuilder p = viaProto
                          ? proto : builder;
     if (this.exception != null)
     {
         return(this.exception);
     }
     if (!p.HasException())
     {
         return(null);
     }
     this.exception = ConvertFromProtoFormat(p.GetException());
     return(this.exception);
 }
 public virtual URL GetLocalPath()
 {
     YarnServerNodemanagerServiceProtos.LocalResourceStatusProtoOrBuilder p = viaProto
                          ? proto : builder;
     if (this.localPath != null)
     {
         return(this.localPath);
     }
     if (!p.HasLocalPath())
     {
         return(null);
     }
     this.localPath = ConvertFromProtoFormat(p.GetLocalPath());
     return(this.localPath);
 }
 public virtual long GetLocalSize()
 {
     YarnServerNodemanagerServiceProtos.LocalResourceStatusProtoOrBuilder p = viaProto
                          ? proto : builder;
     return(p.GetLocalSize());
 }