...
1syntax = "proto3";
2
3package grpc.gateway.examples.internal.pathenum;
4
5option go_package = "github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/proto/pathenum";
6
7enum PathEnum {
8 ABC = 0;
9 DEF = 1;
10}
11
12message MessagePathEnum {
13 enum NestedPathEnum {
14 GHI = 0;
15 JKL = 1;
16 }
17}
18
19message MessageWithPathEnum {
20 PathEnum value = 1;
21}
22
23message MessageWithNestedPathEnum {
24 MessagePathEnum.NestedPathEnum value = 1;
25}
26
27// Ignoring lint warnings as this enum type exist to validate proper functionality
28// for projects that don't follow these lint rules.
29// buf:lint:ignore ENUM_PASCAL_CASE
30enum snake_case_for_import {
31 // buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE
32 value_x = 0;
33 // buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE
34 value_y = 1;
35}
View as plain text