File: bar.proto

package info (click to toggle)
golang-github-envoyproxy-protoc-gen-validate 1.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,720 kB
  • sloc: java: 1,768; python: 1,203; xml: 893; cpp: 414; makefile: 154; sh: 9
file content (18 lines) | stat: -rw-r--r-- 264 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
syntax = "proto3";

package pgv.example.foo;

import "validate/validate.proto";

message BarNone {
  int32 value = 1;
}

message BarOne {
  int32 value = 1 [(validate.rules).int32 = { not_in: 1 }];
}

message Bars {
  BarNone bar_none = 1;
  BarOne bar_one = 2;
}