Skip to content

fix!: handle GCE enum name start with uppercase IPProtocol#691

Merged
summer-ji-eng merged 1 commit intomasterfrom
update_compute
Dec 3, 2021
Merged

fix!: handle GCE enum name start with uppercase IPProtocol#691
summer-ji-eng merged 1 commit intomasterfrom
update_compute

Conversation

@summer-ji-eng
Copy link
Copy Markdown
Contributor

Note: This is a BREAKING CHANGE.

The change is auto generated by latest disco-to-proto3-converter. The fix PR: googleapis/disco-to-proto3-converter#62.

Enum type IPProtocol name(start with uppercase not lowercase) cause the protobufjs compiling error with type name duplicate.

To fix it, we need to rename enum name IPProtocol to IPProtocolEnum. This enum name should not affect other languages. Tested on googleapis/googleapis See #689

Command to update generated compute.proto:

$ bazel build //google/cloud/compute/v1:compute_gen
$ cp bazel-bin/google/cloud/compute/v1/compute_gen.proto google/cloud/compute/v1/compute.proto

@mistaken-pull-closer
Copy link
Copy Markdown

Thanks for your contribution! Unfortunately, we don't use GitHub pull
requests to manage code contributions to this repository. Instead, please
see CONTRIBUTING.md which provides full
instructions on how to get involved.

@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Dec 3, 2021
@summer-ji-eng summer-ji-eng reopened this Dec 3, 2021
Copy link
Copy Markdown
Contributor

@vchudnov-g vchudnov-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: PR title: "GCP" → "GCE"

@summer-ji-eng summer-ji-eng changed the title fix!: handle GCP enum name start with uppercase IPProtocol fix!: handle GCE enum name start with uppercase IPProtocol Dec 3, 2021
@summer-ji-eng summer-ji-eng merged commit ae8950f into master Dec 3, 2021
@summer-ji-eng summer-ji-eng deleted the update_compute branch December 3, 2021 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants