Skip to content

Enums with specific values are not generated in the enum typedef #524

Closed

Description

@Arrowin-87

Proto file says the following:
enum Value {
VALUE_UNSPECIFIED = 0;
VALUE12_BIT = 12;
VALUE13_BIT = 13;
VALUE14_BIT = 14;
VALUE15_BIT = 15;
VALUE16_BIT = 16;
}

Code generator creates values:
0, 1, 2, 3, 4, 5 while 0, 12, 13, 14, 15, 16 is expected

Activity

  1. jasonmreding commented on Aug 24, 2026

    @jasonmreding
    Collaborator

    @Arrowin-87 Are you transferring data from LV -> LV or some other environment? LV enums are required to be non sparse starting from 0. So the LV enum cannot contain values 0, 12, 13, 14, 15, 16 directly which is why you see 0, 1, 2, 3, 4, 5. However, on the backend there should be a translation between the LV enum values to the desired protobuf enum values before transmitting data across the wire. So if you were receiving the data in another language/environment, you should actually see 0, 12, 13, 14, 15, 16. Are you seeing something different or were you just confused by the LV enum restrictions?

  2. Arrowin-87 commented on Aug 24, 2026

    @Arrowin-87
    Author

    Yes, I just noticed this can be closed since LabVIEW doesn't support different enum values..

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions