Skip to main content
Glama

protolint-mcp

by yoheimuta
oneof_options.proto987 B
// Copyright 2016 Michal Witkowski. All Rights Reserved. // See LICENSE for licensing terms. syntax = "proto3"; package validatortest; import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "github.com/mwitkow/go-proto-validators/validator.proto"; message ExternalMsg { string Identifier = 1 [(validator.field) = {regex: "^[a-z]{2,5}$"}]; int64 SomeValue = 2 [(validator.field) = {int_gt: 0, int_lt: 100}]; } message OneOfMessage3 { uint32 SomeInt = 1 [(validator.field) = {int_gt: 10}]; oneof type { ExternalMsg one_msg = 2; uint32 one_int = 3 [(validator.field) = {int_gt: 20}]; uint32 two_int = 4 [(validator.field) = {int_gt: 100}]; } oneof something { option (validator.oneof) = {required: true}; uint32 three_int = 5 [(validator.field) = {int_gt: 20}]; uint32 four_int = 6 [(validator.field) = {int_gt: 100}]; string five_regex = 7 [(validator.field) = {regex: "^[a-z]{2,5}$"}]; } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yoheimuta/protolint'

If you have feedback or need assistance with the MCP directory API, please join our Discord server