# The Parser object

A customer-authored, versioned contract describing the fields of an ingested
 log source.

 The parser is a container: it carries the identity and a pointer to the
 newest version. Specs live on the immutable `ParserVersion` children, so one
 parser can be attached to many data sources and each attachment pins a
 version.

## Attributes

- `name` (string, Beta, ID, Immutable)
  Resource name. Format: `parsers/{parser_id}`, where the leaf is the
   immutable server-assigned UUID. Create-time placement names are stored
   separately and do not affect the resource name.
  Example: `parsers/550e8400-e29b-41d4-a716-446655440000`
- `parser_id` (string, Beta, Output only)
  The parser's server-assigned UUID. It is not currently a UC securable ID,
   is immutable for the life of the resource, is the leaf of `name`, and is
   returned by CreateParser.
- `catalog_name` (string, Beta, Immutable)
  Name of the parent UC catalog, set on create. Reads return the value as
   supplied; the current UC catalog name is reported in
   `effective_catalog_name`.
- `schema_name` (string, Beta, Immutable)
  Name of the parent UC schema, set on create. Reads return the value as
   supplied; the current UC schema name is reported in `effective_schema_name`.
- `parser_name` (string, Beta, Immutable)
  Client-supplied parser name, stored as supplied and fixed at create time.
   Must be a valid UC identifier. A custom parser is not currently a UC securable
   and this field has no rename path.
- `latest_version` (int64, Beta, Output only)
  Newest version of this parser. Read its spec by passing this to
   `GetParserVersion`, or by using the `latest` alias. Absent when every version
   has been deleted.
- `create_time` (string, Beta, Output only)
  When the parser was created.
- `created_by` (object, Beta, Output only)
  The principal that created this parser. Each version records its own
   `created_by`.
  - `id` (string, Beta)
    User / service-principal ID.
  - `principal_type` (string, Beta)
    Whether this principal is a regular user, service principal, or system principal.
    Possible values:
    - `REGULAR_USER`
    - `SERVICE_PRINCIPAL`
    - `SYSTEM_USER`
  - `email` (string, Beta)
    Email (regular users only).
  - `display_name` (string, Beta)
    Display name (user or SP name).
- `owner` (object, Beta, Output only)
  The principal that owns this parser. Server-set from the authenticated
   creator, never supplied by the client. Beta reads by UUID perform no
   authorization. Owner-gated write RPCs are outside this API's current
   implementation scope.
  - `id` (string, Beta)
    User / service-principal ID.
  - `principal_type` (string, Beta)
    Whether this principal is a regular user, service principal, or system principal.
    Possible values:
    - `REGULAR_USER`
    - `SERVICE_PRINCIPAL`
    - `SYSTEM_USER`
  - `email` (string, Beta)
    Email (regular users only).
  - `display_name` (string, Beta)
    Display name (user or SP name).
- `effective_catalog_name` (string, Beta, Output only)
  The current name of the parser's UC catalog. Tracks UC renames; when the
   current name cannot be looked up, the name as of the parser's last write.
- `effective_schema_name` (string, Beta, Output only)
  The current name of the parser's UC schema. Tracks UC renames; when the
   current name cannot be looked up, the name as of the parser's last write.
- `spec` (string, Beta, Input only, Immutable)
  Spec of version 1, as a YAML document. Accepted only by `CreateParser`; read
   a version's spec with `GetParserVersion`.
- `description` (string, Beta, Input only, Immutable)
  Description of version 1. Accepted only by `CreateParser`; read a version's
   description with `GetParserVersion`.

## Example

```json
{
  "name": "parsers/550e8400-e29b-41d4-a716-446655440000",
  "parser_id": "string",
  "catalog_name": "string",
  "schema_name": "string",
  "parser_name": "string",
  "latest_version": 0,
  "create_time": "string",
  "created_by": {
    "id": "string",
    "principal_type": "REGULAR_USER",
    "email": "string",
    "display_name": "string"
  },
  "owner": {
    "id": "string",
    "principal_type": "REGULAR_USER",
    "email": "string",
    "display_name": "string"
  },
  "effective_catalog_name": "string",
  "effective_schema_name": "string",
  "spec": "string",
  "description": "string"
}
```


