GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Where are the allowed log entry protobuf types documented? · Issue #1577 · googleapis/google-cloud-python

Where are the allowed log entry protobuf types documented? #1577

New issue
Copy link
New issue
Copy link
Closed
Closed
Where are the allowed log entry protobuf types documented?#1577
Copy link
Assignees
tseaver
Labels
api: loggingIssues related to the Cloud Logging API.type: questionRequest for information or clarification. Not an issue.

Description

@tseaver
tseaver
opened on Mar 7, 2016
Issue body actions

The LogEntry API docs say:

The log entry payload, represented as a protocol buffer. You can only use protoPayload values that belong to a set of approved types.

An object containing fields of an arbitrary type. An additional field "@type" contains a URI identifying the type. Example: { "id": 1234, "@type": "types.example.com/standard/id" }.

Where are the allowed protobuf types documented, and the corresponding URIs?

Activity

  1. tseaver
    added
    type: questionRequest for information or clarification. Not an issue.
    api: loggingIssues related to the Cloud Logging API.
    on Mar 7, 2016
  2. tseaver
    assigned
    jgeewax
    on Mar 7, 2016
  3. tseaver commented on Mar 7, 2016

    @tseaver
    tseaver
    on Mar 7, 2016
    ContributorAuthor
    More actions

    The discovery docs don't provide any more information about the allowed types.

  4. dhermes commented on Mar 8, 2016

    @dhermes
    dhermes
    on Mar 8, 2016
    Contributor
    More actions

    👍

  5. tseaver commented on Mar 8, 2016

    @tseaver
    tseaver
    on Mar 8, 2016
    ContributorAuthor
    More actions

    Absent any way to type-check the inputs, I'm thinking we just punt on allowing users to create entries with protoPayload set: we will still parse those created via other services (#1578).

  6. dhermes commented on Mar 9, 2016

    @dhermes
    dhermes
    on Mar 9, 2016
    Contributor
    More actions

    Yeah punt until we hear from real users. @jgeewax WDYT?

  7. jgeewax commented on Mar 25, 2016

    @jgeewax
    jgeewax
    on Mar 25, 2016
    Contributor
    More actions

    That's one option.

    Another is that we can do zero client-side checking, send the protobuf as it is. If it's an invalid type it'll get rejected, right ? That might be the better way to go as different versions of the API might allow new types...

  8. jgeewax
    assigned
    tseaver
    on Mar 25, 2016
  9. tseaver commented on Mar 25, 2016

    @tseaver
    tseaver
    on Mar 25, 2016
    ContributorAuthor
    More actions

    OK, I guess we just use google.protobuf.json_format.MessageToJson to render whatever message is passed, and then re-parse it using json.loads.

    I will also add a helper which parses/merges the JSON protoPayload into a user-supplied protobuf messge object using google.protobuf.json_format.Parse, after dumping the value via json.dumps.

  10. tseaver commented on Mar 25, 2016

    @tseaver
    tseaver
    on Mar 25, 2016
    ContributorAuthor
    More actions

    I wish google.protobuf.json_format._AnyMessageToJsonObject wasn't private -- it looks like exactly what I need.

  11. jgeewax commented on Mar 25, 2016

    @jgeewax
    jgeewax
    on Mar 25, 2016
    Contributor
    More actions

    protocolbuffers/protobuf#1351

  12. tseaver
    added a commit that references this issue on Mar 26, 2016

    Merge pull request #1661 from tseaver/1577-logging-protobuf_load_dump

    cd18373
  13. tseaver commented on Mar 29, 2016

    @tseaver
    tseaver
    on Mar 29, 2016
    ContributorAuthor
    More actions

    Via #1661.

  14. tseaver
    closed this as completedon Mar 29, 2016
  15. parthea
    added a commit that references this issue on Nov 26, 2025

    feat: Add support for asynchronous `AuthorizedSession` api (#1577)

    0d38ef8
  16. parthea
    added 2 commits that reference this issue on Mar 2, 2026

    build(deps): bump protobuf from 6.32.1 to 6.33.5 in /samples/snippets (…

    60ec699

    chore(deps): update all dependencies (#1577)

    db796db
  17. parthea
    added a commit that references this issue on Apr 1, 2026

    docs: add samples for ArimiaPlus `time_series_id_col` feature (#1577)

    c7fe032
  18. parthea
    added a commit that references this issue on Sep 8, 2026

    docs: migrate code from googleapis/python-bigquery (#18303)

    23f9a74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @tseaver
    tseaver

Labels

api: loggingIssues related to the Cloud Logging API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.