func ReposetFromPBData(encoded []byte) (ReposetProps, error) {

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

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

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

    return rps, nil
}
// ReposetFromPBData creates a ReposetProps from the given encoded ReposetProps message
ReposetFromPBData creates a ReposetProps from the given encoded ReposetProps message
// ReposetFromPBData creates a ReposetProps from the given encoded ReposetProps message
func ReposetFromPBData(encoded []byte) (ReposetProps, error) {
    in, err := IndexNodeFromBytes(encoded)
    if err != nil {
        return nil, err
    }
    if !in.IsReposetType() {
        return nil, fmt.Errorf("invalid reposet type encoding: %v", in.Type())
    }
    rps := NewReposetProps()
    if err := rps.Unmarshal(in.format.GetData()); err != nil {
        return nil, err
    }
    return rps, nil
}
func ReposetFromPBData ( encoded [ ] byte ) ( ReposetProps , error ) { in , err := IndexNodeFromBytes ( encoded ) if err != nil { return nil , err } if ! in . IsReposetType ( ) { return nil , fmt . Errorf ( " " , in . Type ( ) ) } rps := NewReposetProps ( ) if err := rps . Unmarshal ( in . format . GetData ( ) ) ; err != nil { return nil , err } return rps , nil }
ReposetFromPBData creates a ReposetProps from the given encoded ReposetProps message
ReposetFromPBData creates a ReposetProps from the given encoded ReposetProps message