File: path_enum.proto

package info (click to toggle)
golang-github-grpc-ecosystem-grpc-gateway.v2 2.11.3-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 6,148 kB
  • sloc: javascript: 352; makefile: 136; sh: 26
file content (35 lines) | stat: -rw-r--r-- 761 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
syntax = "proto3";

package grpc.gateway.examples.internal.pathenum;

option go_package = "github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/proto/pathenum";

enum PathEnum {
  ABC = 0;
  DEF = 1;
}

message MessagePathEnum {
  enum NestedPathEnum {
    GHI = 0;
    JKL = 1;
  }
}

message MessageWithPathEnum {
  PathEnum value = 1;
}

message MessageWithNestedPathEnum {
  MessagePathEnum.NestedPathEnum value = 1;
}

// Ignoring lint warnings as this enum type exist to validate proper functionality
// for projects that don't follow these lint rules.
// buf:lint:ignore ENUM_PASCAL_CASE
enum snake_case_for_import {
  // buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE
  value_x = 0;
  // buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE
  value_y = 1;
}