code: def decode_search_index(self, index):
          
          result = {}
          result['name'] = bytes_to_str(index.name)
          if index.HasField('schema'):
              result['schema'] = bytes_to_str(index.schema)
          if index.HasField('n_val'):
              result['n_val'] = index.n_val
          return result
docs: Fills an RpbYokozunaIndex message with the appropriate data.
  
          :param index: a yz index message
          :type index: riak.pb.riak_yokozuna_pb2.RpbYokozunaIndex
          :rtype dict