diff --git a/clients/go/admin/config_flags.go b/clients/go/admin/config_flags.go index 45772e8ad..395d21dd6 100755 --- a/clients/go/admin/config_flags.go +++ b/clients/go/admin/config_flags.go @@ -53,5 +53,7 @@ func (cfg Config) GetPFlagSet(prefix string) *pflag.FlagSet { cmdFlags.String(fmt.Sprintf("%v%v", prefix, "authorizationServerUrl"), defaultConfig.DeprecatedAuthorizationServerURL, "This is the URL to your IdP's authorization server. It'll default to Endpoint") cmdFlags.String(fmt.Sprintf("%v%v", prefix, "tokenUrl"), defaultConfig.TokenURL, "OPTIONAL: Your IdP's token endpoint. It'll be discovered from flyte admin's OAuth Metadata endpoint if not provided.") cmdFlags.String(fmt.Sprintf("%v%v", prefix, "authorizationHeader"), defaultConfig.DeprecatedAuthorizationHeader, "Custom metadata header to pass JWT") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "pkceConfig.timeout"), defaultConfig.PkceConfig.BrowserSessionTimeout.String(), "") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "pkceConfig.refreshTime"), defaultConfig.PkceConfig.TokenRefreshGracePeriod.String(), "") return cmdFlags } diff --git a/clients/go/admin/config_flags_test.go b/clients/go/admin/config_flags_test.go index e33b5caa9..54414f015 100755 --- a/clients/go/admin/config_flags_test.go +++ b/clients/go/admin/config_flags_test.go @@ -363,4 +363,48 @@ func TestConfig_SetFlags(t *testing.T) { } }) }) + t.Run("Test_pkceConfig.timeout", func(t *testing.T) { + t.Run("DefaultValue", func(t *testing.T) { + // Test that default value is set properly + if vString, err := cmdFlags.GetString("pkceConfig.timeout"); err == nil { + assert.Equal(t, string(defaultConfig.PkceConfig.BrowserSessionTimeout.String()), vString) + } else { + assert.FailNow(t, err.Error()) + } + }) + + t.Run("Override", func(t *testing.T) { + testValue := defaultConfig.PkceConfig.BrowserSessionTimeout.String() + + cmdFlags.Set("pkceConfig.timeout", testValue) + if vString, err := cmdFlags.GetString("pkceConfig.timeout"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.PkceConfig.BrowserSessionTimeout) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_pkceConfig.refreshTime", func(t *testing.T) { + t.Run("DefaultValue", func(t *testing.T) { + // Test that default value is set properly + if vString, err := cmdFlags.GetString("pkceConfig.refreshTime"); err == nil { + assert.Equal(t, string(defaultConfig.PkceConfig.TokenRefreshGracePeriod.String()), vString) + } else { + assert.FailNow(t, err.Error()) + } + }) + + t.Run("Override", func(t *testing.T) { + testValue := defaultConfig.PkceConfig.TokenRefreshGracePeriod.String() + + cmdFlags.Set("pkceConfig.refreshTime", testValue) + if vString, err := cmdFlags.GetString("pkceConfig.refreshTime"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.PkceConfig.TokenRefreshGracePeriod) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) } diff --git a/gen/pb_python/validate/validate_pb2.py b/gen/pb_python/validate/validate_pb2.py index 61679d411..73988e7c3 100644 --- a/gen/pb_python/validate/validate_pb2.py +++ b/gen/pb_python/validate/validate_pb2.py @@ -1,8 +1,9 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: pb/ext/validate/validate.proto +# source: validate/validate.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -18,35 +19,73 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='pb/ext/validate/validate.proto', + name='validate/validate.proto', package='validate', syntax='proto2', - serialized_options=_b('Z\010validate'), - serialized_pb=_b('\n\x1epb/ext/validate/validate.proto\x12\x08validate\x1a google/protobuf/descriptor.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9a\x07\n\nFieldRules\x12%\n\x05\x66loat\x18\x01 \x01(\x0b\x32\x14.validate.FloatRulesH\x00\x12\'\n\x06\x64ouble\x18\x02 \x01(\x0b\x32\x15.validate.DoubleRulesH\x00\x12%\n\x05int32\x18\x03 \x01(\x0b\x32\x14.validate.Int32RulesH\x00\x12%\n\x05int64\x18\x04 \x01(\x0b\x32\x14.validate.Int64RulesH\x00\x12\'\n\x06uint32\x18\x05 \x01(\x0b\x32\x15.validate.UInt32RulesH\x00\x12\'\n\x06uint64\x18\x06 \x01(\x0b\x32\x15.validate.UInt64RulesH\x00\x12\'\n\x06sint32\x18\x07 \x01(\x0b\x32\x15.validate.SInt32RulesH\x00\x12\'\n\x06sint64\x18\x08 \x01(\x0b\x32\x15.validate.SInt64RulesH\x00\x12)\n\x07\x66ixed32\x18\t \x01(\x0b\x32\x16.validate.Fixed32RulesH\x00\x12)\n\x07\x66ixed64\x18\n \x01(\x0b\x32\x16.validate.Fixed64RulesH\x00\x12+\n\x08sfixed32\x18\x0b \x01(\x0b\x32\x17.validate.SFixed32RulesH\x00\x12+\n\x08sfixed64\x18\x0c \x01(\x0b\x32\x17.validate.SFixed64RulesH\x00\x12#\n\x04\x62ool\x18\r \x01(\x0b\x32\x13.validate.BoolRulesH\x00\x12\'\n\x06string\x18\x0e \x01(\x0b\x32\x15.validate.StringRulesH\x00\x12%\n\x05\x62ytes\x18\x0f \x01(\x0b\x32\x14.validate.BytesRulesH\x00\x12#\n\x04\x65num\x18\x10 \x01(\x0b\x32\x13.validate.EnumRulesH\x00\x12)\n\x07message\x18\x11 \x01(\x0b\x32\x16.validate.MessageRulesH\x00\x12+\n\x08repeated\x18\x12 \x01(\x0b\x32\x17.validate.RepeatedRulesH\x00\x12!\n\x03map\x18\x13 \x01(\x0b\x32\x12.validate.MapRulesH\x00\x12!\n\x03\x61ny\x18\x14 \x01(\x0b\x32\x12.validate.AnyRulesH\x00\x12+\n\x08\x64uration\x18\x15 \x01(\x0b\x32\x17.validate.DurationRulesH\x00\x12-\n\ttimestamp\x18\x16 \x01(\x0b\x32\x18.validate.TimestampRulesH\x00\x42\x06\n\x04type\"i\n\nFloatRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x02\x12\n\n\x02lt\x18\x02 \x01(\x02\x12\x0b\n\x03lte\x18\x03 \x01(\x02\x12\n\n\x02gt\x18\x04 \x01(\x02\x12\x0b\n\x03gte\x18\x05 \x01(\x02\x12\n\n\x02in\x18\x06 \x03(\x02\x12\x0e\n\x06not_in\x18\x07 \x03(\x02\"j\n\x0b\x44oubleRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x01\x12\n\n\x02lt\x18\x02 \x01(\x01\x12\x0b\n\x03lte\x18\x03 \x01(\x01\x12\n\n\x02gt\x18\x04 \x01(\x01\x12\x0b\n\x03gte\x18\x05 \x01(\x01\x12\n\n\x02in\x18\x06 \x03(\x01\x12\x0e\n\x06not_in\x18\x07 \x03(\x01\"i\n\nInt32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x05\x12\n\n\x02lt\x18\x02 \x01(\x05\x12\x0b\n\x03lte\x18\x03 \x01(\x05\x12\n\n\x02gt\x18\x04 \x01(\x05\x12\x0b\n\x03gte\x18\x05 \x01(\x05\x12\n\n\x02in\x18\x06 \x03(\x05\x12\x0e\n\x06not_in\x18\x07 \x03(\x05\"i\n\nInt64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x03\x12\n\n\x02lt\x18\x02 \x01(\x03\x12\x0b\n\x03lte\x18\x03 \x01(\x03\x12\n\n\x02gt\x18\x04 \x01(\x03\x12\x0b\n\x03gte\x18\x05 \x01(\x03\x12\n\n\x02in\x18\x06 \x03(\x03\x12\x0e\n\x06not_in\x18\x07 \x03(\x03\"j\n\x0bUInt32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\r\x12\n\n\x02lt\x18\x02 \x01(\r\x12\x0b\n\x03lte\x18\x03 \x01(\r\x12\n\n\x02gt\x18\x04 \x01(\r\x12\x0b\n\x03gte\x18\x05 \x01(\r\x12\n\n\x02in\x18\x06 \x03(\r\x12\x0e\n\x06not_in\x18\x07 \x03(\r\"j\n\x0bUInt64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x04\x12\n\n\x02lt\x18\x02 \x01(\x04\x12\x0b\n\x03lte\x18\x03 \x01(\x04\x12\n\n\x02gt\x18\x04 \x01(\x04\x12\x0b\n\x03gte\x18\x05 \x01(\x04\x12\n\n\x02in\x18\x06 \x03(\x04\x12\x0e\n\x06not_in\x18\x07 \x03(\x04\"j\n\x0bSInt32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x11\x12\n\n\x02lt\x18\x02 \x01(\x11\x12\x0b\n\x03lte\x18\x03 \x01(\x11\x12\n\n\x02gt\x18\x04 \x01(\x11\x12\x0b\n\x03gte\x18\x05 \x01(\x11\x12\n\n\x02in\x18\x06 \x03(\x11\x12\x0e\n\x06not_in\x18\x07 \x03(\x11\"j\n\x0bSInt64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x12\x12\n\n\x02lt\x18\x02 \x01(\x12\x12\x0b\n\x03lte\x18\x03 \x01(\x12\x12\n\n\x02gt\x18\x04 \x01(\x12\x12\x0b\n\x03gte\x18\x05 \x01(\x12\x12\n\n\x02in\x18\x06 \x03(\x12\x12\x0e\n\x06not_in\x18\x07 \x03(\x12\"k\n\x0c\x46ixed32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x07\x12\n\n\x02lt\x18\x02 \x01(\x07\x12\x0b\n\x03lte\x18\x03 \x01(\x07\x12\n\n\x02gt\x18\x04 \x01(\x07\x12\x0b\n\x03gte\x18\x05 \x01(\x07\x12\n\n\x02in\x18\x06 \x03(\x07\x12\x0e\n\x06not_in\x18\x07 \x03(\x07\"k\n\x0c\x46ixed64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x06\x12\n\n\x02lt\x18\x02 \x01(\x06\x12\x0b\n\x03lte\x18\x03 \x01(\x06\x12\n\n\x02gt\x18\x04 \x01(\x06\x12\x0b\n\x03gte\x18\x05 \x01(\x06\x12\n\n\x02in\x18\x06 \x03(\x06\x12\x0e\n\x06not_in\x18\x07 \x03(\x06\"l\n\rSFixed32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x0f\x12\n\n\x02lt\x18\x02 \x01(\x0f\x12\x0b\n\x03lte\x18\x03 \x01(\x0f\x12\n\n\x02gt\x18\x04 \x01(\x0f\x12\x0b\n\x03gte\x18\x05 \x01(\x0f\x12\n\n\x02in\x18\x06 \x03(\x0f\x12\x0e\n\x06not_in\x18\x07 \x03(\x0f\"l\n\rSFixed64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x10\x12\n\n\x02lt\x18\x02 \x01(\x10\x12\x0b\n\x03lte\x18\x03 \x01(\x10\x12\n\n\x02gt\x18\x04 \x01(\x10\x12\x0b\n\x03gte\x18\x05 \x01(\x10\x12\n\n\x02in\x18\x06 \x03(\x10\x12\x0e\n\x06not_in\x18\x07 \x03(\x10\"\x1a\n\tBoolRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x08\"\xc6\x02\n\x0bStringRules\x12\r\n\x05\x63onst\x18\x01 \x01(\t\x12\x0f\n\x07min_len\x18\x02 \x01(\x04\x12\x0f\n\x07max_len\x18\x03 \x01(\x04\x12\x11\n\tmin_bytes\x18\x04 \x01(\x04\x12\x11\n\tmax_bytes\x18\x05 \x01(\x04\x12\x0f\n\x07pattern\x18\x06 \x01(\t\x12\x0e\n\x06prefix\x18\x07 \x01(\t\x12\x0e\n\x06suffix\x18\x08 \x01(\t\x12\x10\n\x08\x63ontains\x18\t \x01(\t\x12\n\n\x02in\x18\n \x03(\t\x12\x0e\n\x06not_in\x18\x0b \x03(\t\x12\x0f\n\x05\x65mail\x18\x0c \x01(\x08H\x00\x12\x12\n\x08hostname\x18\r \x01(\x08H\x00\x12\x0c\n\x02ip\x18\x0e \x01(\x08H\x00\x12\x0e\n\x04ipv4\x18\x0f \x01(\x08H\x00\x12\x0e\n\x04ipv6\x18\x10 \x01(\x08H\x00\x12\r\n\x03uri\x18\x11 \x01(\x08H\x00\x12\x11\n\x07uri_ref\x18\x12 \x01(\x08H\x00\x42\x0c\n\nwell_known\"\xd8\x01\n\nBytesRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x0c\x12\x0f\n\x07min_len\x18\x02 \x01(\x04\x12\x0f\n\x07max_len\x18\x03 \x01(\x04\x12\x0f\n\x07pattern\x18\x04 \x01(\t\x12\x0e\n\x06prefix\x18\x05 \x01(\x0c\x12\x0e\n\x06suffix\x18\x06 \x01(\x0c\x12\x10\n\x08\x63ontains\x18\x07 \x01(\x0c\x12\n\n\x02in\x18\x08 \x03(\x0c\x12\x0e\n\x06not_in\x18\t \x03(\x0c\x12\x0c\n\x02ip\x18\n \x01(\x08H\x00\x12\x0e\n\x04ipv4\x18\x0b \x01(\x08H\x00\x12\x0e\n\x04ipv6\x18\x0c \x01(\x08H\x00\x42\x0c\n\nwell_known\"L\n\tEnumRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x05\x12\x14\n\x0c\x64\x65\x66ined_only\x18\x02 \x01(\x08\x12\n\n\x02in\x18\x03 \x03(\x05\x12\x0e\n\x06not_in\x18\x04 \x03(\x05\".\n\x0cMessageRules\x12\x0c\n\x04skip\x18\x01 \x01(\x08\x12\x10\n\x08required\x18\x02 \x01(\x08\"j\n\rRepeatedRules\x12\x11\n\tmin_items\x18\x01 \x01(\x04\x12\x11\n\tmax_items\x18\x02 \x01(\x04\x12\x0e\n\x06unique\x18\x03 \x01(\x08\x12#\n\x05items\x18\x04 \x01(\x0b\x32\x14.validate.FieldRules\"\x8d\x01\n\x08MapRules\x12\x11\n\tmin_pairs\x18\x01 \x01(\x04\x12\x11\n\tmax_pairs\x18\x02 \x01(\x04\x12\x11\n\tno_sparse\x18\x03 \x01(\x08\x12\"\n\x04keys\x18\x04 \x01(\x0b\x32\x14.validate.FieldRules\x12$\n\x06values\x18\x05 \x01(\x0b\x32\x14.validate.FieldRules\"8\n\x08\x41nyRules\x12\x10\n\x08required\x18\x01 \x01(\x08\x12\n\n\x02in\x18\x02 \x03(\t\x12\x0e\n\x06not_in\x18\x03 \x03(\t\"\xbb\x02\n\rDurationRules\x12\x10\n\x08required\x18\x01 \x01(\x08\x12(\n\x05\x63onst\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12%\n\x02lt\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12&\n\x03lte\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12%\n\x02gt\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12&\n\x03gte\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12%\n\x02in\x18\x07 \x03(\x0b\x32\x19.google.protobuf.Duration\x12)\n\x06not_in\x18\x08 \x03(\x0b\x32\x19.google.protobuf.Duration\"\xba\x02\n\x0eTimestampRules\x12\x10\n\x08required\x18\x01 \x01(\x08\x12)\n\x05\x63onst\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x02lt\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x03lte\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x02gt\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x03gte\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06lt_now\x18\x07 \x01(\x08\x12\x0e\n\x06gt_now\x18\x08 \x01(\x08\x12)\n\x06within\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration:3\n\x08\x64isabled\x12\x1f.google.protobuf.MessageOptions\x18\x97\x8d\x38 \x01(\x08:1\n\x08required\x12\x1d.google.protobuf.OneofOptions\x18\x97\x8d\x38 \x01(\x08:D\n\x05rules\x12\x1d.google.protobuf.FieldOptions\x18\x97\x8d\x38 \x01(\x0b\x32\x14.validate.FieldRulesB\nZ\x08validate') + serialized_options=_b('\n\032io.envoyproxy.pgv.validateZ2github.com/envoyproxy/protoc-gen-validate/validate'), + serialized_pb=_b('\n\x17validate/validate.proto\x12\x08validate\x1a google/protobuf/descriptor.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x98\x07\n\nFieldRules\x12\'\n\x07message\x18\x11 \x01(\x0b\x32\x16.validate.MessageRules\x12%\n\x05\x66loat\x18\x01 \x01(\x0b\x32\x14.validate.FloatRulesH\x00\x12\'\n\x06\x64ouble\x18\x02 \x01(\x0b\x32\x15.validate.DoubleRulesH\x00\x12%\n\x05int32\x18\x03 \x01(\x0b\x32\x14.validate.Int32RulesH\x00\x12%\n\x05int64\x18\x04 \x01(\x0b\x32\x14.validate.Int64RulesH\x00\x12\'\n\x06uint32\x18\x05 \x01(\x0b\x32\x15.validate.UInt32RulesH\x00\x12\'\n\x06uint64\x18\x06 \x01(\x0b\x32\x15.validate.UInt64RulesH\x00\x12\'\n\x06sint32\x18\x07 \x01(\x0b\x32\x15.validate.SInt32RulesH\x00\x12\'\n\x06sint64\x18\x08 \x01(\x0b\x32\x15.validate.SInt64RulesH\x00\x12)\n\x07\x66ixed32\x18\t \x01(\x0b\x32\x16.validate.Fixed32RulesH\x00\x12)\n\x07\x66ixed64\x18\n \x01(\x0b\x32\x16.validate.Fixed64RulesH\x00\x12+\n\x08sfixed32\x18\x0b \x01(\x0b\x32\x17.validate.SFixed32RulesH\x00\x12+\n\x08sfixed64\x18\x0c \x01(\x0b\x32\x17.validate.SFixed64RulesH\x00\x12#\n\x04\x62ool\x18\r \x01(\x0b\x32\x13.validate.BoolRulesH\x00\x12\'\n\x06string\x18\x0e \x01(\x0b\x32\x15.validate.StringRulesH\x00\x12%\n\x05\x62ytes\x18\x0f \x01(\x0b\x32\x14.validate.BytesRulesH\x00\x12#\n\x04\x65num\x18\x10 \x01(\x0b\x32\x13.validate.EnumRulesH\x00\x12+\n\x08repeated\x18\x12 \x01(\x0b\x32\x17.validate.RepeatedRulesH\x00\x12!\n\x03map\x18\x13 \x01(\x0b\x32\x12.validate.MapRulesH\x00\x12!\n\x03\x61ny\x18\x14 \x01(\x0b\x32\x12.validate.AnyRulesH\x00\x12+\n\x08\x64uration\x18\x15 \x01(\x0b\x32\x17.validate.DurationRulesH\x00\x12-\n\ttimestamp\x18\x16 \x01(\x0b\x32\x18.validate.TimestampRulesH\x00\x42\x06\n\x04type\"\x7f\n\nFloatRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x02\x12\n\n\x02lt\x18\x02 \x01(\x02\x12\x0b\n\x03lte\x18\x03 \x01(\x02\x12\n\n\x02gt\x18\x04 \x01(\x02\x12\x0b\n\x03gte\x18\x05 \x01(\x02\x12\n\n\x02in\x18\x06 \x03(\x02\x12\x0e\n\x06not_in\x18\x07 \x03(\x02\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x80\x01\n\x0b\x44oubleRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x01\x12\n\n\x02lt\x18\x02 \x01(\x01\x12\x0b\n\x03lte\x18\x03 \x01(\x01\x12\n\n\x02gt\x18\x04 \x01(\x01\x12\x0b\n\x03gte\x18\x05 \x01(\x01\x12\n\n\x02in\x18\x06 \x03(\x01\x12\x0e\n\x06not_in\x18\x07 \x03(\x01\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x7f\n\nInt32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x05\x12\n\n\x02lt\x18\x02 \x01(\x05\x12\x0b\n\x03lte\x18\x03 \x01(\x05\x12\n\n\x02gt\x18\x04 \x01(\x05\x12\x0b\n\x03gte\x18\x05 \x01(\x05\x12\n\n\x02in\x18\x06 \x03(\x05\x12\x0e\n\x06not_in\x18\x07 \x03(\x05\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x7f\n\nInt64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x03\x12\n\n\x02lt\x18\x02 \x01(\x03\x12\x0b\n\x03lte\x18\x03 \x01(\x03\x12\n\n\x02gt\x18\x04 \x01(\x03\x12\x0b\n\x03gte\x18\x05 \x01(\x03\x12\n\n\x02in\x18\x06 \x03(\x03\x12\x0e\n\x06not_in\x18\x07 \x03(\x03\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x80\x01\n\x0bUInt32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\r\x12\n\n\x02lt\x18\x02 \x01(\r\x12\x0b\n\x03lte\x18\x03 \x01(\r\x12\n\n\x02gt\x18\x04 \x01(\r\x12\x0b\n\x03gte\x18\x05 \x01(\r\x12\n\n\x02in\x18\x06 \x03(\r\x12\x0e\n\x06not_in\x18\x07 \x03(\r\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x80\x01\n\x0bUInt64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x04\x12\n\n\x02lt\x18\x02 \x01(\x04\x12\x0b\n\x03lte\x18\x03 \x01(\x04\x12\n\n\x02gt\x18\x04 \x01(\x04\x12\x0b\n\x03gte\x18\x05 \x01(\x04\x12\n\n\x02in\x18\x06 \x03(\x04\x12\x0e\n\x06not_in\x18\x07 \x03(\x04\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x80\x01\n\x0bSInt32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x11\x12\n\n\x02lt\x18\x02 \x01(\x11\x12\x0b\n\x03lte\x18\x03 \x01(\x11\x12\n\n\x02gt\x18\x04 \x01(\x11\x12\x0b\n\x03gte\x18\x05 \x01(\x11\x12\n\n\x02in\x18\x06 \x03(\x11\x12\x0e\n\x06not_in\x18\x07 \x03(\x11\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x80\x01\n\x0bSInt64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x12\x12\n\n\x02lt\x18\x02 \x01(\x12\x12\x0b\n\x03lte\x18\x03 \x01(\x12\x12\n\n\x02gt\x18\x04 \x01(\x12\x12\x0b\n\x03gte\x18\x05 \x01(\x12\x12\n\n\x02in\x18\x06 \x03(\x12\x12\x0e\n\x06not_in\x18\x07 \x03(\x12\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x81\x01\n\x0c\x46ixed32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x07\x12\n\n\x02lt\x18\x02 \x01(\x07\x12\x0b\n\x03lte\x18\x03 \x01(\x07\x12\n\n\x02gt\x18\x04 \x01(\x07\x12\x0b\n\x03gte\x18\x05 \x01(\x07\x12\n\n\x02in\x18\x06 \x03(\x07\x12\x0e\n\x06not_in\x18\x07 \x03(\x07\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x81\x01\n\x0c\x46ixed64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x06\x12\n\n\x02lt\x18\x02 \x01(\x06\x12\x0b\n\x03lte\x18\x03 \x01(\x06\x12\n\n\x02gt\x18\x04 \x01(\x06\x12\x0b\n\x03gte\x18\x05 \x01(\x06\x12\n\n\x02in\x18\x06 \x03(\x06\x12\x0e\n\x06not_in\x18\x07 \x03(\x06\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x82\x01\n\rSFixed32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x0f\x12\n\n\x02lt\x18\x02 \x01(\x0f\x12\x0b\n\x03lte\x18\x03 \x01(\x0f\x12\n\n\x02gt\x18\x04 \x01(\x0f\x12\x0b\n\x03gte\x18\x05 \x01(\x0f\x12\n\n\x02in\x18\x06 \x03(\x0f\x12\x0e\n\x06not_in\x18\x07 \x03(\x0f\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x82\x01\n\rSFixed64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x10\x12\n\n\x02lt\x18\x02 \x01(\x10\x12\x0b\n\x03lte\x18\x03 \x01(\x10\x12\n\n\x02gt\x18\x04 \x01(\x10\x12\x0b\n\x03gte\x18\x05 \x01(\x10\x12\n\n\x02in\x18\x06 \x03(\x10\x12\x0e\n\x06not_in\x18\x07 \x03(\x10\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x1a\n\tBoolRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x08\"\xfd\x03\n\x0bStringRules\x12\r\n\x05\x63onst\x18\x01 \x01(\t\x12\x0b\n\x03len\x18\x13 \x01(\x04\x12\x0f\n\x07min_len\x18\x02 \x01(\x04\x12\x0f\n\x07max_len\x18\x03 \x01(\x04\x12\x11\n\tlen_bytes\x18\x14 \x01(\x04\x12\x11\n\tmin_bytes\x18\x04 \x01(\x04\x12\x11\n\tmax_bytes\x18\x05 \x01(\x04\x12\x0f\n\x07pattern\x18\x06 \x01(\t\x12\x0e\n\x06prefix\x18\x07 \x01(\t\x12\x0e\n\x06suffix\x18\x08 \x01(\t\x12\x10\n\x08\x63ontains\x18\t \x01(\t\x12\x14\n\x0cnot_contains\x18\x17 \x01(\t\x12\n\n\x02in\x18\n \x03(\t\x12\x0e\n\x06not_in\x18\x0b \x03(\t\x12\x0f\n\x05\x65mail\x18\x0c \x01(\x08H\x00\x12\x12\n\x08hostname\x18\r \x01(\x08H\x00\x12\x0c\n\x02ip\x18\x0e \x01(\x08H\x00\x12\x0e\n\x04ipv4\x18\x0f \x01(\x08H\x00\x12\x0e\n\x04ipv6\x18\x10 \x01(\x08H\x00\x12\r\n\x03uri\x18\x11 \x01(\x08H\x00\x12\x11\n\x07uri_ref\x18\x12 \x01(\x08H\x00\x12\x11\n\x07\x61\x64\x64ress\x18\x15 \x01(\x08H\x00\x12\x0e\n\x04uuid\x18\x16 \x01(\x08H\x00\x12\x30\n\x10well_known_regex\x18\x18 \x01(\x0e\x32\x14.validate.KnownRegexH\x00\x12\x14\n\x06strict\x18\x19 \x01(\x08:\x04true\x12\x14\n\x0cignore_empty\x18\x1a \x01(\x08\x42\x0c\n\nwell_known\"\xfb\x01\n\nBytesRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x0c\x12\x0b\n\x03len\x18\r \x01(\x04\x12\x0f\n\x07min_len\x18\x02 \x01(\x04\x12\x0f\n\x07max_len\x18\x03 \x01(\x04\x12\x0f\n\x07pattern\x18\x04 \x01(\t\x12\x0e\n\x06prefix\x18\x05 \x01(\x0c\x12\x0e\n\x06suffix\x18\x06 \x01(\x0c\x12\x10\n\x08\x63ontains\x18\x07 \x01(\x0c\x12\n\n\x02in\x18\x08 \x03(\x0c\x12\x0e\n\x06not_in\x18\t \x03(\x0c\x12\x0c\n\x02ip\x18\n \x01(\x08H\x00\x12\x0e\n\x04ipv4\x18\x0b \x01(\x08H\x00\x12\x0e\n\x04ipv6\x18\x0c \x01(\x08H\x00\x12\x14\n\x0cignore_empty\x18\x0e \x01(\x08\x42\x0c\n\nwell_known\"L\n\tEnumRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x05\x12\x14\n\x0c\x64\x65\x66ined_only\x18\x02 \x01(\x08\x12\n\n\x02in\x18\x03 \x03(\x05\x12\x0e\n\x06not_in\x18\x04 \x03(\x05\".\n\x0cMessageRules\x12\x0c\n\x04skip\x18\x01 \x01(\x08\x12\x10\n\x08required\x18\x02 \x01(\x08\"\x80\x01\n\rRepeatedRules\x12\x11\n\tmin_items\x18\x01 \x01(\x04\x12\x11\n\tmax_items\x18\x02 \x01(\x04\x12\x0e\n\x06unique\x18\x03 \x01(\x08\x12#\n\x05items\x18\x04 \x01(\x0b\x32\x14.validate.FieldRules\x12\x14\n\x0cignore_empty\x18\x05 \x01(\x08\"\xa3\x01\n\x08MapRules\x12\x11\n\tmin_pairs\x18\x01 \x01(\x04\x12\x11\n\tmax_pairs\x18\x02 \x01(\x04\x12\x11\n\tno_sparse\x18\x03 \x01(\x08\x12\"\n\x04keys\x18\x04 \x01(\x0b\x32\x14.validate.FieldRules\x12$\n\x06values\x18\x05 \x01(\x0b\x32\x14.validate.FieldRules\x12\x14\n\x0cignore_empty\x18\x06 \x01(\x08\"8\n\x08\x41nyRules\x12\x10\n\x08required\x18\x01 \x01(\x08\x12\n\n\x02in\x18\x02 \x03(\t\x12\x0e\n\x06not_in\x18\x03 \x03(\t\"\xbb\x02\n\rDurationRules\x12\x10\n\x08required\x18\x01 \x01(\x08\x12(\n\x05\x63onst\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12%\n\x02lt\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12&\n\x03lte\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12%\n\x02gt\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12&\n\x03gte\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12%\n\x02in\x18\x07 \x03(\x0b\x32\x19.google.protobuf.Duration\x12)\n\x06not_in\x18\x08 \x03(\x0b\x32\x19.google.protobuf.Duration\"\xba\x02\n\x0eTimestampRules\x12\x10\n\x08required\x18\x01 \x01(\x08\x12)\n\x05\x63onst\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x02lt\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x03lte\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x02gt\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x03gte\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06lt_now\x18\x07 \x01(\x08\x12\x0e\n\x06gt_now\x18\x08 \x01(\x08\x12)\n\x06within\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration*F\n\nKnownRegex\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x14\n\x10HTTP_HEADER_NAME\x10\x01\x12\x15\n\x11HTTP_HEADER_VALUE\x10\x02:2\n\x08\x64isabled\x12\x1f.google.protobuf.MessageOptions\x18\xaf\x08 \x01(\x08:1\n\x07ignored\x12\x1f.google.protobuf.MessageOptions\x18\xb0\x08 \x01(\x08:0\n\x08required\x12\x1d.google.protobuf.OneofOptions\x18\xaf\x08 \x01(\x08:C\n\x05rules\x12\x1d.google.protobuf.FieldOptions\x18\xaf\x08 \x01(\x0b\x32\x14.validate.FieldRulesBP\n\x1aio.envoyproxy.pgv.validateZ2github.com/envoyproxy/protoc-gen-validate/validate') , dependencies=[google_dot_protobuf_dot_descriptor__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) +_KNOWNREGEX = _descriptor.EnumDescriptor( + name='KnownRegex', + full_name='validate.KnownRegex', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HTTP_HEADER_NAME', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HTTP_HEADER_VALUE', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=4541, + serialized_end=4611, +) +_sym_db.RegisterEnumDescriptor(_KNOWNREGEX) -DISABLED_FIELD_NUMBER = 919191 +KnownRegex = enum_type_wrapper.EnumTypeWrapper(_KNOWNREGEX) +UNKNOWN = 0 +HTTP_HEADER_NAME = 1 +HTTP_HEADER_VALUE = 2 + +DISABLED_FIELD_NUMBER = 1071 disabled = _descriptor.FieldDescriptor( name='disabled', full_name='validate.disabled', index=0, - number=919191, type=8, cpp_type=7, label=1, + number=1071, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=True, extension_scope=None, + serialized_options=None, file=DESCRIPTOR) +IGNORED_FIELD_NUMBER = 1072 +ignored = _descriptor.FieldDescriptor( + name='ignored', full_name='validate.ignored', index=1, + number=1072, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=True, extension_scope=None, serialized_options=None, file=DESCRIPTOR) -REQUIRED_FIELD_NUMBER = 919191 +REQUIRED_FIELD_NUMBER = 1071 required = _descriptor.FieldDescriptor( - name='required', full_name='validate.required', index=1, - number=919191, type=8, cpp_type=7, label=1, + name='required', full_name='validate.required', index=2, + number=1071, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=True, extension_scope=None, serialized_options=None, file=DESCRIPTOR) -RULES_FIELD_NUMBER = 919191 +RULES_FIELD_NUMBER = 1071 rules = _descriptor.FieldDescriptor( - name='rules', full_name='validate.rules', index=2, - number=919191, type=11, cpp_type=10, label=1, + name='rules', full_name='validate.rules', index=3, + number=1071, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=True, extension_scope=None, @@ -61,124 +100,124 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='float', full_name='validate.FieldRules.float', index=0, + name='message', full_name='validate.FieldRules.message', index=0, + number=17, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='float', full_name='validate.FieldRules.float', index=1, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='double', full_name='validate.FieldRules.double', index=1, + name='double', full_name='validate.FieldRules.double', index=2, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='int32', full_name='validate.FieldRules.int32', index=2, + name='int32', full_name='validate.FieldRules.int32', index=3, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='int64', full_name='validate.FieldRules.int64', index=3, + name='int64', full_name='validate.FieldRules.int64', index=4, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='uint32', full_name='validate.FieldRules.uint32', index=4, + name='uint32', full_name='validate.FieldRules.uint32', index=5, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='uint64', full_name='validate.FieldRules.uint64', index=5, + name='uint64', full_name='validate.FieldRules.uint64', index=6, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='sint32', full_name='validate.FieldRules.sint32', index=6, + name='sint32', full_name='validate.FieldRules.sint32', index=7, number=7, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='sint64', full_name='validate.FieldRules.sint64', index=7, + name='sint64', full_name='validate.FieldRules.sint64', index=8, number=8, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='fixed32', full_name='validate.FieldRules.fixed32', index=8, + name='fixed32', full_name='validate.FieldRules.fixed32', index=9, number=9, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='fixed64', full_name='validate.FieldRules.fixed64', index=9, + name='fixed64', full_name='validate.FieldRules.fixed64', index=10, number=10, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='sfixed32', full_name='validate.FieldRules.sfixed32', index=10, + name='sfixed32', full_name='validate.FieldRules.sfixed32', index=11, number=11, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='sfixed64', full_name='validate.FieldRules.sfixed64', index=11, + name='sfixed64', full_name='validate.FieldRules.sfixed64', index=12, number=12, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='bool', full_name='validate.FieldRules.bool', index=12, + name='bool', full_name='validate.FieldRules.bool', index=13, number=13, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='string', full_name='validate.FieldRules.string', index=13, + name='string', full_name='validate.FieldRules.string', index=14, number=14, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='bytes', full_name='validate.FieldRules.bytes', index=14, + name='bytes', full_name='validate.FieldRules.bytes', index=15, number=15, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='enum', full_name='validate.FieldRules.enum', index=15, + name='enum', full_name='validate.FieldRules.enum', index=16, number=16, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='message', full_name='validate.FieldRules.message', index=16, - number=17, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='repeated', full_name='validate.FieldRules.repeated', index=17, number=18, type=11, cpp_type=10, label=1, @@ -229,8 +268,8 @@ name='type', full_name='validate.FieldRules.type', index=0, containing_type=None, fields=[]), ], - serialized_start=144, - serialized_end=1066, + serialized_start=137, + serialized_end=1057, ) @@ -290,6 +329,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.FloatRules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -302,8 +348,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1068, - serialized_end=1173, + serialized_start=1059, + serialized_end=1186, ) @@ -363,6 +409,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.DoubleRules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -375,8 +428,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1175, - serialized_end=1281, + serialized_start=1189, + serialized_end=1317, ) @@ -436,6 +489,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.Int32Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -448,8 +508,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1283, - serialized_end=1388, + serialized_start=1319, + serialized_end=1446, ) @@ -509,6 +569,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.Int64Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -521,8 +588,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1390, - serialized_end=1495, + serialized_start=1448, + serialized_end=1575, ) @@ -582,6 +649,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.UInt32Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -594,8 +668,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1497, - serialized_end=1603, + serialized_start=1578, + serialized_end=1706, ) @@ -655,6 +729,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.UInt64Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -667,8 +748,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1605, - serialized_end=1711, + serialized_start=1709, + serialized_end=1837, ) @@ -728,6 +809,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.SInt32Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -740,8 +828,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1713, - serialized_end=1819, + serialized_start=1840, + serialized_end=1968, ) @@ -801,6 +889,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.SInt64Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -813,8 +908,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1821, - serialized_end=1927, + serialized_start=1971, + serialized_end=2099, ) @@ -874,6 +969,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.Fixed32Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -886,8 +988,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1929, - serialized_end=2036, + serialized_start=2102, + serialized_end=2231, ) @@ -947,6 +1049,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.Fixed64Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -959,8 +1068,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2038, - serialized_end=2145, + serialized_start=2234, + serialized_end=2363, ) @@ -1020,6 +1129,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.SFixed32Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -1032,8 +1148,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2147, - serialized_end=2255, + serialized_start=2366, + serialized_end=2496, ) @@ -1093,6 +1209,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.SFixed64Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -1105,8 +1228,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2257, - serialized_end=2365, + serialized_start=2499, + serialized_end=2629, ) @@ -1136,8 +1259,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2367, - serialized_end=2393, + serialized_start=2631, + serialized_end=2657, ) @@ -1156,124 +1279,180 @@ is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='min_len', full_name='validate.StringRules.min_len', index=1, + name='len', full_name='validate.StringRules.len', index=1, + number=19, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='min_len', full_name='validate.StringRules.min_len', index=2, number=2, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='max_len', full_name='validate.StringRules.max_len', index=2, + name='max_len', full_name='validate.StringRules.max_len', index=3, number=3, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='min_bytes', full_name='validate.StringRules.min_bytes', index=3, + name='len_bytes', full_name='validate.StringRules.len_bytes', index=4, + number=20, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='min_bytes', full_name='validate.StringRules.min_bytes', index=5, number=4, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='max_bytes', full_name='validate.StringRules.max_bytes', index=4, + name='max_bytes', full_name='validate.StringRules.max_bytes', index=6, number=5, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='pattern', full_name='validate.StringRules.pattern', index=5, + name='pattern', full_name='validate.StringRules.pattern', index=7, number=6, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='prefix', full_name='validate.StringRules.prefix', index=6, + name='prefix', full_name='validate.StringRules.prefix', index=8, number=7, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='suffix', full_name='validate.StringRules.suffix', index=7, + name='suffix', full_name='validate.StringRules.suffix', index=9, number=8, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='contains', full_name='validate.StringRules.contains', index=8, + name='contains', full_name='validate.StringRules.contains', index=10, number=9, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='in', full_name='validate.StringRules.in', index=9, + name='not_contains', full_name='validate.StringRules.not_contains', index=11, + number=23, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.StringRules.in', index=12, number=10, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='not_in', full_name='validate.StringRules.not_in', index=10, + name='not_in', full_name='validate.StringRules.not_in', index=13, number=11, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='email', full_name='validate.StringRules.email', index=11, + name='email', full_name='validate.StringRules.email', index=14, number=12, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='hostname', full_name='validate.StringRules.hostname', index=12, + name='hostname', full_name='validate.StringRules.hostname', index=15, number=13, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ip', full_name='validate.StringRules.ip', index=13, + name='ip', full_name='validate.StringRules.ip', index=16, number=14, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ipv4', full_name='validate.StringRules.ipv4', index=14, + name='ipv4', full_name='validate.StringRules.ipv4', index=17, number=15, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ipv6', full_name='validate.StringRules.ipv6', index=15, + name='ipv6', full_name='validate.StringRules.ipv6', index=18, number=16, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='uri', full_name='validate.StringRules.uri', index=16, + name='uri', full_name='validate.StringRules.uri', index=19, number=17, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='uri_ref', full_name='validate.StringRules.uri_ref', index=17, + name='uri_ref', full_name='validate.StringRules.uri_ref', index=20, number=18, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='address', full_name='validate.StringRules.address', index=21, + number=21, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='uuid', full_name='validate.StringRules.uuid', index=22, + number=22, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='well_known_regex', full_name='validate.StringRules.well_known_regex', index=23, + number=24, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='strict', full_name='validate.StringRules.strict', index=24, + number=25, type=8, cpp_type=7, label=1, + has_default_value=True, default_value=True, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.StringRules.ignore_empty', index=25, + number=26, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -1289,8 +1468,8 @@ name='well_known', full_name='validate.StringRules.well_known', index=0, containing_type=None, fields=[]), ], - serialized_start=2396, - serialized_end=2722, + serialized_start=2660, + serialized_end=3169, ) @@ -1309,82 +1488,96 @@ is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='min_len', full_name='validate.BytesRules.min_len', index=1, + name='len', full_name='validate.BytesRules.len', index=1, + number=13, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='min_len', full_name='validate.BytesRules.min_len', index=2, number=2, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='max_len', full_name='validate.BytesRules.max_len', index=2, + name='max_len', full_name='validate.BytesRules.max_len', index=3, number=3, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='pattern', full_name='validate.BytesRules.pattern', index=3, + name='pattern', full_name='validate.BytesRules.pattern', index=4, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='prefix', full_name='validate.BytesRules.prefix', index=4, + name='prefix', full_name='validate.BytesRules.prefix', index=5, number=5, type=12, cpp_type=9, label=1, has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='suffix', full_name='validate.BytesRules.suffix', index=5, + name='suffix', full_name='validate.BytesRules.suffix', index=6, number=6, type=12, cpp_type=9, label=1, has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='contains', full_name='validate.BytesRules.contains', index=6, + name='contains', full_name='validate.BytesRules.contains', index=7, number=7, type=12, cpp_type=9, label=1, has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='in', full_name='validate.BytesRules.in', index=7, + name='in', full_name='validate.BytesRules.in', index=8, number=8, type=12, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='not_in', full_name='validate.BytesRules.not_in', index=8, + name='not_in', full_name='validate.BytesRules.not_in', index=9, number=9, type=12, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ip', full_name='validate.BytesRules.ip', index=9, + name='ip', full_name='validate.BytesRules.ip', index=10, number=10, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ipv4', full_name='validate.BytesRules.ipv4', index=10, + name='ipv4', full_name='validate.BytesRules.ipv4', index=11, number=11, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ipv6', full_name='validate.BytesRules.ipv6', index=11, + name='ipv6', full_name='validate.BytesRules.ipv6', index=12, number=12, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.BytesRules.ignore_empty', index=13, + number=14, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -1400,8 +1593,8 @@ name='well_known', full_name='validate.BytesRules.well_known', index=0, containing_type=None, fields=[]), ], - serialized_start=2725, - serialized_end=2941, + serialized_start=3172, + serialized_end=3423, ) @@ -1452,8 +1645,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2943, - serialized_end=3019, + serialized_start=3425, + serialized_end=3501, ) @@ -1490,8 +1683,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3021, - serialized_end=3067, + serialized_start=3503, + serialized_end=3549, ) @@ -1530,6 +1723,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.RepeatedRules.ignore_empty', index=4, + number=5, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -1542,8 +1742,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3069, - serialized_end=3175, + serialized_start=3552, + serialized_end=3680, ) @@ -1589,6 +1789,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.MapRules.ignore_empty', index=5, + number=6, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -1601,8 +1808,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3178, - serialized_end=3319, + serialized_start=3683, + serialized_end=3846, ) @@ -1646,8 +1853,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3321, - serialized_end=3377, + serialized_start=3848, + serialized_end=3904, ) @@ -1726,8 +1933,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3380, - serialized_end=3695, + serialized_start=3907, + serialized_end=4222, ) @@ -1813,10 +2020,11 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3698, - serialized_end=4012, + serialized_start=4225, + serialized_end=4539, ) +_FIELDRULES.fields_by_name['message'].message_type = _MESSAGERULES _FIELDRULES.fields_by_name['float'].message_type = _FLOATRULES _FIELDRULES.fields_by_name['double'].message_type = _DOUBLERULES _FIELDRULES.fields_by_name['int32'].message_type = _INT32RULES @@ -1833,7 +2041,6 @@ _FIELDRULES.fields_by_name['string'].message_type = _STRINGRULES _FIELDRULES.fields_by_name['bytes'].message_type = _BYTESRULES _FIELDRULES.fields_by_name['enum'].message_type = _ENUMRULES -_FIELDRULES.fields_by_name['message'].message_type = _MESSAGERULES _FIELDRULES.fields_by_name['repeated'].message_type = _REPEATEDRULES _FIELDRULES.fields_by_name['map'].message_type = _MAPRULES _FIELDRULES.fields_by_name['any'].message_type = _ANYRULES @@ -1887,9 +2094,6 @@ _FIELDRULES.oneofs_by_name['type'].fields.append( _FIELDRULES.fields_by_name['enum']) _FIELDRULES.fields_by_name['enum'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] -_FIELDRULES.oneofs_by_name['type'].fields.append( - _FIELDRULES.fields_by_name['message']) -_FIELDRULES.fields_by_name['message'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] _FIELDRULES.oneofs_by_name['type'].fields.append( _FIELDRULES.fields_by_name['repeated']) _FIELDRULES.fields_by_name['repeated'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] @@ -1905,6 +2109,7 @@ _FIELDRULES.oneofs_by_name['type'].fields.append( _FIELDRULES.fields_by_name['timestamp']) _FIELDRULES.fields_by_name['timestamp'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_STRINGRULES.fields_by_name['well_known_regex'].enum_type = _KNOWNREGEX _STRINGRULES.oneofs_by_name['well_known'].fields.append( _STRINGRULES.fields_by_name['email']) _STRINGRULES.fields_by_name['email'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] @@ -1926,6 +2131,15 @@ _STRINGRULES.oneofs_by_name['well_known'].fields.append( _STRINGRULES.fields_by_name['uri_ref']) _STRINGRULES.fields_by_name['uri_ref'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['address']) +_STRINGRULES.fields_by_name['address'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['uuid']) +_STRINGRULES.fields_by_name['uuid'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['well_known_regex']) +_STRINGRULES.fields_by_name['well_known_regex'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] _BYTESRULES.oneofs_by_name['well_known'].fields.append( _BYTESRULES.fields_by_name['ip']) _BYTESRULES.fields_by_name['ip'].containing_oneof = _BYTESRULES.oneofs_by_name['well_known'] @@ -1974,173 +2188,176 @@ DESCRIPTOR.message_types_by_name['AnyRules'] = _ANYRULES DESCRIPTOR.message_types_by_name['DurationRules'] = _DURATIONRULES DESCRIPTOR.message_types_by_name['TimestampRules'] = _TIMESTAMPRULES +DESCRIPTOR.enum_types_by_name['KnownRegex'] = _KNOWNREGEX DESCRIPTOR.extensions_by_name['disabled'] = disabled +DESCRIPTOR.extensions_by_name['ignored'] = ignored DESCRIPTOR.extensions_by_name['required'] = required DESCRIPTOR.extensions_by_name['rules'] = rules _sym_db.RegisterFileDescriptor(DESCRIPTOR) FieldRules = _reflection.GeneratedProtocolMessageType('FieldRules', (_message.Message,), dict( DESCRIPTOR = _FIELDRULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.FieldRules) )) _sym_db.RegisterMessage(FieldRules) FloatRules = _reflection.GeneratedProtocolMessageType('FloatRules', (_message.Message,), dict( DESCRIPTOR = _FLOATRULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.FloatRules) )) _sym_db.RegisterMessage(FloatRules) DoubleRules = _reflection.GeneratedProtocolMessageType('DoubleRules', (_message.Message,), dict( DESCRIPTOR = _DOUBLERULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.DoubleRules) )) _sym_db.RegisterMessage(DoubleRules) Int32Rules = _reflection.GeneratedProtocolMessageType('Int32Rules', (_message.Message,), dict( DESCRIPTOR = _INT32RULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.Int32Rules) )) _sym_db.RegisterMessage(Int32Rules) Int64Rules = _reflection.GeneratedProtocolMessageType('Int64Rules', (_message.Message,), dict( DESCRIPTOR = _INT64RULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.Int64Rules) )) _sym_db.RegisterMessage(Int64Rules) UInt32Rules = _reflection.GeneratedProtocolMessageType('UInt32Rules', (_message.Message,), dict( DESCRIPTOR = _UINT32RULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.UInt32Rules) )) _sym_db.RegisterMessage(UInt32Rules) UInt64Rules = _reflection.GeneratedProtocolMessageType('UInt64Rules', (_message.Message,), dict( DESCRIPTOR = _UINT64RULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.UInt64Rules) )) _sym_db.RegisterMessage(UInt64Rules) SInt32Rules = _reflection.GeneratedProtocolMessageType('SInt32Rules', (_message.Message,), dict( DESCRIPTOR = _SINT32RULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.SInt32Rules) )) _sym_db.RegisterMessage(SInt32Rules) SInt64Rules = _reflection.GeneratedProtocolMessageType('SInt64Rules', (_message.Message,), dict( DESCRIPTOR = _SINT64RULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.SInt64Rules) )) _sym_db.RegisterMessage(SInt64Rules) Fixed32Rules = _reflection.GeneratedProtocolMessageType('Fixed32Rules', (_message.Message,), dict( DESCRIPTOR = _FIXED32RULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.Fixed32Rules) )) _sym_db.RegisterMessage(Fixed32Rules) Fixed64Rules = _reflection.GeneratedProtocolMessageType('Fixed64Rules', (_message.Message,), dict( DESCRIPTOR = _FIXED64RULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.Fixed64Rules) )) _sym_db.RegisterMessage(Fixed64Rules) SFixed32Rules = _reflection.GeneratedProtocolMessageType('SFixed32Rules', (_message.Message,), dict( DESCRIPTOR = _SFIXED32RULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.SFixed32Rules) )) _sym_db.RegisterMessage(SFixed32Rules) SFixed64Rules = _reflection.GeneratedProtocolMessageType('SFixed64Rules', (_message.Message,), dict( DESCRIPTOR = _SFIXED64RULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.SFixed64Rules) )) _sym_db.RegisterMessage(SFixed64Rules) BoolRules = _reflection.GeneratedProtocolMessageType('BoolRules', (_message.Message,), dict( DESCRIPTOR = _BOOLRULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.BoolRules) )) _sym_db.RegisterMessage(BoolRules) StringRules = _reflection.GeneratedProtocolMessageType('StringRules', (_message.Message,), dict( DESCRIPTOR = _STRINGRULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.StringRules) )) _sym_db.RegisterMessage(StringRules) BytesRules = _reflection.GeneratedProtocolMessageType('BytesRules', (_message.Message,), dict( DESCRIPTOR = _BYTESRULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.BytesRules) )) _sym_db.RegisterMessage(BytesRules) EnumRules = _reflection.GeneratedProtocolMessageType('EnumRules', (_message.Message,), dict( DESCRIPTOR = _ENUMRULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.EnumRules) )) _sym_db.RegisterMessage(EnumRules) MessageRules = _reflection.GeneratedProtocolMessageType('MessageRules', (_message.Message,), dict( DESCRIPTOR = _MESSAGERULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.MessageRules) )) _sym_db.RegisterMessage(MessageRules) RepeatedRules = _reflection.GeneratedProtocolMessageType('RepeatedRules', (_message.Message,), dict( DESCRIPTOR = _REPEATEDRULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.RepeatedRules) )) _sym_db.RegisterMessage(RepeatedRules) MapRules = _reflection.GeneratedProtocolMessageType('MapRules', (_message.Message,), dict( DESCRIPTOR = _MAPRULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.MapRules) )) _sym_db.RegisterMessage(MapRules) AnyRules = _reflection.GeneratedProtocolMessageType('AnyRules', (_message.Message,), dict( DESCRIPTOR = _ANYRULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.AnyRules) )) _sym_db.RegisterMessage(AnyRules) DurationRules = _reflection.GeneratedProtocolMessageType('DurationRules', (_message.Message,), dict( DESCRIPTOR = _DURATIONRULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.DurationRules) )) _sym_db.RegisterMessage(DurationRules) TimestampRules = _reflection.GeneratedProtocolMessageType('TimestampRules', (_message.Message,), dict( DESCRIPTOR = _TIMESTAMPRULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.TimestampRules) )) _sym_db.RegisterMessage(TimestampRules) google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(disabled) +google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(ignored) google_dot_protobuf_dot_descriptor__pb2.OneofOptions.RegisterExtension(required) rules.message_type = _FIELDRULES google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(rules) diff --git a/gen/pb_python/validate/validate_pb2.pyi b/gen/pb_python/validate/validate_pb2.pyi deleted file mode 100644 index 6f9873f9e..000000000 --- a/gen/pb_python/validate/validate_pb2.pyi +++ /dev/null @@ -1,661 +0,0 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -from google.protobuf.descriptor import ( - FieldDescriptor as google___protobuf___descriptor___FieldDescriptor, -) - -from google.protobuf.duration_pb2 import ( - Duration as google___protobuf___duration_pb2___Duration, -) - -from google.protobuf.internal.containers import ( - RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, - RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, -) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - -from google.protobuf.timestamp_pb2 import ( - Timestamp as google___protobuf___timestamp_pb2___Timestamp, -) - -from typing import ( - Iterable as typing___Iterable, - Optional as typing___Optional, - Text as typing___Text, -) - - -class FieldRules(google___protobuf___message___Message): - - @property - def float(self) -> FloatRules: ... - - @property - def double(self) -> DoubleRules: ... - - @property - def int32(self) -> Int32Rules: ... - - @property - def int64(self) -> Int64Rules: ... - - @property - def uint32(self) -> UInt32Rules: ... - - @property - def uint64(self) -> UInt64Rules: ... - - @property - def sint32(self) -> SInt32Rules: ... - - @property - def sint64(self) -> SInt64Rules: ... - - @property - def fixed32(self) -> Fixed32Rules: ... - - @property - def fixed64(self) -> Fixed64Rules: ... - - @property - def sfixed32(self) -> SFixed32Rules: ... - - @property - def sfixed64(self) -> SFixed64Rules: ... - - @property - def bool(self) -> BoolRules: ... - - @property - def string(self) -> StringRules: ... - - @property - def bytes(self) -> BytesRules: ... - - @property - def enum(self) -> EnumRules: ... - - @property - def message(self) -> MessageRules: ... - - @property - def repeated(self) -> RepeatedRules: ... - - @property - def map(self) -> MapRules: ... - - @property - def any(self) -> AnyRules: ... - - @property - def duration(self) -> DurationRules: ... - - @property - def timestamp(self) -> TimestampRules: ... - - def __init__(self, - float : typing___Optional[FloatRules] = None, - double : typing___Optional[DoubleRules] = None, - int32 : typing___Optional[Int32Rules] = None, - int64 : typing___Optional[Int64Rules] = None, - uint32 : typing___Optional[UInt32Rules] = None, - uint64 : typing___Optional[UInt64Rules] = None, - sint32 : typing___Optional[SInt32Rules] = None, - sint64 : typing___Optional[SInt64Rules] = None, - fixed32 : typing___Optional[Fixed32Rules] = None, - fixed64 : typing___Optional[Fixed64Rules] = None, - sfixed32 : typing___Optional[SFixed32Rules] = None, - sfixed64 : typing___Optional[SFixed64Rules] = None, - bool : typing___Optional[BoolRules] = None, - string : typing___Optional[StringRules] = None, - bytes : typing___Optional[BytesRules] = None, - enum : typing___Optional[EnumRules] = None, - message : typing___Optional[MessageRules] = None, - repeated : typing___Optional[RepeatedRules] = None, - map : typing___Optional[MapRules] = None, - any : typing___Optional[AnyRules] = None, - duration : typing___Optional[DurationRules] = None, - timestamp : typing___Optional[TimestampRules] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> FieldRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class FloatRules(google___protobuf___message___Message): - const = ... # type: float - lt = ... # type: float - lte = ... # type: float - gt = ... # type: float - gte = ... # type: float - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[float] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[float] - - def __init__(self, - const : typing___Optional[float] = None, - lt : typing___Optional[float] = None, - lte : typing___Optional[float] = None, - gt : typing___Optional[float] = None, - gte : typing___Optional[float] = None, - in : typing___Optional[typing___Iterable[float]] = None, - not_in : typing___Optional[typing___Iterable[float]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> FloatRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class DoubleRules(google___protobuf___message___Message): - const = ... # type: float - lt = ... # type: float - lte = ... # type: float - gt = ... # type: float - gte = ... # type: float - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[float] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[float] - - def __init__(self, - const : typing___Optional[float] = None, - lt : typing___Optional[float] = None, - lte : typing___Optional[float] = None, - gt : typing___Optional[float] = None, - gte : typing___Optional[float] = None, - in : typing___Optional[typing___Iterable[float]] = None, - not_in : typing___Optional[typing___Iterable[float]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> DoubleRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class Int32Rules(google___protobuf___message___Message): - const = ... # type: int - lt = ... # type: int - lte = ... # type: int - gt = ... # type: int - gte = ... # type: int - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - - def __init__(self, - const : typing___Optional[int] = None, - lt : typing___Optional[int] = None, - lte : typing___Optional[int] = None, - gt : typing___Optional[int] = None, - gte : typing___Optional[int] = None, - in : typing___Optional[typing___Iterable[int]] = None, - not_in : typing___Optional[typing___Iterable[int]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Int32Rules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class Int64Rules(google___protobuf___message___Message): - const = ... # type: int - lt = ... # type: int - lte = ... # type: int - gt = ... # type: int - gte = ... # type: int - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - - def __init__(self, - const : typing___Optional[int] = None, - lt : typing___Optional[int] = None, - lte : typing___Optional[int] = None, - gt : typing___Optional[int] = None, - gte : typing___Optional[int] = None, - in : typing___Optional[typing___Iterable[int]] = None, - not_in : typing___Optional[typing___Iterable[int]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Int64Rules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class UInt32Rules(google___protobuf___message___Message): - const = ... # type: int - lt = ... # type: int - lte = ... # type: int - gt = ... # type: int - gte = ... # type: int - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - - def __init__(self, - const : typing___Optional[int] = None, - lt : typing___Optional[int] = None, - lte : typing___Optional[int] = None, - gt : typing___Optional[int] = None, - gte : typing___Optional[int] = None, - in : typing___Optional[typing___Iterable[int]] = None, - not_in : typing___Optional[typing___Iterable[int]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> UInt32Rules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class UInt64Rules(google___protobuf___message___Message): - const = ... # type: int - lt = ... # type: int - lte = ... # type: int - gt = ... # type: int - gte = ... # type: int - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - - def __init__(self, - const : typing___Optional[int] = None, - lt : typing___Optional[int] = None, - lte : typing___Optional[int] = None, - gt : typing___Optional[int] = None, - gte : typing___Optional[int] = None, - in : typing___Optional[typing___Iterable[int]] = None, - not_in : typing___Optional[typing___Iterable[int]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> UInt64Rules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class SInt32Rules(google___protobuf___message___Message): - const = ... # type: int - lt = ... # type: int - lte = ... # type: int - gt = ... # type: int - gte = ... # type: int - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - - def __init__(self, - const : typing___Optional[int] = None, - lt : typing___Optional[int] = None, - lte : typing___Optional[int] = None, - gt : typing___Optional[int] = None, - gte : typing___Optional[int] = None, - in : typing___Optional[typing___Iterable[int]] = None, - not_in : typing___Optional[typing___Iterable[int]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> SInt32Rules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class SInt64Rules(google___protobuf___message___Message): - const = ... # type: int - lt = ... # type: int - lte = ... # type: int - gt = ... # type: int - gte = ... # type: int - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - - def __init__(self, - const : typing___Optional[int] = None, - lt : typing___Optional[int] = None, - lte : typing___Optional[int] = None, - gt : typing___Optional[int] = None, - gte : typing___Optional[int] = None, - in : typing___Optional[typing___Iterable[int]] = None, - not_in : typing___Optional[typing___Iterable[int]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> SInt64Rules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class Fixed32Rules(google___protobuf___message___Message): - const = ... # type: int - lt = ... # type: int - lte = ... # type: int - gt = ... # type: int - gte = ... # type: int - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - - def __init__(self, - const : typing___Optional[int] = None, - lt : typing___Optional[int] = None, - lte : typing___Optional[int] = None, - gt : typing___Optional[int] = None, - gte : typing___Optional[int] = None, - in : typing___Optional[typing___Iterable[int]] = None, - not_in : typing___Optional[typing___Iterable[int]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Fixed32Rules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class Fixed64Rules(google___protobuf___message___Message): - const = ... # type: int - lt = ... # type: int - lte = ... # type: int - gt = ... # type: int - gte = ... # type: int - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - - def __init__(self, - const : typing___Optional[int] = None, - lt : typing___Optional[int] = None, - lte : typing___Optional[int] = None, - gt : typing___Optional[int] = None, - gte : typing___Optional[int] = None, - in : typing___Optional[typing___Iterable[int]] = None, - not_in : typing___Optional[typing___Iterable[int]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Fixed64Rules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class SFixed32Rules(google___protobuf___message___Message): - const = ... # type: int - lt = ... # type: int - lte = ... # type: int - gt = ... # type: int - gte = ... # type: int - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - - def __init__(self, - const : typing___Optional[int] = None, - lt : typing___Optional[int] = None, - lte : typing___Optional[int] = None, - gt : typing___Optional[int] = None, - gte : typing___Optional[int] = None, - in : typing___Optional[typing___Iterable[int]] = None, - not_in : typing___Optional[typing___Iterable[int]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> SFixed32Rules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class SFixed64Rules(google___protobuf___message___Message): - const = ... # type: int - lt = ... # type: int - lte = ... # type: int - gt = ... # type: int - gte = ... # type: int - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - - def __init__(self, - const : typing___Optional[int] = None, - lt : typing___Optional[int] = None, - lte : typing___Optional[int] = None, - gt : typing___Optional[int] = None, - gte : typing___Optional[int] = None, - in : typing___Optional[typing___Iterable[int]] = None, - not_in : typing___Optional[typing___Iterable[int]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> SFixed64Rules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class BoolRules(google___protobuf___message___Message): - const = ... # type: bool - - def __init__(self, - const : typing___Optional[bool] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> BoolRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class StringRules(google___protobuf___message___Message): - const = ... # type: typing___Text - min_len = ... # type: int - max_len = ... # type: int - min_bytes = ... # type: int - max_bytes = ... # type: int - pattern = ... # type: typing___Text - prefix = ... # type: typing___Text - suffix = ... # type: typing___Text - contains = ... # type: typing___Text - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] - email = ... # type: bool - hostname = ... # type: bool - ip = ... # type: bool - ipv4 = ... # type: bool - ipv6 = ... # type: bool - uri = ... # type: bool - uri_ref = ... # type: bool - - def __init__(self, - const : typing___Optional[typing___Text] = None, - min_len : typing___Optional[int] = None, - max_len : typing___Optional[int] = None, - min_bytes : typing___Optional[int] = None, - max_bytes : typing___Optional[int] = None, - pattern : typing___Optional[typing___Text] = None, - prefix : typing___Optional[typing___Text] = None, - suffix : typing___Optional[typing___Text] = None, - contains : typing___Optional[typing___Text] = None, - in : typing___Optional[typing___Iterable[typing___Text]] = None, - not_in : typing___Optional[typing___Iterable[typing___Text]] = None, - email : typing___Optional[bool] = None, - hostname : typing___Optional[bool] = None, - ip : typing___Optional[bool] = None, - ipv4 : typing___Optional[bool] = None, - ipv6 : typing___Optional[bool] = None, - uri : typing___Optional[bool] = None, - uri_ref : typing___Optional[bool] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> StringRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class BytesRules(google___protobuf___message___Message): - const = ... # type: bytes - min_len = ... # type: int - max_len = ... # type: int - pattern = ... # type: typing___Text - prefix = ... # type: bytes - suffix = ... # type: bytes - contains = ... # type: bytes - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[bytes] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[bytes] - ip = ... # type: bool - ipv4 = ... # type: bool - ipv6 = ... # type: bool - - def __init__(self, - const : typing___Optional[bytes] = None, - min_len : typing___Optional[int] = None, - max_len : typing___Optional[int] = None, - pattern : typing___Optional[typing___Text] = None, - prefix : typing___Optional[bytes] = None, - suffix : typing___Optional[bytes] = None, - contains : typing___Optional[bytes] = None, - in : typing___Optional[typing___Iterable[bytes]] = None, - not_in : typing___Optional[typing___Iterable[bytes]] = None, - ip : typing___Optional[bool] = None, - ipv4 : typing___Optional[bool] = None, - ipv6 : typing___Optional[bool] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> BytesRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class EnumRules(google___protobuf___message___Message): - const = ... # type: int - defined_only = ... # type: bool - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - - def __init__(self, - const : typing___Optional[int] = None, - defined_only : typing___Optional[bool] = None, - in : typing___Optional[typing___Iterable[int]] = None, - not_in : typing___Optional[typing___Iterable[int]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> EnumRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class MessageRules(google___protobuf___message___Message): - skip = ... # type: bool - required = ... # type: bool - - def __init__(self, - skip : typing___Optional[bool] = None, - required : typing___Optional[bool] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> MessageRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class RepeatedRules(google___protobuf___message___Message): - min_items = ... # type: int - max_items = ... # type: int - unique = ... # type: bool - - @property - def items(self) -> FieldRules: ... - - def __init__(self, - min_items : typing___Optional[int] = None, - max_items : typing___Optional[int] = None, - unique : typing___Optional[bool] = None, - items : typing___Optional[FieldRules] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> RepeatedRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class MapRules(google___protobuf___message___Message): - min_pairs = ... # type: int - max_pairs = ... # type: int - no_sparse = ... # type: bool - - @property - def keys(self) -> FieldRules: ... - - @property - def values(self) -> FieldRules: ... - - def __init__(self, - min_pairs : typing___Optional[int] = None, - max_pairs : typing___Optional[int] = None, - no_sparse : typing___Optional[bool] = None, - keys : typing___Optional[FieldRules] = None, - values : typing___Optional[FieldRules] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> MapRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class AnyRules(google___protobuf___message___Message): - required = ... # type: bool - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] - - def __init__(self, - required : typing___Optional[bool] = None, - in : typing___Optional[typing___Iterable[typing___Text]] = None, - not_in : typing___Optional[typing___Iterable[typing___Text]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> AnyRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class DurationRules(google___protobuf___message___Message): - required = ... # type: bool - - @property - def const(self) -> google___protobuf___duration_pb2___Duration: ... - - @property - def lt(self) -> google___protobuf___duration_pb2___Duration: ... - - @property - def lte(self) -> google___protobuf___duration_pb2___Duration: ... - - @property - def gt(self) -> google___protobuf___duration_pb2___Duration: ... - - @property - def gte(self) -> google___protobuf___duration_pb2___Duration: ... - - @property - def in(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___duration_pb2___Duration]: ... - - @property - def not_in(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___duration_pb2___Duration]: ... - - def __init__(self, - required : typing___Optional[bool] = None, - const : typing___Optional[google___protobuf___duration_pb2___Duration] = None, - lt : typing___Optional[google___protobuf___duration_pb2___Duration] = None, - lte : typing___Optional[google___protobuf___duration_pb2___Duration] = None, - gt : typing___Optional[google___protobuf___duration_pb2___Duration] = None, - gte : typing___Optional[google___protobuf___duration_pb2___Duration] = None, - in : typing___Optional[typing___Iterable[google___protobuf___duration_pb2___Duration]] = None, - not_in : typing___Optional[typing___Iterable[google___protobuf___duration_pb2___Duration]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> DurationRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class TimestampRules(google___protobuf___message___Message): - required = ... # type: bool - lt_now = ... # type: bool - gt_now = ... # type: bool - - @property - def const(self) -> google___protobuf___timestamp_pb2___Timestamp: ... - - @property - def lt(self) -> google___protobuf___timestamp_pb2___Timestamp: ... - - @property - def lte(self) -> google___protobuf___timestamp_pb2___Timestamp: ... - - @property - def gt(self) -> google___protobuf___timestamp_pb2___Timestamp: ... - - @property - def gte(self) -> google___protobuf___timestamp_pb2___Timestamp: ... - - @property - def within(self) -> google___protobuf___duration_pb2___Duration: ... - - def __init__(self, - required : typing___Optional[bool] = None, - const : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, - lt : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, - lte : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, - gt : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, - gte : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, - lt_now : typing___Optional[bool] = None, - gt_now : typing___Optional[bool] = None, - within : typing___Optional[google___protobuf___duration_pb2___Duration] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> TimestampRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -disabled = ... # type: google___protobuf___descriptor___FieldDescriptor - -required = ... # type: google___protobuf___descriptor___FieldDescriptor - -rules = ... # type: google___protobuf___descriptor___FieldDescriptor diff --git a/gen/pb_python/validate/validate_pb2_grpc.py b/gen/pb_python/validate/validate_pb2_grpc.py deleted file mode 100644 index a89435267..000000000 --- a/gen/pb_python/validate/validate_pb2_grpc.py +++ /dev/null @@ -1,3 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - diff --git a/validate/validate_pb2.py b/validate/validate_pb2.py index 61679d411..73988e7c3 100644 --- a/validate/validate_pb2.py +++ b/validate/validate_pb2.py @@ -1,8 +1,9 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: pb/ext/validate/validate.proto +# source: validate/validate.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -18,35 +19,73 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='pb/ext/validate/validate.proto', + name='validate/validate.proto', package='validate', syntax='proto2', - serialized_options=_b('Z\010validate'), - serialized_pb=_b('\n\x1epb/ext/validate/validate.proto\x12\x08validate\x1a google/protobuf/descriptor.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9a\x07\n\nFieldRules\x12%\n\x05\x66loat\x18\x01 \x01(\x0b\x32\x14.validate.FloatRulesH\x00\x12\'\n\x06\x64ouble\x18\x02 \x01(\x0b\x32\x15.validate.DoubleRulesH\x00\x12%\n\x05int32\x18\x03 \x01(\x0b\x32\x14.validate.Int32RulesH\x00\x12%\n\x05int64\x18\x04 \x01(\x0b\x32\x14.validate.Int64RulesH\x00\x12\'\n\x06uint32\x18\x05 \x01(\x0b\x32\x15.validate.UInt32RulesH\x00\x12\'\n\x06uint64\x18\x06 \x01(\x0b\x32\x15.validate.UInt64RulesH\x00\x12\'\n\x06sint32\x18\x07 \x01(\x0b\x32\x15.validate.SInt32RulesH\x00\x12\'\n\x06sint64\x18\x08 \x01(\x0b\x32\x15.validate.SInt64RulesH\x00\x12)\n\x07\x66ixed32\x18\t \x01(\x0b\x32\x16.validate.Fixed32RulesH\x00\x12)\n\x07\x66ixed64\x18\n \x01(\x0b\x32\x16.validate.Fixed64RulesH\x00\x12+\n\x08sfixed32\x18\x0b \x01(\x0b\x32\x17.validate.SFixed32RulesH\x00\x12+\n\x08sfixed64\x18\x0c \x01(\x0b\x32\x17.validate.SFixed64RulesH\x00\x12#\n\x04\x62ool\x18\r \x01(\x0b\x32\x13.validate.BoolRulesH\x00\x12\'\n\x06string\x18\x0e \x01(\x0b\x32\x15.validate.StringRulesH\x00\x12%\n\x05\x62ytes\x18\x0f \x01(\x0b\x32\x14.validate.BytesRulesH\x00\x12#\n\x04\x65num\x18\x10 \x01(\x0b\x32\x13.validate.EnumRulesH\x00\x12)\n\x07message\x18\x11 \x01(\x0b\x32\x16.validate.MessageRulesH\x00\x12+\n\x08repeated\x18\x12 \x01(\x0b\x32\x17.validate.RepeatedRulesH\x00\x12!\n\x03map\x18\x13 \x01(\x0b\x32\x12.validate.MapRulesH\x00\x12!\n\x03\x61ny\x18\x14 \x01(\x0b\x32\x12.validate.AnyRulesH\x00\x12+\n\x08\x64uration\x18\x15 \x01(\x0b\x32\x17.validate.DurationRulesH\x00\x12-\n\ttimestamp\x18\x16 \x01(\x0b\x32\x18.validate.TimestampRulesH\x00\x42\x06\n\x04type\"i\n\nFloatRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x02\x12\n\n\x02lt\x18\x02 \x01(\x02\x12\x0b\n\x03lte\x18\x03 \x01(\x02\x12\n\n\x02gt\x18\x04 \x01(\x02\x12\x0b\n\x03gte\x18\x05 \x01(\x02\x12\n\n\x02in\x18\x06 \x03(\x02\x12\x0e\n\x06not_in\x18\x07 \x03(\x02\"j\n\x0b\x44oubleRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x01\x12\n\n\x02lt\x18\x02 \x01(\x01\x12\x0b\n\x03lte\x18\x03 \x01(\x01\x12\n\n\x02gt\x18\x04 \x01(\x01\x12\x0b\n\x03gte\x18\x05 \x01(\x01\x12\n\n\x02in\x18\x06 \x03(\x01\x12\x0e\n\x06not_in\x18\x07 \x03(\x01\"i\n\nInt32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x05\x12\n\n\x02lt\x18\x02 \x01(\x05\x12\x0b\n\x03lte\x18\x03 \x01(\x05\x12\n\n\x02gt\x18\x04 \x01(\x05\x12\x0b\n\x03gte\x18\x05 \x01(\x05\x12\n\n\x02in\x18\x06 \x03(\x05\x12\x0e\n\x06not_in\x18\x07 \x03(\x05\"i\n\nInt64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x03\x12\n\n\x02lt\x18\x02 \x01(\x03\x12\x0b\n\x03lte\x18\x03 \x01(\x03\x12\n\n\x02gt\x18\x04 \x01(\x03\x12\x0b\n\x03gte\x18\x05 \x01(\x03\x12\n\n\x02in\x18\x06 \x03(\x03\x12\x0e\n\x06not_in\x18\x07 \x03(\x03\"j\n\x0bUInt32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\r\x12\n\n\x02lt\x18\x02 \x01(\r\x12\x0b\n\x03lte\x18\x03 \x01(\r\x12\n\n\x02gt\x18\x04 \x01(\r\x12\x0b\n\x03gte\x18\x05 \x01(\r\x12\n\n\x02in\x18\x06 \x03(\r\x12\x0e\n\x06not_in\x18\x07 \x03(\r\"j\n\x0bUInt64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x04\x12\n\n\x02lt\x18\x02 \x01(\x04\x12\x0b\n\x03lte\x18\x03 \x01(\x04\x12\n\n\x02gt\x18\x04 \x01(\x04\x12\x0b\n\x03gte\x18\x05 \x01(\x04\x12\n\n\x02in\x18\x06 \x03(\x04\x12\x0e\n\x06not_in\x18\x07 \x03(\x04\"j\n\x0bSInt32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x11\x12\n\n\x02lt\x18\x02 \x01(\x11\x12\x0b\n\x03lte\x18\x03 \x01(\x11\x12\n\n\x02gt\x18\x04 \x01(\x11\x12\x0b\n\x03gte\x18\x05 \x01(\x11\x12\n\n\x02in\x18\x06 \x03(\x11\x12\x0e\n\x06not_in\x18\x07 \x03(\x11\"j\n\x0bSInt64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x12\x12\n\n\x02lt\x18\x02 \x01(\x12\x12\x0b\n\x03lte\x18\x03 \x01(\x12\x12\n\n\x02gt\x18\x04 \x01(\x12\x12\x0b\n\x03gte\x18\x05 \x01(\x12\x12\n\n\x02in\x18\x06 \x03(\x12\x12\x0e\n\x06not_in\x18\x07 \x03(\x12\"k\n\x0c\x46ixed32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x07\x12\n\n\x02lt\x18\x02 \x01(\x07\x12\x0b\n\x03lte\x18\x03 \x01(\x07\x12\n\n\x02gt\x18\x04 \x01(\x07\x12\x0b\n\x03gte\x18\x05 \x01(\x07\x12\n\n\x02in\x18\x06 \x03(\x07\x12\x0e\n\x06not_in\x18\x07 \x03(\x07\"k\n\x0c\x46ixed64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x06\x12\n\n\x02lt\x18\x02 \x01(\x06\x12\x0b\n\x03lte\x18\x03 \x01(\x06\x12\n\n\x02gt\x18\x04 \x01(\x06\x12\x0b\n\x03gte\x18\x05 \x01(\x06\x12\n\n\x02in\x18\x06 \x03(\x06\x12\x0e\n\x06not_in\x18\x07 \x03(\x06\"l\n\rSFixed32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x0f\x12\n\n\x02lt\x18\x02 \x01(\x0f\x12\x0b\n\x03lte\x18\x03 \x01(\x0f\x12\n\n\x02gt\x18\x04 \x01(\x0f\x12\x0b\n\x03gte\x18\x05 \x01(\x0f\x12\n\n\x02in\x18\x06 \x03(\x0f\x12\x0e\n\x06not_in\x18\x07 \x03(\x0f\"l\n\rSFixed64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x10\x12\n\n\x02lt\x18\x02 \x01(\x10\x12\x0b\n\x03lte\x18\x03 \x01(\x10\x12\n\n\x02gt\x18\x04 \x01(\x10\x12\x0b\n\x03gte\x18\x05 \x01(\x10\x12\n\n\x02in\x18\x06 \x03(\x10\x12\x0e\n\x06not_in\x18\x07 \x03(\x10\"\x1a\n\tBoolRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x08\"\xc6\x02\n\x0bStringRules\x12\r\n\x05\x63onst\x18\x01 \x01(\t\x12\x0f\n\x07min_len\x18\x02 \x01(\x04\x12\x0f\n\x07max_len\x18\x03 \x01(\x04\x12\x11\n\tmin_bytes\x18\x04 \x01(\x04\x12\x11\n\tmax_bytes\x18\x05 \x01(\x04\x12\x0f\n\x07pattern\x18\x06 \x01(\t\x12\x0e\n\x06prefix\x18\x07 \x01(\t\x12\x0e\n\x06suffix\x18\x08 \x01(\t\x12\x10\n\x08\x63ontains\x18\t \x01(\t\x12\n\n\x02in\x18\n \x03(\t\x12\x0e\n\x06not_in\x18\x0b \x03(\t\x12\x0f\n\x05\x65mail\x18\x0c \x01(\x08H\x00\x12\x12\n\x08hostname\x18\r \x01(\x08H\x00\x12\x0c\n\x02ip\x18\x0e \x01(\x08H\x00\x12\x0e\n\x04ipv4\x18\x0f \x01(\x08H\x00\x12\x0e\n\x04ipv6\x18\x10 \x01(\x08H\x00\x12\r\n\x03uri\x18\x11 \x01(\x08H\x00\x12\x11\n\x07uri_ref\x18\x12 \x01(\x08H\x00\x42\x0c\n\nwell_known\"\xd8\x01\n\nBytesRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x0c\x12\x0f\n\x07min_len\x18\x02 \x01(\x04\x12\x0f\n\x07max_len\x18\x03 \x01(\x04\x12\x0f\n\x07pattern\x18\x04 \x01(\t\x12\x0e\n\x06prefix\x18\x05 \x01(\x0c\x12\x0e\n\x06suffix\x18\x06 \x01(\x0c\x12\x10\n\x08\x63ontains\x18\x07 \x01(\x0c\x12\n\n\x02in\x18\x08 \x03(\x0c\x12\x0e\n\x06not_in\x18\t \x03(\x0c\x12\x0c\n\x02ip\x18\n \x01(\x08H\x00\x12\x0e\n\x04ipv4\x18\x0b \x01(\x08H\x00\x12\x0e\n\x04ipv6\x18\x0c \x01(\x08H\x00\x42\x0c\n\nwell_known\"L\n\tEnumRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x05\x12\x14\n\x0c\x64\x65\x66ined_only\x18\x02 \x01(\x08\x12\n\n\x02in\x18\x03 \x03(\x05\x12\x0e\n\x06not_in\x18\x04 \x03(\x05\".\n\x0cMessageRules\x12\x0c\n\x04skip\x18\x01 \x01(\x08\x12\x10\n\x08required\x18\x02 \x01(\x08\"j\n\rRepeatedRules\x12\x11\n\tmin_items\x18\x01 \x01(\x04\x12\x11\n\tmax_items\x18\x02 \x01(\x04\x12\x0e\n\x06unique\x18\x03 \x01(\x08\x12#\n\x05items\x18\x04 \x01(\x0b\x32\x14.validate.FieldRules\"\x8d\x01\n\x08MapRules\x12\x11\n\tmin_pairs\x18\x01 \x01(\x04\x12\x11\n\tmax_pairs\x18\x02 \x01(\x04\x12\x11\n\tno_sparse\x18\x03 \x01(\x08\x12\"\n\x04keys\x18\x04 \x01(\x0b\x32\x14.validate.FieldRules\x12$\n\x06values\x18\x05 \x01(\x0b\x32\x14.validate.FieldRules\"8\n\x08\x41nyRules\x12\x10\n\x08required\x18\x01 \x01(\x08\x12\n\n\x02in\x18\x02 \x03(\t\x12\x0e\n\x06not_in\x18\x03 \x03(\t\"\xbb\x02\n\rDurationRules\x12\x10\n\x08required\x18\x01 \x01(\x08\x12(\n\x05\x63onst\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12%\n\x02lt\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12&\n\x03lte\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12%\n\x02gt\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12&\n\x03gte\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12%\n\x02in\x18\x07 \x03(\x0b\x32\x19.google.protobuf.Duration\x12)\n\x06not_in\x18\x08 \x03(\x0b\x32\x19.google.protobuf.Duration\"\xba\x02\n\x0eTimestampRules\x12\x10\n\x08required\x18\x01 \x01(\x08\x12)\n\x05\x63onst\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x02lt\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x03lte\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x02gt\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x03gte\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06lt_now\x18\x07 \x01(\x08\x12\x0e\n\x06gt_now\x18\x08 \x01(\x08\x12)\n\x06within\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration:3\n\x08\x64isabled\x12\x1f.google.protobuf.MessageOptions\x18\x97\x8d\x38 \x01(\x08:1\n\x08required\x12\x1d.google.protobuf.OneofOptions\x18\x97\x8d\x38 \x01(\x08:D\n\x05rules\x12\x1d.google.protobuf.FieldOptions\x18\x97\x8d\x38 \x01(\x0b\x32\x14.validate.FieldRulesB\nZ\x08validate') + serialized_options=_b('\n\032io.envoyproxy.pgv.validateZ2github.com/envoyproxy/protoc-gen-validate/validate'), + serialized_pb=_b('\n\x17validate/validate.proto\x12\x08validate\x1a google/protobuf/descriptor.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x98\x07\n\nFieldRules\x12\'\n\x07message\x18\x11 \x01(\x0b\x32\x16.validate.MessageRules\x12%\n\x05\x66loat\x18\x01 \x01(\x0b\x32\x14.validate.FloatRulesH\x00\x12\'\n\x06\x64ouble\x18\x02 \x01(\x0b\x32\x15.validate.DoubleRulesH\x00\x12%\n\x05int32\x18\x03 \x01(\x0b\x32\x14.validate.Int32RulesH\x00\x12%\n\x05int64\x18\x04 \x01(\x0b\x32\x14.validate.Int64RulesH\x00\x12\'\n\x06uint32\x18\x05 \x01(\x0b\x32\x15.validate.UInt32RulesH\x00\x12\'\n\x06uint64\x18\x06 \x01(\x0b\x32\x15.validate.UInt64RulesH\x00\x12\'\n\x06sint32\x18\x07 \x01(\x0b\x32\x15.validate.SInt32RulesH\x00\x12\'\n\x06sint64\x18\x08 \x01(\x0b\x32\x15.validate.SInt64RulesH\x00\x12)\n\x07\x66ixed32\x18\t \x01(\x0b\x32\x16.validate.Fixed32RulesH\x00\x12)\n\x07\x66ixed64\x18\n \x01(\x0b\x32\x16.validate.Fixed64RulesH\x00\x12+\n\x08sfixed32\x18\x0b \x01(\x0b\x32\x17.validate.SFixed32RulesH\x00\x12+\n\x08sfixed64\x18\x0c \x01(\x0b\x32\x17.validate.SFixed64RulesH\x00\x12#\n\x04\x62ool\x18\r \x01(\x0b\x32\x13.validate.BoolRulesH\x00\x12\'\n\x06string\x18\x0e \x01(\x0b\x32\x15.validate.StringRulesH\x00\x12%\n\x05\x62ytes\x18\x0f \x01(\x0b\x32\x14.validate.BytesRulesH\x00\x12#\n\x04\x65num\x18\x10 \x01(\x0b\x32\x13.validate.EnumRulesH\x00\x12+\n\x08repeated\x18\x12 \x01(\x0b\x32\x17.validate.RepeatedRulesH\x00\x12!\n\x03map\x18\x13 \x01(\x0b\x32\x12.validate.MapRulesH\x00\x12!\n\x03\x61ny\x18\x14 \x01(\x0b\x32\x12.validate.AnyRulesH\x00\x12+\n\x08\x64uration\x18\x15 \x01(\x0b\x32\x17.validate.DurationRulesH\x00\x12-\n\ttimestamp\x18\x16 \x01(\x0b\x32\x18.validate.TimestampRulesH\x00\x42\x06\n\x04type\"\x7f\n\nFloatRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x02\x12\n\n\x02lt\x18\x02 \x01(\x02\x12\x0b\n\x03lte\x18\x03 \x01(\x02\x12\n\n\x02gt\x18\x04 \x01(\x02\x12\x0b\n\x03gte\x18\x05 \x01(\x02\x12\n\n\x02in\x18\x06 \x03(\x02\x12\x0e\n\x06not_in\x18\x07 \x03(\x02\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x80\x01\n\x0b\x44oubleRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x01\x12\n\n\x02lt\x18\x02 \x01(\x01\x12\x0b\n\x03lte\x18\x03 \x01(\x01\x12\n\n\x02gt\x18\x04 \x01(\x01\x12\x0b\n\x03gte\x18\x05 \x01(\x01\x12\n\n\x02in\x18\x06 \x03(\x01\x12\x0e\n\x06not_in\x18\x07 \x03(\x01\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x7f\n\nInt32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x05\x12\n\n\x02lt\x18\x02 \x01(\x05\x12\x0b\n\x03lte\x18\x03 \x01(\x05\x12\n\n\x02gt\x18\x04 \x01(\x05\x12\x0b\n\x03gte\x18\x05 \x01(\x05\x12\n\n\x02in\x18\x06 \x03(\x05\x12\x0e\n\x06not_in\x18\x07 \x03(\x05\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x7f\n\nInt64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x03\x12\n\n\x02lt\x18\x02 \x01(\x03\x12\x0b\n\x03lte\x18\x03 \x01(\x03\x12\n\n\x02gt\x18\x04 \x01(\x03\x12\x0b\n\x03gte\x18\x05 \x01(\x03\x12\n\n\x02in\x18\x06 \x03(\x03\x12\x0e\n\x06not_in\x18\x07 \x03(\x03\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x80\x01\n\x0bUInt32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\r\x12\n\n\x02lt\x18\x02 \x01(\r\x12\x0b\n\x03lte\x18\x03 \x01(\r\x12\n\n\x02gt\x18\x04 \x01(\r\x12\x0b\n\x03gte\x18\x05 \x01(\r\x12\n\n\x02in\x18\x06 \x03(\r\x12\x0e\n\x06not_in\x18\x07 \x03(\r\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x80\x01\n\x0bUInt64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x04\x12\n\n\x02lt\x18\x02 \x01(\x04\x12\x0b\n\x03lte\x18\x03 \x01(\x04\x12\n\n\x02gt\x18\x04 \x01(\x04\x12\x0b\n\x03gte\x18\x05 \x01(\x04\x12\n\n\x02in\x18\x06 \x03(\x04\x12\x0e\n\x06not_in\x18\x07 \x03(\x04\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x80\x01\n\x0bSInt32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x11\x12\n\n\x02lt\x18\x02 \x01(\x11\x12\x0b\n\x03lte\x18\x03 \x01(\x11\x12\n\n\x02gt\x18\x04 \x01(\x11\x12\x0b\n\x03gte\x18\x05 \x01(\x11\x12\n\n\x02in\x18\x06 \x03(\x11\x12\x0e\n\x06not_in\x18\x07 \x03(\x11\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x80\x01\n\x0bSInt64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x12\x12\n\n\x02lt\x18\x02 \x01(\x12\x12\x0b\n\x03lte\x18\x03 \x01(\x12\x12\n\n\x02gt\x18\x04 \x01(\x12\x12\x0b\n\x03gte\x18\x05 \x01(\x12\x12\n\n\x02in\x18\x06 \x03(\x12\x12\x0e\n\x06not_in\x18\x07 \x03(\x12\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x81\x01\n\x0c\x46ixed32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x07\x12\n\n\x02lt\x18\x02 \x01(\x07\x12\x0b\n\x03lte\x18\x03 \x01(\x07\x12\n\n\x02gt\x18\x04 \x01(\x07\x12\x0b\n\x03gte\x18\x05 \x01(\x07\x12\n\n\x02in\x18\x06 \x03(\x07\x12\x0e\n\x06not_in\x18\x07 \x03(\x07\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x81\x01\n\x0c\x46ixed64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x06\x12\n\n\x02lt\x18\x02 \x01(\x06\x12\x0b\n\x03lte\x18\x03 \x01(\x06\x12\n\n\x02gt\x18\x04 \x01(\x06\x12\x0b\n\x03gte\x18\x05 \x01(\x06\x12\n\n\x02in\x18\x06 \x03(\x06\x12\x0e\n\x06not_in\x18\x07 \x03(\x06\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x82\x01\n\rSFixed32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x0f\x12\n\n\x02lt\x18\x02 \x01(\x0f\x12\x0b\n\x03lte\x18\x03 \x01(\x0f\x12\n\n\x02gt\x18\x04 \x01(\x0f\x12\x0b\n\x03gte\x18\x05 \x01(\x0f\x12\n\n\x02in\x18\x06 \x03(\x0f\x12\x0e\n\x06not_in\x18\x07 \x03(\x0f\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x82\x01\n\rSFixed64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x10\x12\n\n\x02lt\x18\x02 \x01(\x10\x12\x0b\n\x03lte\x18\x03 \x01(\x10\x12\n\n\x02gt\x18\x04 \x01(\x10\x12\x0b\n\x03gte\x18\x05 \x01(\x10\x12\n\n\x02in\x18\x06 \x03(\x10\x12\x0e\n\x06not_in\x18\x07 \x03(\x10\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x1a\n\tBoolRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x08\"\xfd\x03\n\x0bStringRules\x12\r\n\x05\x63onst\x18\x01 \x01(\t\x12\x0b\n\x03len\x18\x13 \x01(\x04\x12\x0f\n\x07min_len\x18\x02 \x01(\x04\x12\x0f\n\x07max_len\x18\x03 \x01(\x04\x12\x11\n\tlen_bytes\x18\x14 \x01(\x04\x12\x11\n\tmin_bytes\x18\x04 \x01(\x04\x12\x11\n\tmax_bytes\x18\x05 \x01(\x04\x12\x0f\n\x07pattern\x18\x06 \x01(\t\x12\x0e\n\x06prefix\x18\x07 \x01(\t\x12\x0e\n\x06suffix\x18\x08 \x01(\t\x12\x10\n\x08\x63ontains\x18\t \x01(\t\x12\x14\n\x0cnot_contains\x18\x17 \x01(\t\x12\n\n\x02in\x18\n \x03(\t\x12\x0e\n\x06not_in\x18\x0b \x03(\t\x12\x0f\n\x05\x65mail\x18\x0c \x01(\x08H\x00\x12\x12\n\x08hostname\x18\r \x01(\x08H\x00\x12\x0c\n\x02ip\x18\x0e \x01(\x08H\x00\x12\x0e\n\x04ipv4\x18\x0f \x01(\x08H\x00\x12\x0e\n\x04ipv6\x18\x10 \x01(\x08H\x00\x12\r\n\x03uri\x18\x11 \x01(\x08H\x00\x12\x11\n\x07uri_ref\x18\x12 \x01(\x08H\x00\x12\x11\n\x07\x61\x64\x64ress\x18\x15 \x01(\x08H\x00\x12\x0e\n\x04uuid\x18\x16 \x01(\x08H\x00\x12\x30\n\x10well_known_regex\x18\x18 \x01(\x0e\x32\x14.validate.KnownRegexH\x00\x12\x14\n\x06strict\x18\x19 \x01(\x08:\x04true\x12\x14\n\x0cignore_empty\x18\x1a \x01(\x08\x42\x0c\n\nwell_known\"\xfb\x01\n\nBytesRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x0c\x12\x0b\n\x03len\x18\r \x01(\x04\x12\x0f\n\x07min_len\x18\x02 \x01(\x04\x12\x0f\n\x07max_len\x18\x03 \x01(\x04\x12\x0f\n\x07pattern\x18\x04 \x01(\t\x12\x0e\n\x06prefix\x18\x05 \x01(\x0c\x12\x0e\n\x06suffix\x18\x06 \x01(\x0c\x12\x10\n\x08\x63ontains\x18\x07 \x01(\x0c\x12\n\n\x02in\x18\x08 \x03(\x0c\x12\x0e\n\x06not_in\x18\t \x03(\x0c\x12\x0c\n\x02ip\x18\n \x01(\x08H\x00\x12\x0e\n\x04ipv4\x18\x0b \x01(\x08H\x00\x12\x0e\n\x04ipv6\x18\x0c \x01(\x08H\x00\x12\x14\n\x0cignore_empty\x18\x0e \x01(\x08\x42\x0c\n\nwell_known\"L\n\tEnumRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x05\x12\x14\n\x0c\x64\x65\x66ined_only\x18\x02 \x01(\x08\x12\n\n\x02in\x18\x03 \x03(\x05\x12\x0e\n\x06not_in\x18\x04 \x03(\x05\".\n\x0cMessageRules\x12\x0c\n\x04skip\x18\x01 \x01(\x08\x12\x10\n\x08required\x18\x02 \x01(\x08\"\x80\x01\n\rRepeatedRules\x12\x11\n\tmin_items\x18\x01 \x01(\x04\x12\x11\n\tmax_items\x18\x02 \x01(\x04\x12\x0e\n\x06unique\x18\x03 \x01(\x08\x12#\n\x05items\x18\x04 \x01(\x0b\x32\x14.validate.FieldRules\x12\x14\n\x0cignore_empty\x18\x05 \x01(\x08\"\xa3\x01\n\x08MapRules\x12\x11\n\tmin_pairs\x18\x01 \x01(\x04\x12\x11\n\tmax_pairs\x18\x02 \x01(\x04\x12\x11\n\tno_sparse\x18\x03 \x01(\x08\x12\"\n\x04keys\x18\x04 \x01(\x0b\x32\x14.validate.FieldRules\x12$\n\x06values\x18\x05 \x01(\x0b\x32\x14.validate.FieldRules\x12\x14\n\x0cignore_empty\x18\x06 \x01(\x08\"8\n\x08\x41nyRules\x12\x10\n\x08required\x18\x01 \x01(\x08\x12\n\n\x02in\x18\x02 \x03(\t\x12\x0e\n\x06not_in\x18\x03 \x03(\t\"\xbb\x02\n\rDurationRules\x12\x10\n\x08required\x18\x01 \x01(\x08\x12(\n\x05\x63onst\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12%\n\x02lt\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12&\n\x03lte\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12%\n\x02gt\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12&\n\x03gte\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12%\n\x02in\x18\x07 \x03(\x0b\x32\x19.google.protobuf.Duration\x12)\n\x06not_in\x18\x08 \x03(\x0b\x32\x19.google.protobuf.Duration\"\xba\x02\n\x0eTimestampRules\x12\x10\n\x08required\x18\x01 \x01(\x08\x12)\n\x05\x63onst\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x02lt\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x03lte\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x02gt\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x03gte\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06lt_now\x18\x07 \x01(\x08\x12\x0e\n\x06gt_now\x18\x08 \x01(\x08\x12)\n\x06within\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration*F\n\nKnownRegex\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x14\n\x10HTTP_HEADER_NAME\x10\x01\x12\x15\n\x11HTTP_HEADER_VALUE\x10\x02:2\n\x08\x64isabled\x12\x1f.google.protobuf.MessageOptions\x18\xaf\x08 \x01(\x08:1\n\x07ignored\x12\x1f.google.protobuf.MessageOptions\x18\xb0\x08 \x01(\x08:0\n\x08required\x12\x1d.google.protobuf.OneofOptions\x18\xaf\x08 \x01(\x08:C\n\x05rules\x12\x1d.google.protobuf.FieldOptions\x18\xaf\x08 \x01(\x0b\x32\x14.validate.FieldRulesBP\n\x1aio.envoyproxy.pgv.validateZ2github.com/envoyproxy/protoc-gen-validate/validate') , dependencies=[google_dot_protobuf_dot_descriptor__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) +_KNOWNREGEX = _descriptor.EnumDescriptor( + name='KnownRegex', + full_name='validate.KnownRegex', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HTTP_HEADER_NAME', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HTTP_HEADER_VALUE', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=4541, + serialized_end=4611, +) +_sym_db.RegisterEnumDescriptor(_KNOWNREGEX) -DISABLED_FIELD_NUMBER = 919191 +KnownRegex = enum_type_wrapper.EnumTypeWrapper(_KNOWNREGEX) +UNKNOWN = 0 +HTTP_HEADER_NAME = 1 +HTTP_HEADER_VALUE = 2 + +DISABLED_FIELD_NUMBER = 1071 disabled = _descriptor.FieldDescriptor( name='disabled', full_name='validate.disabled', index=0, - number=919191, type=8, cpp_type=7, label=1, + number=1071, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=True, extension_scope=None, + serialized_options=None, file=DESCRIPTOR) +IGNORED_FIELD_NUMBER = 1072 +ignored = _descriptor.FieldDescriptor( + name='ignored', full_name='validate.ignored', index=1, + number=1072, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=True, extension_scope=None, serialized_options=None, file=DESCRIPTOR) -REQUIRED_FIELD_NUMBER = 919191 +REQUIRED_FIELD_NUMBER = 1071 required = _descriptor.FieldDescriptor( - name='required', full_name='validate.required', index=1, - number=919191, type=8, cpp_type=7, label=1, + name='required', full_name='validate.required', index=2, + number=1071, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=True, extension_scope=None, serialized_options=None, file=DESCRIPTOR) -RULES_FIELD_NUMBER = 919191 +RULES_FIELD_NUMBER = 1071 rules = _descriptor.FieldDescriptor( - name='rules', full_name='validate.rules', index=2, - number=919191, type=11, cpp_type=10, label=1, + name='rules', full_name='validate.rules', index=3, + number=1071, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=True, extension_scope=None, @@ -61,124 +100,124 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='float', full_name='validate.FieldRules.float', index=0, + name='message', full_name='validate.FieldRules.message', index=0, + number=17, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='float', full_name='validate.FieldRules.float', index=1, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='double', full_name='validate.FieldRules.double', index=1, + name='double', full_name='validate.FieldRules.double', index=2, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='int32', full_name='validate.FieldRules.int32', index=2, + name='int32', full_name='validate.FieldRules.int32', index=3, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='int64', full_name='validate.FieldRules.int64', index=3, + name='int64', full_name='validate.FieldRules.int64', index=4, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='uint32', full_name='validate.FieldRules.uint32', index=4, + name='uint32', full_name='validate.FieldRules.uint32', index=5, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='uint64', full_name='validate.FieldRules.uint64', index=5, + name='uint64', full_name='validate.FieldRules.uint64', index=6, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='sint32', full_name='validate.FieldRules.sint32', index=6, + name='sint32', full_name='validate.FieldRules.sint32', index=7, number=7, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='sint64', full_name='validate.FieldRules.sint64', index=7, + name='sint64', full_name='validate.FieldRules.sint64', index=8, number=8, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='fixed32', full_name='validate.FieldRules.fixed32', index=8, + name='fixed32', full_name='validate.FieldRules.fixed32', index=9, number=9, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='fixed64', full_name='validate.FieldRules.fixed64', index=9, + name='fixed64', full_name='validate.FieldRules.fixed64', index=10, number=10, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='sfixed32', full_name='validate.FieldRules.sfixed32', index=10, + name='sfixed32', full_name='validate.FieldRules.sfixed32', index=11, number=11, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='sfixed64', full_name='validate.FieldRules.sfixed64', index=11, + name='sfixed64', full_name='validate.FieldRules.sfixed64', index=12, number=12, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='bool', full_name='validate.FieldRules.bool', index=12, + name='bool', full_name='validate.FieldRules.bool', index=13, number=13, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='string', full_name='validate.FieldRules.string', index=13, + name='string', full_name='validate.FieldRules.string', index=14, number=14, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='bytes', full_name='validate.FieldRules.bytes', index=14, + name='bytes', full_name='validate.FieldRules.bytes', index=15, number=15, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='enum', full_name='validate.FieldRules.enum', index=15, + name='enum', full_name='validate.FieldRules.enum', index=16, number=16, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='message', full_name='validate.FieldRules.message', index=16, - number=17, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='repeated', full_name='validate.FieldRules.repeated', index=17, number=18, type=11, cpp_type=10, label=1, @@ -229,8 +268,8 @@ name='type', full_name='validate.FieldRules.type', index=0, containing_type=None, fields=[]), ], - serialized_start=144, - serialized_end=1066, + serialized_start=137, + serialized_end=1057, ) @@ -290,6 +329,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.FloatRules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -302,8 +348,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1068, - serialized_end=1173, + serialized_start=1059, + serialized_end=1186, ) @@ -363,6 +409,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.DoubleRules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -375,8 +428,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1175, - serialized_end=1281, + serialized_start=1189, + serialized_end=1317, ) @@ -436,6 +489,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.Int32Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -448,8 +508,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1283, - serialized_end=1388, + serialized_start=1319, + serialized_end=1446, ) @@ -509,6 +569,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.Int64Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -521,8 +588,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1390, - serialized_end=1495, + serialized_start=1448, + serialized_end=1575, ) @@ -582,6 +649,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.UInt32Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -594,8 +668,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1497, - serialized_end=1603, + serialized_start=1578, + serialized_end=1706, ) @@ -655,6 +729,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.UInt64Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -667,8 +748,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1605, - serialized_end=1711, + serialized_start=1709, + serialized_end=1837, ) @@ -728,6 +809,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.SInt32Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -740,8 +828,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1713, - serialized_end=1819, + serialized_start=1840, + serialized_end=1968, ) @@ -801,6 +889,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.SInt64Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -813,8 +908,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1821, - serialized_end=1927, + serialized_start=1971, + serialized_end=2099, ) @@ -874,6 +969,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.Fixed32Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -886,8 +988,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1929, - serialized_end=2036, + serialized_start=2102, + serialized_end=2231, ) @@ -947,6 +1049,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.Fixed64Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -959,8 +1068,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2038, - serialized_end=2145, + serialized_start=2234, + serialized_end=2363, ) @@ -1020,6 +1129,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.SFixed32Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -1032,8 +1148,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2147, - serialized_end=2255, + serialized_start=2366, + serialized_end=2496, ) @@ -1093,6 +1209,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.SFixed64Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -1105,8 +1228,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2257, - serialized_end=2365, + serialized_start=2499, + serialized_end=2629, ) @@ -1136,8 +1259,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2367, - serialized_end=2393, + serialized_start=2631, + serialized_end=2657, ) @@ -1156,124 +1279,180 @@ is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='min_len', full_name='validate.StringRules.min_len', index=1, + name='len', full_name='validate.StringRules.len', index=1, + number=19, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='min_len', full_name='validate.StringRules.min_len', index=2, number=2, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='max_len', full_name='validate.StringRules.max_len', index=2, + name='max_len', full_name='validate.StringRules.max_len', index=3, number=3, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='min_bytes', full_name='validate.StringRules.min_bytes', index=3, + name='len_bytes', full_name='validate.StringRules.len_bytes', index=4, + number=20, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='min_bytes', full_name='validate.StringRules.min_bytes', index=5, number=4, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='max_bytes', full_name='validate.StringRules.max_bytes', index=4, + name='max_bytes', full_name='validate.StringRules.max_bytes', index=6, number=5, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='pattern', full_name='validate.StringRules.pattern', index=5, + name='pattern', full_name='validate.StringRules.pattern', index=7, number=6, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='prefix', full_name='validate.StringRules.prefix', index=6, + name='prefix', full_name='validate.StringRules.prefix', index=8, number=7, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='suffix', full_name='validate.StringRules.suffix', index=7, + name='suffix', full_name='validate.StringRules.suffix', index=9, number=8, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='contains', full_name='validate.StringRules.contains', index=8, + name='contains', full_name='validate.StringRules.contains', index=10, number=9, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='in', full_name='validate.StringRules.in', index=9, + name='not_contains', full_name='validate.StringRules.not_contains', index=11, + number=23, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.StringRules.in', index=12, number=10, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='not_in', full_name='validate.StringRules.not_in', index=10, + name='not_in', full_name='validate.StringRules.not_in', index=13, number=11, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='email', full_name='validate.StringRules.email', index=11, + name='email', full_name='validate.StringRules.email', index=14, number=12, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='hostname', full_name='validate.StringRules.hostname', index=12, + name='hostname', full_name='validate.StringRules.hostname', index=15, number=13, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ip', full_name='validate.StringRules.ip', index=13, + name='ip', full_name='validate.StringRules.ip', index=16, number=14, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ipv4', full_name='validate.StringRules.ipv4', index=14, + name='ipv4', full_name='validate.StringRules.ipv4', index=17, number=15, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ipv6', full_name='validate.StringRules.ipv6', index=15, + name='ipv6', full_name='validate.StringRules.ipv6', index=18, number=16, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='uri', full_name='validate.StringRules.uri', index=16, + name='uri', full_name='validate.StringRules.uri', index=19, number=17, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='uri_ref', full_name='validate.StringRules.uri_ref', index=17, + name='uri_ref', full_name='validate.StringRules.uri_ref', index=20, number=18, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='address', full_name='validate.StringRules.address', index=21, + number=21, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='uuid', full_name='validate.StringRules.uuid', index=22, + number=22, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='well_known_regex', full_name='validate.StringRules.well_known_regex', index=23, + number=24, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='strict', full_name='validate.StringRules.strict', index=24, + number=25, type=8, cpp_type=7, label=1, + has_default_value=True, default_value=True, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.StringRules.ignore_empty', index=25, + number=26, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -1289,8 +1468,8 @@ name='well_known', full_name='validate.StringRules.well_known', index=0, containing_type=None, fields=[]), ], - serialized_start=2396, - serialized_end=2722, + serialized_start=2660, + serialized_end=3169, ) @@ -1309,82 +1488,96 @@ is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='min_len', full_name='validate.BytesRules.min_len', index=1, + name='len', full_name='validate.BytesRules.len', index=1, + number=13, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='min_len', full_name='validate.BytesRules.min_len', index=2, number=2, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='max_len', full_name='validate.BytesRules.max_len', index=2, + name='max_len', full_name='validate.BytesRules.max_len', index=3, number=3, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='pattern', full_name='validate.BytesRules.pattern', index=3, + name='pattern', full_name='validate.BytesRules.pattern', index=4, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='prefix', full_name='validate.BytesRules.prefix', index=4, + name='prefix', full_name='validate.BytesRules.prefix', index=5, number=5, type=12, cpp_type=9, label=1, has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='suffix', full_name='validate.BytesRules.suffix', index=5, + name='suffix', full_name='validate.BytesRules.suffix', index=6, number=6, type=12, cpp_type=9, label=1, has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='contains', full_name='validate.BytesRules.contains', index=6, + name='contains', full_name='validate.BytesRules.contains', index=7, number=7, type=12, cpp_type=9, label=1, has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='in', full_name='validate.BytesRules.in', index=7, + name='in', full_name='validate.BytesRules.in', index=8, number=8, type=12, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='not_in', full_name='validate.BytesRules.not_in', index=8, + name='not_in', full_name='validate.BytesRules.not_in', index=9, number=9, type=12, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ip', full_name='validate.BytesRules.ip', index=9, + name='ip', full_name='validate.BytesRules.ip', index=10, number=10, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ipv4', full_name='validate.BytesRules.ipv4', index=10, + name='ipv4', full_name='validate.BytesRules.ipv4', index=11, number=11, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='ipv6', full_name='validate.BytesRules.ipv6', index=11, + name='ipv6', full_name='validate.BytesRules.ipv6', index=12, number=12, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.BytesRules.ignore_empty', index=13, + number=14, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -1400,8 +1593,8 @@ name='well_known', full_name='validate.BytesRules.well_known', index=0, containing_type=None, fields=[]), ], - serialized_start=2725, - serialized_end=2941, + serialized_start=3172, + serialized_end=3423, ) @@ -1452,8 +1645,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2943, - serialized_end=3019, + serialized_start=3425, + serialized_end=3501, ) @@ -1490,8 +1683,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3021, - serialized_end=3067, + serialized_start=3503, + serialized_end=3549, ) @@ -1530,6 +1723,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.RepeatedRules.ignore_empty', index=4, + number=5, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -1542,8 +1742,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3069, - serialized_end=3175, + serialized_start=3552, + serialized_end=3680, ) @@ -1589,6 +1789,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.MapRules.ignore_empty', index=5, + number=6, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -1601,8 +1808,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3178, - serialized_end=3319, + serialized_start=3683, + serialized_end=3846, ) @@ -1646,8 +1853,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3321, - serialized_end=3377, + serialized_start=3848, + serialized_end=3904, ) @@ -1726,8 +1933,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3380, - serialized_end=3695, + serialized_start=3907, + serialized_end=4222, ) @@ -1813,10 +2020,11 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3698, - serialized_end=4012, + serialized_start=4225, + serialized_end=4539, ) +_FIELDRULES.fields_by_name['message'].message_type = _MESSAGERULES _FIELDRULES.fields_by_name['float'].message_type = _FLOATRULES _FIELDRULES.fields_by_name['double'].message_type = _DOUBLERULES _FIELDRULES.fields_by_name['int32'].message_type = _INT32RULES @@ -1833,7 +2041,6 @@ _FIELDRULES.fields_by_name['string'].message_type = _STRINGRULES _FIELDRULES.fields_by_name['bytes'].message_type = _BYTESRULES _FIELDRULES.fields_by_name['enum'].message_type = _ENUMRULES -_FIELDRULES.fields_by_name['message'].message_type = _MESSAGERULES _FIELDRULES.fields_by_name['repeated'].message_type = _REPEATEDRULES _FIELDRULES.fields_by_name['map'].message_type = _MAPRULES _FIELDRULES.fields_by_name['any'].message_type = _ANYRULES @@ -1887,9 +2094,6 @@ _FIELDRULES.oneofs_by_name['type'].fields.append( _FIELDRULES.fields_by_name['enum']) _FIELDRULES.fields_by_name['enum'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] -_FIELDRULES.oneofs_by_name['type'].fields.append( - _FIELDRULES.fields_by_name['message']) -_FIELDRULES.fields_by_name['message'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] _FIELDRULES.oneofs_by_name['type'].fields.append( _FIELDRULES.fields_by_name['repeated']) _FIELDRULES.fields_by_name['repeated'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] @@ -1905,6 +2109,7 @@ _FIELDRULES.oneofs_by_name['type'].fields.append( _FIELDRULES.fields_by_name['timestamp']) _FIELDRULES.fields_by_name['timestamp'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_STRINGRULES.fields_by_name['well_known_regex'].enum_type = _KNOWNREGEX _STRINGRULES.oneofs_by_name['well_known'].fields.append( _STRINGRULES.fields_by_name['email']) _STRINGRULES.fields_by_name['email'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] @@ -1926,6 +2131,15 @@ _STRINGRULES.oneofs_by_name['well_known'].fields.append( _STRINGRULES.fields_by_name['uri_ref']) _STRINGRULES.fields_by_name['uri_ref'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['address']) +_STRINGRULES.fields_by_name['address'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['uuid']) +_STRINGRULES.fields_by_name['uuid'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['well_known_regex']) +_STRINGRULES.fields_by_name['well_known_regex'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] _BYTESRULES.oneofs_by_name['well_known'].fields.append( _BYTESRULES.fields_by_name['ip']) _BYTESRULES.fields_by_name['ip'].containing_oneof = _BYTESRULES.oneofs_by_name['well_known'] @@ -1974,173 +2188,176 @@ DESCRIPTOR.message_types_by_name['AnyRules'] = _ANYRULES DESCRIPTOR.message_types_by_name['DurationRules'] = _DURATIONRULES DESCRIPTOR.message_types_by_name['TimestampRules'] = _TIMESTAMPRULES +DESCRIPTOR.enum_types_by_name['KnownRegex'] = _KNOWNREGEX DESCRIPTOR.extensions_by_name['disabled'] = disabled +DESCRIPTOR.extensions_by_name['ignored'] = ignored DESCRIPTOR.extensions_by_name['required'] = required DESCRIPTOR.extensions_by_name['rules'] = rules _sym_db.RegisterFileDescriptor(DESCRIPTOR) FieldRules = _reflection.GeneratedProtocolMessageType('FieldRules', (_message.Message,), dict( DESCRIPTOR = _FIELDRULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.FieldRules) )) _sym_db.RegisterMessage(FieldRules) FloatRules = _reflection.GeneratedProtocolMessageType('FloatRules', (_message.Message,), dict( DESCRIPTOR = _FLOATRULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.FloatRules) )) _sym_db.RegisterMessage(FloatRules) DoubleRules = _reflection.GeneratedProtocolMessageType('DoubleRules', (_message.Message,), dict( DESCRIPTOR = _DOUBLERULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.DoubleRules) )) _sym_db.RegisterMessage(DoubleRules) Int32Rules = _reflection.GeneratedProtocolMessageType('Int32Rules', (_message.Message,), dict( DESCRIPTOR = _INT32RULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.Int32Rules) )) _sym_db.RegisterMessage(Int32Rules) Int64Rules = _reflection.GeneratedProtocolMessageType('Int64Rules', (_message.Message,), dict( DESCRIPTOR = _INT64RULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.Int64Rules) )) _sym_db.RegisterMessage(Int64Rules) UInt32Rules = _reflection.GeneratedProtocolMessageType('UInt32Rules', (_message.Message,), dict( DESCRIPTOR = _UINT32RULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.UInt32Rules) )) _sym_db.RegisterMessage(UInt32Rules) UInt64Rules = _reflection.GeneratedProtocolMessageType('UInt64Rules', (_message.Message,), dict( DESCRIPTOR = _UINT64RULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.UInt64Rules) )) _sym_db.RegisterMessage(UInt64Rules) SInt32Rules = _reflection.GeneratedProtocolMessageType('SInt32Rules', (_message.Message,), dict( DESCRIPTOR = _SINT32RULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.SInt32Rules) )) _sym_db.RegisterMessage(SInt32Rules) SInt64Rules = _reflection.GeneratedProtocolMessageType('SInt64Rules', (_message.Message,), dict( DESCRIPTOR = _SINT64RULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.SInt64Rules) )) _sym_db.RegisterMessage(SInt64Rules) Fixed32Rules = _reflection.GeneratedProtocolMessageType('Fixed32Rules', (_message.Message,), dict( DESCRIPTOR = _FIXED32RULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.Fixed32Rules) )) _sym_db.RegisterMessage(Fixed32Rules) Fixed64Rules = _reflection.GeneratedProtocolMessageType('Fixed64Rules', (_message.Message,), dict( DESCRIPTOR = _FIXED64RULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.Fixed64Rules) )) _sym_db.RegisterMessage(Fixed64Rules) SFixed32Rules = _reflection.GeneratedProtocolMessageType('SFixed32Rules', (_message.Message,), dict( DESCRIPTOR = _SFIXED32RULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.SFixed32Rules) )) _sym_db.RegisterMessage(SFixed32Rules) SFixed64Rules = _reflection.GeneratedProtocolMessageType('SFixed64Rules', (_message.Message,), dict( DESCRIPTOR = _SFIXED64RULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.SFixed64Rules) )) _sym_db.RegisterMessage(SFixed64Rules) BoolRules = _reflection.GeneratedProtocolMessageType('BoolRules', (_message.Message,), dict( DESCRIPTOR = _BOOLRULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.BoolRules) )) _sym_db.RegisterMessage(BoolRules) StringRules = _reflection.GeneratedProtocolMessageType('StringRules', (_message.Message,), dict( DESCRIPTOR = _STRINGRULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.StringRules) )) _sym_db.RegisterMessage(StringRules) BytesRules = _reflection.GeneratedProtocolMessageType('BytesRules', (_message.Message,), dict( DESCRIPTOR = _BYTESRULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.BytesRules) )) _sym_db.RegisterMessage(BytesRules) EnumRules = _reflection.GeneratedProtocolMessageType('EnumRules', (_message.Message,), dict( DESCRIPTOR = _ENUMRULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.EnumRules) )) _sym_db.RegisterMessage(EnumRules) MessageRules = _reflection.GeneratedProtocolMessageType('MessageRules', (_message.Message,), dict( DESCRIPTOR = _MESSAGERULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.MessageRules) )) _sym_db.RegisterMessage(MessageRules) RepeatedRules = _reflection.GeneratedProtocolMessageType('RepeatedRules', (_message.Message,), dict( DESCRIPTOR = _REPEATEDRULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.RepeatedRules) )) _sym_db.RegisterMessage(RepeatedRules) MapRules = _reflection.GeneratedProtocolMessageType('MapRules', (_message.Message,), dict( DESCRIPTOR = _MAPRULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.MapRules) )) _sym_db.RegisterMessage(MapRules) AnyRules = _reflection.GeneratedProtocolMessageType('AnyRules', (_message.Message,), dict( DESCRIPTOR = _ANYRULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.AnyRules) )) _sym_db.RegisterMessage(AnyRules) DurationRules = _reflection.GeneratedProtocolMessageType('DurationRules', (_message.Message,), dict( DESCRIPTOR = _DURATIONRULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.DurationRules) )) _sym_db.RegisterMessage(DurationRules) TimestampRules = _reflection.GeneratedProtocolMessageType('TimestampRules', (_message.Message,), dict( DESCRIPTOR = _TIMESTAMPRULES, - __module__ = 'pb.ext.validate.validate_pb2' + __module__ = 'validate.validate_pb2' # @@protoc_insertion_point(class_scope:validate.TimestampRules) )) _sym_db.RegisterMessage(TimestampRules) google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(disabled) +google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(ignored) google_dot_protobuf_dot_descriptor__pb2.OneofOptions.RegisterExtension(required) rules.message_type = _FIELDRULES google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(rules) diff --git a/validate/validate_pb2.pyi b/validate/validate_pb2.pyi deleted file mode 100644 index 6f9873f9e..000000000 --- a/validate/validate_pb2.pyi +++ /dev/null @@ -1,661 +0,0 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -from google.protobuf.descriptor import ( - FieldDescriptor as google___protobuf___descriptor___FieldDescriptor, -) - -from google.protobuf.duration_pb2 import ( - Duration as google___protobuf___duration_pb2___Duration, -) - -from google.protobuf.internal.containers import ( - RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, - RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, -) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - -from google.protobuf.timestamp_pb2 import ( - Timestamp as google___protobuf___timestamp_pb2___Timestamp, -) - -from typing import ( - Iterable as typing___Iterable, - Optional as typing___Optional, - Text as typing___Text, -) - - -class FieldRules(google___protobuf___message___Message): - - @property - def float(self) -> FloatRules: ... - - @property - def double(self) -> DoubleRules: ... - - @property - def int32(self) -> Int32Rules: ... - - @property - def int64(self) -> Int64Rules: ... - - @property - def uint32(self) -> UInt32Rules: ... - - @property - def uint64(self) -> UInt64Rules: ... - - @property - def sint32(self) -> SInt32Rules: ... - - @property - def sint64(self) -> SInt64Rules: ... - - @property - def fixed32(self) -> Fixed32Rules: ... - - @property - def fixed64(self) -> Fixed64Rules: ... - - @property - def sfixed32(self) -> SFixed32Rules: ... - - @property - def sfixed64(self) -> SFixed64Rules: ... - - @property - def bool(self) -> BoolRules: ... - - @property - def string(self) -> StringRules: ... - - @property - def bytes(self) -> BytesRules: ... - - @property - def enum(self) -> EnumRules: ... - - @property - def message(self) -> MessageRules: ... - - @property - def repeated(self) -> RepeatedRules: ... - - @property - def map(self) -> MapRules: ... - - @property - def any(self) -> AnyRules: ... - - @property - def duration(self) -> DurationRules: ... - - @property - def timestamp(self) -> TimestampRules: ... - - def __init__(self, - float : typing___Optional[FloatRules] = None, - double : typing___Optional[DoubleRules] = None, - int32 : typing___Optional[Int32Rules] = None, - int64 : typing___Optional[Int64Rules] = None, - uint32 : typing___Optional[UInt32Rules] = None, - uint64 : typing___Optional[UInt64Rules] = None, - sint32 : typing___Optional[SInt32Rules] = None, - sint64 : typing___Optional[SInt64Rules] = None, - fixed32 : typing___Optional[Fixed32Rules] = None, - fixed64 : typing___Optional[Fixed64Rules] = None, - sfixed32 : typing___Optional[SFixed32Rules] = None, - sfixed64 : typing___Optional[SFixed64Rules] = None, - bool : typing___Optional[BoolRules] = None, - string : typing___Optional[StringRules] = None, - bytes : typing___Optional[BytesRules] = None, - enum : typing___Optional[EnumRules] = None, - message : typing___Optional[MessageRules] = None, - repeated : typing___Optional[RepeatedRules] = None, - map : typing___Optional[MapRules] = None, - any : typing___Optional[AnyRules] = None, - duration : typing___Optional[DurationRules] = None, - timestamp : typing___Optional[TimestampRules] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> FieldRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class FloatRules(google___protobuf___message___Message): - const = ... # type: float - lt = ... # type: float - lte = ... # type: float - gt = ... # type: float - gte = ... # type: float - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[float] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[float] - - def __init__(self, - const : typing___Optional[float] = None, - lt : typing___Optional[float] = None, - lte : typing___Optional[float] = None, - gt : typing___Optional[float] = None, - gte : typing___Optional[float] = None, - in : typing___Optional[typing___Iterable[float]] = None, - not_in : typing___Optional[typing___Iterable[float]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> FloatRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class DoubleRules(google___protobuf___message___Message): - const = ... # type: float - lt = ... # type: float - lte = ... # type: float - gt = ... # type: float - gte = ... # type: float - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[float] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[float] - - def __init__(self, - const : typing___Optional[float] = None, - lt : typing___Optional[float] = None, - lte : typing___Optional[float] = None, - gt : typing___Optional[float] = None, - gte : typing___Optional[float] = None, - in : typing___Optional[typing___Iterable[float]] = None, - not_in : typing___Optional[typing___Iterable[float]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> DoubleRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class Int32Rules(google___protobuf___message___Message): - const = ... # type: int - lt = ... # type: int - lte = ... # type: int - gt = ... # type: int - gte = ... # type: int - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - - def __init__(self, - const : typing___Optional[int] = None, - lt : typing___Optional[int] = None, - lte : typing___Optional[int] = None, - gt : typing___Optional[int] = None, - gte : typing___Optional[int] = None, - in : typing___Optional[typing___Iterable[int]] = None, - not_in : typing___Optional[typing___Iterable[int]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Int32Rules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class Int64Rules(google___protobuf___message___Message): - const = ... # type: int - lt = ... # type: int - lte = ... # type: int - gt = ... # type: int - gte = ... # type: int - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - - def __init__(self, - const : typing___Optional[int] = None, - lt : typing___Optional[int] = None, - lte : typing___Optional[int] = None, - gt : typing___Optional[int] = None, - gte : typing___Optional[int] = None, - in : typing___Optional[typing___Iterable[int]] = None, - not_in : typing___Optional[typing___Iterable[int]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Int64Rules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class UInt32Rules(google___protobuf___message___Message): - const = ... # type: int - lt = ... # type: int - lte = ... # type: int - gt = ... # type: int - gte = ... # type: int - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - - def __init__(self, - const : typing___Optional[int] = None, - lt : typing___Optional[int] = None, - lte : typing___Optional[int] = None, - gt : typing___Optional[int] = None, - gte : typing___Optional[int] = None, - in : typing___Optional[typing___Iterable[int]] = None, - not_in : typing___Optional[typing___Iterable[int]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> UInt32Rules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class UInt64Rules(google___protobuf___message___Message): - const = ... # type: int - lt = ... # type: int - lte = ... # type: int - gt = ... # type: int - gte = ... # type: int - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - - def __init__(self, - const : typing___Optional[int] = None, - lt : typing___Optional[int] = None, - lte : typing___Optional[int] = None, - gt : typing___Optional[int] = None, - gte : typing___Optional[int] = None, - in : typing___Optional[typing___Iterable[int]] = None, - not_in : typing___Optional[typing___Iterable[int]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> UInt64Rules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class SInt32Rules(google___protobuf___message___Message): - const = ... # type: int - lt = ... # type: int - lte = ... # type: int - gt = ... # type: int - gte = ... # type: int - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - - def __init__(self, - const : typing___Optional[int] = None, - lt : typing___Optional[int] = None, - lte : typing___Optional[int] = None, - gt : typing___Optional[int] = None, - gte : typing___Optional[int] = None, - in : typing___Optional[typing___Iterable[int]] = None, - not_in : typing___Optional[typing___Iterable[int]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> SInt32Rules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class SInt64Rules(google___protobuf___message___Message): - const = ... # type: int - lt = ... # type: int - lte = ... # type: int - gt = ... # type: int - gte = ... # type: int - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - - def __init__(self, - const : typing___Optional[int] = None, - lt : typing___Optional[int] = None, - lte : typing___Optional[int] = None, - gt : typing___Optional[int] = None, - gte : typing___Optional[int] = None, - in : typing___Optional[typing___Iterable[int]] = None, - not_in : typing___Optional[typing___Iterable[int]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> SInt64Rules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class Fixed32Rules(google___protobuf___message___Message): - const = ... # type: int - lt = ... # type: int - lte = ... # type: int - gt = ... # type: int - gte = ... # type: int - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - - def __init__(self, - const : typing___Optional[int] = None, - lt : typing___Optional[int] = None, - lte : typing___Optional[int] = None, - gt : typing___Optional[int] = None, - gte : typing___Optional[int] = None, - in : typing___Optional[typing___Iterable[int]] = None, - not_in : typing___Optional[typing___Iterable[int]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Fixed32Rules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class Fixed64Rules(google___protobuf___message___Message): - const = ... # type: int - lt = ... # type: int - lte = ... # type: int - gt = ... # type: int - gte = ... # type: int - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - - def __init__(self, - const : typing___Optional[int] = None, - lt : typing___Optional[int] = None, - lte : typing___Optional[int] = None, - gt : typing___Optional[int] = None, - gte : typing___Optional[int] = None, - in : typing___Optional[typing___Iterable[int]] = None, - not_in : typing___Optional[typing___Iterable[int]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> Fixed64Rules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class SFixed32Rules(google___protobuf___message___Message): - const = ... # type: int - lt = ... # type: int - lte = ... # type: int - gt = ... # type: int - gte = ... # type: int - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - - def __init__(self, - const : typing___Optional[int] = None, - lt : typing___Optional[int] = None, - lte : typing___Optional[int] = None, - gt : typing___Optional[int] = None, - gte : typing___Optional[int] = None, - in : typing___Optional[typing___Iterable[int]] = None, - not_in : typing___Optional[typing___Iterable[int]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> SFixed32Rules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class SFixed64Rules(google___protobuf___message___Message): - const = ... # type: int - lt = ... # type: int - lte = ... # type: int - gt = ... # type: int - gte = ... # type: int - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - - def __init__(self, - const : typing___Optional[int] = None, - lt : typing___Optional[int] = None, - lte : typing___Optional[int] = None, - gt : typing___Optional[int] = None, - gte : typing___Optional[int] = None, - in : typing___Optional[typing___Iterable[int]] = None, - not_in : typing___Optional[typing___Iterable[int]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> SFixed64Rules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class BoolRules(google___protobuf___message___Message): - const = ... # type: bool - - def __init__(self, - const : typing___Optional[bool] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> BoolRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class StringRules(google___protobuf___message___Message): - const = ... # type: typing___Text - min_len = ... # type: int - max_len = ... # type: int - min_bytes = ... # type: int - max_bytes = ... # type: int - pattern = ... # type: typing___Text - prefix = ... # type: typing___Text - suffix = ... # type: typing___Text - contains = ... # type: typing___Text - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] - email = ... # type: bool - hostname = ... # type: bool - ip = ... # type: bool - ipv4 = ... # type: bool - ipv6 = ... # type: bool - uri = ... # type: bool - uri_ref = ... # type: bool - - def __init__(self, - const : typing___Optional[typing___Text] = None, - min_len : typing___Optional[int] = None, - max_len : typing___Optional[int] = None, - min_bytes : typing___Optional[int] = None, - max_bytes : typing___Optional[int] = None, - pattern : typing___Optional[typing___Text] = None, - prefix : typing___Optional[typing___Text] = None, - suffix : typing___Optional[typing___Text] = None, - contains : typing___Optional[typing___Text] = None, - in : typing___Optional[typing___Iterable[typing___Text]] = None, - not_in : typing___Optional[typing___Iterable[typing___Text]] = None, - email : typing___Optional[bool] = None, - hostname : typing___Optional[bool] = None, - ip : typing___Optional[bool] = None, - ipv4 : typing___Optional[bool] = None, - ipv6 : typing___Optional[bool] = None, - uri : typing___Optional[bool] = None, - uri_ref : typing___Optional[bool] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> StringRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class BytesRules(google___protobuf___message___Message): - const = ... # type: bytes - min_len = ... # type: int - max_len = ... # type: int - pattern = ... # type: typing___Text - prefix = ... # type: bytes - suffix = ... # type: bytes - contains = ... # type: bytes - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[bytes] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[bytes] - ip = ... # type: bool - ipv4 = ... # type: bool - ipv6 = ... # type: bool - - def __init__(self, - const : typing___Optional[bytes] = None, - min_len : typing___Optional[int] = None, - max_len : typing___Optional[int] = None, - pattern : typing___Optional[typing___Text] = None, - prefix : typing___Optional[bytes] = None, - suffix : typing___Optional[bytes] = None, - contains : typing___Optional[bytes] = None, - in : typing___Optional[typing___Iterable[bytes]] = None, - not_in : typing___Optional[typing___Iterable[bytes]] = None, - ip : typing___Optional[bool] = None, - ipv4 : typing___Optional[bool] = None, - ipv6 : typing___Optional[bool] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> BytesRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class EnumRules(google___protobuf___message___Message): - const = ... # type: int - defined_only = ... # type: bool - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] - - def __init__(self, - const : typing___Optional[int] = None, - defined_only : typing___Optional[bool] = None, - in : typing___Optional[typing___Iterable[int]] = None, - not_in : typing___Optional[typing___Iterable[int]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> EnumRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class MessageRules(google___protobuf___message___Message): - skip = ... # type: bool - required = ... # type: bool - - def __init__(self, - skip : typing___Optional[bool] = None, - required : typing___Optional[bool] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> MessageRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class RepeatedRules(google___protobuf___message___Message): - min_items = ... # type: int - max_items = ... # type: int - unique = ... # type: bool - - @property - def items(self) -> FieldRules: ... - - def __init__(self, - min_items : typing___Optional[int] = None, - max_items : typing___Optional[int] = None, - unique : typing___Optional[bool] = None, - items : typing___Optional[FieldRules] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> RepeatedRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class MapRules(google___protobuf___message___Message): - min_pairs = ... # type: int - max_pairs = ... # type: int - no_sparse = ... # type: bool - - @property - def keys(self) -> FieldRules: ... - - @property - def values(self) -> FieldRules: ... - - def __init__(self, - min_pairs : typing___Optional[int] = None, - max_pairs : typing___Optional[int] = None, - no_sparse : typing___Optional[bool] = None, - keys : typing___Optional[FieldRules] = None, - values : typing___Optional[FieldRules] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> MapRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class AnyRules(google___protobuf___message___Message): - required = ... # type: bool - in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] - not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] - - def __init__(self, - required : typing___Optional[bool] = None, - in : typing___Optional[typing___Iterable[typing___Text]] = None, - not_in : typing___Optional[typing___Iterable[typing___Text]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> AnyRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class DurationRules(google___protobuf___message___Message): - required = ... # type: bool - - @property - def const(self) -> google___protobuf___duration_pb2___Duration: ... - - @property - def lt(self) -> google___protobuf___duration_pb2___Duration: ... - - @property - def lte(self) -> google___protobuf___duration_pb2___Duration: ... - - @property - def gt(self) -> google___protobuf___duration_pb2___Duration: ... - - @property - def gte(self) -> google___protobuf___duration_pb2___Duration: ... - - @property - def in(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___duration_pb2___Duration]: ... - - @property - def not_in(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___duration_pb2___Duration]: ... - - def __init__(self, - required : typing___Optional[bool] = None, - const : typing___Optional[google___protobuf___duration_pb2___Duration] = None, - lt : typing___Optional[google___protobuf___duration_pb2___Duration] = None, - lte : typing___Optional[google___protobuf___duration_pb2___Duration] = None, - gt : typing___Optional[google___protobuf___duration_pb2___Duration] = None, - gte : typing___Optional[google___protobuf___duration_pb2___Duration] = None, - in : typing___Optional[typing___Iterable[google___protobuf___duration_pb2___Duration]] = None, - not_in : typing___Optional[typing___Iterable[google___protobuf___duration_pb2___Duration]] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> DurationRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -class TimestampRules(google___protobuf___message___Message): - required = ... # type: bool - lt_now = ... # type: bool - gt_now = ... # type: bool - - @property - def const(self) -> google___protobuf___timestamp_pb2___Timestamp: ... - - @property - def lt(self) -> google___protobuf___timestamp_pb2___Timestamp: ... - - @property - def lte(self) -> google___protobuf___timestamp_pb2___Timestamp: ... - - @property - def gt(self) -> google___protobuf___timestamp_pb2___Timestamp: ... - - @property - def gte(self) -> google___protobuf___timestamp_pb2___Timestamp: ... - - @property - def within(self) -> google___protobuf___duration_pb2___Duration: ... - - def __init__(self, - required : typing___Optional[bool] = None, - const : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, - lt : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, - lte : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, - gt : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, - gte : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, - lt_now : typing___Optional[bool] = None, - gt_now : typing___Optional[bool] = None, - within : typing___Optional[google___protobuf___duration_pb2___Duration] = None, - ) -> None: ... - @classmethod - def FromString(cls, s: bytes) -> TimestampRules: ... - def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... - -disabled = ... # type: google___protobuf___descriptor___FieldDescriptor - -required = ... # type: google___protobuf___descriptor___FieldDescriptor - -rules = ... # type: google___protobuf___descriptor___FieldDescriptor diff --git a/validate/validate_pb2_grpc.py b/validate/validate_pb2_grpc.py deleted file mode 100644 index a89435267..000000000 --- a/validate/validate_pb2_grpc.py +++ /dev/null @@ -1,3 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc -