code: def _value_to_python(value):
    
  
    assert isinstance(value, struct_pb2.Value)
    field = value.WhichOneof('kind')
    if field == 'number_value':
      return value.number_value
    elif field == 'string_value':
      return value.string_value
    elif field == 'bool_value':
      return value.bool_value
    else:
      raise ValueError('Unknown struct_pb2.Value oneof field set: %s' % field)
docs: Converts a google.protobuf.Value to a native Python object.