googleapis / googleapis/google-cloud-dart

Add a way to get ProtoEnum values

Open
#89 0 comments 0 reactions 0 assignees View on GitHub
priority: p3 type: feature request
Dominant language
Dart
Stars
23
Forks
15
Avg merge
1d 9h
Merged PRs (30d)
21

Description

Enums should support a `values` field that acts like the proto generator and provides a list of possible values e.g.

```proto
enum Color {
COLOR_UNSPECIFIED = 0;
COLOR_RED = 1;
COLOR_GREEN = 2;
COLOR_BLUE = 3;
}
```

to

```dart
static const List values = [
COLOR_UNSPECIFIED,
COLOR_RED,
COLOR_GREEN,
COLOR_BLUE,
];
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.