def _OptionsOrNone(descriptor_proto):
  """Returns the value of the field `options`, or None if it is not set."""
  if descriptor_proto.HasField('options'):
    return descriptor_proto.options
  else:
    return None
Returns the value of the field `options`, or None if it is not set.
deps/protobuf/python/google/protobuf/descriptor_pool.py