func RepoFromPBData(encoded []byte) (RepoProps, error) {

    in, err := IndexNodeFromBytes(encoded)
    if err != nil {
        return nil, err
    }

    if !in.IsRepoType() {
        return nil, fmt.Errorf("invalid repo type encoding: %v", in.Type())
    }

    rp := NewRepoProps()
    if err := rp.Unmarshal(in.format.GetData()); err != nil {
        return nil, err
    }

    return rp, nil
}
// RepoFromPBData creates a RepoProps from the given encoded RepoProps message
RepoFromPBData creates a RepoProps from the given encoded RepoProps message
// RepoFromPBData creates a RepoProps from the given encoded RepoProps message
func RepoFromPBData(encoded []byte) (RepoProps, error) {
    in, err := IndexNodeFromBytes(encoded)
    if err != nil {
        return nil, err
    }
    if !in.IsRepoType() {
        return nil, fmt.Errorf("invalid repo type encoding: %v", in.Type())
    }
    rp := NewRepoProps()
    if err := rp.Unmarshal(in.format.GetData()); err != nil {
        return nil, err
    }
    return rp, nil
}
func RepoFromPBData ( encoded [ ] byte ) ( RepoProps , error ) { in , err := IndexNodeFromBytes ( encoded ) if err != nil { return nil , err } if ! in . IsRepoType ( ) { return nil , fmt . Errorf ( " " , in . Type ( ) ) } rp := NewRepoProps ( ) if err := rp . Unmarshal ( in . format . GetData ( ) ) ; err != nil { return nil , err } return rp , nil }
RepoFromPBData creates a RepoProps from the given encoded RepoProps message
RepoFromPBData creates a RepoProps from the given encoded RepoProps message