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 — Provide `ignore_unknown_fields=True` option in `from_json` and `from_dict` · Issue #153 · googleapis/proto-plus-python

This repository was archived by the owner on Feb 23, 2026. It is now read-only.
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Provide ignore_unknown_fields=True option in from_json and from_dict #153

Copy link
Copy link
Closed
#154
Closed
Provide ignore_unknown_fields=True option in from_json and from_dict#153
#154
Copy link
Assignees
yoshi-automation
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@tswast
tswast
opened on Oct 19, 2020
Issue body actions

This blocking PR googleapis/python-bigquery#332 (and as a result the type to type_ change googleapis/python-bigquery#316 and googleapis/python-bigquery#328 with the new protobuf changes from the last year of updates from the BQML API -- though I might hack that one to ignore the type to type_ change)

I'd quite like to actually use proto-plus in google-cloud-bigquery ( googleapis/python-bigquery#332 ) rather than the current _pb workaround, but I can't without this change.

BigQuery very often launches new model types and model stats properties and updates the protos only after customers have used it in their projects. We need to be able to ignore unknown fields (and ideally unknown enums too, but that doesn't appear to be supported yet in the Python protobuf package protocolbuffers/protobuf#7392)

Activity

  1. software-dov
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    on Oct 19, 2020
  2. software-dov commented on Oct 19, 2020

    @software-dov
    software-dov
    on Oct 19, 2020
    Contributor
    More actions

    N.B.: It turns out ignoring unknown enums is already possible iff the unknown enum variant is passed as an integer.

  3. tswast commented on Oct 19, 2020

    @tswast
    tswast
    on Oct 19, 2020
    Author
    More actions

    That's good, but unfortunately the API send enums as strings.

  4. tswast commented on Oct 19, 2020

    @tswast
    tswast
    on Oct 19, 2020
    Author
    More actions

    That's good, but unfortunately the API send enums as strings.

    I wouldn't make that a blocker, though since it's an issue in the underlying protobuf library too

  5. gcf-merge-on-green
    closed this as completedin #154on Oct 19, 2020
  6. gcf-merge-on-green
    added 2 commits that reference this issue on Oct 19, 2020

    feat: provide a to_dict method (#154)

    This issue will close once commit ccf903e is merged into the 'main' branch.
    ccf903e

    chore: release 1.11.0 (#156)

    This issue will close once commit 6130e0f is merged into the 'main' branch.
    6130e0f
  7. JustinBeckwith
    assigned
    yoshi-automation
    on Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @yoshi-automation
    yoshi-automation

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

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.