def NormalizeFieldTypeName(field_fqn):
    'Normalize a fully qualified field type name, e.g.\n\n  .envoy.foo.bar.\n\n  Strips leading ENVOY_API_NAMESPACE_PREFIX and ENVOY_PREFIX.\n\n  Args:\n    field_fqn: a fully qualified type name from FieldDescriptorProto.type_name.\n  Return: Normalized type name.\n  '
    if field_fqn.startswith(ENVOY_API_NAMESPACE_PREFIX):
        return field_fqn[len(ENVOY_API_NAMESPACE_PREFIX):]
    if field_fqn.startswith(ENVOY_PREFIX):
        return field_fqn[len(ENVOY_PREFIX):]
    return field_fqn
Normalize a fully qualified field type name, e.g.

.envoy.foo.bar.

Strips leading ENVOY_API_NAMESPACE_PREFIX and ENVOY_PREFIX.

Args:
  field_fqn: a fully qualified type name from FieldDescriptorProto.type_name.
Return: Normalized type name.
def NormalizeFieldTypeName(field_fqn):
    'Normalize a fully qualified field type name, e.g.\n\n  .envoy.foo.bar.\n\n  Strips leading ENVOY_API_NAMESPACE_PREFIX and ENVOY_PREFIX.\n\n  Args:\n    field_fqn: a fully qualified type name from FieldDescriptorProto.type_name.\n  Return: Normalized type name.\n  '
    if field_fqn.startswith(ENVOY_API_NAMESPACE_PREFIX):
        return field_fqn[len(ENVOY_API_NAMESPACE_PREFIX):]
    if field_fqn.startswith(ENVOY_PREFIX):
        return field_fqn[len(ENVOY_PREFIX):]
    return field_fqn