@superblocksteam/types 0.1859.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/agent/v1/index.d.ts +2 -0
- package/dist/src/agent/v1/index.d.ts.map +1 -0
- package/dist/src/agent/v1/index.js +18 -0
- package/dist/src/agent/v1/index.js.map +1 -0
- package/dist/src/agent/v1/service_pb.d.ts +398 -0
- package/dist/src/agent/v1/service_pb.d.ts.map +1 -0
- package/dist/src/agent/v1/service_pb.js +608 -0
- package/dist/src/agent/v1/service_pb.js.map +1 -0
- package/dist/src/ai/v1/ai_pb.d.ts +592 -0
- package/dist/src/ai/v1/ai_pb.d.ts.map +1 -0
- package/dist/src/ai/v1/ai_pb.js +775 -0
- package/dist/src/ai/v1/ai_pb.js.map +1 -0
- package/dist/src/ai/v1/metadata_pb.d.ts +101 -0
- package/dist/src/ai/v1/metadata_pb.d.ts.map +1 -0
- package/dist/src/ai/v1/metadata_pb.js +57 -0
- package/dist/src/ai/v1/metadata_pb.js.map +1 -0
- package/dist/src/ai/v1/service_pb.d.ts +79 -0
- package/dist/src/ai/v1/service_pb.d.ts.map +1 -0
- package/dist/src/ai/v1/service_pb.js +132 -0
- package/dist/src/ai/v1/service_pb.js.map +1 -0
- package/dist/src/ai/v1/vector_pb.d.ts +32 -0
- package/dist/src/ai/v1/vector_pb.d.ts.map +1 -0
- package/dist/src/ai/v1/vector_pb.js +55 -0
- package/dist/src/ai/v1/vector_pb.js.map +1 -0
- package/dist/src/api/v1/api_pb.d.ts +1540 -0
- package/dist/src/api/v1/api_pb.d.ts.map +1 -0
- package/dist/src/api/v1/api_pb.js +1657 -0
- package/dist/src/api/v1/api_pb.js.map +1 -0
- package/dist/src/api/v1/blocks_pb.d.ts +109 -0
- package/dist/src/api/v1/blocks_pb.d.ts.map +1 -0
- package/dist/src/api/v1/blocks_pb.js +162 -0
- package/dist/src/api/v1/blocks_pb.js.map +1 -0
- package/dist/src/api/v1/event_pb.d.ts +431 -0
- package/dist/src/api/v1/event_pb.d.ts.map +1 -0
- package/dist/src/api/v1/event_pb.js +600 -0
- package/dist/src/api/v1/event_pb.js.map +1 -0
- package/dist/src/api/v1/index.d.ts +7 -0
- package/dist/src/api/v1/index.d.ts.map +1 -0
- package/dist/src/api/v1/index.js +23 -0
- package/dist/src/api/v1/index.js.map +1 -0
- package/dist/src/api/v1/integration_auth_service_pb.d.ts +195 -0
- package/dist/src/api/v1/integration_auth_service_pb.d.ts.map +1 -0
- package/dist/src/api/v1/integration_auth_service_pb.js +315 -0
- package/dist/src/api/v1/integration_auth_service_pb.js.map +1 -0
- package/dist/src/api/v1/requests_pb.d.ts +525 -0
- package/dist/src/api/v1/requests_pb.d.ts.map +1 -0
- package/dist/src/api/v1/requests_pb.js +693 -0
- package/dist/src/api/v1/requests_pb.js.map +1 -0
- package/dist/src/api/v1/service_pb.d.ts +1391 -0
- package/dist/src/api/v1/service_pb.d.ts.map +1 -0
- package/dist/src/api/v1/service_pb.js +2002 -0
- package/dist/src/api/v1/service_pb.js.map +1 -0
- package/dist/src/auth/v1/auth_pb.d.ts +75 -0
- package/dist/src/auth/v1/auth_pb.d.ts.map +1 -0
- package/dist/src/auth/v1/auth_pb.js +118 -0
- package/dist/src/auth/v1/auth_pb.js.map +1 -0
- package/dist/src/buf/validate/expression_pb.d.ts +133 -0
- package/dist/src/buf/validate/expression_pb.d.ts.map +1 -0
- package/dist/src/buf/validate/expression_pb.js +195 -0
- package/dist/src/buf/validate/expression_pb.js.map +1 -0
- package/dist/src/buf/validate/priv/private_pb.d.ts +49 -0
- package/dist/src/buf/validate/priv/private_pb.d.ts.map +1 -0
- package/dist/src/buf/validate/priv/private_pb.js +94 -0
- package/dist/src/buf/validate/priv/private_pb.js.map +1 -0
- package/dist/src/buf/validate/validate_pb.d.ts +3681 -0
- package/dist/src/buf/validate/validate_pb.d.ts.map +1 -0
- package/dist/src/buf/validate/validate_pb.js +2437 -0
- package/dist/src/buf/validate/validate_pb.js.map +1 -0
- package/dist/src/cache/v1/cache_pb.d.ts +80 -0
- package/dist/src/cache/v1/cache_pb.d.ts.map +1 -0
- package/dist/src/cache/v1/cache_pb.js +127 -0
- package/dist/src/cache/v1/cache_pb.js.map +1 -0
- package/dist/src/common/v1/api_pb.d.ts +79 -0
- package/dist/src/common/v1/api_pb.d.ts.map +1 -0
- package/dist/src/common/v1/api_pb.js +138 -0
- package/dist/src/common/v1/api_pb.js.map +1 -0
- package/dist/src/common/v1/common_pb.d.ts +124 -0
- package/dist/src/common/v1/common_pb.d.ts.map +1 -0
- package/dist/src/common/v1/common_pb.js +189 -0
- package/dist/src/common/v1/common_pb.js.map +1 -0
- package/dist/src/common/v1/errors_pb.d.ts +85 -0
- package/dist/src/common/v1/errors_pb.d.ts.map +1 -0
- package/dist/src/common/v1/errors_pb.js +124 -0
- package/dist/src/common/v1/errors_pb.js.map +1 -0
- package/dist/src/common/v1/health_pb.d.ts +77 -0
- package/dist/src/common/v1/health_pb.d.ts.map +1 -0
- package/dist/src/common/v1/health_pb.js +121 -0
- package/dist/src/common/v1/health_pb.js.map +1 -0
- package/dist/src/common/v1/index.d.ts +6 -0
- package/dist/src/common/v1/index.d.ts.map +1 -0
- package/dist/src/common/v1/index.js +22 -0
- package/dist/src/common/v1/index.js.map +1 -0
- package/dist/src/common/v1/language_pb.d.ts +506 -0
- package/dist/src/common/v1/language_pb.d.ts.map +1 -0
- package/dist/src/common/v1/language_pb.js +643 -0
- package/dist/src/common/v1/language_pb.js.map +1 -0
- package/dist/src/common/v1/plugin_pb.d.ts +135 -0
- package/dist/src/common/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/common/v1/plugin_pb.js +206 -0
- package/dist/src/common/v1/plugin_pb.js.map +1 -0
- package/dist/src/common/v1/utils_pb.d.ts +20 -0
- package/dist/src/common/v1/utils_pb.d.ts.map +1 -0
- package/dist/src/common/v1/utils_pb.js +40 -0
- package/dist/src/common/v1/utils_pb.js.map +1 -0
- package/dist/src/event/v1/cloudevent_pb.d.ts +170 -0
- package/dist/src/event/v1/cloudevent_pb.d.ts.map +1 -0
- package/dist/src/event/v1/cloudevent_pb.js +124 -0
- package/dist/src/event/v1/cloudevent_pb.js.map +1 -0
- package/dist/src/event/v1/event_pb.d.ts +165 -0
- package/dist/src/event/v1/event_pb.d.ts.map +1 -0
- package/dist/src/event/v1/event_pb.js +232 -0
- package/dist/src/event/v1/event_pb.js.map +1 -0
- package/dist/src/event/v1/service_pb.d.ts +62 -0
- package/dist/src/event/v1/service_pb.d.ts.map +1 -0
- package/dist/src/event/v1/service_pb.js +112 -0
- package/dist/src/event/v1/service_pb.js.map +1 -0
- package/dist/src/event/v2/cloudevent_pb.d.ts +170 -0
- package/dist/src/event/v2/cloudevent_pb.d.ts.map +1 -0
- package/dist/src/event/v2/cloudevent_pb.js +124 -0
- package/dist/src/event/v2/cloudevent_pb.js.map +1 -0
- package/dist/src/google/api/http_pb.d.ts +454 -0
- package/dist/src/google/api/http_pb.d.ts.map +1 -0
- package/dist/src/google/api/http_pb.js +467 -0
- package/dist/src/google/api/http_pb.js.map +1 -0
- package/dist/src/index.d.ts +9 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +25 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/intake/v1/logs_pb.d.ts +20 -0
- package/dist/src/intake/v1/logs_pb.d.ts.map +1 -0
- package/dist/src/intake/v1/logs_pb.js +40 -0
- package/dist/src/intake/v1/logs_pb.js.map +1 -0
- package/dist/src/integration/v1/service_pb.d.ts +174 -0
- package/dist/src/integration/v1/service_pb.d.ts.map +1 -0
- package/dist/src/integration/v1/service_pb.js +274 -0
- package/dist/src/integration/v1/service_pb.js.map +1 -0
- package/dist/src/kafka/v1/index.d.ts +2 -0
- package/dist/src/kafka/v1/index.d.ts.map +1 -0
- package/dist/src/kafka/v1/index.js +28 -0
- package/dist/src/kafka/v1/index.js.map +1 -0
- package/dist/src/kafka/v1/kafka_pb.d.ts +66 -0
- package/dist/src/kafka/v1/kafka_pb.d.ts.map +1 -0
- package/dist/src/kafka/v1/kafka_pb.js +96 -0
- package/dist/src/kafka/v1/kafka_pb.js.map +1 -0
- package/dist/src/plugins/adls/v1/plugin_pb.d.ts +305 -0
- package/dist/src/plugins/adls/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/adls/v1/plugin_pb.js +435 -0
- package/dist/src/plugins/adls/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/athena/v1/plugin_pb.d.ts +91 -0
- package/dist/src/plugins/athena/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/athena/v1/plugin_pb.js +141 -0
- package/dist/src/plugins/athena/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/bigquery/v1/plugin_pb.d.ts +119 -0
- package/dist/src/plugins/bigquery/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/bigquery/v1/plugin_pb.js +193 -0
- package/dist/src/plugins/bigquery/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/cockroachdb/v1/plugin_pb.d.ts +110 -0
- package/dist/src/plugins/cockroachdb/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/cockroachdb/v1/plugin_pb.js +172 -0
- package/dist/src/plugins/cockroachdb/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/common/v1/auth_pb.d.ts +514 -0
- package/dist/src/plugins/common/v1/auth_pb.d.ts.map +1 -0
- package/dist/src/plugins/common/v1/auth_pb.js +711 -0
- package/dist/src/plugins/common/v1/auth_pb.js.map +1 -0
- package/dist/src/plugins/common/v1/metadata_pb.d.ts +96 -0
- package/dist/src/plugins/common/v1/metadata_pb.d.ts.map +1 -0
- package/dist/src/plugins/common/v1/metadata_pb.js +164 -0
- package/dist/src/plugins/common/v1/metadata_pb.js.map +1 -0
- package/dist/src/plugins/common/v1/plugin_pb.d.ts +294 -0
- package/dist/src/plugins/common/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/common/v1/plugin_pb.js +452 -0
- package/dist/src/plugins/common/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/cosmosdb/v1/plugin_pb.d.ts +373 -0
- package/dist/src/plugins/cosmosdb/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/cosmosdb/v1/plugin_pb.js +525 -0
- package/dist/src/plugins/cosmosdb/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/couchbase/v1/plugin_pb.d.ts +259 -0
- package/dist/src/plugins/couchbase/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/couchbase/v1/plugin_pb.js +395 -0
- package/dist/src/plugins/couchbase/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/custom/v1/plugin_pb.d.ts +32 -0
- package/dist/src/plugins/custom/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/custom/v1/plugin_pb.js +54 -0
- package/dist/src/plugins/custom/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/databricks/v1/plugin_pb.d.ts +117 -0
- package/dist/src/plugins/databricks/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/databricks/v1/plugin_pb.js +171 -0
- package/dist/src/plugins/databricks/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/dynamodb/v1/plugin_pb.d.ts +194 -0
- package/dist/src/plugins/dynamodb/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/dynamodb/v1/plugin_pb.js +316 -0
- package/dist/src/plugins/dynamodb/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/email/v1/plugin_pb.d.ts +65 -0
- package/dist/src/plugins/email/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/email/v1/plugin_pb.js +106 -0
- package/dist/src/plugins/email/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/gcs/v1/plugin_pb.d.ts +147 -0
- package/dist/src/plugins/gcs/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/gcs/v1/plugin_pb.js +228 -0
- package/dist/src/plugins/gcs/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/graphql/v1/plugin_pb.d.ts +70 -0
- package/dist/src/plugins/graphql/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/graphql/v1/plugin_pb.js +111 -0
- package/dist/src/plugins/graphql/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/gsheets/v1/plugin_pb.d.ts +123 -0
- package/dist/src/plugins/gsheets/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/gsheets/v1/plugin_pb.js +187 -0
- package/dist/src/plugins/gsheets/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/index.d.ts +19 -0
- package/dist/src/plugins/index.d.ts.map +1 -0
- package/dist/src/plugins/index.js +45 -0
- package/dist/src/plugins/index.js.map +1 -0
- package/dist/src/plugins/javascript/v1/plugin_pb.d.ts +41 -0
- package/dist/src/plugins/javascript/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/javascript/v1/plugin_pb.js +76 -0
- package/dist/src/plugins/javascript/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/kafka/v1/plugin_pb.d.ts +521 -0
- package/dist/src/plugins/kafka/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/kafka/v1/plugin_pb.js +788 -0
- package/dist/src/plugins/kafka/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/kinesis/v1/plugin_pb.d.ts +234 -0
- package/dist/src/plugins/kinesis/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/kinesis/v1/plugin_pb.js +351 -0
- package/dist/src/plugins/kinesis/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/mariadb/v1/plugin_pb.d.ts +110 -0
- package/dist/src/plugins/mariadb/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/mariadb/v1/plugin_pb.js +172 -0
- package/dist/src/plugins/mariadb/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/mongodb/v1/plugin_pb.d.ts +100 -0
- package/dist/src/plugins/mongodb/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/mongodb/v1/plugin_pb.js +149 -0
- package/dist/src/plugins/mongodb/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/mssql/v1/plugin_pb.d.ts +131 -0
- package/dist/src/plugins/mssql/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/mssql/v1/plugin_pb.js +208 -0
- package/dist/src/plugins/mssql/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/mysql/v1/plugin_pb.d.ts +131 -0
- package/dist/src/plugins/mysql/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/mysql/v1/plugin_pb.js +208 -0
- package/dist/src/plugins/mysql/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/ocr/v1/plugin_pb.d.ts +28 -0
- package/dist/src/plugins/ocr/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/ocr/v1/plugin_pb.js +50 -0
- package/dist/src/plugins/ocr/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/openai/v1/plugin_pb.d.ts +264 -0
- package/dist/src/plugins/openai/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/openai/v1/plugin_pb.js +373 -0
- package/dist/src/plugins/openai/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/oracledb/v1/plugin_pb.d.ts +86 -0
- package/dist/src/plugins/oracledb/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/oracledb/v1/plugin_pb.js +132 -0
- package/dist/src/plugins/oracledb/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/pinecone/v1/plugin_pb.d.ts +158 -0
- package/dist/src/plugins/pinecone/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/pinecone/v1/plugin_pb.js +218 -0
- package/dist/src/plugins/pinecone/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/postgresql/v1/plugin_pb.d.ts +131 -0
- package/dist/src/plugins/postgresql/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/postgresql/v1/plugin_pb.js +208 -0
- package/dist/src/plugins/postgresql/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/python/v1/plugin_pb.d.ts +41 -0
- package/dist/src/plugins/python/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/python/v1/plugin_pb.js +76 -0
- package/dist/src/plugins/python/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/redis/v1/plugin_pb.d.ts +1136 -0
- package/dist/src/plugins/redis/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/redis/v1/plugin_pb.js +1552 -0
- package/dist/src/plugins/redis/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/redshift/v1/plugin_pb.d.ts +119 -0
- package/dist/src/plugins/redshift/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/redshift/v1/plugin_pb.js +193 -0
- package/dist/src/plugins/redshift/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/restapi/v1/plugin_pb.d.ts +77 -0
- package/dist/src/plugins/restapi/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/restapi/v1/plugin_pb.js +110 -0
- package/dist/src/plugins/restapi/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/restapiintegration/v1/plugin_pb.d.ts +99 -0
- package/dist/src/plugins/restapiintegration/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/restapiintegration/v1/plugin_pb.js +137 -0
- package/dist/src/plugins/restapiintegration/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/rockset/v1/plugin_pb.d.ts +123 -0
- package/dist/src/plugins/rockset/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/rockset/v1/plugin_pb.js +198 -0
- package/dist/src/plugins/rockset/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/s3/v1/plugin_pb.d.ts +168 -0
- package/dist/src/plugins/s3/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/s3/v1/plugin_pb.js +263 -0
- package/dist/src/plugins/s3/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/salesforce/v1/plugin_pb.d.ts +293 -0
- package/dist/src/plugins/salesforce/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/salesforce/v1/plugin_pb.js +429 -0
- package/dist/src/plugins/salesforce/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/smtp/v1/plugin_pb.d.ts +96 -0
- package/dist/src/plugins/smtp/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/smtp/v1/plugin_pb.js +144 -0
- package/dist/src/plugins/smtp/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/snowflake/v1/plugin_pb.d.ts +119 -0
- package/dist/src/plugins/snowflake/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/snowflake/v1/plugin_pb.js +193 -0
- package/dist/src/plugins/snowflake/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/workflow/v1/plugin_pb.d.ts +58 -0
- package/dist/src/plugins/workflow/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/workflow/v1/plugin_pb.js +92 -0
- package/dist/src/plugins/workflow/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/workflow/v2/plugin_pb.d.ts +25 -0
- package/dist/src/plugins/workflow/v2/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/workflow/v2/plugin_pb.js +46 -0
- package/dist/src/plugins/workflow/v2/plugin_pb.js.map +1 -0
- package/dist/src/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +1388 -0
- package/dist/src/protoc-gen-openapiv2/options/openapiv2_pb.d.ts.map +1 -0
- package/dist/src/protoc-gen-openapiv2/options/openapiv2_pb.js +1772 -0
- package/dist/src/protoc-gen-openapiv2/options/openapiv2_pb.js.map +1 -0
- package/dist/src/secrets/v1/index.d.ts +2 -0
- package/dist/src/secrets/v1/index.d.ts.map +1 -0
- package/dist/src/secrets/v1/index.js +28 -0
- package/dist/src/secrets/v1/index.js.map +1 -0
- package/dist/src/secrets/v1/secrets_pb.d.ts +344 -0
- package/dist/src/secrets/v1/secrets_pb.d.ts.map +1 -0
- package/dist/src/secrets/v1/secrets_pb.js +483 -0
- package/dist/src/secrets/v1/secrets_pb.js.map +1 -0
- package/dist/src/secrets/v1/store_pb.d.ts +98 -0
- package/dist/src/secrets/v1/store_pb.d.ts.map +1 -0
- package/dist/src/secrets/v1/store_pb.js +166 -0
- package/dist/src/secrets/v1/store_pb.js.map +1 -0
- package/dist/src/security/v1/index.d.ts +3 -0
- package/dist/src/security/v1/index.d.ts.map +1 -0
- package/dist/src/security/v1/index.js +19 -0
- package/dist/src/security/v1/index.js.map +1 -0
- package/dist/src/security/v1/requests_pb.d.ts +135 -0
- package/dist/src/security/v1/requests_pb.d.ts.map +1 -0
- package/dist/src/security/v1/requests_pb.js +214 -0
- package/dist/src/security/v1/requests_pb.js.map +1 -0
- package/dist/src/security/v1/service_pb.d.ts +192 -0
- package/dist/src/security/v1/service_pb.d.ts.map +1 -0
- package/dist/src/security/v1/service_pb.js +270 -0
- package/dist/src/security/v1/service_pb.js.map +1 -0
- package/dist/src/store/v1/service_pb.d.ts +81 -0
- package/dist/src/store/v1/service_pb.d.ts.map +1 -0
- package/dist/src/store/v1/service_pb.js +145 -0
- package/dist/src/store/v1/service_pb.js.map +1 -0
- package/dist/src/store/v1/store_pb.d.ts +42 -0
- package/dist/src/store/v1/store_pb.d.ts.map +1 -0
- package/dist/src/store/v1/store_pb.js +77 -0
- package/dist/src/store/v1/store_pb.js.map +1 -0
- package/dist/src/superblocks/v1/options_pb.d.ts +37 -0
- package/dist/src/superblocks/v1/options_pb.d.ts.map +1 -0
- package/dist/src/superblocks/v1/options_pb.js +71 -0
- package/dist/src/superblocks/v1/options_pb.js.map +1 -0
- package/dist/src/syncer/v1/index.d.ts +2 -0
- package/dist/src/syncer/v1/index.d.ts.map +1 -0
- package/dist/src/syncer/v1/index.js +28 -0
- package/dist/src/syncer/v1/index.js.map +1 -0
- package/dist/src/syncer/v1/service_pb.d.ts +186 -0
- package/dist/src/syncer/v1/service_pb.d.ts.map +1 -0
- package/dist/src/syncer/v1/service_pb.js +320 -0
- package/dist/src/syncer/v1/service_pb.js.map +1 -0
- package/dist/src/syncer/v1/syncer_pb.d.ts +41 -0
- package/dist/src/syncer/v1/syncer_pb.d.ts.map +1 -0
- package/dist/src/syncer/v1/syncer_pb.js +66 -0
- package/dist/src/syncer/v1/syncer_pb.js.map +1 -0
- package/dist/src/transport/v1/transport_pb.d.ts +614 -0
- package/dist/src/transport/v1/transport_pb.d.ts.map +1 -0
- package/dist/src/transport/v1/transport_pb.js +928 -0
- package/dist/src/transport/v1/transport_pb.js.map +1 -0
- package/dist/src/utils/v1/index.d.ts +2 -0
- package/dist/src/utils/v1/index.d.ts.map +1 -0
- package/dist/src/utils/v1/index.js +28 -0
- package/dist/src/utils/v1/index.js.map +1 -0
- package/dist/src/utils/v1/utils_pb.d.ts +45 -0
- package/dist/src/utils/v1/utils_pb.d.ts.map +1 -0
- package/dist/src/utils/v1/utils_pb.js +74 -0
- package/dist/src/utils/v1/utils_pb.js.map +1 -0
- package/dist/src/validate/validate_pb.d.ts +1794 -0
- package/dist/src/validate/validate_pb.d.ts.map +1 -0
- package/dist/src/validate/validate_pb.js +2044 -0
- package/dist/src/validate/validate_pb.js.map +1 -0
- package/dist/src/worker/v1/step_executor_pb.d.ts +23 -0
- package/dist/src/worker/v1/step_executor_pb.d.ts.map +1 -0
- package/dist/src/worker/v1/step_executor_pb.js +43 -0
- package/dist/src/worker/v1/step_executor_pb.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +18 -0
- package/src/agent/v1/index.ts +1 -0
- package/src/agent/v1/service_pb.ts +716 -0
- package/src/ai/v1/ai_pb.ts +977 -0
- package/src/ai/v1/metadata_pb.ts +134 -0
- package/src/ai/v1/service_pb.ts +154 -0
- package/src/ai/v1/vector_pb.ts +63 -0
- package/src/api/v1/api_pb.ts +2493 -0
- package/src/api/v1/blocks_pb.ts +182 -0
- package/src/api/v1/event_pb.ts +735 -0
- package/src/api/v1/index.ts +6 -0
- package/src/api/v1/integration_auth_service_pb.ts +372 -0
- package/src/api/v1/requests_pb.ts +906 -0
- package/src/api/v1/service_pb.ts +2464 -0
- package/src/auth/v1/auth_pb.ts +138 -0
- package/src/buf/validate/expression_pb.ts +222 -0
- package/src/buf/validate/priv/private_pb.ts +112 -0
- package/src/buf/validate/validate_pb.ts +4357 -0
- package/src/cache/v1/cache_pb.ts +146 -0
- package/src/common/v1/api_pb.ts +162 -0
- package/src/common/v1/common_pb.ts +220 -0
- package/src/common/v1/errors_pb.ts +143 -0
- package/src/common/v1/health_pb.ts +142 -0
- package/src/common/v1/index.ts +5 -0
- package/src/common/v1/language_pb.ts +765 -0
- package/src/common/v1/plugin_pb.ts +242 -0
- package/src/common/v1/utils_pb.ts +45 -0
- package/src/event/v1/cloudevent_pb.ts +225 -0
- package/src/event/v1/event_pb.ts +264 -0
- package/src/event/v1/service_pb.ts +131 -0
- package/src/event/v2/cloudevent_pb.ts +225 -0
- package/src/google/api/http_pb.ts +547 -0
- package/src/index.ts +8 -0
- package/src/intake/v1/logs_pb.ts +45 -0
- package/src/integration/v1/service_pb.ts +322 -0
- package/src/kafka/v1/index.ts +1 -0
- package/src/kafka/v1/kafka_pb.ts +118 -0
- package/src/plugins/adls/v1/plugin_pb.ts +562 -0
- package/src/plugins/athena/v1/plugin_pb.ts +163 -0
- package/src/plugins/bigquery/v1/plugin_pb.ts +228 -0
- package/src/plugins/cockroachdb/v1/plugin_pb.ts +203 -0
- package/src/plugins/common/v1/auth_pb.ts +918 -0
- package/src/plugins/common/v1/metadata_pb.ts +193 -0
- package/src/plugins/common/v1/plugin_pb.ts +527 -0
- package/src/plugins/cosmosdb/v1/plugin_pb.ts +670 -0
- package/src/plugins/couchbase/v1/plugin_pb.ts +492 -0
- package/src/plugins/custom/v1/plugin_pb.ts +61 -0
- package/src/plugins/databricks/v1/plugin_pb.ts +197 -0
- package/src/plugins/dynamodb/v1/plugin_pb.ts +375 -0
- package/src/plugins/email/v1/plugin_pb.ts +124 -0
- package/src/plugins/gcs/v1/plugin_pb.ts +270 -0
- package/src/plugins/graphql/v1/plugin_pb.ts +129 -0
- package/src/plugins/gsheets/v1/plugin_pb.ts +220 -0
- package/src/plugins/index.ts +19 -0
- package/src/plugins/javascript/v1/plugin_pb.ts +88 -0
- package/src/plugins/kafka/v1/plugin_pb.ts +921 -0
- package/src/plugins/kinesis/v1/plugin_pb.ts +406 -0
- package/src/plugins/mariadb/v1/plugin_pb.ts +203 -0
- package/src/plugins/mongodb/v1/plugin_pb.ts +175 -0
- package/src/plugins/mssql/v1/plugin_pb.ts +246 -0
- package/src/plugins/mysql/v1/plugin_pb.ts +246 -0
- package/src/plugins/ocr/v1/plugin_pb.ts +57 -0
- package/src/plugins/openai/v1/plugin_pb.ts +443 -0
- package/src/plugins/oracledb/v1/plugin_pb.ts +155 -0
- package/src/plugins/pinecone/v1/plugin_pb.ts +288 -0
- package/src/plugins/postgresql/v1/plugin_pb.ts +246 -0
- package/src/plugins/python/v1/plugin_pb.ts +88 -0
- package/src/plugins/redis/v1/plugin_pb.ts +2073 -0
- package/src/plugins/redshift/v1/plugin_pb.ts +228 -0
- package/src/plugins/restapi/v1/plugin_pb.ts +128 -0
- package/src/plugins/restapiintegration/v1/plugin_pb.ts +160 -0
- package/src/plugins/rockset/v1/plugin_pb.ts +234 -0
- package/src/plugins/s3/v1/plugin_pb.ts +311 -0
- package/src/plugins/salesforce/v1/plugin_pb.ts +516 -0
- package/src/plugins/smtp/v1/plugin_pb.ts +169 -0
- package/src/plugins/snowflake/v1/plugin_pb.ts +228 -0
- package/src/plugins/workflow/v1/plugin_pb.ts +107 -0
- package/src/plugins/workflow/v2/plugin_pb.ts +52 -0
- package/src/protoc-gen-openapiv2/options/openapiv2_pb.ts +1995 -0
- package/src/secrets/v1/index.ts +1 -0
- package/src/secrets/v1/secrets_pb.ts +609 -0
- package/src/secrets/v1/store_pb.ts +195 -0
- package/src/security/v1/index.ts +2 -0
- package/src/security/v1/requests_pb.ts +249 -0
- package/src/security/v1/service_pb.ts +350 -0
- package/src/store/v1/service_pb.ts +170 -0
- package/src/store/v1/store_pb.ts +89 -0
- package/src/superblocks/v1/options_pb.ts +82 -0
- package/src/syncer/v1/index.ts +1 -0
- package/src/syncer/v1/service_pb.ts +379 -0
- package/src/syncer/v1/syncer_pb.ts +76 -0
- package/src/transport/v1/transport_pb.ts +1099 -0
- package/src/utils/v1/index.ts +1 -0
- package/src/utils/v1/utils_pb.ts +83 -0
- package/src/validate/validate_pb.ts +2574 -0
- package/src/worker/v1/step_executor_pb.ts +48 -0
|
@@ -0,0 +1,4357 @@
|
|
|
1
|
+
// Copyright 2023 Buf Technologies, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
|
16
|
+
// @generated from file buf/validate/validate.proto (package buf.validate, syntax proto3)
|
|
17
|
+
/* eslint-disable */
|
|
18
|
+
// @ts-nocheck
|
|
19
|
+
|
|
20
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
21
|
+
import { Duration, Message, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
22
|
+
import { Constraint } from "./expression_pb";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* WellKnownRegex contain some well-known patterns.
|
|
26
|
+
*
|
|
27
|
+
* @generated from enum buf.validate.KnownRegex
|
|
28
|
+
*/
|
|
29
|
+
export enum KnownRegex {
|
|
30
|
+
/**
|
|
31
|
+
* @generated from enum value: KNOWN_REGEX_UNSPECIFIED = 0;
|
|
32
|
+
*/
|
|
33
|
+
UNSPECIFIED = 0,
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* HTTP header name as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2).
|
|
37
|
+
*
|
|
38
|
+
* @generated from enum value: KNOWN_REGEX_HTTP_HEADER_NAME = 1;
|
|
39
|
+
*/
|
|
40
|
+
HTTP_HEADER_NAME = 1,
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* HTTP header value as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2.4).
|
|
44
|
+
*
|
|
45
|
+
* @generated from enum value: KNOWN_REGEX_HTTP_HEADER_VALUE = 2;
|
|
46
|
+
*/
|
|
47
|
+
HTTP_HEADER_VALUE = 2,
|
|
48
|
+
}
|
|
49
|
+
// Retrieve enum metadata with: proto3.getEnumType(KnownRegex)
|
|
50
|
+
proto3.util.setEnumType(KnownRegex, "buf.validate.KnownRegex", [
|
|
51
|
+
{ no: 0, name: "KNOWN_REGEX_UNSPECIFIED" },
|
|
52
|
+
{ no: 1, name: "KNOWN_REGEX_HTTP_HEADER_NAME" },
|
|
53
|
+
{ no: 2, name: "KNOWN_REGEX_HTTP_HEADER_VALUE" },
|
|
54
|
+
]);
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* MessageConstraints represents validation rules that are applied to the entire message.
|
|
58
|
+
* It includes disabling options and a list of Constraint messages representing Common Expression Language (CEL) validation rules.
|
|
59
|
+
*
|
|
60
|
+
* @generated from message buf.validate.MessageConstraints
|
|
61
|
+
*/
|
|
62
|
+
export class MessageConstraints extends Message<MessageConstraints> {
|
|
63
|
+
/**
|
|
64
|
+
* `disabled` is a boolean flag that, when set to true, nullifies any validation rules for this message.
|
|
65
|
+
* This includes any fields within the message that would otherwise support validation.
|
|
66
|
+
*
|
|
67
|
+
* ```proto
|
|
68
|
+
* message MyMessage {
|
|
69
|
+
* // validation will be bypassed for this message
|
|
70
|
+
* option (buf.validate.message).disabled = true;
|
|
71
|
+
* }
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
74
|
+
* @generated from field: optional bool disabled = 1;
|
|
75
|
+
*/
|
|
76
|
+
disabled?: boolean;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
|
|
80
|
+
* These constraints are written in Common Expression Language (CEL) syntax. For more information on
|
|
81
|
+
* CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
|
|
82
|
+
*
|
|
83
|
+
*
|
|
84
|
+
* ```proto
|
|
85
|
+
* message MyMessage {
|
|
86
|
+
* // The field `foo` must be greater than 42.
|
|
87
|
+
* option (buf.validate.message).cel = {
|
|
88
|
+
* id: "my_message.value",
|
|
89
|
+
* message: "value must be greater than 42",
|
|
90
|
+
* expression: "this.foo > 42",
|
|
91
|
+
* };
|
|
92
|
+
* optional int32 foo = 1;
|
|
93
|
+
* }
|
|
94
|
+
* ```
|
|
95
|
+
*
|
|
96
|
+
* @generated from field: repeated buf.validate.Constraint cel = 3;
|
|
97
|
+
*/
|
|
98
|
+
cel: Constraint[] = [];
|
|
99
|
+
|
|
100
|
+
constructor(data?: PartialMessage<MessageConstraints>) {
|
|
101
|
+
super();
|
|
102
|
+
proto3.util.initPartial(data, this);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
106
|
+
static readonly typeName = "buf.validate.MessageConstraints";
|
|
107
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
108
|
+
{ no: 1, name: "disabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
109
|
+
{ no: 3, name: "cel", kind: "message", T: Constraint, repeated: true },
|
|
110
|
+
]);
|
|
111
|
+
|
|
112
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MessageConstraints {
|
|
113
|
+
return new MessageConstraints().fromBinary(bytes, options);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MessageConstraints {
|
|
117
|
+
return new MessageConstraints().fromJson(jsonValue, options);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MessageConstraints {
|
|
121
|
+
return new MessageConstraints().fromJsonString(jsonString, options);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
static equals(a: MessageConstraints | PlainMessage<MessageConstraints> | undefined, b: MessageConstraints | PlainMessage<MessageConstraints> | undefined): boolean {
|
|
125
|
+
return proto3.util.equals(MessageConstraints, a, b);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* The `OneofConstraints` message type enables you to manage constraints for
|
|
131
|
+
* oneof fields in your protobuf messages.
|
|
132
|
+
*
|
|
133
|
+
* @generated from message buf.validate.OneofConstraints
|
|
134
|
+
*/
|
|
135
|
+
export class OneofConstraints extends Message<OneofConstraints> {
|
|
136
|
+
/**
|
|
137
|
+
* If `required` is true, exactly one field of the oneof must be present. A
|
|
138
|
+
* validation error is returned if no fields in the oneof are present. The
|
|
139
|
+
* field itself may still be a default value; further constraints
|
|
140
|
+
* should be placed on the fields themselves to ensure they are valid values,
|
|
141
|
+
* such as `min_len` or `gt`.
|
|
142
|
+
*
|
|
143
|
+
* ```proto
|
|
144
|
+
* message MyMessage {
|
|
145
|
+
* oneof value {
|
|
146
|
+
* // Either `a` or `b` must be set. If `a` is set, it must also be
|
|
147
|
+
* // non-empty; whereas if `b` is set, it can still be an empty string.
|
|
148
|
+
* option (buf.validate.oneof).required = true;
|
|
149
|
+
* string a = 1 [(buf.validate.field).string.min_len = 1];
|
|
150
|
+
* string b = 2;
|
|
151
|
+
* }
|
|
152
|
+
* }
|
|
153
|
+
* ```
|
|
154
|
+
*
|
|
155
|
+
* @generated from field: optional bool required = 1;
|
|
156
|
+
*/
|
|
157
|
+
required?: boolean;
|
|
158
|
+
|
|
159
|
+
constructor(data?: PartialMessage<OneofConstraints>) {
|
|
160
|
+
super();
|
|
161
|
+
proto3.util.initPartial(data, this);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
165
|
+
static readonly typeName = "buf.validate.OneofConstraints";
|
|
166
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
167
|
+
{ no: 1, name: "required", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
168
|
+
]);
|
|
169
|
+
|
|
170
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OneofConstraints {
|
|
171
|
+
return new OneofConstraints().fromBinary(bytes, options);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OneofConstraints {
|
|
175
|
+
return new OneofConstraints().fromJson(jsonValue, options);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OneofConstraints {
|
|
179
|
+
return new OneofConstraints().fromJsonString(jsonString, options);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
static equals(a: OneofConstraints | PlainMessage<OneofConstraints> | undefined, b: OneofConstraints | PlainMessage<OneofConstraints> | undefined): boolean {
|
|
183
|
+
return proto3.util.equals(OneofConstraints, a, b);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* FieldRules encapsulates the rules for each type of field. Depending on the
|
|
189
|
+
* field, the correct set should be used to ensure proper validations.
|
|
190
|
+
*
|
|
191
|
+
* @generated from message buf.validate.FieldConstraints
|
|
192
|
+
*/
|
|
193
|
+
export class FieldConstraints extends Message<FieldConstraints> {
|
|
194
|
+
/**
|
|
195
|
+
* `cel` is a repeated field used to represent a textual expression
|
|
196
|
+
* in the Common Expression Language (CEL) syntax. For more information on
|
|
197
|
+
* CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
|
|
198
|
+
*
|
|
199
|
+
* ```proto
|
|
200
|
+
* message MyMessage {
|
|
201
|
+
* // The field `value` must be greater than 42.
|
|
202
|
+
* optional int32 value = 1 [(buf.validate.field).cel = {
|
|
203
|
+
* id: "my_message.value",
|
|
204
|
+
* message: "value must be greater than 42",
|
|
205
|
+
* expression: "this > 42",
|
|
206
|
+
* }];
|
|
207
|
+
* }
|
|
208
|
+
* ```
|
|
209
|
+
*
|
|
210
|
+
* @generated from field: repeated buf.validate.Constraint cel = 23;
|
|
211
|
+
*/
|
|
212
|
+
cel: Constraint[] = [];
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* `skipped` is an optional boolean attribute that specifies that the
|
|
216
|
+
* validation rules of this field should not be evaluated. If skipped is set to
|
|
217
|
+
* true, any validation rules set for the field will be ignored.
|
|
218
|
+
*
|
|
219
|
+
* ```proto
|
|
220
|
+
* message MyMessage {
|
|
221
|
+
* // The field `value` must not be set.
|
|
222
|
+
* optional MyOtherMessage value = 1 [(buf.validate.field).skipped = true];
|
|
223
|
+
* }
|
|
224
|
+
* ```
|
|
225
|
+
*
|
|
226
|
+
* @generated from field: bool skipped = 24;
|
|
227
|
+
*/
|
|
228
|
+
skipped = false;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* If `required` is true, the field must be populated. Field presence can be
|
|
232
|
+
* described as "serialized in the wire format," which follows the following rules:
|
|
233
|
+
*
|
|
234
|
+
* - the following "nullable" fields must be explicitly set to be considered present:
|
|
235
|
+
* - singular message fields (may be their empty value)
|
|
236
|
+
* - member fields of a oneof (may be their default value)
|
|
237
|
+
* - proto3 optional fields (may be their default value)
|
|
238
|
+
* - proto2 scalar fields
|
|
239
|
+
* - proto3 scalar fields must be non-zero to be considered present
|
|
240
|
+
* - repeated and map fields must be non-empty to be considered present
|
|
241
|
+
*
|
|
242
|
+
* ```proto
|
|
243
|
+
* message MyMessage {
|
|
244
|
+
* // The field `value` must be set to a non-null value.
|
|
245
|
+
* optional MyOtherMessage value = 1 [(buf.validate.field).required = true];
|
|
246
|
+
* }
|
|
247
|
+
* ```
|
|
248
|
+
*
|
|
249
|
+
* @generated from field: bool required = 25;
|
|
250
|
+
*/
|
|
251
|
+
required = false;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* If `ignore_empty` is true and applied to a non-nullable field (see
|
|
255
|
+
* `required` for more details), validation is skipped on the field if it is
|
|
256
|
+
* the default or empty value. Adding `ignore_empty` to a "nullable" field is
|
|
257
|
+
* a noop as these unset fields already skip validation (with the exception
|
|
258
|
+
* of `required`).
|
|
259
|
+
*
|
|
260
|
+
* ```proto
|
|
261
|
+
* message MyRepeated {
|
|
262
|
+
* // The field `value` min_len rule is only applied if the field isn't empty.
|
|
263
|
+
* repeated string value = 1 [
|
|
264
|
+
* (buf.validate.field).ignore_empty = true,
|
|
265
|
+
* (buf.validate.field).min_len = 5
|
|
266
|
+
* ];
|
|
267
|
+
* }
|
|
268
|
+
* ```
|
|
269
|
+
*
|
|
270
|
+
* @generated from field: bool ignore_empty = 26;
|
|
271
|
+
*/
|
|
272
|
+
ignoreEmpty = false;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* @generated from oneof buf.validate.FieldConstraints.type
|
|
276
|
+
*/
|
|
277
|
+
type: {
|
|
278
|
+
/**
|
|
279
|
+
* Scalar Field Types
|
|
280
|
+
*
|
|
281
|
+
* @generated from field: buf.validate.FloatRules float = 1;
|
|
282
|
+
*/
|
|
283
|
+
value: FloatRules;
|
|
284
|
+
case: "float";
|
|
285
|
+
} | {
|
|
286
|
+
/**
|
|
287
|
+
* @generated from field: buf.validate.DoubleRules double = 2;
|
|
288
|
+
*/
|
|
289
|
+
value: DoubleRules;
|
|
290
|
+
case: "double";
|
|
291
|
+
} | {
|
|
292
|
+
/**
|
|
293
|
+
* @generated from field: buf.validate.Int32Rules int32 = 3;
|
|
294
|
+
*/
|
|
295
|
+
value: Int32Rules;
|
|
296
|
+
case: "int32";
|
|
297
|
+
} | {
|
|
298
|
+
/**
|
|
299
|
+
* @generated from field: buf.validate.Int64Rules int64 = 4;
|
|
300
|
+
*/
|
|
301
|
+
value: Int64Rules;
|
|
302
|
+
case: "int64";
|
|
303
|
+
} | {
|
|
304
|
+
/**
|
|
305
|
+
* @generated from field: buf.validate.UInt32Rules uint32 = 5;
|
|
306
|
+
*/
|
|
307
|
+
value: UInt32Rules;
|
|
308
|
+
case: "uint32";
|
|
309
|
+
} | {
|
|
310
|
+
/**
|
|
311
|
+
* @generated from field: buf.validate.UInt64Rules uint64 = 6;
|
|
312
|
+
*/
|
|
313
|
+
value: UInt64Rules;
|
|
314
|
+
case: "uint64";
|
|
315
|
+
} | {
|
|
316
|
+
/**
|
|
317
|
+
* @generated from field: buf.validate.SInt32Rules sint32 = 7;
|
|
318
|
+
*/
|
|
319
|
+
value: SInt32Rules;
|
|
320
|
+
case: "sint32";
|
|
321
|
+
} | {
|
|
322
|
+
/**
|
|
323
|
+
* @generated from field: buf.validate.SInt64Rules sint64 = 8;
|
|
324
|
+
*/
|
|
325
|
+
value: SInt64Rules;
|
|
326
|
+
case: "sint64";
|
|
327
|
+
} | {
|
|
328
|
+
/**
|
|
329
|
+
* @generated from field: buf.validate.Fixed32Rules fixed32 = 9;
|
|
330
|
+
*/
|
|
331
|
+
value: Fixed32Rules;
|
|
332
|
+
case: "fixed32";
|
|
333
|
+
} | {
|
|
334
|
+
/**
|
|
335
|
+
* @generated from field: buf.validate.Fixed64Rules fixed64 = 10;
|
|
336
|
+
*/
|
|
337
|
+
value: Fixed64Rules;
|
|
338
|
+
case: "fixed64";
|
|
339
|
+
} | {
|
|
340
|
+
/**
|
|
341
|
+
* @generated from field: buf.validate.SFixed32Rules sfixed32 = 11;
|
|
342
|
+
*/
|
|
343
|
+
value: SFixed32Rules;
|
|
344
|
+
case: "sfixed32";
|
|
345
|
+
} | {
|
|
346
|
+
/**
|
|
347
|
+
* @generated from field: buf.validate.SFixed64Rules sfixed64 = 12;
|
|
348
|
+
*/
|
|
349
|
+
value: SFixed64Rules;
|
|
350
|
+
case: "sfixed64";
|
|
351
|
+
} | {
|
|
352
|
+
/**
|
|
353
|
+
* @generated from field: buf.validate.BoolRules bool = 13;
|
|
354
|
+
*/
|
|
355
|
+
value: BoolRules;
|
|
356
|
+
case: "bool";
|
|
357
|
+
} | {
|
|
358
|
+
/**
|
|
359
|
+
* @generated from field: buf.validate.StringRules string = 14;
|
|
360
|
+
*/
|
|
361
|
+
value: StringRules;
|
|
362
|
+
case: "string";
|
|
363
|
+
} | {
|
|
364
|
+
/**
|
|
365
|
+
* @generated from field: buf.validate.BytesRules bytes = 15;
|
|
366
|
+
*/
|
|
367
|
+
value: BytesRules;
|
|
368
|
+
case: "bytes";
|
|
369
|
+
} | {
|
|
370
|
+
/**
|
|
371
|
+
* Complex Field Types
|
|
372
|
+
*
|
|
373
|
+
* @generated from field: buf.validate.EnumRules enum = 16;
|
|
374
|
+
*/
|
|
375
|
+
value: EnumRules;
|
|
376
|
+
case: "enum";
|
|
377
|
+
} | {
|
|
378
|
+
/**
|
|
379
|
+
* @generated from field: buf.validate.RepeatedRules repeated = 18;
|
|
380
|
+
*/
|
|
381
|
+
value: RepeatedRules;
|
|
382
|
+
case: "repeated";
|
|
383
|
+
} | {
|
|
384
|
+
/**
|
|
385
|
+
* @generated from field: buf.validate.MapRules map = 19;
|
|
386
|
+
*/
|
|
387
|
+
value: MapRules;
|
|
388
|
+
case: "map";
|
|
389
|
+
} | {
|
|
390
|
+
/**
|
|
391
|
+
* Well-Known Field Types
|
|
392
|
+
*
|
|
393
|
+
* @generated from field: buf.validate.AnyRules any = 20;
|
|
394
|
+
*/
|
|
395
|
+
value: AnyRules;
|
|
396
|
+
case: "any";
|
|
397
|
+
} | {
|
|
398
|
+
/**
|
|
399
|
+
* @generated from field: buf.validate.DurationRules duration = 21;
|
|
400
|
+
*/
|
|
401
|
+
value: DurationRules;
|
|
402
|
+
case: "duration";
|
|
403
|
+
} | {
|
|
404
|
+
/**
|
|
405
|
+
* @generated from field: buf.validate.TimestampRules timestamp = 22;
|
|
406
|
+
*/
|
|
407
|
+
value: TimestampRules;
|
|
408
|
+
case: "timestamp";
|
|
409
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
410
|
+
|
|
411
|
+
constructor(data?: PartialMessage<FieldConstraints>) {
|
|
412
|
+
super();
|
|
413
|
+
proto3.util.initPartial(data, this);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
417
|
+
static readonly typeName = "buf.validate.FieldConstraints";
|
|
418
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
419
|
+
{ no: 23, name: "cel", kind: "message", T: Constraint, repeated: true },
|
|
420
|
+
{ no: 24, name: "skipped", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
421
|
+
{ no: 25, name: "required", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
422
|
+
{ no: 26, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
423
|
+
{ no: 1, name: "float", kind: "message", T: FloatRules, oneof: "type" },
|
|
424
|
+
{ no: 2, name: "double", kind: "message", T: DoubleRules, oneof: "type" },
|
|
425
|
+
{ no: 3, name: "int32", kind: "message", T: Int32Rules, oneof: "type" },
|
|
426
|
+
{ no: 4, name: "int64", kind: "message", T: Int64Rules, oneof: "type" },
|
|
427
|
+
{ no: 5, name: "uint32", kind: "message", T: UInt32Rules, oneof: "type" },
|
|
428
|
+
{ no: 6, name: "uint64", kind: "message", T: UInt64Rules, oneof: "type" },
|
|
429
|
+
{ no: 7, name: "sint32", kind: "message", T: SInt32Rules, oneof: "type" },
|
|
430
|
+
{ no: 8, name: "sint64", kind: "message", T: SInt64Rules, oneof: "type" },
|
|
431
|
+
{ no: 9, name: "fixed32", kind: "message", T: Fixed32Rules, oneof: "type" },
|
|
432
|
+
{ no: 10, name: "fixed64", kind: "message", T: Fixed64Rules, oneof: "type" },
|
|
433
|
+
{ no: 11, name: "sfixed32", kind: "message", T: SFixed32Rules, oneof: "type" },
|
|
434
|
+
{ no: 12, name: "sfixed64", kind: "message", T: SFixed64Rules, oneof: "type" },
|
|
435
|
+
{ no: 13, name: "bool", kind: "message", T: BoolRules, oneof: "type" },
|
|
436
|
+
{ no: 14, name: "string", kind: "message", T: StringRules, oneof: "type" },
|
|
437
|
+
{ no: 15, name: "bytes", kind: "message", T: BytesRules, oneof: "type" },
|
|
438
|
+
{ no: 16, name: "enum", kind: "message", T: EnumRules, oneof: "type" },
|
|
439
|
+
{ no: 18, name: "repeated", kind: "message", T: RepeatedRules, oneof: "type" },
|
|
440
|
+
{ no: 19, name: "map", kind: "message", T: MapRules, oneof: "type" },
|
|
441
|
+
{ no: 20, name: "any", kind: "message", T: AnyRules, oneof: "type" },
|
|
442
|
+
{ no: 21, name: "duration", kind: "message", T: DurationRules, oneof: "type" },
|
|
443
|
+
{ no: 22, name: "timestamp", kind: "message", T: TimestampRules, oneof: "type" },
|
|
444
|
+
]);
|
|
445
|
+
|
|
446
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FieldConstraints {
|
|
447
|
+
return new FieldConstraints().fromBinary(bytes, options);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FieldConstraints {
|
|
451
|
+
return new FieldConstraints().fromJson(jsonValue, options);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FieldConstraints {
|
|
455
|
+
return new FieldConstraints().fromJsonString(jsonString, options);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
static equals(a: FieldConstraints | PlainMessage<FieldConstraints> | undefined, b: FieldConstraints | PlainMessage<FieldConstraints> | undefined): boolean {
|
|
459
|
+
return proto3.util.equals(FieldConstraints, a, b);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* FloatRules describes the constraints applied to `float` values. These
|
|
465
|
+
* rules may also be applied to the `google.protobuf.FloatValue` Well-Known-Type.
|
|
466
|
+
*
|
|
467
|
+
* @generated from message buf.validate.FloatRules
|
|
468
|
+
*/
|
|
469
|
+
export class FloatRules extends Message<FloatRules> {
|
|
470
|
+
/**
|
|
471
|
+
* `const` requires the field value to exactly match the specified value. If
|
|
472
|
+
* the field value doesn't match, an error message is generated.
|
|
473
|
+
*
|
|
474
|
+
* ```proto
|
|
475
|
+
* message MyFloat {
|
|
476
|
+
* // value must equal 42.0
|
|
477
|
+
* float value = 1 [(buf.validate.field).float.const = 42.0];
|
|
478
|
+
* }
|
|
479
|
+
* ```
|
|
480
|
+
*
|
|
481
|
+
* @generated from field: optional float const = 1;
|
|
482
|
+
*/
|
|
483
|
+
const?: number;
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* @generated from oneof buf.validate.FloatRules.less_than
|
|
487
|
+
*/
|
|
488
|
+
lessThan: {
|
|
489
|
+
/**
|
|
490
|
+
* `lt` requires the field value to be less than the specified value (field <
|
|
491
|
+
* value). If the field value is equal to or greater than the specified value,
|
|
492
|
+
* an error message is generated.
|
|
493
|
+
*
|
|
494
|
+
* ```proto
|
|
495
|
+
* message MyFloat {
|
|
496
|
+
* // value must be less than 10.0
|
|
497
|
+
* float value = 1 [(buf.validate.field).float.lt = 10.0];
|
|
498
|
+
* }
|
|
499
|
+
* ```
|
|
500
|
+
*
|
|
501
|
+
* @generated from field: float lt = 2;
|
|
502
|
+
*/
|
|
503
|
+
value: number;
|
|
504
|
+
case: "lt";
|
|
505
|
+
} | {
|
|
506
|
+
/**
|
|
507
|
+
* `lte` requires the field value to be less than or equal to the specified
|
|
508
|
+
* value (field <= value). If the field value is greater than the specified
|
|
509
|
+
* value, an error message is generated.
|
|
510
|
+
*
|
|
511
|
+
* ```proto
|
|
512
|
+
* message MyFloat {
|
|
513
|
+
* // value must be less than or equal to 10.0
|
|
514
|
+
* float value = 1 [(buf.validate.field).float.lte = 10.0];
|
|
515
|
+
* }
|
|
516
|
+
* ```
|
|
517
|
+
*
|
|
518
|
+
* @generated from field: float lte = 3;
|
|
519
|
+
*/
|
|
520
|
+
value: number;
|
|
521
|
+
case: "lte";
|
|
522
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* @generated from oneof buf.validate.FloatRules.greater_than
|
|
526
|
+
*/
|
|
527
|
+
greaterThan: {
|
|
528
|
+
/**
|
|
529
|
+
* `gt` requires the field value to be greater than the specified value
|
|
530
|
+
* (exclusive). If the value of `gt` is larger than a specified `lt` or
|
|
531
|
+
* `lte`, the range is reversed, and the field value must be outside the
|
|
532
|
+
* specified range. If the field value doesn't meet the required conditions,
|
|
533
|
+
* an error message is generated.
|
|
534
|
+
*
|
|
535
|
+
* ```proto
|
|
536
|
+
* message MyFloat {
|
|
537
|
+
* // value must be greater than 5.0 [float.gt]
|
|
538
|
+
* float value = 1 [(buf.validate.field).float.gt = 5.0];
|
|
539
|
+
*
|
|
540
|
+
* // value must be greater than 5 and less than 10.0 [float.gt_lt]
|
|
541
|
+
* float other_value = 2 [(buf.validate.field).float = { gt: 5.0, lt: 10.0 }];
|
|
542
|
+
*
|
|
543
|
+
* // value must be greater than 10 or less than 5.0 [float.gt_lt_exclusive]
|
|
544
|
+
* float another_value = 3 [(buf.validate.field).float = { gt: 10.0, lt: 5.0 }];
|
|
545
|
+
* }
|
|
546
|
+
* ```
|
|
547
|
+
*
|
|
548
|
+
* @generated from field: float gt = 4;
|
|
549
|
+
*/
|
|
550
|
+
value: number;
|
|
551
|
+
case: "gt";
|
|
552
|
+
} | {
|
|
553
|
+
/**
|
|
554
|
+
* `gte` requires the field value to be greater than or equal to the specified
|
|
555
|
+
* value (exclusive). If the value of `gte` is larger than a specified `lt`
|
|
556
|
+
* or `lte`, the range is reversed, and the field value must be outside the
|
|
557
|
+
* specified range. If the field value doesn't meet the required conditions,
|
|
558
|
+
* an error message is generated.
|
|
559
|
+
*
|
|
560
|
+
* ```proto
|
|
561
|
+
* message MyFloat {
|
|
562
|
+
* // value must be greater than or equal to 5.0 [float.gte]
|
|
563
|
+
* float value = 1 [(buf.validate.field).float.gte = 5.0];
|
|
564
|
+
*
|
|
565
|
+
* // value must be greater than or equal to 5.0 and less than 10.0 [float.gte_lt]
|
|
566
|
+
* float other_value = 2 [(buf.validate.field).float = { gte: 5.0, lt: 10.0 }];
|
|
567
|
+
*
|
|
568
|
+
* // value must be greater than or equal to 10.0 or less than 5.0 [float.gte_lt_exclusive]
|
|
569
|
+
* float another_value = 3 [(buf.validate.field).float = { gte: 10.0, lt: 5.0 }];
|
|
570
|
+
* }
|
|
571
|
+
* ```
|
|
572
|
+
*
|
|
573
|
+
* @generated from field: float gte = 5;
|
|
574
|
+
*/
|
|
575
|
+
value: number;
|
|
576
|
+
case: "gte";
|
|
577
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* `in` requires the field value to be equal to one of the specified values.
|
|
581
|
+
* If the field value isn't one of the specified values, an error message
|
|
582
|
+
* is generated.
|
|
583
|
+
*
|
|
584
|
+
* ```proto
|
|
585
|
+
* message MyFloat {
|
|
586
|
+
* // value must be in list [1.0, 2.0, 3.0]
|
|
587
|
+
* repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] };
|
|
588
|
+
* }
|
|
589
|
+
* ```
|
|
590
|
+
*
|
|
591
|
+
* @generated from field: repeated float in = 6;
|
|
592
|
+
*/
|
|
593
|
+
in: number[] = [];
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* `in` requires the field value to not be equal to any of the specified
|
|
597
|
+
* values. If the field value is one of the specified values, an error
|
|
598
|
+
* message is generated.
|
|
599
|
+
*
|
|
600
|
+
* ```proto
|
|
601
|
+
* message MyFloat {
|
|
602
|
+
* // value must not be in list [1.0, 2.0, 3.0]
|
|
603
|
+
* repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] };
|
|
604
|
+
* }
|
|
605
|
+
* ```
|
|
606
|
+
*
|
|
607
|
+
* @generated from field: repeated float not_in = 7;
|
|
608
|
+
*/
|
|
609
|
+
notIn: number[] = [];
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* `finite` requires the field value to be finite. If the field value is
|
|
613
|
+
* infinite or NaN, an error message is generated.
|
|
614
|
+
*
|
|
615
|
+
* @generated from field: bool finite = 8;
|
|
616
|
+
*/
|
|
617
|
+
finite = false;
|
|
618
|
+
|
|
619
|
+
constructor(data?: PartialMessage<FloatRules>) {
|
|
620
|
+
super();
|
|
621
|
+
proto3.util.initPartial(data, this);
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
625
|
+
static readonly typeName = "buf.validate.FloatRules";
|
|
626
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
627
|
+
{ no: 1, name: "const", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
628
|
+
{ no: 2, name: "lt", kind: "scalar", T: 2 /* ScalarType.FLOAT */, oneof: "less_than" },
|
|
629
|
+
{ no: 3, name: "lte", kind: "scalar", T: 2 /* ScalarType.FLOAT */, oneof: "less_than" },
|
|
630
|
+
{ no: 4, name: "gt", kind: "scalar", T: 2 /* ScalarType.FLOAT */, oneof: "greater_than" },
|
|
631
|
+
{ no: 5, name: "gte", kind: "scalar", T: 2 /* ScalarType.FLOAT */, oneof: "greater_than" },
|
|
632
|
+
{ no: 6, name: "in", kind: "scalar", T: 2 /* ScalarType.FLOAT */, repeated: true },
|
|
633
|
+
{ no: 7, name: "not_in", kind: "scalar", T: 2 /* ScalarType.FLOAT */, repeated: true },
|
|
634
|
+
{ no: 8, name: "finite", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
635
|
+
]);
|
|
636
|
+
|
|
637
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FloatRules {
|
|
638
|
+
return new FloatRules().fromBinary(bytes, options);
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FloatRules {
|
|
642
|
+
return new FloatRules().fromJson(jsonValue, options);
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FloatRules {
|
|
646
|
+
return new FloatRules().fromJsonString(jsonString, options);
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
static equals(a: FloatRules | PlainMessage<FloatRules> | undefined, b: FloatRules | PlainMessage<FloatRules> | undefined): boolean {
|
|
650
|
+
return proto3.util.equals(FloatRules, a, b);
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* DoubleRules describes the constraints applied to `double` values. These
|
|
656
|
+
* rules may also be applied to the `google.protobuf.DoubleValue` Well-Known-Type.
|
|
657
|
+
*
|
|
658
|
+
* @generated from message buf.validate.DoubleRules
|
|
659
|
+
*/
|
|
660
|
+
export class DoubleRules extends Message<DoubleRules> {
|
|
661
|
+
/**
|
|
662
|
+
* `const` requires the field value to exactly match the specified value. If
|
|
663
|
+
* the field value doesn't match, an error message is generated.
|
|
664
|
+
*
|
|
665
|
+
* ```proto
|
|
666
|
+
* message MyDouble {
|
|
667
|
+
* // value must equal 42.0
|
|
668
|
+
* double value = 1 [(buf.validate.field).double.const = 42.0];
|
|
669
|
+
* }
|
|
670
|
+
* ```
|
|
671
|
+
*
|
|
672
|
+
* @generated from field: optional double const = 1;
|
|
673
|
+
*/
|
|
674
|
+
const?: number;
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* @generated from oneof buf.validate.DoubleRules.less_than
|
|
678
|
+
*/
|
|
679
|
+
lessThan: {
|
|
680
|
+
/**
|
|
681
|
+
* `lt` requires the field value to be less than the specified value (field <
|
|
682
|
+
* value). If the field value is equal to or greater than the specified
|
|
683
|
+
* value, an error message is generated.
|
|
684
|
+
*
|
|
685
|
+
* ```proto
|
|
686
|
+
* message MyDouble {
|
|
687
|
+
* // value must be less than 10.0
|
|
688
|
+
* double value = 1 [(buf.validate.field).double.lt = 10.0];
|
|
689
|
+
* }
|
|
690
|
+
* ```
|
|
691
|
+
*
|
|
692
|
+
* @generated from field: double lt = 2;
|
|
693
|
+
*/
|
|
694
|
+
value: number;
|
|
695
|
+
case: "lt";
|
|
696
|
+
} | {
|
|
697
|
+
/**
|
|
698
|
+
* `lte` requires the field value to be less than or equal to the specified value
|
|
699
|
+
* (field <= value). If the field value is greater than the specified value,
|
|
700
|
+
* an error message is generated.
|
|
701
|
+
*
|
|
702
|
+
* ```proto
|
|
703
|
+
* message MyDouble {
|
|
704
|
+
* // value must be less than or equal to 10.0
|
|
705
|
+
* double value = 1 [(buf.validate.field).double.lte = 10.0];
|
|
706
|
+
* }
|
|
707
|
+
* ```
|
|
708
|
+
*
|
|
709
|
+
* @generated from field: double lte = 3;
|
|
710
|
+
*/
|
|
711
|
+
value: number;
|
|
712
|
+
case: "lte";
|
|
713
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* @generated from oneof buf.validate.DoubleRules.greater_than
|
|
717
|
+
*/
|
|
718
|
+
greaterThan: {
|
|
719
|
+
/**
|
|
720
|
+
* `gt` requires the field value to be greater than the specified value
|
|
721
|
+
* (exclusive). If the value of `gt` is larger than a specified `lt` or `lte`,
|
|
722
|
+
* the range is reversed, and the field value must be outside the specified
|
|
723
|
+
* range. If the field value doesn't meet the required conditions, an error
|
|
724
|
+
* message is generated.
|
|
725
|
+
*
|
|
726
|
+
* ```proto
|
|
727
|
+
* message MyDouble {
|
|
728
|
+
* // value must be greater than 5.0 [double.gt]
|
|
729
|
+
* double value = 1 [(buf.validate.field).double.gt = 5.0];
|
|
730
|
+
*
|
|
731
|
+
* // value must be greater than 5 and less than 10.0 [double.gt_lt]
|
|
732
|
+
* double other_value = 2 [(buf.validate.field).double = { gt: 5.0, lt: 10.0 }];
|
|
733
|
+
*
|
|
734
|
+
* // value must be greater than 10 or less than 5.0 [double.gt_lt_exclusive]
|
|
735
|
+
* double another_value = 3 [(buf.validate.field).double = { gt: 10.0, lt: 5.0 }];
|
|
736
|
+
* }
|
|
737
|
+
* ```
|
|
738
|
+
*
|
|
739
|
+
* @generated from field: double gt = 4;
|
|
740
|
+
*/
|
|
741
|
+
value: number;
|
|
742
|
+
case: "gt";
|
|
743
|
+
} | {
|
|
744
|
+
/**
|
|
745
|
+
* `gte` requires the field value to be greater than or equal to the specified
|
|
746
|
+
* value (exclusive). If the value of `gte` is larger than a specified `lt` or
|
|
747
|
+
* `lte`, the range is reversed, and the field value must be outside the
|
|
748
|
+
* specified range. If the field value doesn't meet the required conditions,
|
|
749
|
+
* an error message is generated.
|
|
750
|
+
*
|
|
751
|
+
* ```proto
|
|
752
|
+
* message MyDouble {
|
|
753
|
+
* // value must be greater than or equal to 5.0 [double.gte]
|
|
754
|
+
* double value = 1 [(buf.validate.field).double.gte = 5.0];
|
|
755
|
+
*
|
|
756
|
+
* // value must be greater than or equal to 5.0 and less than 10.0 [double.gte_lt]
|
|
757
|
+
* double other_value = 2 [(buf.validate.field).double = { gte: 5.0, lt: 10.0 }];
|
|
758
|
+
*
|
|
759
|
+
* // value must be greater than or equal to 10.0 or less than 5.0 [double.gte_lt_exclusive]
|
|
760
|
+
* double another_value = 3 [(buf.validate.field).double = { gte: 10.0, lt: 5.0 }];
|
|
761
|
+
* }
|
|
762
|
+
* ```
|
|
763
|
+
*
|
|
764
|
+
* @generated from field: double gte = 5;
|
|
765
|
+
*/
|
|
766
|
+
value: number;
|
|
767
|
+
case: "gte";
|
|
768
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* `in` requires the field value to be equal to one of the specified values.
|
|
772
|
+
* If the field value isn't one of the specified values, an error message is
|
|
773
|
+
* generated.
|
|
774
|
+
*
|
|
775
|
+
* ```proto
|
|
776
|
+
* message MyDouble {
|
|
777
|
+
* // value must be in list [1.0, 2.0, 3.0]
|
|
778
|
+
* repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] };
|
|
779
|
+
* }
|
|
780
|
+
* ```
|
|
781
|
+
*
|
|
782
|
+
* @generated from field: repeated double in = 6;
|
|
783
|
+
*/
|
|
784
|
+
in: number[] = [];
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* `not_in` requires the field value to not be equal to any of the specified
|
|
788
|
+
* values. If the field value is one of the specified values, an error
|
|
789
|
+
* message is generated.
|
|
790
|
+
*
|
|
791
|
+
* ```proto
|
|
792
|
+
* message MyDouble {
|
|
793
|
+
* // value must not be in list [1.0, 2.0, 3.0]
|
|
794
|
+
* repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] };
|
|
795
|
+
* }
|
|
796
|
+
* ```
|
|
797
|
+
*
|
|
798
|
+
* @generated from field: repeated double not_in = 7;
|
|
799
|
+
*/
|
|
800
|
+
notIn: number[] = [];
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* `finite` requires the field value to be finite. If the field value is
|
|
804
|
+
* infinite or NaN, an error message is generated.
|
|
805
|
+
*
|
|
806
|
+
* @generated from field: bool finite = 8;
|
|
807
|
+
*/
|
|
808
|
+
finite = false;
|
|
809
|
+
|
|
810
|
+
constructor(data?: PartialMessage<DoubleRules>) {
|
|
811
|
+
super();
|
|
812
|
+
proto3.util.initPartial(data, this);
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
816
|
+
static readonly typeName = "buf.validate.DoubleRules";
|
|
817
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
818
|
+
{ no: 1, name: "const", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
819
|
+
{ no: 2, name: "lt", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, oneof: "less_than" },
|
|
820
|
+
{ no: 3, name: "lte", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, oneof: "less_than" },
|
|
821
|
+
{ no: 4, name: "gt", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, oneof: "greater_than" },
|
|
822
|
+
{ no: 5, name: "gte", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, oneof: "greater_than" },
|
|
823
|
+
{ no: 6, name: "in", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, repeated: true },
|
|
824
|
+
{ no: 7, name: "not_in", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, repeated: true },
|
|
825
|
+
{ no: 8, name: "finite", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
826
|
+
]);
|
|
827
|
+
|
|
828
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DoubleRules {
|
|
829
|
+
return new DoubleRules().fromBinary(bytes, options);
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DoubleRules {
|
|
833
|
+
return new DoubleRules().fromJson(jsonValue, options);
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DoubleRules {
|
|
837
|
+
return new DoubleRules().fromJsonString(jsonString, options);
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
static equals(a: DoubleRules | PlainMessage<DoubleRules> | undefined, b: DoubleRules | PlainMessage<DoubleRules> | undefined): boolean {
|
|
841
|
+
return proto3.util.equals(DoubleRules, a, b);
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
/**
|
|
846
|
+
* Int32Rules describes the constraints applied to `int32` values. These
|
|
847
|
+
* rules may also be applied to the `google.protobuf.Int32Value` Well-Known-Type.
|
|
848
|
+
*
|
|
849
|
+
* @generated from message buf.validate.Int32Rules
|
|
850
|
+
*/
|
|
851
|
+
export class Int32Rules extends Message<Int32Rules> {
|
|
852
|
+
/**
|
|
853
|
+
* `const` requires the field value to exactly match the specified value. If
|
|
854
|
+
* the field value doesn't match, an error message is generated.
|
|
855
|
+
*
|
|
856
|
+
* ```proto
|
|
857
|
+
* message MyInt32 {
|
|
858
|
+
* // value must equal 42
|
|
859
|
+
* int32 value = 1 [(buf.validate.field).int32.const = 42];
|
|
860
|
+
* }
|
|
861
|
+
* ```
|
|
862
|
+
*
|
|
863
|
+
* @generated from field: optional int32 const = 1;
|
|
864
|
+
*/
|
|
865
|
+
const?: number;
|
|
866
|
+
|
|
867
|
+
/**
|
|
868
|
+
* @generated from oneof buf.validate.Int32Rules.less_than
|
|
869
|
+
*/
|
|
870
|
+
lessThan: {
|
|
871
|
+
/**
|
|
872
|
+
* `lt` requires the field value to be less than the specified value (field
|
|
873
|
+
* < value). If the field value is equal to or greater than the specified
|
|
874
|
+
* value, an error message is generated.
|
|
875
|
+
*
|
|
876
|
+
* ```proto
|
|
877
|
+
* message MyInt32 {
|
|
878
|
+
* // value must be less than 10
|
|
879
|
+
* int32 value = 1 [(buf.validate.field).int32.lt = 10];
|
|
880
|
+
* }
|
|
881
|
+
* ```
|
|
882
|
+
*
|
|
883
|
+
* @generated from field: int32 lt = 2;
|
|
884
|
+
*/
|
|
885
|
+
value: number;
|
|
886
|
+
case: "lt";
|
|
887
|
+
} | {
|
|
888
|
+
/**
|
|
889
|
+
* `lte` requires the field value to be less than or equal to the specified
|
|
890
|
+
* value (field <= value). If the field value is greater than the specified
|
|
891
|
+
* value, an error message is generated.
|
|
892
|
+
*
|
|
893
|
+
* ```proto
|
|
894
|
+
* message MyInt32 {
|
|
895
|
+
* // value must be less than or equal to 10
|
|
896
|
+
* int32 value = 1 [(buf.validate.field).int32.lte = 10];
|
|
897
|
+
* }
|
|
898
|
+
* ```
|
|
899
|
+
*
|
|
900
|
+
* @generated from field: int32 lte = 3;
|
|
901
|
+
*/
|
|
902
|
+
value: number;
|
|
903
|
+
case: "lte";
|
|
904
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* @generated from oneof buf.validate.Int32Rules.greater_than
|
|
908
|
+
*/
|
|
909
|
+
greaterThan: {
|
|
910
|
+
/**
|
|
911
|
+
* `gt` requires the field value to be greater than the specified value
|
|
912
|
+
* (exclusive). If the value of `gt` is larger than a specified `lt` or
|
|
913
|
+
* `lte`, the range is reversed, and the field value must be outside the
|
|
914
|
+
* specified range. If the field value doesn't meet the required conditions,
|
|
915
|
+
* an error message is generated.
|
|
916
|
+
*
|
|
917
|
+
* ```proto
|
|
918
|
+
* message MyInt32 {
|
|
919
|
+
* // value must be greater than 5 [int32.gt]
|
|
920
|
+
* int32 value = 1 [(buf.validate.field).int32.gt = 5];
|
|
921
|
+
*
|
|
922
|
+
* // value must be greater than 5 and less than 10 [int32.gt_lt]
|
|
923
|
+
* int32 other_value = 2 [(buf.validate.field).int32 = { gt: 5, lt: 10 }];
|
|
924
|
+
*
|
|
925
|
+
* // value must be greater than 10 or less than 5 [int32.gt_lt_exclusive]
|
|
926
|
+
* int32 another_value = 3 [(buf.validate.field).int32 = { gt: 10, lt: 5 }];
|
|
927
|
+
* }
|
|
928
|
+
* ```
|
|
929
|
+
*
|
|
930
|
+
* @generated from field: int32 gt = 4;
|
|
931
|
+
*/
|
|
932
|
+
value: number;
|
|
933
|
+
case: "gt";
|
|
934
|
+
} | {
|
|
935
|
+
/**
|
|
936
|
+
* `gte` requires the field value to be greater than or equal to the specified value
|
|
937
|
+
* (exclusive). If the value of `gte` is larger than a specified `lt` or
|
|
938
|
+
* `lte`, the range is reversed, and the field value must be outside the
|
|
939
|
+
* specified range. If the field value doesn't meet the required conditions,
|
|
940
|
+
* an error message is generated.
|
|
941
|
+
*
|
|
942
|
+
* ```proto
|
|
943
|
+
* message MyInt32 {
|
|
944
|
+
* // value must be greater than or equal to 5 [int32.gte]
|
|
945
|
+
* int32 value = 1 [(buf.validate.field).int32.gte = 5];
|
|
946
|
+
*
|
|
947
|
+
* // value must be greater than or equal to 5 and less than 10 [int32.gte_lt]
|
|
948
|
+
* int32 other_value = 2 [(buf.validate.field).int32 = { gte: 5, lt: 10 }];
|
|
949
|
+
*
|
|
950
|
+
* // value must be greater than or equal to 10 or less than 5 [int32.gte_lt_exclusive]
|
|
951
|
+
* int32 another_value = 3 [(buf.validate.field).int32 = { gte: 10, lt: 5 }];
|
|
952
|
+
* }
|
|
953
|
+
* ```
|
|
954
|
+
*
|
|
955
|
+
* @generated from field: int32 gte = 5;
|
|
956
|
+
*/
|
|
957
|
+
value: number;
|
|
958
|
+
case: "gte";
|
|
959
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
960
|
+
|
|
961
|
+
/**
|
|
962
|
+
* `in` requires the field value to be equal to one of the specified values.
|
|
963
|
+
* If the field value isn't one of the specified values, an error message is
|
|
964
|
+
* generated.
|
|
965
|
+
*
|
|
966
|
+
* ```proto
|
|
967
|
+
* message MyInt32 {
|
|
968
|
+
* // value must be in list [1, 2, 3]
|
|
969
|
+
* repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] };
|
|
970
|
+
* }
|
|
971
|
+
* ```
|
|
972
|
+
*
|
|
973
|
+
* @generated from field: repeated int32 in = 6;
|
|
974
|
+
*/
|
|
975
|
+
in: number[] = [];
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* `not_in` requires the field value to not be equal to any of the specified
|
|
979
|
+
* values. If the field value is one of the specified values, an error message
|
|
980
|
+
* is generated.
|
|
981
|
+
*
|
|
982
|
+
* ```proto
|
|
983
|
+
* message MyInt32 {
|
|
984
|
+
* // value must not be in list [1, 2, 3]
|
|
985
|
+
* repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] };
|
|
986
|
+
* }
|
|
987
|
+
* ```
|
|
988
|
+
*
|
|
989
|
+
* @generated from field: repeated int32 not_in = 7;
|
|
990
|
+
*/
|
|
991
|
+
notIn: number[] = [];
|
|
992
|
+
|
|
993
|
+
constructor(data?: PartialMessage<Int32Rules>) {
|
|
994
|
+
super();
|
|
995
|
+
proto3.util.initPartial(data, this);
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
999
|
+
static readonly typeName = "buf.validate.Int32Rules";
|
|
1000
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1001
|
+
{ no: 1, name: "const", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1002
|
+
{ no: 2, name: "lt", kind: "scalar", T: 5 /* ScalarType.INT32 */, oneof: "less_than" },
|
|
1003
|
+
{ no: 3, name: "lte", kind: "scalar", T: 5 /* ScalarType.INT32 */, oneof: "less_than" },
|
|
1004
|
+
{ no: 4, name: "gt", kind: "scalar", T: 5 /* ScalarType.INT32 */, oneof: "greater_than" },
|
|
1005
|
+
{ no: 5, name: "gte", kind: "scalar", T: 5 /* ScalarType.INT32 */, oneof: "greater_than" },
|
|
1006
|
+
{ no: 6, name: "in", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
|
|
1007
|
+
{ no: 7, name: "not_in", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
|
|
1008
|
+
]);
|
|
1009
|
+
|
|
1010
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Int32Rules {
|
|
1011
|
+
return new Int32Rules().fromBinary(bytes, options);
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Int32Rules {
|
|
1015
|
+
return new Int32Rules().fromJson(jsonValue, options);
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Int32Rules {
|
|
1019
|
+
return new Int32Rules().fromJsonString(jsonString, options);
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
static equals(a: Int32Rules | PlainMessage<Int32Rules> | undefined, b: Int32Rules | PlainMessage<Int32Rules> | undefined): boolean {
|
|
1023
|
+
return proto3.util.equals(Int32Rules, a, b);
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* Int64Rules describes the constraints applied to `int64` values. These
|
|
1029
|
+
* rules may also be applied to the `google.protobuf.Int64Value` Well-Known-Type.
|
|
1030
|
+
*
|
|
1031
|
+
* @generated from message buf.validate.Int64Rules
|
|
1032
|
+
*/
|
|
1033
|
+
export class Int64Rules extends Message<Int64Rules> {
|
|
1034
|
+
/**
|
|
1035
|
+
* `const` requires the field value to exactly match the specified value. If
|
|
1036
|
+
* the field value doesn't match, an error message is generated.
|
|
1037
|
+
*
|
|
1038
|
+
* ```proto
|
|
1039
|
+
* message MyInt64 {
|
|
1040
|
+
* // value must equal 42
|
|
1041
|
+
* int64 value = 1 [(buf.validate.field).int64.const = 42];
|
|
1042
|
+
* }
|
|
1043
|
+
* ```
|
|
1044
|
+
*
|
|
1045
|
+
* @generated from field: optional int64 const = 1;
|
|
1046
|
+
*/
|
|
1047
|
+
const?: bigint;
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* @generated from oneof buf.validate.Int64Rules.less_than
|
|
1051
|
+
*/
|
|
1052
|
+
lessThan: {
|
|
1053
|
+
/**
|
|
1054
|
+
* `lt` requires the field value to be less than the specified value (field <
|
|
1055
|
+
* value). If the field value is equal to or greater than the specified value,
|
|
1056
|
+
* an error message is generated.
|
|
1057
|
+
*
|
|
1058
|
+
* ```proto
|
|
1059
|
+
* message MyInt64 {
|
|
1060
|
+
* // value must be less than 10
|
|
1061
|
+
* int64 value = 1 [(buf.validate.field).int64.lt = 10];
|
|
1062
|
+
* }
|
|
1063
|
+
* ```
|
|
1064
|
+
*
|
|
1065
|
+
* @generated from field: int64 lt = 2;
|
|
1066
|
+
*/
|
|
1067
|
+
value: bigint;
|
|
1068
|
+
case: "lt";
|
|
1069
|
+
} | {
|
|
1070
|
+
/**
|
|
1071
|
+
* `lte` requires the field value to be less than or equal to the specified
|
|
1072
|
+
* value (field <= value). If the field value is greater than the specified
|
|
1073
|
+
* value, an error message is generated.
|
|
1074
|
+
*
|
|
1075
|
+
* ```proto
|
|
1076
|
+
* message MyInt64 {
|
|
1077
|
+
* // value must be less than or equal to 10
|
|
1078
|
+
* int64 value = 1 [(buf.validate.field).int64.lte = 10];
|
|
1079
|
+
* }
|
|
1080
|
+
* ```
|
|
1081
|
+
*
|
|
1082
|
+
* @generated from field: int64 lte = 3;
|
|
1083
|
+
*/
|
|
1084
|
+
value: bigint;
|
|
1085
|
+
case: "lte";
|
|
1086
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* @generated from oneof buf.validate.Int64Rules.greater_than
|
|
1090
|
+
*/
|
|
1091
|
+
greaterThan: {
|
|
1092
|
+
/**
|
|
1093
|
+
* `gt` requires the field value to be greater than the specified value
|
|
1094
|
+
* (exclusive). If the value of `gt` is larger than a specified `lt` or
|
|
1095
|
+
* `lte`, the range is reversed, and the field value must be outside the
|
|
1096
|
+
* specified range. If the field value doesn't meet the required conditions,
|
|
1097
|
+
* an error message is generated.
|
|
1098
|
+
*
|
|
1099
|
+
* ```proto
|
|
1100
|
+
* message MyInt64 {
|
|
1101
|
+
* // value must be greater than 5 [int64.gt]
|
|
1102
|
+
* int64 value = 1 [(buf.validate.field).int64.gt = 5];
|
|
1103
|
+
*
|
|
1104
|
+
* // value must be greater than 5 and less than 10 [int64.gt_lt]
|
|
1105
|
+
* int64 other_value = 2 [(buf.validate.field).int64 = { gt: 5, lt: 10 }];
|
|
1106
|
+
*
|
|
1107
|
+
* // value must be greater than 10 or less than 5 [int64.gt_lt_exclusive]
|
|
1108
|
+
* int64 another_value = 3 [(buf.validate.field).int64 = { gt: 10, lt: 5 }];
|
|
1109
|
+
* }
|
|
1110
|
+
* ```
|
|
1111
|
+
*
|
|
1112
|
+
* @generated from field: int64 gt = 4;
|
|
1113
|
+
*/
|
|
1114
|
+
value: bigint;
|
|
1115
|
+
case: "gt";
|
|
1116
|
+
} | {
|
|
1117
|
+
/**
|
|
1118
|
+
* `gte` requires the field value to be greater than or equal to the specified
|
|
1119
|
+
* value (exclusive). If the value of `gte` is larger than a specified `lt`
|
|
1120
|
+
* or `lte`, the range is reversed, and the field value must be outside the
|
|
1121
|
+
* specified range. If the field value doesn't meet the required conditions,
|
|
1122
|
+
* an error message is generated.
|
|
1123
|
+
*
|
|
1124
|
+
* ```proto
|
|
1125
|
+
* message MyInt64 {
|
|
1126
|
+
* // value must be greater than or equal to 5 [int64.gte]
|
|
1127
|
+
* int64 value = 1 [(buf.validate.field).int64.gte = 5];
|
|
1128
|
+
*
|
|
1129
|
+
* // value must be greater than or equal to 5 and less than 10 [int64.gte_lt]
|
|
1130
|
+
* int64 other_value = 2 [(buf.validate.field).int64 = { gte: 5, lt: 10 }];
|
|
1131
|
+
*
|
|
1132
|
+
* // value must be greater than or equal to 10 or less than 5 [int64.gte_lt_exclusive]
|
|
1133
|
+
* int64 another_value = 3 [(buf.validate.field).int64 = { gte: 10, lt: 5 }];
|
|
1134
|
+
* }
|
|
1135
|
+
* ```
|
|
1136
|
+
*
|
|
1137
|
+
* @generated from field: int64 gte = 5;
|
|
1138
|
+
*/
|
|
1139
|
+
value: bigint;
|
|
1140
|
+
case: "gte";
|
|
1141
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
1142
|
+
|
|
1143
|
+
/**
|
|
1144
|
+
* `in` requires the field value to be equal to one of the specified values.
|
|
1145
|
+
* If the field value isn't one of the specified values, an error message is
|
|
1146
|
+
* generated.
|
|
1147
|
+
*
|
|
1148
|
+
* ```proto
|
|
1149
|
+
* message MyInt64 {
|
|
1150
|
+
* // value must be in list [1, 2, 3]
|
|
1151
|
+
* repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] };
|
|
1152
|
+
* }
|
|
1153
|
+
* ```
|
|
1154
|
+
*
|
|
1155
|
+
* @generated from field: repeated int64 in = 6;
|
|
1156
|
+
*/
|
|
1157
|
+
in: bigint[] = [];
|
|
1158
|
+
|
|
1159
|
+
/**
|
|
1160
|
+
* `not_in` requires the field value to not be equal to any of the specified
|
|
1161
|
+
* values. If the field value is one of the specified values, an error
|
|
1162
|
+
* message is generated.
|
|
1163
|
+
*
|
|
1164
|
+
* ```proto
|
|
1165
|
+
* message MyInt64 {
|
|
1166
|
+
* // value must not be in list [1, 2, 3]
|
|
1167
|
+
* repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] };
|
|
1168
|
+
* }
|
|
1169
|
+
* ```
|
|
1170
|
+
*
|
|
1171
|
+
* @generated from field: repeated int64 not_in = 7;
|
|
1172
|
+
*/
|
|
1173
|
+
notIn: bigint[] = [];
|
|
1174
|
+
|
|
1175
|
+
constructor(data?: PartialMessage<Int64Rules>) {
|
|
1176
|
+
super();
|
|
1177
|
+
proto3.util.initPartial(data, this);
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1181
|
+
static readonly typeName = "buf.validate.Int64Rules";
|
|
1182
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1183
|
+
{ no: 1, name: "const", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
|
|
1184
|
+
{ no: 2, name: "lt", kind: "scalar", T: 3 /* ScalarType.INT64 */, oneof: "less_than" },
|
|
1185
|
+
{ no: 3, name: "lte", kind: "scalar", T: 3 /* ScalarType.INT64 */, oneof: "less_than" },
|
|
1186
|
+
{ no: 4, name: "gt", kind: "scalar", T: 3 /* ScalarType.INT64 */, oneof: "greater_than" },
|
|
1187
|
+
{ no: 5, name: "gte", kind: "scalar", T: 3 /* ScalarType.INT64 */, oneof: "greater_than" },
|
|
1188
|
+
{ no: 6, name: "in", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true },
|
|
1189
|
+
{ no: 7, name: "not_in", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true },
|
|
1190
|
+
]);
|
|
1191
|
+
|
|
1192
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Int64Rules {
|
|
1193
|
+
return new Int64Rules().fromBinary(bytes, options);
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Int64Rules {
|
|
1197
|
+
return new Int64Rules().fromJson(jsonValue, options);
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Int64Rules {
|
|
1201
|
+
return new Int64Rules().fromJsonString(jsonString, options);
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
static equals(a: Int64Rules | PlainMessage<Int64Rules> | undefined, b: Int64Rules | PlainMessage<Int64Rules> | undefined): boolean {
|
|
1205
|
+
return proto3.util.equals(Int64Rules, a, b);
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
/**
|
|
1210
|
+
* UInt32Rules describes the constraints applied to `uint32` values. These
|
|
1211
|
+
* rules may also be applied to the `google.protobuf.UInt32Value` Well-Known-Type.
|
|
1212
|
+
*
|
|
1213
|
+
* @generated from message buf.validate.UInt32Rules
|
|
1214
|
+
*/
|
|
1215
|
+
export class UInt32Rules extends Message<UInt32Rules> {
|
|
1216
|
+
/**
|
|
1217
|
+
* `const` requires the field value to exactly match the specified value. If
|
|
1218
|
+
* the field value doesn't match, an error message is generated.
|
|
1219
|
+
*
|
|
1220
|
+
* ```proto
|
|
1221
|
+
* message MyUInt32 {
|
|
1222
|
+
* // value must equal 42
|
|
1223
|
+
* uint32 value = 1 [(buf.validate.field).uint32.const = 42];
|
|
1224
|
+
* }
|
|
1225
|
+
* ```
|
|
1226
|
+
*
|
|
1227
|
+
* @generated from field: optional uint32 const = 1;
|
|
1228
|
+
*/
|
|
1229
|
+
const?: number;
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
* @generated from oneof buf.validate.UInt32Rules.less_than
|
|
1233
|
+
*/
|
|
1234
|
+
lessThan: {
|
|
1235
|
+
/**
|
|
1236
|
+
* `lt` requires the field value to be less than the specified value (field <
|
|
1237
|
+
* value). If the field value is equal to or greater than the specified value,
|
|
1238
|
+
* an error message is generated.
|
|
1239
|
+
*
|
|
1240
|
+
* ```proto
|
|
1241
|
+
* message MyUInt32 {
|
|
1242
|
+
* // value must be less than 10
|
|
1243
|
+
* uint32 value = 1 [(buf.validate.field).uint32.lt = 10];
|
|
1244
|
+
* }
|
|
1245
|
+
* ```
|
|
1246
|
+
*
|
|
1247
|
+
* @generated from field: uint32 lt = 2;
|
|
1248
|
+
*/
|
|
1249
|
+
value: number;
|
|
1250
|
+
case: "lt";
|
|
1251
|
+
} | {
|
|
1252
|
+
/**
|
|
1253
|
+
* `lte` requires the field value to be less than or equal to the specified
|
|
1254
|
+
* value (field <= value). If the field value is greater than the specified
|
|
1255
|
+
* value, an error message is generated.
|
|
1256
|
+
*
|
|
1257
|
+
* ```proto
|
|
1258
|
+
* message MyUInt32 {
|
|
1259
|
+
* // value must be less than or equal to 10
|
|
1260
|
+
* uint32 value = 1 [(buf.validate.field).uint32.lte = 10];
|
|
1261
|
+
* }
|
|
1262
|
+
* ```
|
|
1263
|
+
*
|
|
1264
|
+
* @generated from field: uint32 lte = 3;
|
|
1265
|
+
*/
|
|
1266
|
+
value: number;
|
|
1267
|
+
case: "lte";
|
|
1268
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
1269
|
+
|
|
1270
|
+
/**
|
|
1271
|
+
* @generated from oneof buf.validate.UInt32Rules.greater_than
|
|
1272
|
+
*/
|
|
1273
|
+
greaterThan: {
|
|
1274
|
+
/**
|
|
1275
|
+
* `gt` requires the field value to be greater than the specified value
|
|
1276
|
+
* (exclusive). If the value of `gt` is larger than a specified `lt` or
|
|
1277
|
+
* `lte`, the range is reversed, and the field value must be outside the
|
|
1278
|
+
* specified range. If the field value doesn't meet the required conditions,
|
|
1279
|
+
* an error message is generated.
|
|
1280
|
+
*
|
|
1281
|
+
* ```proto
|
|
1282
|
+
* message MyUInt32 {
|
|
1283
|
+
* // value must be greater than 5 [uint32.gt]
|
|
1284
|
+
* uint32 value = 1 [(buf.validate.field).uint32.gt = 5];
|
|
1285
|
+
*
|
|
1286
|
+
* // value must be greater than 5 and less than 10 [uint32.gt_lt]
|
|
1287
|
+
* uint32 other_value = 2 [(buf.validate.field).uint32 = { gt: 5, lt: 10 }];
|
|
1288
|
+
*
|
|
1289
|
+
* // value must be greater than 10 or less than 5 [uint32.gt_lt_exclusive]
|
|
1290
|
+
* uint32 another_value = 3 [(buf.validate.field).uint32 = { gt: 10, lt: 5 }];
|
|
1291
|
+
* }
|
|
1292
|
+
* ```
|
|
1293
|
+
*
|
|
1294
|
+
* @generated from field: uint32 gt = 4;
|
|
1295
|
+
*/
|
|
1296
|
+
value: number;
|
|
1297
|
+
case: "gt";
|
|
1298
|
+
} | {
|
|
1299
|
+
/**
|
|
1300
|
+
* `gte` requires the field value to be greater than or equal to the specified
|
|
1301
|
+
* value (exclusive). If the value of `gte` is larger than a specified `lt`
|
|
1302
|
+
* or `lte`, the range is reversed, and the field value must be outside the
|
|
1303
|
+
* specified range. If the field value doesn't meet the required conditions,
|
|
1304
|
+
* an error message is generated.
|
|
1305
|
+
*
|
|
1306
|
+
* ```proto
|
|
1307
|
+
* message MyUInt32 {
|
|
1308
|
+
* // value must be greater than or equal to 5 [uint32.gte]
|
|
1309
|
+
* uint32 value = 1 [(buf.validate.field).uint32.gte = 5];
|
|
1310
|
+
*
|
|
1311
|
+
* // value must be greater than or equal to 5 and less than 10 [uint32.gte_lt]
|
|
1312
|
+
* uint32 other_value = 2 [(buf.validate.field).uint32 = { gte: 5, lt: 10 }];
|
|
1313
|
+
*
|
|
1314
|
+
* // value must be greater than or equal to 10 or less than 5 [uint32.gte_lt_exclusive]
|
|
1315
|
+
* uint32 another_value = 3 [(buf.validate.field).uint32 = { gte: 10, lt: 5 }];
|
|
1316
|
+
* }
|
|
1317
|
+
* ```
|
|
1318
|
+
*
|
|
1319
|
+
* @generated from field: uint32 gte = 5;
|
|
1320
|
+
*/
|
|
1321
|
+
value: number;
|
|
1322
|
+
case: "gte";
|
|
1323
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
1324
|
+
|
|
1325
|
+
/**
|
|
1326
|
+
* `in` requires the field value to be equal to one of the specified values.
|
|
1327
|
+
* If the field value isn't one of the specified values, an error message is
|
|
1328
|
+
* generated.
|
|
1329
|
+
*
|
|
1330
|
+
* ```proto
|
|
1331
|
+
* message MyUInt32 {
|
|
1332
|
+
* // value must be in list [1, 2, 3]
|
|
1333
|
+
* repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] };
|
|
1334
|
+
* }
|
|
1335
|
+
* ```
|
|
1336
|
+
*
|
|
1337
|
+
* @generated from field: repeated uint32 in = 6;
|
|
1338
|
+
*/
|
|
1339
|
+
in: number[] = [];
|
|
1340
|
+
|
|
1341
|
+
/**
|
|
1342
|
+
* `not_in` requires the field value to not be equal to any of the specified
|
|
1343
|
+
* values. If the field value is one of the specified values, an error
|
|
1344
|
+
* message is generated.
|
|
1345
|
+
*
|
|
1346
|
+
* ```proto
|
|
1347
|
+
* message MyUInt32 {
|
|
1348
|
+
* // value must not be in list [1, 2, 3]
|
|
1349
|
+
* repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] };
|
|
1350
|
+
* }
|
|
1351
|
+
* ```
|
|
1352
|
+
*
|
|
1353
|
+
* @generated from field: repeated uint32 not_in = 7;
|
|
1354
|
+
*/
|
|
1355
|
+
notIn: number[] = [];
|
|
1356
|
+
|
|
1357
|
+
constructor(data?: PartialMessage<UInt32Rules>) {
|
|
1358
|
+
super();
|
|
1359
|
+
proto3.util.initPartial(data, this);
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1363
|
+
static readonly typeName = "buf.validate.UInt32Rules";
|
|
1364
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1365
|
+
{ no: 1, name: "const", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1366
|
+
{ no: 2, name: "lt", kind: "scalar", T: 13 /* ScalarType.UINT32 */, oneof: "less_than" },
|
|
1367
|
+
{ no: 3, name: "lte", kind: "scalar", T: 13 /* ScalarType.UINT32 */, oneof: "less_than" },
|
|
1368
|
+
{ no: 4, name: "gt", kind: "scalar", T: 13 /* ScalarType.UINT32 */, oneof: "greater_than" },
|
|
1369
|
+
{ no: 5, name: "gte", kind: "scalar", T: 13 /* ScalarType.UINT32 */, oneof: "greater_than" },
|
|
1370
|
+
{ no: 6, name: "in", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
1371
|
+
{ no: 7, name: "not_in", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
1372
|
+
]);
|
|
1373
|
+
|
|
1374
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UInt32Rules {
|
|
1375
|
+
return new UInt32Rules().fromBinary(bytes, options);
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UInt32Rules {
|
|
1379
|
+
return new UInt32Rules().fromJson(jsonValue, options);
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UInt32Rules {
|
|
1383
|
+
return new UInt32Rules().fromJsonString(jsonString, options);
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
static equals(a: UInt32Rules | PlainMessage<UInt32Rules> | undefined, b: UInt32Rules | PlainMessage<UInt32Rules> | undefined): boolean {
|
|
1387
|
+
return proto3.util.equals(UInt32Rules, a, b);
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
/**
|
|
1392
|
+
* UInt64Rules describes the constraints applied to `uint64` values. These
|
|
1393
|
+
* rules may also be applied to the `google.protobuf.UInt64Value` Well-Known-Type.
|
|
1394
|
+
*
|
|
1395
|
+
* @generated from message buf.validate.UInt64Rules
|
|
1396
|
+
*/
|
|
1397
|
+
export class UInt64Rules extends Message<UInt64Rules> {
|
|
1398
|
+
/**
|
|
1399
|
+
* `const` requires the field value to exactly match the specified value. If
|
|
1400
|
+
* the field value doesn't match, an error message is generated.
|
|
1401
|
+
*
|
|
1402
|
+
* ```proto
|
|
1403
|
+
* message MyUInt64 {
|
|
1404
|
+
* // value must equal 42
|
|
1405
|
+
* uint64 value = 1 [(buf.validate.field).uint64.const = 42];
|
|
1406
|
+
* }
|
|
1407
|
+
* ```
|
|
1408
|
+
*
|
|
1409
|
+
* @generated from field: optional uint64 const = 1;
|
|
1410
|
+
*/
|
|
1411
|
+
const?: bigint;
|
|
1412
|
+
|
|
1413
|
+
/**
|
|
1414
|
+
* @generated from oneof buf.validate.UInt64Rules.less_than
|
|
1415
|
+
*/
|
|
1416
|
+
lessThan: {
|
|
1417
|
+
/**
|
|
1418
|
+
* `lt` requires the field value to be less than the specified value (field <
|
|
1419
|
+
* value). If the field value is equal to or greater than the specified value,
|
|
1420
|
+
* an error message is generated.
|
|
1421
|
+
*
|
|
1422
|
+
* ```proto
|
|
1423
|
+
* message MyUInt64 {
|
|
1424
|
+
* // value must be less than 10
|
|
1425
|
+
* uint64 value = 1 [(buf.validate.field).uint64.lt = 10];
|
|
1426
|
+
* }
|
|
1427
|
+
* ```
|
|
1428
|
+
*
|
|
1429
|
+
* @generated from field: uint64 lt = 2;
|
|
1430
|
+
*/
|
|
1431
|
+
value: bigint;
|
|
1432
|
+
case: "lt";
|
|
1433
|
+
} | {
|
|
1434
|
+
/**
|
|
1435
|
+
* `lte` requires the field value to be less than or equal to the specified
|
|
1436
|
+
* value (field <= value). If the field value is greater than the specified
|
|
1437
|
+
* value, an error message is generated.
|
|
1438
|
+
*
|
|
1439
|
+
* ```proto
|
|
1440
|
+
* message MyUInt64 {
|
|
1441
|
+
* // value must be less than or equal to 10
|
|
1442
|
+
* uint64 value = 1 [(buf.validate.field).uint64.lte = 10];
|
|
1443
|
+
* }
|
|
1444
|
+
* ```
|
|
1445
|
+
*
|
|
1446
|
+
* @generated from field: uint64 lte = 3;
|
|
1447
|
+
*/
|
|
1448
|
+
value: bigint;
|
|
1449
|
+
case: "lte";
|
|
1450
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
1451
|
+
|
|
1452
|
+
/**
|
|
1453
|
+
* @generated from oneof buf.validate.UInt64Rules.greater_than
|
|
1454
|
+
*/
|
|
1455
|
+
greaterThan: {
|
|
1456
|
+
/**
|
|
1457
|
+
* `gt` requires the field value to be greater than the specified value
|
|
1458
|
+
* (exclusive). If the value of `gt` is larger than a specified `lt` or
|
|
1459
|
+
* `lte`, the range is reversed, and the field value must be outside the
|
|
1460
|
+
* specified range. If the field value doesn't meet the required conditions,
|
|
1461
|
+
* an error message is generated.
|
|
1462
|
+
*
|
|
1463
|
+
* ```proto
|
|
1464
|
+
* message MyUInt64 {
|
|
1465
|
+
* // value must be greater than 5 [uint64.gt]
|
|
1466
|
+
* uint64 value = 1 [(buf.validate.field).uint64.gt = 5];
|
|
1467
|
+
*
|
|
1468
|
+
* // value must be greater than 5 and less than 10 [uint64.gt_lt]
|
|
1469
|
+
* uint64 other_value = 2 [(buf.validate.field).uint64 = { gt: 5, lt: 10 }];
|
|
1470
|
+
*
|
|
1471
|
+
* // value must be greater than 10 or less than 5 [uint64.gt_lt_exclusive]
|
|
1472
|
+
* uint64 another_value = 3 [(buf.validate.field).uint64 = { gt: 10, lt: 5 }];
|
|
1473
|
+
* }
|
|
1474
|
+
* ```
|
|
1475
|
+
*
|
|
1476
|
+
* @generated from field: uint64 gt = 4;
|
|
1477
|
+
*/
|
|
1478
|
+
value: bigint;
|
|
1479
|
+
case: "gt";
|
|
1480
|
+
} | {
|
|
1481
|
+
/**
|
|
1482
|
+
* `gte` requires the field value to be greater than or equal to the specified
|
|
1483
|
+
* value (exclusive). If the value of `gte` is larger than a specified `lt`
|
|
1484
|
+
* or `lte`, the range is reversed, and the field value must be outside the
|
|
1485
|
+
* specified range. If the field value doesn't meet the required conditions,
|
|
1486
|
+
* an error message is generated.
|
|
1487
|
+
*
|
|
1488
|
+
* ```proto
|
|
1489
|
+
* message MyUInt64 {
|
|
1490
|
+
* // value must be greater than or equal to 5 [uint64.gte]
|
|
1491
|
+
* uint64 value = 1 [(buf.validate.field).uint64.gte = 5];
|
|
1492
|
+
*
|
|
1493
|
+
* // value must be greater than or equal to 5 and less than 10 [uint64.gte_lt]
|
|
1494
|
+
* uint64 other_value = 2 [(buf.validate.field).uint64 = { gte: 5, lt: 10 }];
|
|
1495
|
+
*
|
|
1496
|
+
* // value must be greater than or equal to 10 or less than 5 [uint64.gte_lt_exclusive]
|
|
1497
|
+
* uint64 another_value = 3 [(buf.validate.field).uint64 = { gte: 10, lt: 5 }];
|
|
1498
|
+
* }
|
|
1499
|
+
* ```
|
|
1500
|
+
*
|
|
1501
|
+
* @generated from field: uint64 gte = 5;
|
|
1502
|
+
*/
|
|
1503
|
+
value: bigint;
|
|
1504
|
+
case: "gte";
|
|
1505
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
1506
|
+
|
|
1507
|
+
/**
|
|
1508
|
+
* `in` requires the field value to be equal to one of the specified values.
|
|
1509
|
+
* If the field value isn't one of the specified values, an error message is
|
|
1510
|
+
* generated.
|
|
1511
|
+
*
|
|
1512
|
+
* ```proto
|
|
1513
|
+
* message MyUInt64 {
|
|
1514
|
+
* // value must be in list [1, 2, 3]
|
|
1515
|
+
* repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] };
|
|
1516
|
+
* }
|
|
1517
|
+
* ```
|
|
1518
|
+
*
|
|
1519
|
+
* @generated from field: repeated uint64 in = 6;
|
|
1520
|
+
*/
|
|
1521
|
+
in: bigint[] = [];
|
|
1522
|
+
|
|
1523
|
+
/**
|
|
1524
|
+
* `not_in` requires the field value to not be equal to any of the specified
|
|
1525
|
+
* values. If the field value is one of the specified values, an error
|
|
1526
|
+
* message is generated.
|
|
1527
|
+
*
|
|
1528
|
+
* ```proto
|
|
1529
|
+
* message MyUInt64 {
|
|
1530
|
+
* // value must not be in list [1, 2, 3]
|
|
1531
|
+
* repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] };
|
|
1532
|
+
* }
|
|
1533
|
+
* ```
|
|
1534
|
+
*
|
|
1535
|
+
* @generated from field: repeated uint64 not_in = 7;
|
|
1536
|
+
*/
|
|
1537
|
+
notIn: bigint[] = [];
|
|
1538
|
+
|
|
1539
|
+
constructor(data?: PartialMessage<UInt64Rules>) {
|
|
1540
|
+
super();
|
|
1541
|
+
proto3.util.initPartial(data, this);
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1545
|
+
static readonly typeName = "buf.validate.UInt64Rules";
|
|
1546
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1547
|
+
{ no: 1, name: "const", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
1548
|
+
{ no: 2, name: "lt", kind: "scalar", T: 4 /* ScalarType.UINT64 */, oneof: "less_than" },
|
|
1549
|
+
{ no: 3, name: "lte", kind: "scalar", T: 4 /* ScalarType.UINT64 */, oneof: "less_than" },
|
|
1550
|
+
{ no: 4, name: "gt", kind: "scalar", T: 4 /* ScalarType.UINT64 */, oneof: "greater_than" },
|
|
1551
|
+
{ no: 5, name: "gte", kind: "scalar", T: 4 /* ScalarType.UINT64 */, oneof: "greater_than" },
|
|
1552
|
+
{ no: 6, name: "in", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true },
|
|
1553
|
+
{ no: 7, name: "not_in", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true },
|
|
1554
|
+
]);
|
|
1555
|
+
|
|
1556
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UInt64Rules {
|
|
1557
|
+
return new UInt64Rules().fromBinary(bytes, options);
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UInt64Rules {
|
|
1561
|
+
return new UInt64Rules().fromJson(jsonValue, options);
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UInt64Rules {
|
|
1565
|
+
return new UInt64Rules().fromJsonString(jsonString, options);
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
static equals(a: UInt64Rules | PlainMessage<UInt64Rules> | undefined, b: UInt64Rules | PlainMessage<UInt64Rules> | undefined): boolean {
|
|
1569
|
+
return proto3.util.equals(UInt64Rules, a, b);
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
/**
|
|
1574
|
+
* SInt32Rules describes the constraints applied to `sint32` values.
|
|
1575
|
+
*
|
|
1576
|
+
* @generated from message buf.validate.SInt32Rules
|
|
1577
|
+
*/
|
|
1578
|
+
export class SInt32Rules extends Message<SInt32Rules> {
|
|
1579
|
+
/**
|
|
1580
|
+
* `const` requires the field value to exactly match the specified value. If
|
|
1581
|
+
* the field value doesn't match, an error message is generated.
|
|
1582
|
+
*
|
|
1583
|
+
* ```proto
|
|
1584
|
+
* message MySInt32 {
|
|
1585
|
+
* // value must equal 42
|
|
1586
|
+
* sint32 value = 1 [(buf.validate.field).sint32.const = 42];
|
|
1587
|
+
* }
|
|
1588
|
+
* ```
|
|
1589
|
+
*
|
|
1590
|
+
* @generated from field: optional sint32 const = 1;
|
|
1591
|
+
*/
|
|
1592
|
+
const?: number;
|
|
1593
|
+
|
|
1594
|
+
/**
|
|
1595
|
+
* @generated from oneof buf.validate.SInt32Rules.less_than
|
|
1596
|
+
*/
|
|
1597
|
+
lessThan: {
|
|
1598
|
+
/**
|
|
1599
|
+
* `lt` requires the field value to be less than the specified value (field
|
|
1600
|
+
* < value). If the field value is equal to or greater than the specified
|
|
1601
|
+
* value, an error message is generated.
|
|
1602
|
+
*
|
|
1603
|
+
* ```proto
|
|
1604
|
+
* message MySInt32 {
|
|
1605
|
+
* // value must be less than 10
|
|
1606
|
+
* sint32 value = 1 [(buf.validate.field).sint32.lt = 10];
|
|
1607
|
+
* }
|
|
1608
|
+
* ```
|
|
1609
|
+
*
|
|
1610
|
+
* @generated from field: sint32 lt = 2;
|
|
1611
|
+
*/
|
|
1612
|
+
value: number;
|
|
1613
|
+
case: "lt";
|
|
1614
|
+
} | {
|
|
1615
|
+
/**
|
|
1616
|
+
* `lte` requires the field value to be less than or equal to the specified
|
|
1617
|
+
* value (field <= value). If the field value is greater than the specified
|
|
1618
|
+
* value, an error message is generated.
|
|
1619
|
+
*
|
|
1620
|
+
* ```proto
|
|
1621
|
+
* message MySInt32 {
|
|
1622
|
+
* // value must be less than or equal to 10
|
|
1623
|
+
* sint32 value = 1 [(buf.validate.field).sint32.lte = 10];
|
|
1624
|
+
* }
|
|
1625
|
+
* ```
|
|
1626
|
+
*
|
|
1627
|
+
* @generated from field: sint32 lte = 3;
|
|
1628
|
+
*/
|
|
1629
|
+
value: number;
|
|
1630
|
+
case: "lte";
|
|
1631
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
1632
|
+
|
|
1633
|
+
/**
|
|
1634
|
+
* @generated from oneof buf.validate.SInt32Rules.greater_than
|
|
1635
|
+
*/
|
|
1636
|
+
greaterThan: {
|
|
1637
|
+
/**
|
|
1638
|
+
* `gt` requires the field value to be greater than the specified value
|
|
1639
|
+
* (exclusive). If the value of `gt` is larger than a specified `lt` or
|
|
1640
|
+
* `lte`, the range is reversed, and the field value must be outside the
|
|
1641
|
+
* specified range. If the field value doesn't meet the required conditions,
|
|
1642
|
+
* an error message is generated.
|
|
1643
|
+
*
|
|
1644
|
+
* ```proto
|
|
1645
|
+
* message MySInt32 {
|
|
1646
|
+
* // value must be greater than 5 [sint32.gt]
|
|
1647
|
+
* sint32 value = 1 [(buf.validate.field).sint32.gt = 5];
|
|
1648
|
+
*
|
|
1649
|
+
* // value must be greater than 5 and less than 10 [sint32.gt_lt]
|
|
1650
|
+
* sint32 other_value = 2 [(buf.validate.field).sint32 = { gt: 5, lt: 10 }];
|
|
1651
|
+
*
|
|
1652
|
+
* // value must be greater than 10 or less than 5 [sint32.gt_lt_exclusive]
|
|
1653
|
+
* sint32 another_value = 3 [(buf.validate.field).sint32 = { gt: 10, lt: 5 }];
|
|
1654
|
+
* }
|
|
1655
|
+
* ```
|
|
1656
|
+
*
|
|
1657
|
+
* @generated from field: sint32 gt = 4;
|
|
1658
|
+
*/
|
|
1659
|
+
value: number;
|
|
1660
|
+
case: "gt";
|
|
1661
|
+
} | {
|
|
1662
|
+
/**
|
|
1663
|
+
* `gte` requires the field value to be greater than or equal to the specified
|
|
1664
|
+
* value (exclusive). If the value of `gte` is larger than a specified `lt`
|
|
1665
|
+
* or `lte`, the range is reversed, and the field value must be outside the
|
|
1666
|
+
* specified range. If the field value doesn't meet the required conditions,
|
|
1667
|
+
* an error message is generated.
|
|
1668
|
+
*
|
|
1669
|
+
* ```proto
|
|
1670
|
+
* message MySInt32 {
|
|
1671
|
+
* // value must be greater than or equal to 5 [sint32.gte]
|
|
1672
|
+
* sint32 value = 1 [(buf.validate.field).sint32.gte = 5];
|
|
1673
|
+
*
|
|
1674
|
+
* // value must be greater than or equal to 5 and less than 10 [sint32.gte_lt]
|
|
1675
|
+
* sint32 other_value = 2 [(buf.validate.field).sint32 = { gte: 5, lt: 10 }];
|
|
1676
|
+
*
|
|
1677
|
+
* // value must be greater than or equal to 10 or less than 5 [sint32.gte_lt_exclusive]
|
|
1678
|
+
* sint32 another_value = 3 [(buf.validate.field).sint32 = { gte: 10, lt: 5 }];
|
|
1679
|
+
* }
|
|
1680
|
+
* ```
|
|
1681
|
+
*
|
|
1682
|
+
* @generated from field: sint32 gte = 5;
|
|
1683
|
+
*/
|
|
1684
|
+
value: number;
|
|
1685
|
+
case: "gte";
|
|
1686
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
1687
|
+
|
|
1688
|
+
/**
|
|
1689
|
+
* `in` requires the field value to be equal to one of the specified values.
|
|
1690
|
+
* If the field value isn't one of the specified values, an error message is
|
|
1691
|
+
* generated.
|
|
1692
|
+
*
|
|
1693
|
+
* ```proto
|
|
1694
|
+
* message MySInt32 {
|
|
1695
|
+
* // value must be in list [1, 2, 3]
|
|
1696
|
+
* repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] };
|
|
1697
|
+
* }
|
|
1698
|
+
* ```
|
|
1699
|
+
*
|
|
1700
|
+
* @generated from field: repeated sint32 in = 6;
|
|
1701
|
+
*/
|
|
1702
|
+
in: number[] = [];
|
|
1703
|
+
|
|
1704
|
+
/**
|
|
1705
|
+
* `not_in` requires the field value to not be equal to any of the specified
|
|
1706
|
+
* values. If the field value is one of the specified values, an error
|
|
1707
|
+
* message is generated.
|
|
1708
|
+
*
|
|
1709
|
+
* ```proto
|
|
1710
|
+
* message MySInt32 {
|
|
1711
|
+
* // value must not be in list [1, 2, 3]
|
|
1712
|
+
* repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] };
|
|
1713
|
+
* }
|
|
1714
|
+
* ```
|
|
1715
|
+
*
|
|
1716
|
+
* @generated from field: repeated sint32 not_in = 7;
|
|
1717
|
+
*/
|
|
1718
|
+
notIn: number[] = [];
|
|
1719
|
+
|
|
1720
|
+
constructor(data?: PartialMessage<SInt32Rules>) {
|
|
1721
|
+
super();
|
|
1722
|
+
proto3.util.initPartial(data, this);
|
|
1723
|
+
}
|
|
1724
|
+
|
|
1725
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1726
|
+
static readonly typeName = "buf.validate.SInt32Rules";
|
|
1727
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1728
|
+
{ no: 1, name: "const", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
1729
|
+
{ no: 2, name: "lt", kind: "scalar", T: 17 /* ScalarType.SINT32 */, oneof: "less_than" },
|
|
1730
|
+
{ no: 3, name: "lte", kind: "scalar", T: 17 /* ScalarType.SINT32 */, oneof: "less_than" },
|
|
1731
|
+
{ no: 4, name: "gt", kind: "scalar", T: 17 /* ScalarType.SINT32 */, oneof: "greater_than" },
|
|
1732
|
+
{ no: 5, name: "gte", kind: "scalar", T: 17 /* ScalarType.SINT32 */, oneof: "greater_than" },
|
|
1733
|
+
{ no: 6, name: "in", kind: "scalar", T: 17 /* ScalarType.SINT32 */, repeated: true },
|
|
1734
|
+
{ no: 7, name: "not_in", kind: "scalar", T: 17 /* ScalarType.SINT32 */, repeated: true },
|
|
1735
|
+
]);
|
|
1736
|
+
|
|
1737
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SInt32Rules {
|
|
1738
|
+
return new SInt32Rules().fromBinary(bytes, options);
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SInt32Rules {
|
|
1742
|
+
return new SInt32Rules().fromJson(jsonValue, options);
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SInt32Rules {
|
|
1746
|
+
return new SInt32Rules().fromJsonString(jsonString, options);
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
static equals(a: SInt32Rules | PlainMessage<SInt32Rules> | undefined, b: SInt32Rules | PlainMessage<SInt32Rules> | undefined): boolean {
|
|
1750
|
+
return proto3.util.equals(SInt32Rules, a, b);
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
/**
|
|
1755
|
+
* SInt64Rules describes the constraints applied to `sint64` values.
|
|
1756
|
+
*
|
|
1757
|
+
* @generated from message buf.validate.SInt64Rules
|
|
1758
|
+
*/
|
|
1759
|
+
export class SInt64Rules extends Message<SInt64Rules> {
|
|
1760
|
+
/**
|
|
1761
|
+
* `const` requires the field value to exactly match the specified value. If
|
|
1762
|
+
* the field value doesn't match, an error message is generated.
|
|
1763
|
+
*
|
|
1764
|
+
* ```proto
|
|
1765
|
+
* message MySInt64 {
|
|
1766
|
+
* // value must equal 42
|
|
1767
|
+
* sint64 value = 1 [(buf.validate.field).sint64.const = 42];
|
|
1768
|
+
* }
|
|
1769
|
+
* ```
|
|
1770
|
+
*
|
|
1771
|
+
* @generated from field: optional sint64 const = 1;
|
|
1772
|
+
*/
|
|
1773
|
+
const?: bigint;
|
|
1774
|
+
|
|
1775
|
+
/**
|
|
1776
|
+
* @generated from oneof buf.validate.SInt64Rules.less_than
|
|
1777
|
+
*/
|
|
1778
|
+
lessThan: {
|
|
1779
|
+
/**
|
|
1780
|
+
* `lt` requires the field value to be less than the specified value (field
|
|
1781
|
+
* < value). If the field value is equal to or greater than the specified
|
|
1782
|
+
* value, an error message is generated.
|
|
1783
|
+
*
|
|
1784
|
+
* ```proto
|
|
1785
|
+
* message MySInt64 {
|
|
1786
|
+
* // value must be less than 10
|
|
1787
|
+
* sint64 value = 1 [(buf.validate.field).sint64.lt = 10];
|
|
1788
|
+
* }
|
|
1789
|
+
* ```
|
|
1790
|
+
*
|
|
1791
|
+
* @generated from field: sint64 lt = 2;
|
|
1792
|
+
*/
|
|
1793
|
+
value: bigint;
|
|
1794
|
+
case: "lt";
|
|
1795
|
+
} | {
|
|
1796
|
+
/**
|
|
1797
|
+
* `lte` requires the field value to be less than or equal to the specified
|
|
1798
|
+
* value (field <= value). If the field value is greater than the specified
|
|
1799
|
+
* value, an error message is generated.
|
|
1800
|
+
*
|
|
1801
|
+
* ```proto
|
|
1802
|
+
* message MySInt64 {
|
|
1803
|
+
* // value must be less than or equal to 10
|
|
1804
|
+
* sint64 value = 1 [(buf.validate.field).sint64.lte = 10];
|
|
1805
|
+
* }
|
|
1806
|
+
* ```
|
|
1807
|
+
*
|
|
1808
|
+
* @generated from field: sint64 lte = 3;
|
|
1809
|
+
*/
|
|
1810
|
+
value: bigint;
|
|
1811
|
+
case: "lte";
|
|
1812
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
1813
|
+
|
|
1814
|
+
/**
|
|
1815
|
+
* @generated from oneof buf.validate.SInt64Rules.greater_than
|
|
1816
|
+
*/
|
|
1817
|
+
greaterThan: {
|
|
1818
|
+
/**
|
|
1819
|
+
* `gt` requires the field value to be greater than the specified value
|
|
1820
|
+
* (exclusive). If the value of `gt` is larger than a specified `lt` or
|
|
1821
|
+
* `lte`, the range is reversed, and the field value must be outside the
|
|
1822
|
+
* specified range. If the field value doesn't meet the required conditions,
|
|
1823
|
+
* an error message is generated.
|
|
1824
|
+
*
|
|
1825
|
+
* ```proto
|
|
1826
|
+
* message MySInt64 {
|
|
1827
|
+
* // value must be greater than 5 [sint64.gt]
|
|
1828
|
+
* sint64 value = 1 [(buf.validate.field).sint64.gt = 5];
|
|
1829
|
+
*
|
|
1830
|
+
* // value must be greater than 5 and less than 10 [sint64.gt_lt]
|
|
1831
|
+
* sint64 other_value = 2 [(buf.validate.field).sint64 = { gt: 5, lt: 10 }];
|
|
1832
|
+
*
|
|
1833
|
+
* // value must be greater than 10 or less than 5 [sint64.gt_lt_exclusive]
|
|
1834
|
+
* sint64 another_value = 3 [(buf.validate.field).sint64 = { gt: 10, lt: 5 }];
|
|
1835
|
+
* }
|
|
1836
|
+
* ```
|
|
1837
|
+
*
|
|
1838
|
+
* @generated from field: sint64 gt = 4;
|
|
1839
|
+
*/
|
|
1840
|
+
value: bigint;
|
|
1841
|
+
case: "gt";
|
|
1842
|
+
} | {
|
|
1843
|
+
/**
|
|
1844
|
+
* `gte` requires the field value to be greater than or equal to the specified
|
|
1845
|
+
* value (exclusive). If the value of `gte` is larger than a specified `lt`
|
|
1846
|
+
* or `lte`, the range is reversed, and the field value must be outside the
|
|
1847
|
+
* specified range. If the field value doesn't meet the required conditions,
|
|
1848
|
+
* an error message is generated.
|
|
1849
|
+
*
|
|
1850
|
+
* ```proto
|
|
1851
|
+
* message MySInt64 {
|
|
1852
|
+
* // value must be greater than or equal to 5 [sint64.gte]
|
|
1853
|
+
* sint64 value = 1 [(buf.validate.field).sint64.gte = 5];
|
|
1854
|
+
*
|
|
1855
|
+
* // value must be greater than or equal to 5 and less than 10 [sint64.gte_lt]
|
|
1856
|
+
* sint64 other_value = 2 [(buf.validate.field).sint64 = { gte: 5, lt: 10 }];
|
|
1857
|
+
*
|
|
1858
|
+
* // value must be greater than or equal to 10 or less than 5 [sint64.gte_lt_exclusive]
|
|
1859
|
+
* sint64 another_value = 3 [(buf.validate.field).sint64 = { gte: 10, lt: 5 }];
|
|
1860
|
+
* }
|
|
1861
|
+
* ```
|
|
1862
|
+
*
|
|
1863
|
+
* @generated from field: sint64 gte = 5;
|
|
1864
|
+
*/
|
|
1865
|
+
value: bigint;
|
|
1866
|
+
case: "gte";
|
|
1867
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
1868
|
+
|
|
1869
|
+
/**
|
|
1870
|
+
* `in` requires the field value to be equal to one of the specified values.
|
|
1871
|
+
* If the field value isn't one of the specified values, an error message
|
|
1872
|
+
* is generated.
|
|
1873
|
+
*
|
|
1874
|
+
* ```proto
|
|
1875
|
+
* message MySInt64 {
|
|
1876
|
+
* // value must be in list [1, 2, 3]
|
|
1877
|
+
* repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] };
|
|
1878
|
+
* }
|
|
1879
|
+
* ```
|
|
1880
|
+
*
|
|
1881
|
+
* @generated from field: repeated sint64 in = 6;
|
|
1882
|
+
*/
|
|
1883
|
+
in: bigint[] = [];
|
|
1884
|
+
|
|
1885
|
+
/**
|
|
1886
|
+
* `not_in` requires the field value to not be equal to any of the specified
|
|
1887
|
+
* values. If the field value is one of the specified values, an error
|
|
1888
|
+
* message is generated.
|
|
1889
|
+
*
|
|
1890
|
+
* ```proto
|
|
1891
|
+
* message MySInt64 {
|
|
1892
|
+
* // value must not be in list [1, 2, 3]
|
|
1893
|
+
* repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] };
|
|
1894
|
+
* }
|
|
1895
|
+
* ```
|
|
1896
|
+
*
|
|
1897
|
+
* @generated from field: repeated sint64 not_in = 7;
|
|
1898
|
+
*/
|
|
1899
|
+
notIn: bigint[] = [];
|
|
1900
|
+
|
|
1901
|
+
constructor(data?: PartialMessage<SInt64Rules>) {
|
|
1902
|
+
super();
|
|
1903
|
+
proto3.util.initPartial(data, this);
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1907
|
+
static readonly typeName = "buf.validate.SInt64Rules";
|
|
1908
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1909
|
+
{ no: 1, name: "const", kind: "scalar", T: 18 /* ScalarType.SINT64 */, opt: true },
|
|
1910
|
+
{ no: 2, name: "lt", kind: "scalar", T: 18 /* ScalarType.SINT64 */, oneof: "less_than" },
|
|
1911
|
+
{ no: 3, name: "lte", kind: "scalar", T: 18 /* ScalarType.SINT64 */, oneof: "less_than" },
|
|
1912
|
+
{ no: 4, name: "gt", kind: "scalar", T: 18 /* ScalarType.SINT64 */, oneof: "greater_than" },
|
|
1913
|
+
{ no: 5, name: "gte", kind: "scalar", T: 18 /* ScalarType.SINT64 */, oneof: "greater_than" },
|
|
1914
|
+
{ no: 6, name: "in", kind: "scalar", T: 18 /* ScalarType.SINT64 */, repeated: true },
|
|
1915
|
+
{ no: 7, name: "not_in", kind: "scalar", T: 18 /* ScalarType.SINT64 */, repeated: true },
|
|
1916
|
+
]);
|
|
1917
|
+
|
|
1918
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SInt64Rules {
|
|
1919
|
+
return new SInt64Rules().fromBinary(bytes, options);
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SInt64Rules {
|
|
1923
|
+
return new SInt64Rules().fromJson(jsonValue, options);
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SInt64Rules {
|
|
1927
|
+
return new SInt64Rules().fromJsonString(jsonString, options);
|
|
1928
|
+
}
|
|
1929
|
+
|
|
1930
|
+
static equals(a: SInt64Rules | PlainMessage<SInt64Rules> | undefined, b: SInt64Rules | PlainMessage<SInt64Rules> | undefined): boolean {
|
|
1931
|
+
return proto3.util.equals(SInt64Rules, a, b);
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
|
|
1935
|
+
/**
|
|
1936
|
+
* Fixed32Rules describes the constraints applied to `fixed32` values.
|
|
1937
|
+
*
|
|
1938
|
+
* @generated from message buf.validate.Fixed32Rules
|
|
1939
|
+
*/
|
|
1940
|
+
export class Fixed32Rules extends Message<Fixed32Rules> {
|
|
1941
|
+
/**
|
|
1942
|
+
* `const` requires the field value to exactly match the specified value.
|
|
1943
|
+
* If the field value doesn't match, an error message is generated.
|
|
1944
|
+
*
|
|
1945
|
+
* ```proto
|
|
1946
|
+
* message MyFixed32 {
|
|
1947
|
+
* // value must equal 42
|
|
1948
|
+
* fixed32 value = 1 [(buf.validate.field).fixed32.const = 42];
|
|
1949
|
+
* }
|
|
1950
|
+
* ```
|
|
1951
|
+
*
|
|
1952
|
+
* @generated from field: optional fixed32 const = 1;
|
|
1953
|
+
*/
|
|
1954
|
+
const?: number;
|
|
1955
|
+
|
|
1956
|
+
/**
|
|
1957
|
+
* @generated from oneof buf.validate.Fixed32Rules.less_than
|
|
1958
|
+
*/
|
|
1959
|
+
lessThan: {
|
|
1960
|
+
/**
|
|
1961
|
+
* `lt` requires the field value to be less than the specified value (field <
|
|
1962
|
+
* value). If the field value is equal to or greater than the specified value,
|
|
1963
|
+
* an error message is generated.
|
|
1964
|
+
*
|
|
1965
|
+
* ```proto
|
|
1966
|
+
* message MyFixed32 {
|
|
1967
|
+
* // value must be less than 10
|
|
1968
|
+
* fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10];
|
|
1969
|
+
* }
|
|
1970
|
+
* ```
|
|
1971
|
+
*
|
|
1972
|
+
* @generated from field: fixed32 lt = 2;
|
|
1973
|
+
*/
|
|
1974
|
+
value: number;
|
|
1975
|
+
case: "lt";
|
|
1976
|
+
} | {
|
|
1977
|
+
/**
|
|
1978
|
+
* `lte` requires the field value to be less than or equal to the specified
|
|
1979
|
+
* value (field <= value). If the field value is greater than the specified
|
|
1980
|
+
* value, an error message is generated.
|
|
1981
|
+
*
|
|
1982
|
+
* ```proto
|
|
1983
|
+
* message MyFixed32 {
|
|
1984
|
+
* // value must be less than or equal to 10
|
|
1985
|
+
* fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10];
|
|
1986
|
+
* }
|
|
1987
|
+
* ```
|
|
1988
|
+
*
|
|
1989
|
+
* @generated from field: fixed32 lte = 3;
|
|
1990
|
+
*/
|
|
1991
|
+
value: number;
|
|
1992
|
+
case: "lte";
|
|
1993
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
1994
|
+
|
|
1995
|
+
/**
|
|
1996
|
+
* @generated from oneof buf.validate.Fixed32Rules.greater_than
|
|
1997
|
+
*/
|
|
1998
|
+
greaterThan: {
|
|
1999
|
+
/**
|
|
2000
|
+
* `gt` requires the field value to be greater than the specified value
|
|
2001
|
+
* (exclusive). If the value of `gt` is larger than a specified `lt` or
|
|
2002
|
+
* `lte`, the range is reversed, and the field value must be outside the
|
|
2003
|
+
* specified range. If the field value doesn't meet the required conditions,
|
|
2004
|
+
* an error message is generated.
|
|
2005
|
+
*
|
|
2006
|
+
* ```proto
|
|
2007
|
+
* message MyFixed32 {
|
|
2008
|
+
* // value must be greater than 5 [fixed32.gt]
|
|
2009
|
+
* fixed32 value = 1 [(buf.validate.field).fixed32.gt = 5];
|
|
2010
|
+
*
|
|
2011
|
+
* // value must be greater than 5 and less than 10 [fixed32.gt_lt]
|
|
2012
|
+
* fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gt: 5, lt: 10 }];
|
|
2013
|
+
*
|
|
2014
|
+
* // value must be greater than 10 or less than 5 [fixed32.gt_lt_exclusive]
|
|
2015
|
+
* fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gt: 10, lt: 5 }];
|
|
2016
|
+
* }
|
|
2017
|
+
* ```
|
|
2018
|
+
*
|
|
2019
|
+
* @generated from field: fixed32 gt = 4;
|
|
2020
|
+
*/
|
|
2021
|
+
value: number;
|
|
2022
|
+
case: "gt";
|
|
2023
|
+
} | {
|
|
2024
|
+
/**
|
|
2025
|
+
* `gte` requires the field value to be greater than or equal to the specified
|
|
2026
|
+
* value (exclusive). If the value of `gte` is larger than a specified `lt`
|
|
2027
|
+
* or `lte`, the range is reversed, and the field value must be outside the
|
|
2028
|
+
* specified range. If the field value doesn't meet the required conditions,
|
|
2029
|
+
* an error message is generated.
|
|
2030
|
+
*
|
|
2031
|
+
* ```proto
|
|
2032
|
+
* message MyFixed32 {
|
|
2033
|
+
* // value must be greater than or equal to 5 [fixed32.gte]
|
|
2034
|
+
* fixed32 value = 1 [(buf.validate.field).fixed32.gte = 5];
|
|
2035
|
+
*
|
|
2036
|
+
* // value must be greater than or equal to 5 and less than 10 [fixed32.gte_lt]
|
|
2037
|
+
* fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gte: 5, lt: 10 }];
|
|
2038
|
+
*
|
|
2039
|
+
* // value must be greater than or equal to 10 or less than 5 [fixed32.gte_lt_exclusive]
|
|
2040
|
+
* fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gte: 10, lt: 5 }];
|
|
2041
|
+
* }
|
|
2042
|
+
* ```
|
|
2043
|
+
*
|
|
2044
|
+
* @generated from field: fixed32 gte = 5;
|
|
2045
|
+
*/
|
|
2046
|
+
value: number;
|
|
2047
|
+
case: "gte";
|
|
2048
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
2049
|
+
|
|
2050
|
+
/**
|
|
2051
|
+
* `in` requires the field value to be equal to one of the specified values.
|
|
2052
|
+
* If the field value isn't one of the specified values, an error message
|
|
2053
|
+
* is generated.
|
|
2054
|
+
*
|
|
2055
|
+
* ```proto
|
|
2056
|
+
* message MyFixed32 {
|
|
2057
|
+
* // value must be in list [1, 2, 3]
|
|
2058
|
+
* repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] };
|
|
2059
|
+
* }
|
|
2060
|
+
* ```
|
|
2061
|
+
*
|
|
2062
|
+
* @generated from field: repeated fixed32 in = 6;
|
|
2063
|
+
*/
|
|
2064
|
+
in: number[] = [];
|
|
2065
|
+
|
|
2066
|
+
/**
|
|
2067
|
+
* `not_in` requires the field value to not be equal to any of the specified
|
|
2068
|
+
* values. If the field value is one of the specified values, an error
|
|
2069
|
+
* message is generated.
|
|
2070
|
+
*
|
|
2071
|
+
* ```proto
|
|
2072
|
+
* message MyFixed32 {
|
|
2073
|
+
* // value must not be in list [1, 2, 3]
|
|
2074
|
+
* repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] };
|
|
2075
|
+
* }
|
|
2076
|
+
* ```
|
|
2077
|
+
*
|
|
2078
|
+
* @generated from field: repeated fixed32 not_in = 7;
|
|
2079
|
+
*/
|
|
2080
|
+
notIn: number[] = [];
|
|
2081
|
+
|
|
2082
|
+
constructor(data?: PartialMessage<Fixed32Rules>) {
|
|
2083
|
+
super();
|
|
2084
|
+
proto3.util.initPartial(data, this);
|
|
2085
|
+
}
|
|
2086
|
+
|
|
2087
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2088
|
+
static readonly typeName = "buf.validate.Fixed32Rules";
|
|
2089
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2090
|
+
{ no: 1, name: "const", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, opt: true },
|
|
2091
|
+
{ no: 2, name: "lt", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, oneof: "less_than" },
|
|
2092
|
+
{ no: 3, name: "lte", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, oneof: "less_than" },
|
|
2093
|
+
{ no: 4, name: "gt", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, oneof: "greater_than" },
|
|
2094
|
+
{ no: 5, name: "gte", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, oneof: "greater_than" },
|
|
2095
|
+
{ no: 6, name: "in", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, repeated: true },
|
|
2096
|
+
{ no: 7, name: "not_in", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, repeated: true },
|
|
2097
|
+
]);
|
|
2098
|
+
|
|
2099
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Fixed32Rules {
|
|
2100
|
+
return new Fixed32Rules().fromBinary(bytes, options);
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Fixed32Rules {
|
|
2104
|
+
return new Fixed32Rules().fromJson(jsonValue, options);
|
|
2105
|
+
}
|
|
2106
|
+
|
|
2107
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Fixed32Rules {
|
|
2108
|
+
return new Fixed32Rules().fromJsonString(jsonString, options);
|
|
2109
|
+
}
|
|
2110
|
+
|
|
2111
|
+
static equals(a: Fixed32Rules | PlainMessage<Fixed32Rules> | undefined, b: Fixed32Rules | PlainMessage<Fixed32Rules> | undefined): boolean {
|
|
2112
|
+
return proto3.util.equals(Fixed32Rules, a, b);
|
|
2113
|
+
}
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
/**
|
|
2117
|
+
* Fixed64Rules describes the constraints applied to `fixed64` values.
|
|
2118
|
+
*
|
|
2119
|
+
* @generated from message buf.validate.Fixed64Rules
|
|
2120
|
+
*/
|
|
2121
|
+
export class Fixed64Rules extends Message<Fixed64Rules> {
|
|
2122
|
+
/**
|
|
2123
|
+
* `const` requires the field value to exactly match the specified value. If
|
|
2124
|
+
* the field value doesn't match, an error message is generated.
|
|
2125
|
+
*
|
|
2126
|
+
* ```proto
|
|
2127
|
+
* message MyFixed64 {
|
|
2128
|
+
* // value must equal 42
|
|
2129
|
+
* fixed64 value = 1 [(buf.validate.field).fixed64.const = 42];
|
|
2130
|
+
* }
|
|
2131
|
+
* ```
|
|
2132
|
+
*
|
|
2133
|
+
* @generated from field: optional fixed64 const = 1;
|
|
2134
|
+
*/
|
|
2135
|
+
const?: bigint;
|
|
2136
|
+
|
|
2137
|
+
/**
|
|
2138
|
+
* @generated from oneof buf.validate.Fixed64Rules.less_than
|
|
2139
|
+
*/
|
|
2140
|
+
lessThan: {
|
|
2141
|
+
/**
|
|
2142
|
+
* `lt` requires the field value to be less than the specified value (field <
|
|
2143
|
+
* value). If the field value is equal to or greater than the specified value,
|
|
2144
|
+
* an error message is generated.
|
|
2145
|
+
*
|
|
2146
|
+
* ```proto
|
|
2147
|
+
* message MyFixed64 {
|
|
2148
|
+
* // value must be less than 10
|
|
2149
|
+
* fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10];
|
|
2150
|
+
* }
|
|
2151
|
+
* ```
|
|
2152
|
+
*
|
|
2153
|
+
* @generated from field: fixed64 lt = 2;
|
|
2154
|
+
*/
|
|
2155
|
+
value: bigint;
|
|
2156
|
+
case: "lt";
|
|
2157
|
+
} | {
|
|
2158
|
+
/**
|
|
2159
|
+
* `lte` requires the field value to be less than or equal to the specified
|
|
2160
|
+
* value (field <= value). If the field value is greater than the specified
|
|
2161
|
+
* value, an error message is generated.
|
|
2162
|
+
*
|
|
2163
|
+
* ```proto
|
|
2164
|
+
* message MyFixed64 {
|
|
2165
|
+
* // value must be less than or equal to 10
|
|
2166
|
+
* fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10];
|
|
2167
|
+
* }
|
|
2168
|
+
* ```
|
|
2169
|
+
*
|
|
2170
|
+
* @generated from field: fixed64 lte = 3;
|
|
2171
|
+
*/
|
|
2172
|
+
value: bigint;
|
|
2173
|
+
case: "lte";
|
|
2174
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
2175
|
+
|
|
2176
|
+
/**
|
|
2177
|
+
* @generated from oneof buf.validate.Fixed64Rules.greater_than
|
|
2178
|
+
*/
|
|
2179
|
+
greaterThan: {
|
|
2180
|
+
/**
|
|
2181
|
+
* `gt` requires the field value to be greater than the specified value
|
|
2182
|
+
* (exclusive). If the value of `gt` is larger than a specified `lt` or
|
|
2183
|
+
* `lte`, the range is reversed, and the field value must be outside the
|
|
2184
|
+
* specified range. If the field value doesn't meet the required conditions,
|
|
2185
|
+
* an error message is generated.
|
|
2186
|
+
*
|
|
2187
|
+
* ```proto
|
|
2188
|
+
* message MyFixed64 {
|
|
2189
|
+
* // value must be greater than 5 [fixed64.gt]
|
|
2190
|
+
* fixed64 value = 1 [(buf.validate.field).fixed64.gt = 5];
|
|
2191
|
+
*
|
|
2192
|
+
* // value must be greater than 5 and less than 10 [fixed64.gt_lt]
|
|
2193
|
+
* fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gt: 5, lt: 10 }];
|
|
2194
|
+
*
|
|
2195
|
+
* // value must be greater than 10 or less than 5 [fixed64.gt_lt_exclusive]
|
|
2196
|
+
* fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gt: 10, lt: 5 }];
|
|
2197
|
+
* }
|
|
2198
|
+
* ```
|
|
2199
|
+
*
|
|
2200
|
+
* @generated from field: fixed64 gt = 4;
|
|
2201
|
+
*/
|
|
2202
|
+
value: bigint;
|
|
2203
|
+
case: "gt";
|
|
2204
|
+
} | {
|
|
2205
|
+
/**
|
|
2206
|
+
* `gte` requires the field value to be greater than or equal to the specified
|
|
2207
|
+
* value (exclusive). If the value of `gte` is larger than a specified `lt`
|
|
2208
|
+
* or `lte`, the range is reversed, and the field value must be outside the
|
|
2209
|
+
* specified range. If the field value doesn't meet the required conditions,
|
|
2210
|
+
* an error message is generated.
|
|
2211
|
+
*
|
|
2212
|
+
* ```proto
|
|
2213
|
+
* message MyFixed64 {
|
|
2214
|
+
* // value must be greater than or equal to 5 [fixed64.gte]
|
|
2215
|
+
* fixed64 value = 1 [(buf.validate.field).fixed64.gte = 5];
|
|
2216
|
+
*
|
|
2217
|
+
* // value must be greater than or equal to 5 and less than 10 [fixed64.gte_lt]
|
|
2218
|
+
* fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gte: 5, lt: 10 }];
|
|
2219
|
+
*
|
|
2220
|
+
* // value must be greater than or equal to 10 or less than 5 [fixed64.gte_lt_exclusive]
|
|
2221
|
+
* fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gte: 10, lt: 5 }];
|
|
2222
|
+
* }
|
|
2223
|
+
* ```
|
|
2224
|
+
*
|
|
2225
|
+
* @generated from field: fixed64 gte = 5;
|
|
2226
|
+
*/
|
|
2227
|
+
value: bigint;
|
|
2228
|
+
case: "gte";
|
|
2229
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
2230
|
+
|
|
2231
|
+
/**
|
|
2232
|
+
* `in` requires the field value to be equal to one of the specified values.
|
|
2233
|
+
* If the field value isn't one of the specified values, an error message is
|
|
2234
|
+
* generated.
|
|
2235
|
+
*
|
|
2236
|
+
* ```proto
|
|
2237
|
+
* message MyFixed64 {
|
|
2238
|
+
* // value must be in list [1, 2, 3]
|
|
2239
|
+
* repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] };
|
|
2240
|
+
* }
|
|
2241
|
+
* ```
|
|
2242
|
+
*
|
|
2243
|
+
* @generated from field: repeated fixed64 in = 6;
|
|
2244
|
+
*/
|
|
2245
|
+
in: bigint[] = [];
|
|
2246
|
+
|
|
2247
|
+
/**
|
|
2248
|
+
* `not_in` requires the field value to not be equal to any of the specified
|
|
2249
|
+
* values. If the field value is one of the specified values, an error
|
|
2250
|
+
* message is generated.
|
|
2251
|
+
*
|
|
2252
|
+
* ```proto
|
|
2253
|
+
* message MyFixed64 {
|
|
2254
|
+
* // value must not be in list [1, 2, 3]
|
|
2255
|
+
* repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] };
|
|
2256
|
+
* }
|
|
2257
|
+
* ```
|
|
2258
|
+
*
|
|
2259
|
+
* @generated from field: repeated fixed64 not_in = 7;
|
|
2260
|
+
*/
|
|
2261
|
+
notIn: bigint[] = [];
|
|
2262
|
+
|
|
2263
|
+
constructor(data?: PartialMessage<Fixed64Rules>) {
|
|
2264
|
+
super();
|
|
2265
|
+
proto3.util.initPartial(data, this);
|
|
2266
|
+
}
|
|
2267
|
+
|
|
2268
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2269
|
+
static readonly typeName = "buf.validate.Fixed64Rules";
|
|
2270
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2271
|
+
{ no: 1, name: "const", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, opt: true },
|
|
2272
|
+
{ no: 2, name: "lt", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, oneof: "less_than" },
|
|
2273
|
+
{ no: 3, name: "lte", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, oneof: "less_than" },
|
|
2274
|
+
{ no: 4, name: "gt", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, oneof: "greater_than" },
|
|
2275
|
+
{ no: 5, name: "gte", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, oneof: "greater_than" },
|
|
2276
|
+
{ no: 6, name: "in", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, repeated: true },
|
|
2277
|
+
{ no: 7, name: "not_in", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, repeated: true },
|
|
2278
|
+
]);
|
|
2279
|
+
|
|
2280
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Fixed64Rules {
|
|
2281
|
+
return new Fixed64Rules().fromBinary(bytes, options);
|
|
2282
|
+
}
|
|
2283
|
+
|
|
2284
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Fixed64Rules {
|
|
2285
|
+
return new Fixed64Rules().fromJson(jsonValue, options);
|
|
2286
|
+
}
|
|
2287
|
+
|
|
2288
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Fixed64Rules {
|
|
2289
|
+
return new Fixed64Rules().fromJsonString(jsonString, options);
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2292
|
+
static equals(a: Fixed64Rules | PlainMessage<Fixed64Rules> | undefined, b: Fixed64Rules | PlainMessage<Fixed64Rules> | undefined): boolean {
|
|
2293
|
+
return proto3.util.equals(Fixed64Rules, a, b);
|
|
2294
|
+
}
|
|
2295
|
+
}
|
|
2296
|
+
|
|
2297
|
+
/**
|
|
2298
|
+
* SFixed32Rules describes the constraints applied to `fixed32` values.
|
|
2299
|
+
*
|
|
2300
|
+
* @generated from message buf.validate.SFixed32Rules
|
|
2301
|
+
*/
|
|
2302
|
+
export class SFixed32Rules extends Message<SFixed32Rules> {
|
|
2303
|
+
/**
|
|
2304
|
+
* `const` requires the field value to exactly match the specified value. If
|
|
2305
|
+
* the field value doesn't match, an error message is generated.
|
|
2306
|
+
*
|
|
2307
|
+
* ```proto
|
|
2308
|
+
* message MySFixed32 {
|
|
2309
|
+
* // value must equal 42
|
|
2310
|
+
* sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42];
|
|
2311
|
+
* }
|
|
2312
|
+
* ```
|
|
2313
|
+
*
|
|
2314
|
+
* @generated from field: optional sfixed32 const = 1;
|
|
2315
|
+
*/
|
|
2316
|
+
const?: number;
|
|
2317
|
+
|
|
2318
|
+
/**
|
|
2319
|
+
* @generated from oneof buf.validate.SFixed32Rules.less_than
|
|
2320
|
+
*/
|
|
2321
|
+
lessThan: {
|
|
2322
|
+
/**
|
|
2323
|
+
* `lt` requires the field value to be less than the specified value (field <
|
|
2324
|
+
* value). If the field value is equal to or greater than the specified value,
|
|
2325
|
+
* an error message is generated.
|
|
2326
|
+
*
|
|
2327
|
+
* ```proto
|
|
2328
|
+
* message MySFixed32 {
|
|
2329
|
+
* // value must be less than 10
|
|
2330
|
+
* sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10];
|
|
2331
|
+
* }
|
|
2332
|
+
* ```
|
|
2333
|
+
*
|
|
2334
|
+
* @generated from field: sfixed32 lt = 2;
|
|
2335
|
+
*/
|
|
2336
|
+
value: number;
|
|
2337
|
+
case: "lt";
|
|
2338
|
+
} | {
|
|
2339
|
+
/**
|
|
2340
|
+
* `lte` requires the field value to be less than or equal to the specified
|
|
2341
|
+
* value (field <= value). If the field value is greater than the specified
|
|
2342
|
+
* value, an error message is generated.
|
|
2343
|
+
*
|
|
2344
|
+
* ```proto
|
|
2345
|
+
* message MySFixed32 {
|
|
2346
|
+
* // value must be less than or equal to 10
|
|
2347
|
+
* sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10];
|
|
2348
|
+
* }
|
|
2349
|
+
* ```
|
|
2350
|
+
*
|
|
2351
|
+
* @generated from field: sfixed32 lte = 3;
|
|
2352
|
+
*/
|
|
2353
|
+
value: number;
|
|
2354
|
+
case: "lte";
|
|
2355
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
2356
|
+
|
|
2357
|
+
/**
|
|
2358
|
+
* @generated from oneof buf.validate.SFixed32Rules.greater_than
|
|
2359
|
+
*/
|
|
2360
|
+
greaterThan: {
|
|
2361
|
+
/**
|
|
2362
|
+
* `gt` requires the field value to be greater than the specified value
|
|
2363
|
+
* (exclusive). If the value of `gt` is larger than a specified `lt` or
|
|
2364
|
+
* `lte`, the range is reversed, and the field value must be outside the
|
|
2365
|
+
* specified range. If the field value doesn't meet the required conditions,
|
|
2366
|
+
* an error message is generated.
|
|
2367
|
+
*
|
|
2368
|
+
* ```proto
|
|
2369
|
+
* message MySFixed32 {
|
|
2370
|
+
* // value must be greater than 5 [sfixed32.gt]
|
|
2371
|
+
* sfixed32 value = 1 [(buf.validate.field).sfixed32.gt = 5];
|
|
2372
|
+
*
|
|
2373
|
+
* // value must be greater than 5 and less than 10 [sfixed32.gt_lt]
|
|
2374
|
+
* sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }];
|
|
2375
|
+
*
|
|
2376
|
+
* // value must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive]
|
|
2377
|
+
* sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }];
|
|
2378
|
+
* }
|
|
2379
|
+
* ```
|
|
2380
|
+
*
|
|
2381
|
+
* @generated from field: sfixed32 gt = 4;
|
|
2382
|
+
*/
|
|
2383
|
+
value: number;
|
|
2384
|
+
case: "gt";
|
|
2385
|
+
} | {
|
|
2386
|
+
/**
|
|
2387
|
+
* `gte` requires the field value to be greater than or equal to the specified
|
|
2388
|
+
* value (exclusive). If the value of `gte` is larger than a specified `lt`
|
|
2389
|
+
* or `lte`, the range is reversed, and the field value must be outside the
|
|
2390
|
+
* specified range. If the field value doesn't meet the required conditions,
|
|
2391
|
+
* an error message is generated.
|
|
2392
|
+
*
|
|
2393
|
+
* ```proto
|
|
2394
|
+
* message MySFixed32 {
|
|
2395
|
+
* // value must be greater than or equal to 5 [sfixed32.gte]
|
|
2396
|
+
* sfixed32 value = 1 [(buf.validate.field).sfixed32.gte = 5];
|
|
2397
|
+
*
|
|
2398
|
+
* // value must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt]
|
|
2399
|
+
* sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }];
|
|
2400
|
+
*
|
|
2401
|
+
* // value must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive]
|
|
2402
|
+
* sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }];
|
|
2403
|
+
* }
|
|
2404
|
+
* ```
|
|
2405
|
+
*
|
|
2406
|
+
* @generated from field: sfixed32 gte = 5;
|
|
2407
|
+
*/
|
|
2408
|
+
value: number;
|
|
2409
|
+
case: "gte";
|
|
2410
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
2411
|
+
|
|
2412
|
+
/**
|
|
2413
|
+
* `in` requires the field value to be equal to one of the specified values.
|
|
2414
|
+
* If the field value isn't one of the specified values, an error message is
|
|
2415
|
+
* generated.
|
|
2416
|
+
*
|
|
2417
|
+
* ```proto
|
|
2418
|
+
* message MySFixed32 {
|
|
2419
|
+
* // value must be in list [1, 2, 3]
|
|
2420
|
+
* repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] };
|
|
2421
|
+
* }
|
|
2422
|
+
* ```
|
|
2423
|
+
*
|
|
2424
|
+
* @generated from field: repeated sfixed32 in = 6;
|
|
2425
|
+
*/
|
|
2426
|
+
in: number[] = [];
|
|
2427
|
+
|
|
2428
|
+
/**
|
|
2429
|
+
* `not_in` requires the field value to not be equal to any of the specified
|
|
2430
|
+
* values. If the field value is one of the specified values, an error
|
|
2431
|
+
* message is generated.
|
|
2432
|
+
*
|
|
2433
|
+
* ```proto
|
|
2434
|
+
* message MySFixed32 {
|
|
2435
|
+
* // value must not be in list [1, 2, 3]
|
|
2436
|
+
* repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] };
|
|
2437
|
+
* }
|
|
2438
|
+
* ```
|
|
2439
|
+
*
|
|
2440
|
+
* @generated from field: repeated sfixed32 not_in = 7;
|
|
2441
|
+
*/
|
|
2442
|
+
notIn: number[] = [];
|
|
2443
|
+
|
|
2444
|
+
constructor(data?: PartialMessage<SFixed32Rules>) {
|
|
2445
|
+
super();
|
|
2446
|
+
proto3.util.initPartial(data, this);
|
|
2447
|
+
}
|
|
2448
|
+
|
|
2449
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2450
|
+
static readonly typeName = "buf.validate.SFixed32Rules";
|
|
2451
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2452
|
+
{ no: 1, name: "const", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, opt: true },
|
|
2453
|
+
{ no: 2, name: "lt", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, oneof: "less_than" },
|
|
2454
|
+
{ no: 3, name: "lte", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, oneof: "less_than" },
|
|
2455
|
+
{ no: 4, name: "gt", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, oneof: "greater_than" },
|
|
2456
|
+
{ no: 5, name: "gte", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, oneof: "greater_than" },
|
|
2457
|
+
{ no: 6, name: "in", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, repeated: true },
|
|
2458
|
+
{ no: 7, name: "not_in", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, repeated: true },
|
|
2459
|
+
]);
|
|
2460
|
+
|
|
2461
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SFixed32Rules {
|
|
2462
|
+
return new SFixed32Rules().fromBinary(bytes, options);
|
|
2463
|
+
}
|
|
2464
|
+
|
|
2465
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SFixed32Rules {
|
|
2466
|
+
return new SFixed32Rules().fromJson(jsonValue, options);
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2469
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SFixed32Rules {
|
|
2470
|
+
return new SFixed32Rules().fromJsonString(jsonString, options);
|
|
2471
|
+
}
|
|
2472
|
+
|
|
2473
|
+
static equals(a: SFixed32Rules | PlainMessage<SFixed32Rules> | undefined, b: SFixed32Rules | PlainMessage<SFixed32Rules> | undefined): boolean {
|
|
2474
|
+
return proto3.util.equals(SFixed32Rules, a, b);
|
|
2475
|
+
}
|
|
2476
|
+
}
|
|
2477
|
+
|
|
2478
|
+
/**
|
|
2479
|
+
* SFixed64Rules describes the constraints applied to `fixed64` values.
|
|
2480
|
+
*
|
|
2481
|
+
* @generated from message buf.validate.SFixed64Rules
|
|
2482
|
+
*/
|
|
2483
|
+
export class SFixed64Rules extends Message<SFixed64Rules> {
|
|
2484
|
+
/**
|
|
2485
|
+
* `const` requires the field value to exactly match the specified value. If
|
|
2486
|
+
* the field value doesn't match, an error message is generated.
|
|
2487
|
+
*
|
|
2488
|
+
* ```proto
|
|
2489
|
+
* message MySFixed64 {
|
|
2490
|
+
* // value must equal 42
|
|
2491
|
+
* sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42];
|
|
2492
|
+
* }
|
|
2493
|
+
* ```
|
|
2494
|
+
*
|
|
2495
|
+
* @generated from field: optional sfixed64 const = 1;
|
|
2496
|
+
*/
|
|
2497
|
+
const?: bigint;
|
|
2498
|
+
|
|
2499
|
+
/**
|
|
2500
|
+
* @generated from oneof buf.validate.SFixed64Rules.less_than
|
|
2501
|
+
*/
|
|
2502
|
+
lessThan: {
|
|
2503
|
+
/**
|
|
2504
|
+
* `lt` requires the field value to be less than the specified value (field <
|
|
2505
|
+
* value). If the field value is equal to or greater than the specified value,
|
|
2506
|
+
* an error message is generated.
|
|
2507
|
+
*
|
|
2508
|
+
* ```proto
|
|
2509
|
+
* message MySFixed64 {
|
|
2510
|
+
* // value must be less than 10
|
|
2511
|
+
* sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10];
|
|
2512
|
+
* }
|
|
2513
|
+
* ```
|
|
2514
|
+
*
|
|
2515
|
+
* @generated from field: sfixed64 lt = 2;
|
|
2516
|
+
*/
|
|
2517
|
+
value: bigint;
|
|
2518
|
+
case: "lt";
|
|
2519
|
+
} | {
|
|
2520
|
+
/**
|
|
2521
|
+
* `lte` requires the field value to be less than or equal to the specified
|
|
2522
|
+
* value (field <= value). If the field value is greater than the specified
|
|
2523
|
+
* value, an error message is generated.
|
|
2524
|
+
*
|
|
2525
|
+
* ```proto
|
|
2526
|
+
* message MySFixed64 {
|
|
2527
|
+
* // value must be less than or equal to 10
|
|
2528
|
+
* sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10];
|
|
2529
|
+
* }
|
|
2530
|
+
* ```
|
|
2531
|
+
*
|
|
2532
|
+
* @generated from field: sfixed64 lte = 3;
|
|
2533
|
+
*/
|
|
2534
|
+
value: bigint;
|
|
2535
|
+
case: "lte";
|
|
2536
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
2537
|
+
|
|
2538
|
+
/**
|
|
2539
|
+
* @generated from oneof buf.validate.SFixed64Rules.greater_than
|
|
2540
|
+
*/
|
|
2541
|
+
greaterThan: {
|
|
2542
|
+
/**
|
|
2543
|
+
* `gt` requires the field value to be greater than the specified value
|
|
2544
|
+
* (exclusive). If the value of `gt` is larger than a specified `lt` or
|
|
2545
|
+
* `lte`, the range is reversed, and the field value must be outside the
|
|
2546
|
+
* specified range. If the field value doesn't meet the required conditions,
|
|
2547
|
+
* an error message is generated.
|
|
2548
|
+
*
|
|
2549
|
+
* ```proto
|
|
2550
|
+
* message MySFixed64 {
|
|
2551
|
+
* // value must be greater than 5 [sfixed64.gt]
|
|
2552
|
+
* sfixed64 value = 1 [(buf.validate.field).sfixed64.gt = 5];
|
|
2553
|
+
*
|
|
2554
|
+
* // value must be greater than 5 and less than 10 [sfixed64.gt_lt]
|
|
2555
|
+
* sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gt: 5, lt: 10 }];
|
|
2556
|
+
*
|
|
2557
|
+
* // value must be greater than 10 or less than 5 [sfixed64.gt_lt_exclusive]
|
|
2558
|
+
* sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gt: 10, lt: 5 }];
|
|
2559
|
+
* }
|
|
2560
|
+
* ```
|
|
2561
|
+
*
|
|
2562
|
+
* @generated from field: sfixed64 gt = 4;
|
|
2563
|
+
*/
|
|
2564
|
+
value: bigint;
|
|
2565
|
+
case: "gt";
|
|
2566
|
+
} | {
|
|
2567
|
+
/**
|
|
2568
|
+
* `gte` requires the field value to be greater than or equal to the specified
|
|
2569
|
+
* value (exclusive). If the value of `gte` is larger than a specified `lt`
|
|
2570
|
+
* or `lte`, the range is reversed, and the field value must be outside the
|
|
2571
|
+
* specified range. If the field value doesn't meet the required conditions,
|
|
2572
|
+
* an error message is generated.
|
|
2573
|
+
*
|
|
2574
|
+
* ```proto
|
|
2575
|
+
* message MySFixed64 {
|
|
2576
|
+
* // value must be greater than or equal to 5 [sfixed64.gte]
|
|
2577
|
+
* sfixed64 value = 1 [(buf.validate.field).sfixed64.gte = 5];
|
|
2578
|
+
*
|
|
2579
|
+
* // value must be greater than or equal to 5 and less than 10 [sfixed64.gte_lt]
|
|
2580
|
+
* sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gte: 5, lt: 10 }];
|
|
2581
|
+
*
|
|
2582
|
+
* // value must be greater than or equal to 10 or less than 5 [sfixed64.gte_lt_exclusive]
|
|
2583
|
+
* sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gte: 10, lt: 5 }];
|
|
2584
|
+
* }
|
|
2585
|
+
* ```
|
|
2586
|
+
*
|
|
2587
|
+
* @generated from field: sfixed64 gte = 5;
|
|
2588
|
+
*/
|
|
2589
|
+
value: bigint;
|
|
2590
|
+
case: "gte";
|
|
2591
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
2592
|
+
|
|
2593
|
+
/**
|
|
2594
|
+
* `in` requires the field value to be equal to one of the specified values.
|
|
2595
|
+
* If the field value isn't one of the specified values, an error message is
|
|
2596
|
+
* generated.
|
|
2597
|
+
*
|
|
2598
|
+
* ```proto
|
|
2599
|
+
* message MySFixed64 {
|
|
2600
|
+
* // value must be in list [1, 2, 3]
|
|
2601
|
+
* repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] };
|
|
2602
|
+
* }
|
|
2603
|
+
* ```
|
|
2604
|
+
*
|
|
2605
|
+
* @generated from field: repeated sfixed64 in = 6;
|
|
2606
|
+
*/
|
|
2607
|
+
in: bigint[] = [];
|
|
2608
|
+
|
|
2609
|
+
/**
|
|
2610
|
+
* `not_in` requires the field value to not be equal to any of the specified
|
|
2611
|
+
* values. If the field value is one of the specified values, an error
|
|
2612
|
+
* message is generated.
|
|
2613
|
+
*
|
|
2614
|
+
* ```proto
|
|
2615
|
+
* message MySFixed64 {
|
|
2616
|
+
* // value must not be in list [1, 2, 3]
|
|
2617
|
+
* repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] };
|
|
2618
|
+
* }
|
|
2619
|
+
* ```
|
|
2620
|
+
*
|
|
2621
|
+
* @generated from field: repeated sfixed64 not_in = 7;
|
|
2622
|
+
*/
|
|
2623
|
+
notIn: bigint[] = [];
|
|
2624
|
+
|
|
2625
|
+
constructor(data?: PartialMessage<SFixed64Rules>) {
|
|
2626
|
+
super();
|
|
2627
|
+
proto3.util.initPartial(data, this);
|
|
2628
|
+
}
|
|
2629
|
+
|
|
2630
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2631
|
+
static readonly typeName = "buf.validate.SFixed64Rules";
|
|
2632
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2633
|
+
{ no: 1, name: "const", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, opt: true },
|
|
2634
|
+
{ no: 2, name: "lt", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, oneof: "less_than" },
|
|
2635
|
+
{ no: 3, name: "lte", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, oneof: "less_than" },
|
|
2636
|
+
{ no: 4, name: "gt", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, oneof: "greater_than" },
|
|
2637
|
+
{ no: 5, name: "gte", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, oneof: "greater_than" },
|
|
2638
|
+
{ no: 6, name: "in", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, repeated: true },
|
|
2639
|
+
{ no: 7, name: "not_in", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, repeated: true },
|
|
2640
|
+
]);
|
|
2641
|
+
|
|
2642
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SFixed64Rules {
|
|
2643
|
+
return new SFixed64Rules().fromBinary(bytes, options);
|
|
2644
|
+
}
|
|
2645
|
+
|
|
2646
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SFixed64Rules {
|
|
2647
|
+
return new SFixed64Rules().fromJson(jsonValue, options);
|
|
2648
|
+
}
|
|
2649
|
+
|
|
2650
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SFixed64Rules {
|
|
2651
|
+
return new SFixed64Rules().fromJsonString(jsonString, options);
|
|
2652
|
+
}
|
|
2653
|
+
|
|
2654
|
+
static equals(a: SFixed64Rules | PlainMessage<SFixed64Rules> | undefined, b: SFixed64Rules | PlainMessage<SFixed64Rules> | undefined): boolean {
|
|
2655
|
+
return proto3.util.equals(SFixed64Rules, a, b);
|
|
2656
|
+
}
|
|
2657
|
+
}
|
|
2658
|
+
|
|
2659
|
+
/**
|
|
2660
|
+
* BoolRules describes the constraints applied to `bool` values. These rules
|
|
2661
|
+
* may also be applied to the `google.protobuf.BoolValue` Well-Known-Type.
|
|
2662
|
+
*
|
|
2663
|
+
* @generated from message buf.validate.BoolRules
|
|
2664
|
+
*/
|
|
2665
|
+
export class BoolRules extends Message<BoolRules> {
|
|
2666
|
+
/**
|
|
2667
|
+
* `const` requires the field value to exactly match the specified boolean value.
|
|
2668
|
+
* If the field value doesn't match, an error message is generated.
|
|
2669
|
+
*
|
|
2670
|
+
* ```proto
|
|
2671
|
+
* message MyBool {
|
|
2672
|
+
* // value must equal true
|
|
2673
|
+
* bool value = 1 [(buf.validate.field).bool.const = true];
|
|
2674
|
+
* }
|
|
2675
|
+
* ```
|
|
2676
|
+
*
|
|
2677
|
+
* @generated from field: optional bool const = 1;
|
|
2678
|
+
*/
|
|
2679
|
+
const?: boolean;
|
|
2680
|
+
|
|
2681
|
+
constructor(data?: PartialMessage<BoolRules>) {
|
|
2682
|
+
super();
|
|
2683
|
+
proto3.util.initPartial(data, this);
|
|
2684
|
+
}
|
|
2685
|
+
|
|
2686
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2687
|
+
static readonly typeName = "buf.validate.BoolRules";
|
|
2688
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2689
|
+
{ no: 1, name: "const", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
2690
|
+
]);
|
|
2691
|
+
|
|
2692
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BoolRules {
|
|
2693
|
+
return new BoolRules().fromBinary(bytes, options);
|
|
2694
|
+
}
|
|
2695
|
+
|
|
2696
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BoolRules {
|
|
2697
|
+
return new BoolRules().fromJson(jsonValue, options);
|
|
2698
|
+
}
|
|
2699
|
+
|
|
2700
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BoolRules {
|
|
2701
|
+
return new BoolRules().fromJsonString(jsonString, options);
|
|
2702
|
+
}
|
|
2703
|
+
|
|
2704
|
+
static equals(a: BoolRules | PlainMessage<BoolRules> | undefined, b: BoolRules | PlainMessage<BoolRules> | undefined): boolean {
|
|
2705
|
+
return proto3.util.equals(BoolRules, a, b);
|
|
2706
|
+
}
|
|
2707
|
+
}
|
|
2708
|
+
|
|
2709
|
+
/**
|
|
2710
|
+
* StringRules describes the constraints applied to `string` values These
|
|
2711
|
+
* rules may also be applied to the `google.protobuf.StringValue` Well-Known-Type.
|
|
2712
|
+
*
|
|
2713
|
+
* @generated from message buf.validate.StringRules
|
|
2714
|
+
*/
|
|
2715
|
+
export class StringRules extends Message<StringRules> {
|
|
2716
|
+
/**
|
|
2717
|
+
* `const` requires the field value to exactly match the specified value. If
|
|
2718
|
+
* the field value doesn't match, an error message is generated.
|
|
2719
|
+
*
|
|
2720
|
+
* ```proto
|
|
2721
|
+
* message MyString {
|
|
2722
|
+
* // value must equal `hello`
|
|
2723
|
+
* string value = 1 [(buf.validate.field).string.const = "hello"];
|
|
2724
|
+
* }
|
|
2725
|
+
* ```
|
|
2726
|
+
*
|
|
2727
|
+
* @generated from field: optional string const = 1;
|
|
2728
|
+
*/
|
|
2729
|
+
const?: string;
|
|
2730
|
+
|
|
2731
|
+
/**
|
|
2732
|
+
* `len` dictates that the field value must have the specified
|
|
2733
|
+
* number of characters (Unicode code points), which may differ from the number
|
|
2734
|
+
* of bytes in the string. If the field value does not meet the specified
|
|
2735
|
+
* length, an error message will be generated.
|
|
2736
|
+
*
|
|
2737
|
+
* ```proto
|
|
2738
|
+
* message MyString {
|
|
2739
|
+
* // value length must be 5 characters
|
|
2740
|
+
* string value = 1 [(buf.validate.field).string.len = 5];
|
|
2741
|
+
* }
|
|
2742
|
+
* ```
|
|
2743
|
+
*
|
|
2744
|
+
* @generated from field: optional uint64 len = 19;
|
|
2745
|
+
*/
|
|
2746
|
+
len?: bigint;
|
|
2747
|
+
|
|
2748
|
+
/**
|
|
2749
|
+
* `min_len` specifies that the field value must have at least the specified
|
|
2750
|
+
* number of characters (Unicode code points), which may differ from the number
|
|
2751
|
+
* of bytes in the string. If the field value contains fewer characters, an error
|
|
2752
|
+
* message will be generated.
|
|
2753
|
+
*
|
|
2754
|
+
* ```proto
|
|
2755
|
+
* message MyString {
|
|
2756
|
+
* // value length must be at least 3 characters
|
|
2757
|
+
* string value = 1 [(buf.validate.field).string.min_len = 3];
|
|
2758
|
+
* }
|
|
2759
|
+
* ```
|
|
2760
|
+
*
|
|
2761
|
+
* @generated from field: optional uint64 min_len = 2;
|
|
2762
|
+
*/
|
|
2763
|
+
minLen?: bigint;
|
|
2764
|
+
|
|
2765
|
+
/**
|
|
2766
|
+
* `max_len` specifies that the field value must have no more than the specified
|
|
2767
|
+
* number of characters (Unicode code points), which may differ from the
|
|
2768
|
+
* number of bytes in the string. If the field value contains more characters,
|
|
2769
|
+
* an error message will be generated.
|
|
2770
|
+
*
|
|
2771
|
+
* ```proto
|
|
2772
|
+
* message MyString {
|
|
2773
|
+
* // value length must be at most 10 characters
|
|
2774
|
+
* string value = 1 [(buf.validate.field).string.max_len = 10];
|
|
2775
|
+
* }
|
|
2776
|
+
* ```
|
|
2777
|
+
*
|
|
2778
|
+
* @generated from field: optional uint64 max_len = 3;
|
|
2779
|
+
*/
|
|
2780
|
+
maxLen?: bigint;
|
|
2781
|
+
|
|
2782
|
+
/**
|
|
2783
|
+
* `len_bytes` dictates that the field value must have the specified number of
|
|
2784
|
+
* bytes. If the field value does not match the specified length in bytes,
|
|
2785
|
+
* an error message will be generated.
|
|
2786
|
+
*
|
|
2787
|
+
* ```proto
|
|
2788
|
+
* message MyString {
|
|
2789
|
+
* // value length must be 6 bytes
|
|
2790
|
+
* string value = 1 [(buf.validate.field).string.len_bytes = 6];
|
|
2791
|
+
* }
|
|
2792
|
+
* ```
|
|
2793
|
+
*
|
|
2794
|
+
* @generated from field: optional uint64 len_bytes = 20;
|
|
2795
|
+
*/
|
|
2796
|
+
lenBytes?: bigint;
|
|
2797
|
+
|
|
2798
|
+
/**
|
|
2799
|
+
* `min_bytes` specifies that the field value must have at least the specified
|
|
2800
|
+
* number of bytes. If the field value contains fewer bytes, an error message
|
|
2801
|
+
* will be generated.
|
|
2802
|
+
*
|
|
2803
|
+
* ```proto
|
|
2804
|
+
* message MyString {
|
|
2805
|
+
* // value length must be at least 4 bytes
|
|
2806
|
+
* string value = 1 [(buf.validate.field).string.min_bytes = 4];
|
|
2807
|
+
* }
|
|
2808
|
+
*
|
|
2809
|
+
* ```
|
|
2810
|
+
*
|
|
2811
|
+
* @generated from field: optional uint64 min_bytes = 4;
|
|
2812
|
+
*/
|
|
2813
|
+
minBytes?: bigint;
|
|
2814
|
+
|
|
2815
|
+
/**
|
|
2816
|
+
* `max_bytes` specifies that the field value must have no more than the
|
|
2817
|
+
* specified number of bytes. If the field value contains more bytes, an
|
|
2818
|
+
* error message will be generated.
|
|
2819
|
+
*
|
|
2820
|
+
* ```proto
|
|
2821
|
+
* message MyString {
|
|
2822
|
+
* // value length must be at most 8 bytes
|
|
2823
|
+
* string value = 1 [(buf.validate.field).string.max_bytes = 8];
|
|
2824
|
+
* }
|
|
2825
|
+
* ```
|
|
2826
|
+
*
|
|
2827
|
+
* @generated from field: optional uint64 max_bytes = 5;
|
|
2828
|
+
*/
|
|
2829
|
+
maxBytes?: bigint;
|
|
2830
|
+
|
|
2831
|
+
/**
|
|
2832
|
+
* `pattern` specifies that the field value must match the specified
|
|
2833
|
+
* regular expression (RE2 syntax), with the expression provided without any
|
|
2834
|
+
* delimiters. If the field value doesn't match the regular expression, an
|
|
2835
|
+
* error message will be generated.
|
|
2836
|
+
*
|
|
2837
|
+
* ```proto
|
|
2838
|
+
* message MyString {
|
|
2839
|
+
* // value does not match regex pattern `^[a-zA-Z]//$`
|
|
2840
|
+
* string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"];
|
|
2841
|
+
* }
|
|
2842
|
+
* ```
|
|
2843
|
+
*
|
|
2844
|
+
* @generated from field: optional string pattern = 6;
|
|
2845
|
+
*/
|
|
2846
|
+
pattern?: string;
|
|
2847
|
+
|
|
2848
|
+
/**
|
|
2849
|
+
* `prefix` specifies that the field value must have the
|
|
2850
|
+
* specified substring at the beginning of the string. If the field value
|
|
2851
|
+
* doesn't start with the specified prefix, an error message will be
|
|
2852
|
+
* generated.
|
|
2853
|
+
*
|
|
2854
|
+
* ```proto
|
|
2855
|
+
* message MyString {
|
|
2856
|
+
* // value does not have prefix `pre`
|
|
2857
|
+
* string value = 1 [(buf.validate.field).string.prefix = "pre"];
|
|
2858
|
+
* }
|
|
2859
|
+
* ```
|
|
2860
|
+
*
|
|
2861
|
+
* @generated from field: optional string prefix = 7;
|
|
2862
|
+
*/
|
|
2863
|
+
prefix?: string;
|
|
2864
|
+
|
|
2865
|
+
/**
|
|
2866
|
+
* `suffix` specifies that the field value must have the
|
|
2867
|
+
* specified substring at the end of the string. If the field value doesn't
|
|
2868
|
+
* end with the specified suffix, an error message will be generated.
|
|
2869
|
+
*
|
|
2870
|
+
* ```proto
|
|
2871
|
+
* message MyString {
|
|
2872
|
+
* // value does not have suffix `post`
|
|
2873
|
+
* string value = 1 [(buf.validate.field).string.suffix = "post"];
|
|
2874
|
+
* }
|
|
2875
|
+
* ```
|
|
2876
|
+
*
|
|
2877
|
+
* @generated from field: optional string suffix = 8;
|
|
2878
|
+
*/
|
|
2879
|
+
suffix?: string;
|
|
2880
|
+
|
|
2881
|
+
/**
|
|
2882
|
+
* `contains` specifies that the field value must have the
|
|
2883
|
+
* specified substring anywhere in the string. If the field value doesn't
|
|
2884
|
+
* contain the specified substring, an error message will be generated.
|
|
2885
|
+
*
|
|
2886
|
+
* ```proto
|
|
2887
|
+
* message MyString {
|
|
2888
|
+
* // value does not contain substring `inside`.
|
|
2889
|
+
* string value = 1 [(buf.validate.field).string.contains = "inside"];
|
|
2890
|
+
* }
|
|
2891
|
+
* ```
|
|
2892
|
+
*
|
|
2893
|
+
* @generated from field: optional string contains = 9;
|
|
2894
|
+
*/
|
|
2895
|
+
contains?: string;
|
|
2896
|
+
|
|
2897
|
+
/**
|
|
2898
|
+
* `not_contains` specifies that the field value must not have the
|
|
2899
|
+
* specified substring anywhere in the string. If the field value contains
|
|
2900
|
+
* the specified substring, an error message will be generated.
|
|
2901
|
+
*
|
|
2902
|
+
* ```proto
|
|
2903
|
+
* message MyString {
|
|
2904
|
+
* // value contains substring `inside`.
|
|
2905
|
+
* string value = 1 [(buf.validate.field).string.not_contains = "inside"];
|
|
2906
|
+
* }
|
|
2907
|
+
* ```
|
|
2908
|
+
*
|
|
2909
|
+
* @generated from field: optional string not_contains = 23;
|
|
2910
|
+
*/
|
|
2911
|
+
notContains?: string;
|
|
2912
|
+
|
|
2913
|
+
/**
|
|
2914
|
+
* `in` specifies that the field value must be equal to one of the specified
|
|
2915
|
+
* values. If the field value isn't one of the specified values, an error
|
|
2916
|
+
* message will be generated.
|
|
2917
|
+
*
|
|
2918
|
+
* ```proto
|
|
2919
|
+
* message MyString {
|
|
2920
|
+
* // value must be in list ["apple", "banana"]
|
|
2921
|
+
* repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
|
|
2922
|
+
* }
|
|
2923
|
+
* ```
|
|
2924
|
+
*
|
|
2925
|
+
* @generated from field: repeated string in = 10;
|
|
2926
|
+
*/
|
|
2927
|
+
in: string[] = [];
|
|
2928
|
+
|
|
2929
|
+
/**
|
|
2930
|
+
* `not_in` specifies that the field value cannot be equal to any
|
|
2931
|
+
* of the specified values. If the field value is one of the specified values,
|
|
2932
|
+
* an error message will be generated.
|
|
2933
|
+
* ```proto
|
|
2934
|
+
* message MyString {
|
|
2935
|
+
* // value must not be in list ["orange", "grape"]
|
|
2936
|
+
* repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"];
|
|
2937
|
+
* }
|
|
2938
|
+
* ```
|
|
2939
|
+
*
|
|
2940
|
+
* @generated from field: repeated string not_in = 11;
|
|
2941
|
+
*/
|
|
2942
|
+
notIn: string[] = [];
|
|
2943
|
+
|
|
2944
|
+
/**
|
|
2945
|
+
* `WellKnown` rules provide advanced constraints against common string
|
|
2946
|
+
* patterns
|
|
2947
|
+
*
|
|
2948
|
+
* @generated from oneof buf.validate.StringRules.well_known
|
|
2949
|
+
*/
|
|
2950
|
+
wellKnown: {
|
|
2951
|
+
/**
|
|
2952
|
+
* `email` specifies that the field value must be a valid email address
|
|
2953
|
+
* (addr-spec only) as defined by [RFC 5322](https://tools.ietf.org/html/rfc5322#section-3.4.1).
|
|
2954
|
+
* If the field value isn't a valid email address, an error message will be generated.
|
|
2955
|
+
*
|
|
2956
|
+
* ```proto
|
|
2957
|
+
* message MyString {
|
|
2958
|
+
* // value must be a valid email address
|
|
2959
|
+
* string value = 1 [(buf.validate.field).string.email = true];
|
|
2960
|
+
* }
|
|
2961
|
+
* ```
|
|
2962
|
+
*
|
|
2963
|
+
* @generated from field: bool email = 12;
|
|
2964
|
+
*/
|
|
2965
|
+
value: boolean;
|
|
2966
|
+
case: "email";
|
|
2967
|
+
} | {
|
|
2968
|
+
/**
|
|
2969
|
+
* `hostname` specifies that the field value must be a valid
|
|
2970
|
+
* hostname as defined by [RFC 1034](https://tools.ietf.org/html/rfc1034#section-3.5). This constraint doesn't support
|
|
2971
|
+
* internationalized domain names (IDNs). If the field value isn't a
|
|
2972
|
+
* valid hostname, an error message will be generated.
|
|
2973
|
+
*
|
|
2974
|
+
* ```proto
|
|
2975
|
+
* message MyString {
|
|
2976
|
+
* // value must be a valid hostname
|
|
2977
|
+
* string value = 1 [(buf.validate.field).string.hostname = true];
|
|
2978
|
+
* }
|
|
2979
|
+
* ```
|
|
2980
|
+
*
|
|
2981
|
+
* @generated from field: bool hostname = 13;
|
|
2982
|
+
*/
|
|
2983
|
+
value: boolean;
|
|
2984
|
+
case: "hostname";
|
|
2985
|
+
} | {
|
|
2986
|
+
/**
|
|
2987
|
+
* `ip` specifies that the field value must be a valid IP
|
|
2988
|
+
* (v4 or v6) address, without surrounding square brackets for IPv6 addresses.
|
|
2989
|
+
* If the field value isn't a valid IP address, an error message will be
|
|
2990
|
+
* generated.
|
|
2991
|
+
*
|
|
2992
|
+
* ```proto
|
|
2993
|
+
* message MyString {
|
|
2994
|
+
* // value must be a valid IP address
|
|
2995
|
+
* string value = 1 [(buf.validate.field).string.ip = true];
|
|
2996
|
+
* }
|
|
2997
|
+
* ```
|
|
2998
|
+
*
|
|
2999
|
+
* @generated from field: bool ip = 14;
|
|
3000
|
+
*/
|
|
3001
|
+
value: boolean;
|
|
3002
|
+
case: "ip";
|
|
3003
|
+
} | {
|
|
3004
|
+
/**
|
|
3005
|
+
* `ipv4` specifies that the field value must be a valid IPv4
|
|
3006
|
+
* address. If the field value isn't a valid IPv4 address, an error message
|
|
3007
|
+
* will be generated.
|
|
3008
|
+
*
|
|
3009
|
+
* ```proto
|
|
3010
|
+
* message MyString {
|
|
3011
|
+
* // value must be a valid IPv4 address
|
|
3012
|
+
* string value = 1 [(buf.validate.field).string.ipv4 = true];
|
|
3013
|
+
* }
|
|
3014
|
+
* ```
|
|
3015
|
+
*
|
|
3016
|
+
* @generated from field: bool ipv4 = 15;
|
|
3017
|
+
*/
|
|
3018
|
+
value: boolean;
|
|
3019
|
+
case: "ipv4";
|
|
3020
|
+
} | {
|
|
3021
|
+
/**
|
|
3022
|
+
* `ipv6` specifies that the field value must be a valid
|
|
3023
|
+
* IPv6 address, without surrounding square brackets. If the field value is
|
|
3024
|
+
* not a valid IPv6 address, an error message will be generated.
|
|
3025
|
+
*
|
|
3026
|
+
* ```proto
|
|
3027
|
+
* message MyString {
|
|
3028
|
+
* // value must be a valid IPv6 address
|
|
3029
|
+
* string value = 1 [(buf.validate.field).string.ipv6 = true];
|
|
3030
|
+
* }
|
|
3031
|
+
* ```
|
|
3032
|
+
*
|
|
3033
|
+
* @generated from field: bool ipv6 = 16;
|
|
3034
|
+
*/
|
|
3035
|
+
value: boolean;
|
|
3036
|
+
case: "ipv6";
|
|
3037
|
+
} | {
|
|
3038
|
+
/**
|
|
3039
|
+
* `uri` specifies that the field value must be a valid,
|
|
3040
|
+
* absolute URI as defined by [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3). If the field value isn't a valid,
|
|
3041
|
+
* absolute URI, an error message will be generated.
|
|
3042
|
+
*
|
|
3043
|
+
* ```proto
|
|
3044
|
+
* message MyString {
|
|
3045
|
+
* // value must be a valid URI
|
|
3046
|
+
* string value = 1 [(buf.validate.field).string.uri = true];
|
|
3047
|
+
* }
|
|
3048
|
+
* ```
|
|
3049
|
+
*
|
|
3050
|
+
* @generated from field: bool uri = 17;
|
|
3051
|
+
*/
|
|
3052
|
+
value: boolean;
|
|
3053
|
+
case: "uri";
|
|
3054
|
+
} | {
|
|
3055
|
+
/**
|
|
3056
|
+
* `uri_ref` specifies that the field value must be a valid URI
|
|
3057
|
+
* as defined by [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3) and may be either relative or absolute. If the
|
|
3058
|
+
* field value isn't a valid URI, an error message will be generated.
|
|
3059
|
+
*
|
|
3060
|
+
* ```proto
|
|
3061
|
+
* message MyString {
|
|
3062
|
+
* // value must be a valid URI
|
|
3063
|
+
* string value = 1 [(buf.validate.field).string.uri_ref = true];
|
|
3064
|
+
* }
|
|
3065
|
+
* ```
|
|
3066
|
+
*
|
|
3067
|
+
* @generated from field: bool uri_ref = 18;
|
|
3068
|
+
*/
|
|
3069
|
+
value: boolean;
|
|
3070
|
+
case: "uriRef";
|
|
3071
|
+
} | {
|
|
3072
|
+
/**
|
|
3073
|
+
* `address` specifies that the field value must be either a valid hostname
|
|
3074
|
+
* as defined by [RFC 1034](https://tools.ietf.org/html/rfc1034#section-3.5)
|
|
3075
|
+
* (which doesn't support internationalized domain names or IDNs) or a valid
|
|
3076
|
+
* IP (v4 or v6). If the field value isn't a valid hostname or IP, an error
|
|
3077
|
+
* message will be generated.
|
|
3078
|
+
*
|
|
3079
|
+
* ```proto
|
|
3080
|
+
* message MyString {
|
|
3081
|
+
* // value must be a valid hostname, or ip address
|
|
3082
|
+
* string value = 1 [(buf.validate.field).string.address = true];
|
|
3083
|
+
* }
|
|
3084
|
+
* ```
|
|
3085
|
+
*
|
|
3086
|
+
* @generated from field: bool address = 21;
|
|
3087
|
+
*/
|
|
3088
|
+
value: boolean;
|
|
3089
|
+
case: "address";
|
|
3090
|
+
} | {
|
|
3091
|
+
/**
|
|
3092
|
+
* `uuid` specifies that the field value must be a valid UUID as defined by
|
|
3093
|
+
* [RFC 4122](https://tools.ietf.org/html/rfc4122#section-4.1.2). If the
|
|
3094
|
+
* field value isn't a valid UUID, an error message will be generated.
|
|
3095
|
+
*
|
|
3096
|
+
* ```proto
|
|
3097
|
+
* message MyString {
|
|
3098
|
+
* // value must be a valid UUID
|
|
3099
|
+
* string value = 1 [(buf.validate.field).string.uuid = true];
|
|
3100
|
+
* }
|
|
3101
|
+
* ```
|
|
3102
|
+
*
|
|
3103
|
+
* @generated from field: bool uuid = 22;
|
|
3104
|
+
*/
|
|
3105
|
+
value: boolean;
|
|
3106
|
+
case: "uuid";
|
|
3107
|
+
} | {
|
|
3108
|
+
/**
|
|
3109
|
+
* `ip_with_prefixlen` specifies that the field value must be a valid IP (v4 or v6)
|
|
3110
|
+
* address with prefix length. If the field value isn't a valid IP with prefix
|
|
3111
|
+
* length, an error message will be generated.
|
|
3112
|
+
*
|
|
3113
|
+
*
|
|
3114
|
+
* ```proto
|
|
3115
|
+
* message MyString {
|
|
3116
|
+
* // value must be a valid IP with prefix length
|
|
3117
|
+
* string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true];
|
|
3118
|
+
* }
|
|
3119
|
+
* ```
|
|
3120
|
+
*
|
|
3121
|
+
* @generated from field: bool ip_with_prefixlen = 26;
|
|
3122
|
+
*/
|
|
3123
|
+
value: boolean;
|
|
3124
|
+
case: "ipWithPrefixlen";
|
|
3125
|
+
} | {
|
|
3126
|
+
/**
|
|
3127
|
+
* `ipv4_with_prefixlen` specifies that the field value must be a valid
|
|
3128
|
+
* IPv4 address with prefix.
|
|
3129
|
+
* If the field value isn't a valid IPv4 address with prefix length,
|
|
3130
|
+
* an error message will be generated.
|
|
3131
|
+
*
|
|
3132
|
+
* ```proto
|
|
3133
|
+
* message MyString {
|
|
3134
|
+
* // value must be a valid IPv4 address with prefix lentgh
|
|
3135
|
+
* string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true];
|
|
3136
|
+
* }
|
|
3137
|
+
* ```
|
|
3138
|
+
*
|
|
3139
|
+
* @generated from field: bool ipv4_with_prefixlen = 27;
|
|
3140
|
+
*/
|
|
3141
|
+
value: boolean;
|
|
3142
|
+
case: "ipv4WithPrefixlen";
|
|
3143
|
+
} | {
|
|
3144
|
+
/**
|
|
3145
|
+
* `ipv6_with_prefixlen` specifies that the field value must be a valid
|
|
3146
|
+
* IPv6 address with prefix length.
|
|
3147
|
+
* If the field value is not a valid IPv6 address with prefix length,
|
|
3148
|
+
* an error message will be generated.
|
|
3149
|
+
*
|
|
3150
|
+
* ```proto
|
|
3151
|
+
* message MyString {
|
|
3152
|
+
* // value must be a valid IPv6 address prefix length
|
|
3153
|
+
* string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true];
|
|
3154
|
+
* }
|
|
3155
|
+
* ```
|
|
3156
|
+
*
|
|
3157
|
+
* @generated from field: bool ipv6_with_prefixlen = 28;
|
|
3158
|
+
*/
|
|
3159
|
+
value: boolean;
|
|
3160
|
+
case: "ipv6WithPrefixlen";
|
|
3161
|
+
} | {
|
|
3162
|
+
/**
|
|
3163
|
+
* `ip_prefix` specifies that the field value must be a valid IP (v4 or v6) prefix.
|
|
3164
|
+
* If the field value isn't a valid IP prefix, an error message will be
|
|
3165
|
+
* generated. The prefix must have all zeros for the masked bits of the prefix (e.g.,
|
|
3166
|
+
* `127.0.0.0/16`, not `127.0.0.1/16`).
|
|
3167
|
+
*
|
|
3168
|
+
* ```proto
|
|
3169
|
+
* message MyString {
|
|
3170
|
+
* // value must be a valid IP prefix
|
|
3171
|
+
* string value = 1 [(buf.validate.field).string.ip_prefix = true];
|
|
3172
|
+
* }
|
|
3173
|
+
* ```
|
|
3174
|
+
*
|
|
3175
|
+
* @generated from field: bool ip_prefix = 29;
|
|
3176
|
+
*/
|
|
3177
|
+
value: boolean;
|
|
3178
|
+
case: "ipPrefix";
|
|
3179
|
+
} | {
|
|
3180
|
+
/**
|
|
3181
|
+
* `ipv4_prefix` specifies that the field value must be a valid IPv4
|
|
3182
|
+
* prefix. If the field value isn't a valid IPv4 prefix, an error message
|
|
3183
|
+
* will be generated. The prefix must have all zeros for the masked bits of
|
|
3184
|
+
* the prefix (e.g., `127.0.0.0/16`, not `127.0.0.1/16`).
|
|
3185
|
+
*
|
|
3186
|
+
* ```proto
|
|
3187
|
+
* message MyString {
|
|
3188
|
+
* // value must be a valid IPv4 prefix
|
|
3189
|
+
* string value = 1 [(buf.validate.field).string.ipv4_prefix = true];
|
|
3190
|
+
* }
|
|
3191
|
+
* ```
|
|
3192
|
+
*
|
|
3193
|
+
* @generated from field: bool ipv4_prefix = 30;
|
|
3194
|
+
*/
|
|
3195
|
+
value: boolean;
|
|
3196
|
+
case: "ipv4Prefix";
|
|
3197
|
+
} | {
|
|
3198
|
+
/**
|
|
3199
|
+
* `ipv6_prefix` specifies that the field value must be a valid IPv6 prefix.
|
|
3200
|
+
* If the field value is not a valid IPv6 prefix, an error message will be
|
|
3201
|
+
* generated. The prefix must have all zeros for the masked bits of the prefix
|
|
3202
|
+
* (e.g., `2001:db8::/48`, not `2001:db8::1/48`).
|
|
3203
|
+
*
|
|
3204
|
+
* ```proto
|
|
3205
|
+
* message MyString {
|
|
3206
|
+
* // value must be a valid IPv6 prefix
|
|
3207
|
+
* string value = 1 [(buf.validate.field).string.ipv6_prefix = true];
|
|
3208
|
+
* }
|
|
3209
|
+
* ```
|
|
3210
|
+
*
|
|
3211
|
+
* @generated from field: bool ipv6_prefix = 31;
|
|
3212
|
+
*/
|
|
3213
|
+
value: boolean;
|
|
3214
|
+
case: "ipv6Prefix";
|
|
3215
|
+
} | {
|
|
3216
|
+
/**
|
|
3217
|
+
* `well_known_regex` specifies a common well-known pattern
|
|
3218
|
+
* defined as a regex. If the field value doesn't match the well-known
|
|
3219
|
+
* regex, an error message will be generated.
|
|
3220
|
+
*
|
|
3221
|
+
* ```proto
|
|
3222
|
+
* message MyString {
|
|
3223
|
+
* // value must be a valid HTTP header value
|
|
3224
|
+
* string value = 1 [(buf.validate.field).string.well_known_regex = 2];
|
|
3225
|
+
* }
|
|
3226
|
+
* ```
|
|
3227
|
+
*
|
|
3228
|
+
* #### KnownRegex
|
|
3229
|
+
*
|
|
3230
|
+
* `well_known_regex` contains some well-known patterns.
|
|
3231
|
+
*
|
|
3232
|
+
* | Name | Number | Description |
|
|
3233
|
+
* |-------------------------------|--------|-------------------------------------------|
|
|
3234
|
+
* | KNOWN_REGEX_UNSPECIFIED | 0 | |
|
|
3235
|
+
* | KNOWN_REGEX_HTTP_HEADER_NAME | 1 | HTTP header name as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2) |
|
|
3236
|
+
* | KNOWN_REGEX_HTTP_HEADER_VALUE | 2 | HTTP header value as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2.4) |
|
|
3237
|
+
*
|
|
3238
|
+
* @generated from field: buf.validate.KnownRegex well_known_regex = 24;
|
|
3239
|
+
*/
|
|
3240
|
+
value: KnownRegex;
|
|
3241
|
+
case: "wellKnownRegex";
|
|
3242
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
3243
|
+
|
|
3244
|
+
/**
|
|
3245
|
+
* This applies to regexes `HTTP_HEADER_NAME` and `HTTP_HEADER_VALUE` to
|
|
3246
|
+
* enable strict header validation. By default, this is true, and HTTP header
|
|
3247
|
+
* validations are [RFC-compliant](https://tools.ietf.org/html/rfc7230#section-3). Setting to false will enable looser
|
|
3248
|
+
* validations that only disallow `\r\n\0` characters, which can be used to
|
|
3249
|
+
* bypass header matching rules.
|
|
3250
|
+
*
|
|
3251
|
+
* ```proto
|
|
3252
|
+
* message MyString {
|
|
3253
|
+
* // The field `value` must have be a valid HTTP headers, but not enforced with strict rules.
|
|
3254
|
+
* string value = 1 [(buf.validate.field).string.strict = false];
|
|
3255
|
+
* }
|
|
3256
|
+
* ```
|
|
3257
|
+
*
|
|
3258
|
+
* @generated from field: optional bool strict = 25;
|
|
3259
|
+
*/
|
|
3260
|
+
strict?: boolean;
|
|
3261
|
+
|
|
3262
|
+
constructor(data?: PartialMessage<StringRules>) {
|
|
3263
|
+
super();
|
|
3264
|
+
proto3.util.initPartial(data, this);
|
|
3265
|
+
}
|
|
3266
|
+
|
|
3267
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
3268
|
+
static readonly typeName = "buf.validate.StringRules";
|
|
3269
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
3270
|
+
{ no: 1, name: "const", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3271
|
+
{ no: 19, name: "len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
3272
|
+
{ no: 2, name: "min_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
3273
|
+
{ no: 3, name: "max_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
3274
|
+
{ no: 20, name: "len_bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
3275
|
+
{ no: 4, name: "min_bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
3276
|
+
{ no: 5, name: "max_bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
3277
|
+
{ no: 6, name: "pattern", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3278
|
+
{ no: 7, name: "prefix", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3279
|
+
{ no: 8, name: "suffix", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3280
|
+
{ no: 9, name: "contains", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3281
|
+
{ no: 23, name: "not_contains", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3282
|
+
{ no: 10, name: "in", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
3283
|
+
{ no: 11, name: "not_in", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
3284
|
+
{ no: 12, name: "email", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
3285
|
+
{ no: 13, name: "hostname", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
3286
|
+
{ no: 14, name: "ip", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
3287
|
+
{ no: 15, name: "ipv4", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
3288
|
+
{ no: 16, name: "ipv6", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
3289
|
+
{ no: 17, name: "uri", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
3290
|
+
{ no: 18, name: "uri_ref", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
3291
|
+
{ no: 21, name: "address", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
3292
|
+
{ no: 22, name: "uuid", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
3293
|
+
{ no: 26, name: "ip_with_prefixlen", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
3294
|
+
{ no: 27, name: "ipv4_with_prefixlen", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
3295
|
+
{ no: 28, name: "ipv6_with_prefixlen", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
3296
|
+
{ no: 29, name: "ip_prefix", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
3297
|
+
{ no: 30, name: "ipv4_prefix", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
3298
|
+
{ no: 31, name: "ipv6_prefix", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
3299
|
+
{ no: 24, name: "well_known_regex", kind: "enum", T: proto3.getEnumType(KnownRegex), oneof: "well_known" },
|
|
3300
|
+
{ no: 25, name: "strict", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
3301
|
+
]);
|
|
3302
|
+
|
|
3303
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StringRules {
|
|
3304
|
+
return new StringRules().fromBinary(bytes, options);
|
|
3305
|
+
}
|
|
3306
|
+
|
|
3307
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StringRules {
|
|
3308
|
+
return new StringRules().fromJson(jsonValue, options);
|
|
3309
|
+
}
|
|
3310
|
+
|
|
3311
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StringRules {
|
|
3312
|
+
return new StringRules().fromJsonString(jsonString, options);
|
|
3313
|
+
}
|
|
3314
|
+
|
|
3315
|
+
static equals(a: StringRules | PlainMessage<StringRules> | undefined, b: StringRules | PlainMessage<StringRules> | undefined): boolean {
|
|
3316
|
+
return proto3.util.equals(StringRules, a, b);
|
|
3317
|
+
}
|
|
3318
|
+
}
|
|
3319
|
+
|
|
3320
|
+
/**
|
|
3321
|
+
* BytesRules describe the constraints applied to `bytes` values. These rules
|
|
3322
|
+
* may also be applied to the `google.protobuf.BytesValue` Well-Known-Type.
|
|
3323
|
+
*
|
|
3324
|
+
* @generated from message buf.validate.BytesRules
|
|
3325
|
+
*/
|
|
3326
|
+
export class BytesRules extends Message<BytesRules> {
|
|
3327
|
+
/**
|
|
3328
|
+
* `const` requires the field value to exactly match the specified bytes
|
|
3329
|
+
* value. If the field value doesn't match, an error message is generated.
|
|
3330
|
+
*
|
|
3331
|
+
* ```proto
|
|
3332
|
+
* message MyBytes {
|
|
3333
|
+
* // value must be "\x01\x02\x03\x04"
|
|
3334
|
+
* bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"];
|
|
3335
|
+
* }
|
|
3336
|
+
* ```
|
|
3337
|
+
*
|
|
3338
|
+
* @generated from field: optional bytes const = 1;
|
|
3339
|
+
*/
|
|
3340
|
+
const?: Uint8Array;
|
|
3341
|
+
|
|
3342
|
+
/**
|
|
3343
|
+
* `len` requires the field value to have the specified length in bytes.
|
|
3344
|
+
* If the field value doesn't match, an error message is generated.
|
|
3345
|
+
*
|
|
3346
|
+
* ```proto
|
|
3347
|
+
* message MyBytes {
|
|
3348
|
+
* // value length must be 4 bytes.
|
|
3349
|
+
* optional bytes value = 1 [(buf.validate.field).bytes.len = 4];
|
|
3350
|
+
* }
|
|
3351
|
+
* ```
|
|
3352
|
+
*
|
|
3353
|
+
* @generated from field: optional uint64 len = 13;
|
|
3354
|
+
*/
|
|
3355
|
+
len?: bigint;
|
|
3356
|
+
|
|
3357
|
+
/**
|
|
3358
|
+
* `min_len` requires the field value to have at least the specified minimum
|
|
3359
|
+
* length in bytes.
|
|
3360
|
+
* If the field value doesn't meet the requirement, an error message is generated.
|
|
3361
|
+
*
|
|
3362
|
+
* ```proto
|
|
3363
|
+
* message MyBytes {
|
|
3364
|
+
* // value length must be at least 2 bytes.
|
|
3365
|
+
* optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2];
|
|
3366
|
+
* }
|
|
3367
|
+
* ```
|
|
3368
|
+
*
|
|
3369
|
+
* @generated from field: optional uint64 min_len = 2;
|
|
3370
|
+
*/
|
|
3371
|
+
minLen?: bigint;
|
|
3372
|
+
|
|
3373
|
+
/**
|
|
3374
|
+
* `max_len` requires the field value to have at most the specified maximum
|
|
3375
|
+
* length in bytes.
|
|
3376
|
+
* If the field value exceeds the requirement, an error message is generated.
|
|
3377
|
+
*
|
|
3378
|
+
* ```proto
|
|
3379
|
+
* message MyBytes {
|
|
3380
|
+
* // value must be at most 6 bytes.
|
|
3381
|
+
* optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6];
|
|
3382
|
+
* }
|
|
3383
|
+
* ```
|
|
3384
|
+
*
|
|
3385
|
+
* @generated from field: optional uint64 max_len = 3;
|
|
3386
|
+
*/
|
|
3387
|
+
maxLen?: bigint;
|
|
3388
|
+
|
|
3389
|
+
/**
|
|
3390
|
+
* `pattern` requires the field value to match the specified regular
|
|
3391
|
+
* expression ([RE2 syntax](https://github.com/google/re2/wiki/Syntax)).
|
|
3392
|
+
* The value of the field must be valid UTF-8 or validation will fail with a
|
|
3393
|
+
* runtime error.
|
|
3394
|
+
* If the field value doesn't match the pattern, an error message is generated.
|
|
3395
|
+
*
|
|
3396
|
+
* ```proto
|
|
3397
|
+
* message MyBytes {
|
|
3398
|
+
* // value must match regex pattern "^[a-zA-Z0-9]+$".
|
|
3399
|
+
* optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"];
|
|
3400
|
+
* }
|
|
3401
|
+
* ```
|
|
3402
|
+
*
|
|
3403
|
+
* @generated from field: optional string pattern = 4;
|
|
3404
|
+
*/
|
|
3405
|
+
pattern?: string;
|
|
3406
|
+
|
|
3407
|
+
/**
|
|
3408
|
+
* `prefix` requires the field value to have the specified bytes at the
|
|
3409
|
+
* beginning of the string.
|
|
3410
|
+
* If the field value doesn't meet the requirement, an error message is generated.
|
|
3411
|
+
*
|
|
3412
|
+
* ```proto
|
|
3413
|
+
* message MyBytes {
|
|
3414
|
+
* // value does not have prefix \x01\x02
|
|
3415
|
+
* optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"];
|
|
3416
|
+
* }
|
|
3417
|
+
* ```
|
|
3418
|
+
*
|
|
3419
|
+
* @generated from field: optional bytes prefix = 5;
|
|
3420
|
+
*/
|
|
3421
|
+
prefix?: Uint8Array;
|
|
3422
|
+
|
|
3423
|
+
/**
|
|
3424
|
+
* `suffix` requires the field value to have the specified bytes at the end
|
|
3425
|
+
* of the string.
|
|
3426
|
+
* If the field value doesn't meet the requirement, an error message is generated.
|
|
3427
|
+
*
|
|
3428
|
+
* ```proto
|
|
3429
|
+
* message MyBytes {
|
|
3430
|
+
* // value does not have suffix \x03\x04
|
|
3431
|
+
* optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"];
|
|
3432
|
+
* }
|
|
3433
|
+
* ```
|
|
3434
|
+
*
|
|
3435
|
+
* @generated from field: optional bytes suffix = 6;
|
|
3436
|
+
*/
|
|
3437
|
+
suffix?: Uint8Array;
|
|
3438
|
+
|
|
3439
|
+
/**
|
|
3440
|
+
* `contains` requires the field value to have the specified bytes anywhere in
|
|
3441
|
+
* the string.
|
|
3442
|
+
* If the field value doesn't meet the requirement, an error message is generated.
|
|
3443
|
+
*
|
|
3444
|
+
* ```protobuf
|
|
3445
|
+
* message MyBytes {
|
|
3446
|
+
* // value does not contain \x02\x03
|
|
3447
|
+
* optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"];
|
|
3448
|
+
* }
|
|
3449
|
+
* ```
|
|
3450
|
+
*
|
|
3451
|
+
* @generated from field: optional bytes contains = 7;
|
|
3452
|
+
*/
|
|
3453
|
+
contains?: Uint8Array;
|
|
3454
|
+
|
|
3455
|
+
/**
|
|
3456
|
+
* `in` requires the field value to be equal to one of the specified
|
|
3457
|
+
* values. If the field value doesn't match any of the specified values, an
|
|
3458
|
+
* error message is generated.
|
|
3459
|
+
*
|
|
3460
|
+
* ```protobuf
|
|
3461
|
+
* message MyBytes {
|
|
3462
|
+
* // value must in ["\x01\x02", "\x02\x03", "\x03\x04"]
|
|
3463
|
+
* optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
|
|
3464
|
+
* }
|
|
3465
|
+
* ```
|
|
3466
|
+
*
|
|
3467
|
+
* @generated from field: repeated bytes in = 8;
|
|
3468
|
+
*/
|
|
3469
|
+
in: Uint8Array[] = [];
|
|
3470
|
+
|
|
3471
|
+
/**
|
|
3472
|
+
* `not_in` requires the field value to be not equal to any of the specified
|
|
3473
|
+
* values.
|
|
3474
|
+
* If the field value matches any of the specified values, an error message is
|
|
3475
|
+
* generated.
|
|
3476
|
+
*
|
|
3477
|
+
* ```proto
|
|
3478
|
+
* message MyBytes {
|
|
3479
|
+
* // value must not in ["\x01\x02", "\x02\x03", "\x03\x04"]
|
|
3480
|
+
* optional bytes value = 1 [(buf.validate.field).bytes.not_in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
|
|
3481
|
+
* }
|
|
3482
|
+
* ```
|
|
3483
|
+
*
|
|
3484
|
+
* @generated from field: repeated bytes not_in = 9;
|
|
3485
|
+
*/
|
|
3486
|
+
notIn: Uint8Array[] = [];
|
|
3487
|
+
|
|
3488
|
+
/**
|
|
3489
|
+
* WellKnown rules provide advanced constraints against common byte
|
|
3490
|
+
* patterns
|
|
3491
|
+
*
|
|
3492
|
+
* @generated from oneof buf.validate.BytesRules.well_known
|
|
3493
|
+
*/
|
|
3494
|
+
wellKnown: {
|
|
3495
|
+
/**
|
|
3496
|
+
* `ip` ensures that the field `value` is a valid IP address (v4 or v6) in byte format.
|
|
3497
|
+
* If the field value doesn't meet this constraint, an error message is generated.
|
|
3498
|
+
*
|
|
3499
|
+
* ```proto
|
|
3500
|
+
* message MyBytes {
|
|
3501
|
+
* // value must be a valid IP address
|
|
3502
|
+
* optional bytes value = 1 [(buf.validate.field).bytes.ip = true];
|
|
3503
|
+
* }
|
|
3504
|
+
* ```
|
|
3505
|
+
*
|
|
3506
|
+
* @generated from field: bool ip = 10;
|
|
3507
|
+
*/
|
|
3508
|
+
value: boolean;
|
|
3509
|
+
case: "ip";
|
|
3510
|
+
} | {
|
|
3511
|
+
/**
|
|
3512
|
+
* `ipv4` ensures that the field `value` is a valid IPv4 address in byte format.
|
|
3513
|
+
* If the field value doesn't meet this constraint, an error message is generated.
|
|
3514
|
+
*
|
|
3515
|
+
* ```proto
|
|
3516
|
+
* message MyBytes {
|
|
3517
|
+
* // value must be a valid IPv4 address
|
|
3518
|
+
* optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true];
|
|
3519
|
+
* }
|
|
3520
|
+
* ```
|
|
3521
|
+
*
|
|
3522
|
+
* @generated from field: bool ipv4 = 11;
|
|
3523
|
+
*/
|
|
3524
|
+
value: boolean;
|
|
3525
|
+
case: "ipv4";
|
|
3526
|
+
} | {
|
|
3527
|
+
/**
|
|
3528
|
+
* `ipv6` ensures that the field `value` is a valid IPv6 address in byte format.
|
|
3529
|
+
* If the field value doesn't meet this constraint, an error message is generated.
|
|
3530
|
+
* ```proto
|
|
3531
|
+
* message MyBytes {
|
|
3532
|
+
* // value must be a valid IPv6 address
|
|
3533
|
+
* optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true];
|
|
3534
|
+
* }
|
|
3535
|
+
* ```
|
|
3536
|
+
*
|
|
3537
|
+
* @generated from field: bool ipv6 = 12;
|
|
3538
|
+
*/
|
|
3539
|
+
value: boolean;
|
|
3540
|
+
case: "ipv6";
|
|
3541
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
3542
|
+
|
|
3543
|
+
constructor(data?: PartialMessage<BytesRules>) {
|
|
3544
|
+
super();
|
|
3545
|
+
proto3.util.initPartial(data, this);
|
|
3546
|
+
}
|
|
3547
|
+
|
|
3548
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
3549
|
+
static readonly typeName = "buf.validate.BytesRules";
|
|
3550
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
3551
|
+
{ no: 1, name: "const", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
|
|
3552
|
+
{ no: 13, name: "len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
3553
|
+
{ no: 2, name: "min_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
3554
|
+
{ no: 3, name: "max_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
3555
|
+
{ no: 4, name: "pattern", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3556
|
+
{ no: 5, name: "prefix", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
|
|
3557
|
+
{ no: 6, name: "suffix", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
|
|
3558
|
+
{ no: 7, name: "contains", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
|
|
3559
|
+
{ no: 8, name: "in", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true },
|
|
3560
|
+
{ no: 9, name: "not_in", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true },
|
|
3561
|
+
{ no: 10, name: "ip", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
3562
|
+
{ no: 11, name: "ipv4", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
3563
|
+
{ no: 12, name: "ipv6", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
3564
|
+
]);
|
|
3565
|
+
|
|
3566
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BytesRules {
|
|
3567
|
+
return new BytesRules().fromBinary(bytes, options);
|
|
3568
|
+
}
|
|
3569
|
+
|
|
3570
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BytesRules {
|
|
3571
|
+
return new BytesRules().fromJson(jsonValue, options);
|
|
3572
|
+
}
|
|
3573
|
+
|
|
3574
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BytesRules {
|
|
3575
|
+
return new BytesRules().fromJsonString(jsonString, options);
|
|
3576
|
+
}
|
|
3577
|
+
|
|
3578
|
+
static equals(a: BytesRules | PlainMessage<BytesRules> | undefined, b: BytesRules | PlainMessage<BytesRules> | undefined): boolean {
|
|
3579
|
+
return proto3.util.equals(BytesRules, a, b);
|
|
3580
|
+
}
|
|
3581
|
+
}
|
|
3582
|
+
|
|
3583
|
+
/**
|
|
3584
|
+
* EnumRules describe the constraints applied to `enum` values.
|
|
3585
|
+
*
|
|
3586
|
+
* @generated from message buf.validate.EnumRules
|
|
3587
|
+
*/
|
|
3588
|
+
export class EnumRules extends Message<EnumRules> {
|
|
3589
|
+
/**
|
|
3590
|
+
* `const` requires the field value to exactly match the specified enum value.
|
|
3591
|
+
* If the field value doesn't match, an error message is generated.
|
|
3592
|
+
*
|
|
3593
|
+
* ```proto
|
|
3594
|
+
* enum MyEnum {
|
|
3595
|
+
* MY_ENUM_UNSPECIFIED = 0;
|
|
3596
|
+
* MY_ENUM_VALUE1 = 1;
|
|
3597
|
+
* MY_ENUM_VALUE2 = 2;
|
|
3598
|
+
* }
|
|
3599
|
+
*
|
|
3600
|
+
* message MyMessage {
|
|
3601
|
+
* // The field `value` must be exactly MY_ENUM_VALUE1.
|
|
3602
|
+
* MyEnum value = 1 [(buf.validate.field).enum.const = 1];
|
|
3603
|
+
* }
|
|
3604
|
+
* ```
|
|
3605
|
+
*
|
|
3606
|
+
* @generated from field: optional int32 const = 1;
|
|
3607
|
+
*/
|
|
3608
|
+
const?: number;
|
|
3609
|
+
|
|
3610
|
+
/**
|
|
3611
|
+
* `defined_only` requires the field value to be one of the defined values for
|
|
3612
|
+
* this enum, failing on any undefined value.
|
|
3613
|
+
*
|
|
3614
|
+
* ```proto
|
|
3615
|
+
* enum MyEnum {
|
|
3616
|
+
* MY_ENUM_UNSPECIFIED = 0;
|
|
3617
|
+
* MY_ENUM_VALUE1 = 1;
|
|
3618
|
+
* MY_ENUM_VALUE2 = 2;
|
|
3619
|
+
* }
|
|
3620
|
+
*
|
|
3621
|
+
* message MyMessage {
|
|
3622
|
+
* // The field `value` must be a defined value of MyEnum.
|
|
3623
|
+
* MyEnum value = 1 [(buf.validate.field).enum.defined_only = true];
|
|
3624
|
+
* }
|
|
3625
|
+
* ```
|
|
3626
|
+
*
|
|
3627
|
+
* @generated from field: optional bool defined_only = 2;
|
|
3628
|
+
*/
|
|
3629
|
+
definedOnly?: boolean;
|
|
3630
|
+
|
|
3631
|
+
/**
|
|
3632
|
+
* `in` requires the field value to be equal to one of the
|
|
3633
|
+
* specified enum values. If the field value doesn't match any of the
|
|
3634
|
+
* specified values, an error message is generated.
|
|
3635
|
+
*
|
|
3636
|
+
* ```proto
|
|
3637
|
+
* enum MyEnum {
|
|
3638
|
+
* MY_ENUM_UNSPECIFIED = 0;
|
|
3639
|
+
* MY_ENUM_VALUE1 = 1;
|
|
3640
|
+
* MY_ENUM_VALUE2 = 2;
|
|
3641
|
+
* }
|
|
3642
|
+
*
|
|
3643
|
+
* message MyMessage {
|
|
3644
|
+
* // The field `value` must be equal to one of the specified values.
|
|
3645
|
+
* MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
|
|
3646
|
+
* }
|
|
3647
|
+
* ```
|
|
3648
|
+
*
|
|
3649
|
+
* @generated from field: repeated int32 in = 3;
|
|
3650
|
+
*/
|
|
3651
|
+
in: number[] = [];
|
|
3652
|
+
|
|
3653
|
+
/**
|
|
3654
|
+
* `not_in` requires the field value to be not equal to any of the
|
|
3655
|
+
* specified enum values. If the field value matches one of the specified
|
|
3656
|
+
* values, an error message is generated.
|
|
3657
|
+
*
|
|
3658
|
+
* ```proto
|
|
3659
|
+
* enum MyEnum {
|
|
3660
|
+
* MY_ENUM_UNSPECIFIED = 0;
|
|
3661
|
+
* MY_ENUM_VALUE1 = 1;
|
|
3662
|
+
* MY_ENUM_VALUE2 = 2;
|
|
3663
|
+
* }
|
|
3664
|
+
*
|
|
3665
|
+
* message MyMessage {
|
|
3666
|
+
* // The field `value` must not be equal to any of the specified values.
|
|
3667
|
+
* MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
|
|
3668
|
+
* }
|
|
3669
|
+
* ```
|
|
3670
|
+
*
|
|
3671
|
+
* @generated from field: repeated int32 not_in = 4;
|
|
3672
|
+
*/
|
|
3673
|
+
notIn: number[] = [];
|
|
3674
|
+
|
|
3675
|
+
constructor(data?: PartialMessage<EnumRules>) {
|
|
3676
|
+
super();
|
|
3677
|
+
proto3.util.initPartial(data, this);
|
|
3678
|
+
}
|
|
3679
|
+
|
|
3680
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
3681
|
+
static readonly typeName = "buf.validate.EnumRules";
|
|
3682
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
3683
|
+
{ no: 1, name: "const", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
3684
|
+
{ no: 2, name: "defined_only", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
3685
|
+
{ no: 3, name: "in", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
|
|
3686
|
+
{ no: 4, name: "not_in", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
|
|
3687
|
+
]);
|
|
3688
|
+
|
|
3689
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnumRules {
|
|
3690
|
+
return new EnumRules().fromBinary(bytes, options);
|
|
3691
|
+
}
|
|
3692
|
+
|
|
3693
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnumRules {
|
|
3694
|
+
return new EnumRules().fromJson(jsonValue, options);
|
|
3695
|
+
}
|
|
3696
|
+
|
|
3697
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnumRules {
|
|
3698
|
+
return new EnumRules().fromJsonString(jsonString, options);
|
|
3699
|
+
}
|
|
3700
|
+
|
|
3701
|
+
static equals(a: EnumRules | PlainMessage<EnumRules> | undefined, b: EnumRules | PlainMessage<EnumRules> | undefined): boolean {
|
|
3702
|
+
return proto3.util.equals(EnumRules, a, b);
|
|
3703
|
+
}
|
|
3704
|
+
}
|
|
3705
|
+
|
|
3706
|
+
/**
|
|
3707
|
+
* RepeatedRules describe the constraints applied to `repeated` values.
|
|
3708
|
+
*
|
|
3709
|
+
* @generated from message buf.validate.RepeatedRules
|
|
3710
|
+
*/
|
|
3711
|
+
export class RepeatedRules extends Message<RepeatedRules> {
|
|
3712
|
+
/**
|
|
3713
|
+
* `min_items` requires that this field must contain at least the specified
|
|
3714
|
+
* minimum number of items.
|
|
3715
|
+
*
|
|
3716
|
+
* Note that `min_items = 1` is equivalent to setting a field as `required`.
|
|
3717
|
+
*
|
|
3718
|
+
* ```proto
|
|
3719
|
+
* message MyRepeated {
|
|
3720
|
+
* // value must contain at least 2 items
|
|
3721
|
+
* repeated string value = 1 [(buf.validate.field).repeated.min_items = 2];
|
|
3722
|
+
* }
|
|
3723
|
+
* ```
|
|
3724
|
+
*
|
|
3725
|
+
* @generated from field: optional uint64 min_items = 1;
|
|
3726
|
+
*/
|
|
3727
|
+
minItems?: bigint;
|
|
3728
|
+
|
|
3729
|
+
/**
|
|
3730
|
+
* `max_items` denotes that this field must not exceed a
|
|
3731
|
+
* certain number of items as the upper limit. If the field contains more
|
|
3732
|
+
* items than specified, an error message will be generated, requiring the
|
|
3733
|
+
* field to maintain no more than the specified number of items.
|
|
3734
|
+
*
|
|
3735
|
+
* ```proto
|
|
3736
|
+
* message MyRepeated {
|
|
3737
|
+
* // value must contain no more than 3 item(s)
|
|
3738
|
+
* repeated string value = 1 [(buf.validate.field).repeated.max_items = 3];
|
|
3739
|
+
* }
|
|
3740
|
+
* ```
|
|
3741
|
+
*
|
|
3742
|
+
* @generated from field: optional uint64 max_items = 2;
|
|
3743
|
+
*/
|
|
3744
|
+
maxItems?: bigint;
|
|
3745
|
+
|
|
3746
|
+
/**
|
|
3747
|
+
* `unique` indicates that all elements in this field must
|
|
3748
|
+
* be unique. This constraint is strictly applicable to scalar and enum
|
|
3749
|
+
* types, with message types not being supported.
|
|
3750
|
+
*
|
|
3751
|
+
* ```proto
|
|
3752
|
+
* message MyRepeated {
|
|
3753
|
+
* // repeated value must contain unique items
|
|
3754
|
+
* repeated string value = 1 [(buf.validate.field).repeated.unique = true];
|
|
3755
|
+
* }
|
|
3756
|
+
* ```
|
|
3757
|
+
*
|
|
3758
|
+
* @generated from field: optional bool unique = 3;
|
|
3759
|
+
*/
|
|
3760
|
+
unique?: boolean;
|
|
3761
|
+
|
|
3762
|
+
/**
|
|
3763
|
+
* `items` details the constraints to be applied to each item
|
|
3764
|
+
* in the field. Even for repeated message fields, validation is executed
|
|
3765
|
+
* against each item unless skip is explicitly specified.
|
|
3766
|
+
*
|
|
3767
|
+
* ```proto
|
|
3768
|
+
* message MyRepeated {
|
|
3769
|
+
* // The items in the field `value` must follow the specified constraints.
|
|
3770
|
+
* repeated string value = 1 [(buf.validate.field).repeated.items = {
|
|
3771
|
+
* string: {
|
|
3772
|
+
* min_len: 3
|
|
3773
|
+
* max_len: 10
|
|
3774
|
+
* }
|
|
3775
|
+
* }];
|
|
3776
|
+
* }
|
|
3777
|
+
* ```
|
|
3778
|
+
*
|
|
3779
|
+
* @generated from field: optional buf.validate.FieldConstraints items = 4;
|
|
3780
|
+
*/
|
|
3781
|
+
items?: FieldConstraints;
|
|
3782
|
+
|
|
3783
|
+
constructor(data?: PartialMessage<RepeatedRules>) {
|
|
3784
|
+
super();
|
|
3785
|
+
proto3.util.initPartial(data, this);
|
|
3786
|
+
}
|
|
3787
|
+
|
|
3788
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
3789
|
+
static readonly typeName = "buf.validate.RepeatedRules";
|
|
3790
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
3791
|
+
{ no: 1, name: "min_items", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
3792
|
+
{ no: 2, name: "max_items", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
3793
|
+
{ no: 3, name: "unique", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
3794
|
+
{ no: 4, name: "items", kind: "message", T: FieldConstraints, opt: true },
|
|
3795
|
+
]);
|
|
3796
|
+
|
|
3797
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RepeatedRules {
|
|
3798
|
+
return new RepeatedRules().fromBinary(bytes, options);
|
|
3799
|
+
}
|
|
3800
|
+
|
|
3801
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RepeatedRules {
|
|
3802
|
+
return new RepeatedRules().fromJson(jsonValue, options);
|
|
3803
|
+
}
|
|
3804
|
+
|
|
3805
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RepeatedRules {
|
|
3806
|
+
return new RepeatedRules().fromJsonString(jsonString, options);
|
|
3807
|
+
}
|
|
3808
|
+
|
|
3809
|
+
static equals(a: RepeatedRules | PlainMessage<RepeatedRules> | undefined, b: RepeatedRules | PlainMessage<RepeatedRules> | undefined): boolean {
|
|
3810
|
+
return proto3.util.equals(RepeatedRules, a, b);
|
|
3811
|
+
}
|
|
3812
|
+
}
|
|
3813
|
+
|
|
3814
|
+
/**
|
|
3815
|
+
* MapRules describe the constraints applied to `map` values.
|
|
3816
|
+
*
|
|
3817
|
+
* @generated from message buf.validate.MapRules
|
|
3818
|
+
*/
|
|
3819
|
+
export class MapRules extends Message<MapRules> {
|
|
3820
|
+
/**
|
|
3821
|
+
* Specifies the minimum number of key-value pairs allowed. If the field has
|
|
3822
|
+
* fewer key-value pairs than specified, an error message is generated.
|
|
3823
|
+
*
|
|
3824
|
+
* ```proto
|
|
3825
|
+
* message MyMap {
|
|
3826
|
+
* // The field `value` must have at least 2 key-value pairs.
|
|
3827
|
+
* map<string, string> value = 1 [(buf.validate.field).map.min_pairs = 2];
|
|
3828
|
+
* }
|
|
3829
|
+
* ```
|
|
3830
|
+
*
|
|
3831
|
+
* @generated from field: optional uint64 min_pairs = 1;
|
|
3832
|
+
*/
|
|
3833
|
+
minPairs?: bigint;
|
|
3834
|
+
|
|
3835
|
+
/**
|
|
3836
|
+
* Specifies the maximum number of key-value pairs allowed. If the field has
|
|
3837
|
+
* more key-value pairs than specified, an error message is generated.
|
|
3838
|
+
*
|
|
3839
|
+
* ```proto
|
|
3840
|
+
* message MyMap {
|
|
3841
|
+
* // The field `value` must have at most 3 key-value pairs.
|
|
3842
|
+
* map<string, string> value = 1 [(buf.validate.field).map.max_pairs = 3];
|
|
3843
|
+
* }
|
|
3844
|
+
* ```
|
|
3845
|
+
*
|
|
3846
|
+
* @generated from field: optional uint64 max_pairs = 2;
|
|
3847
|
+
*/
|
|
3848
|
+
maxPairs?: bigint;
|
|
3849
|
+
|
|
3850
|
+
/**
|
|
3851
|
+
* Specifies the constraints to be applied to each key in the field.
|
|
3852
|
+
*
|
|
3853
|
+
* ```proto
|
|
3854
|
+
* message MyMap {
|
|
3855
|
+
* // The keys in the field `value` must follow the specified constraints.
|
|
3856
|
+
* map<string, string> value = 1 [(buf.validate.field).map.keys = {
|
|
3857
|
+
* string: {
|
|
3858
|
+
* min_len: 3
|
|
3859
|
+
* max_len: 10
|
|
3860
|
+
* }
|
|
3861
|
+
* }];
|
|
3862
|
+
* }
|
|
3863
|
+
* ```
|
|
3864
|
+
*
|
|
3865
|
+
* @generated from field: optional buf.validate.FieldConstraints keys = 4;
|
|
3866
|
+
*/
|
|
3867
|
+
keys?: FieldConstraints;
|
|
3868
|
+
|
|
3869
|
+
/**
|
|
3870
|
+
* Specifies the constraints to be applied to the value of each key in the
|
|
3871
|
+
* field. Message values will still have their validations evaluated unless
|
|
3872
|
+
* skip is specified here.
|
|
3873
|
+
*
|
|
3874
|
+
* ```proto
|
|
3875
|
+
* message MyMap {
|
|
3876
|
+
* // The values in the field `value` must follow the specified constraints.
|
|
3877
|
+
* map<string, string> value = 1 [(buf.validate.field).map.values = {
|
|
3878
|
+
* string: {
|
|
3879
|
+
* min_len: 5
|
|
3880
|
+
* max_len: 20
|
|
3881
|
+
* }
|
|
3882
|
+
* }];
|
|
3883
|
+
* }
|
|
3884
|
+
* ```
|
|
3885
|
+
*
|
|
3886
|
+
* @generated from field: optional buf.validate.FieldConstraints values = 5;
|
|
3887
|
+
*/
|
|
3888
|
+
values?: FieldConstraints;
|
|
3889
|
+
|
|
3890
|
+
constructor(data?: PartialMessage<MapRules>) {
|
|
3891
|
+
super();
|
|
3892
|
+
proto3.util.initPartial(data, this);
|
|
3893
|
+
}
|
|
3894
|
+
|
|
3895
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
3896
|
+
static readonly typeName = "buf.validate.MapRules";
|
|
3897
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
3898
|
+
{ no: 1, name: "min_pairs", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
3899
|
+
{ no: 2, name: "max_pairs", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
3900
|
+
{ no: 4, name: "keys", kind: "message", T: FieldConstraints, opt: true },
|
|
3901
|
+
{ no: 5, name: "values", kind: "message", T: FieldConstraints, opt: true },
|
|
3902
|
+
]);
|
|
3903
|
+
|
|
3904
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MapRules {
|
|
3905
|
+
return new MapRules().fromBinary(bytes, options);
|
|
3906
|
+
}
|
|
3907
|
+
|
|
3908
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MapRules {
|
|
3909
|
+
return new MapRules().fromJson(jsonValue, options);
|
|
3910
|
+
}
|
|
3911
|
+
|
|
3912
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MapRules {
|
|
3913
|
+
return new MapRules().fromJsonString(jsonString, options);
|
|
3914
|
+
}
|
|
3915
|
+
|
|
3916
|
+
static equals(a: MapRules | PlainMessage<MapRules> | undefined, b: MapRules | PlainMessage<MapRules> | undefined): boolean {
|
|
3917
|
+
return proto3.util.equals(MapRules, a, b);
|
|
3918
|
+
}
|
|
3919
|
+
}
|
|
3920
|
+
|
|
3921
|
+
/**
|
|
3922
|
+
* AnyRules describe constraints applied exclusively to the `google.protobuf.Any` well-known type.
|
|
3923
|
+
*
|
|
3924
|
+
* @generated from message buf.validate.AnyRules
|
|
3925
|
+
*/
|
|
3926
|
+
export class AnyRules extends Message<AnyRules> {
|
|
3927
|
+
/**
|
|
3928
|
+
* `in` requires the field's `type_url` to be equal to one of the
|
|
3929
|
+
* specified values. If it doesn't match any of the specified values, an error
|
|
3930
|
+
* message is generated.
|
|
3931
|
+
*
|
|
3932
|
+
* ```proto
|
|
3933
|
+
* message MyAny {
|
|
3934
|
+
* // The `value` field must have a `type_url` equal to one of the specified values.
|
|
3935
|
+
* google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]];
|
|
3936
|
+
* }
|
|
3937
|
+
* ```
|
|
3938
|
+
*
|
|
3939
|
+
* @generated from field: repeated string in = 2;
|
|
3940
|
+
*/
|
|
3941
|
+
in: string[] = [];
|
|
3942
|
+
|
|
3943
|
+
/**
|
|
3944
|
+
* requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
|
|
3945
|
+
*
|
|
3946
|
+
* ```proto
|
|
3947
|
+
* message MyAny {
|
|
3948
|
+
* // The field `value` must not have a `type_url` equal to any of the specified values.
|
|
3949
|
+
* google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]];
|
|
3950
|
+
* }
|
|
3951
|
+
* ```
|
|
3952
|
+
*
|
|
3953
|
+
* @generated from field: repeated string not_in = 3;
|
|
3954
|
+
*/
|
|
3955
|
+
notIn: string[] = [];
|
|
3956
|
+
|
|
3957
|
+
constructor(data?: PartialMessage<AnyRules>) {
|
|
3958
|
+
super();
|
|
3959
|
+
proto3.util.initPartial(data, this);
|
|
3960
|
+
}
|
|
3961
|
+
|
|
3962
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
3963
|
+
static readonly typeName = "buf.validate.AnyRules";
|
|
3964
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
3965
|
+
{ no: 2, name: "in", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
3966
|
+
{ no: 3, name: "not_in", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
3967
|
+
]);
|
|
3968
|
+
|
|
3969
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AnyRules {
|
|
3970
|
+
return new AnyRules().fromBinary(bytes, options);
|
|
3971
|
+
}
|
|
3972
|
+
|
|
3973
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AnyRules {
|
|
3974
|
+
return new AnyRules().fromJson(jsonValue, options);
|
|
3975
|
+
}
|
|
3976
|
+
|
|
3977
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AnyRules {
|
|
3978
|
+
return new AnyRules().fromJsonString(jsonString, options);
|
|
3979
|
+
}
|
|
3980
|
+
|
|
3981
|
+
static equals(a: AnyRules | PlainMessage<AnyRules> | undefined, b: AnyRules | PlainMessage<AnyRules> | undefined): boolean {
|
|
3982
|
+
return proto3.util.equals(AnyRules, a, b);
|
|
3983
|
+
}
|
|
3984
|
+
}
|
|
3985
|
+
|
|
3986
|
+
/**
|
|
3987
|
+
* DurationRules describe the constraints applied exclusively to the `google.protobuf.Duration` well-known type.
|
|
3988
|
+
*
|
|
3989
|
+
* @generated from message buf.validate.DurationRules
|
|
3990
|
+
*/
|
|
3991
|
+
export class DurationRules extends Message<DurationRules> {
|
|
3992
|
+
/**
|
|
3993
|
+
* `const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly.
|
|
3994
|
+
* If the field's value deviates from the specified value, an error message
|
|
3995
|
+
* will be generated.
|
|
3996
|
+
*
|
|
3997
|
+
* ```proto
|
|
3998
|
+
* message MyDuration {
|
|
3999
|
+
* // value must equal 5s
|
|
4000
|
+
* google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"];
|
|
4001
|
+
* }
|
|
4002
|
+
* ```
|
|
4003
|
+
*
|
|
4004
|
+
* @generated from field: optional google.protobuf.Duration const = 2;
|
|
4005
|
+
*/
|
|
4006
|
+
const?: Duration;
|
|
4007
|
+
|
|
4008
|
+
/**
|
|
4009
|
+
* @generated from oneof buf.validate.DurationRules.less_than
|
|
4010
|
+
*/
|
|
4011
|
+
lessThan: {
|
|
4012
|
+
/**
|
|
4013
|
+
* `lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type,
|
|
4014
|
+
* exclusive. If the field's value is greater than or equal to the specified
|
|
4015
|
+
* value, an error message will be generated.
|
|
4016
|
+
*
|
|
4017
|
+
* ```proto
|
|
4018
|
+
* message MyDuration {
|
|
4019
|
+
* // value must be less than 5s
|
|
4020
|
+
* google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"];
|
|
4021
|
+
* }
|
|
4022
|
+
* ```
|
|
4023
|
+
*
|
|
4024
|
+
* @generated from field: google.protobuf.Duration lt = 3;
|
|
4025
|
+
*/
|
|
4026
|
+
value: Duration;
|
|
4027
|
+
case: "lt";
|
|
4028
|
+
} | {
|
|
4029
|
+
/**
|
|
4030
|
+
* `lte` indicates that the field must be less than or equal to the specified
|
|
4031
|
+
* value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value,
|
|
4032
|
+
* an error message will be generated.
|
|
4033
|
+
*
|
|
4034
|
+
* ```proto
|
|
4035
|
+
* message MyDuration {
|
|
4036
|
+
* // value must be less than or equal to 10s
|
|
4037
|
+
* google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"];
|
|
4038
|
+
* }
|
|
4039
|
+
* ```
|
|
4040
|
+
*
|
|
4041
|
+
* @generated from field: google.protobuf.Duration lte = 4;
|
|
4042
|
+
*/
|
|
4043
|
+
value: Duration;
|
|
4044
|
+
case: "lte";
|
|
4045
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
4046
|
+
|
|
4047
|
+
/**
|
|
4048
|
+
* @generated from oneof buf.validate.DurationRules.greater_than
|
|
4049
|
+
*/
|
|
4050
|
+
greaterThan: {
|
|
4051
|
+
/**
|
|
4052
|
+
* `gt` requires the duration field value to be greater than the specified
|
|
4053
|
+
* value (exclusive). If the value of `gt` is larger than a specified `lt`
|
|
4054
|
+
* or `lte`, the range is reversed, and the field value must be outside the
|
|
4055
|
+
* specified range. If the field value doesn't meet the required conditions,
|
|
4056
|
+
* an error message is generated.
|
|
4057
|
+
*
|
|
4058
|
+
* ```proto
|
|
4059
|
+
* message MyDuration {
|
|
4060
|
+
* // duration must be greater than 5s [duration.gt]
|
|
4061
|
+
* google.protobuf.Duration value = 1 [(buf.validate.field).duration.gt = { seconds: 5 }];
|
|
4062
|
+
*
|
|
4063
|
+
* // duration must be greater than 5s and less than 10s [duration.gt_lt]
|
|
4064
|
+
* google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }];
|
|
4065
|
+
*
|
|
4066
|
+
* // duration must be greater than 10s or less than 5s [duration.gt_lt_exclusive]
|
|
4067
|
+
* google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }];
|
|
4068
|
+
* }
|
|
4069
|
+
* ```
|
|
4070
|
+
*
|
|
4071
|
+
* @generated from field: google.protobuf.Duration gt = 5;
|
|
4072
|
+
*/
|
|
4073
|
+
value: Duration;
|
|
4074
|
+
case: "gt";
|
|
4075
|
+
} | {
|
|
4076
|
+
/**
|
|
4077
|
+
* `gte` requires the duration field value to be greater than or equal to the
|
|
4078
|
+
* specified value (exclusive). If the value of `gte` is larger than a
|
|
4079
|
+
* specified `lt` or `lte`, the range is reversed, and the field value must
|
|
4080
|
+
* be outside the specified range. If the field value doesn't meet the
|
|
4081
|
+
* required conditions, an error message is generated.
|
|
4082
|
+
*
|
|
4083
|
+
* ```proto
|
|
4084
|
+
* message MyDuration {
|
|
4085
|
+
* // duration must be greater than or equal to 5s [duration.gte]
|
|
4086
|
+
* google.protobuf.Duration value = 1 [(buf.validate.field).duration.gte = { seconds: 5 }];
|
|
4087
|
+
*
|
|
4088
|
+
* // duration must be greater than or equal to 5s and less than 10s [duration.gte_lt]
|
|
4089
|
+
* google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }];
|
|
4090
|
+
*
|
|
4091
|
+
* // duration must be greater than or equal to 10s or less than 5s [duration.gte_lt_exclusive]
|
|
4092
|
+
* google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }];
|
|
4093
|
+
* }
|
|
4094
|
+
* ```
|
|
4095
|
+
*
|
|
4096
|
+
* @generated from field: google.protobuf.Duration gte = 6;
|
|
4097
|
+
*/
|
|
4098
|
+
value: Duration;
|
|
4099
|
+
case: "gte";
|
|
4100
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
4101
|
+
|
|
4102
|
+
/**
|
|
4103
|
+
* `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
|
|
4104
|
+
* If the field's value doesn't correspond to any of the specified values,
|
|
4105
|
+
* an error message will be generated.
|
|
4106
|
+
*
|
|
4107
|
+
* ```proto
|
|
4108
|
+
* message MyDuration {
|
|
4109
|
+
* // value must be in list [1s, 2s, 3s]
|
|
4110
|
+
* google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
|
|
4111
|
+
* }
|
|
4112
|
+
* ```
|
|
4113
|
+
*
|
|
4114
|
+
* @generated from field: repeated google.protobuf.Duration in = 7;
|
|
4115
|
+
*/
|
|
4116
|
+
in: Duration[] = [];
|
|
4117
|
+
|
|
4118
|
+
/**
|
|
4119
|
+
* `not_in` denotes that the field must not be equal to
|
|
4120
|
+
* any of the specified values of the `google.protobuf.Duration` type.
|
|
4121
|
+
* If the field's value matches any of these values, an error message will be
|
|
4122
|
+
* generated.
|
|
4123
|
+
*
|
|
4124
|
+
* ```proto
|
|
4125
|
+
* message MyDuration {
|
|
4126
|
+
* // value must not be in list [1s, 2s, 3s]
|
|
4127
|
+
* google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
|
|
4128
|
+
* }
|
|
4129
|
+
* ```
|
|
4130
|
+
*
|
|
4131
|
+
* @generated from field: repeated google.protobuf.Duration not_in = 8;
|
|
4132
|
+
*/
|
|
4133
|
+
notIn: Duration[] = [];
|
|
4134
|
+
|
|
4135
|
+
constructor(data?: PartialMessage<DurationRules>) {
|
|
4136
|
+
super();
|
|
4137
|
+
proto3.util.initPartial(data, this);
|
|
4138
|
+
}
|
|
4139
|
+
|
|
4140
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
4141
|
+
static readonly typeName = "buf.validate.DurationRules";
|
|
4142
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
4143
|
+
{ no: 2, name: "const", kind: "message", T: Duration, opt: true },
|
|
4144
|
+
{ no: 3, name: "lt", kind: "message", T: Duration, oneof: "less_than" },
|
|
4145
|
+
{ no: 4, name: "lte", kind: "message", T: Duration, oneof: "less_than" },
|
|
4146
|
+
{ no: 5, name: "gt", kind: "message", T: Duration, oneof: "greater_than" },
|
|
4147
|
+
{ no: 6, name: "gte", kind: "message", T: Duration, oneof: "greater_than" },
|
|
4148
|
+
{ no: 7, name: "in", kind: "message", T: Duration, repeated: true },
|
|
4149
|
+
{ no: 8, name: "not_in", kind: "message", T: Duration, repeated: true },
|
|
4150
|
+
]);
|
|
4151
|
+
|
|
4152
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DurationRules {
|
|
4153
|
+
return new DurationRules().fromBinary(bytes, options);
|
|
4154
|
+
}
|
|
4155
|
+
|
|
4156
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DurationRules {
|
|
4157
|
+
return new DurationRules().fromJson(jsonValue, options);
|
|
4158
|
+
}
|
|
4159
|
+
|
|
4160
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DurationRules {
|
|
4161
|
+
return new DurationRules().fromJsonString(jsonString, options);
|
|
4162
|
+
}
|
|
4163
|
+
|
|
4164
|
+
static equals(a: DurationRules | PlainMessage<DurationRules> | undefined, b: DurationRules | PlainMessage<DurationRules> | undefined): boolean {
|
|
4165
|
+
return proto3.util.equals(DurationRules, a, b);
|
|
4166
|
+
}
|
|
4167
|
+
}
|
|
4168
|
+
|
|
4169
|
+
/**
|
|
4170
|
+
* TimestampRules describe the constraints applied exclusively to the `google.protobuf.Timestamp` well-known type.
|
|
4171
|
+
*
|
|
4172
|
+
* @generated from message buf.validate.TimestampRules
|
|
4173
|
+
*/
|
|
4174
|
+
export class TimestampRules extends Message<TimestampRules> {
|
|
4175
|
+
/**
|
|
4176
|
+
* `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated.
|
|
4177
|
+
*
|
|
4178
|
+
* ```proto
|
|
4179
|
+
* message MyTimestamp {
|
|
4180
|
+
* // value must equal 2023-05-03T10:00:00Z
|
|
4181
|
+
* google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];
|
|
4182
|
+
* }
|
|
4183
|
+
* ```
|
|
4184
|
+
*
|
|
4185
|
+
* @generated from field: optional google.protobuf.Timestamp const = 2;
|
|
4186
|
+
*/
|
|
4187
|
+
const?: Timestamp;
|
|
4188
|
+
|
|
4189
|
+
/**
|
|
4190
|
+
* @generated from oneof buf.validate.TimestampRules.less_than
|
|
4191
|
+
*/
|
|
4192
|
+
lessThan: {
|
|
4193
|
+
/**
|
|
4194
|
+
* requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
|
|
4195
|
+
*
|
|
4196
|
+
* ```proto
|
|
4197
|
+
* message MyDuration {
|
|
4198
|
+
* // duration must be less than 'P3D' [duration.lt]
|
|
4199
|
+
* google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];
|
|
4200
|
+
* }
|
|
4201
|
+
* ```
|
|
4202
|
+
*
|
|
4203
|
+
* @generated from field: google.protobuf.Timestamp lt = 3;
|
|
4204
|
+
*/
|
|
4205
|
+
value: Timestamp;
|
|
4206
|
+
case: "lt";
|
|
4207
|
+
} | {
|
|
4208
|
+
/**
|
|
4209
|
+
* requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.
|
|
4210
|
+
*
|
|
4211
|
+
* ```proto
|
|
4212
|
+
* message MyTimestamp {
|
|
4213
|
+
* // timestamp must be less than or equal to '2023-05-14T00:00:00Z' [timestamp.lte]
|
|
4214
|
+
* google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lte = { seconds: 1678867200 }];
|
|
4215
|
+
* }
|
|
4216
|
+
* ```
|
|
4217
|
+
*
|
|
4218
|
+
* @generated from field: google.protobuf.Timestamp lte = 4;
|
|
4219
|
+
*/
|
|
4220
|
+
value: Timestamp;
|
|
4221
|
+
case: "lte";
|
|
4222
|
+
} | {
|
|
4223
|
+
/**
|
|
4224
|
+
* `lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time. `lt_now` can only be used with the `within` rule.
|
|
4225
|
+
*
|
|
4226
|
+
* ```proto
|
|
4227
|
+
* message MyTimestamp {
|
|
4228
|
+
* // value must be less than now
|
|
4229
|
+
* google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true];
|
|
4230
|
+
* }
|
|
4231
|
+
* ```
|
|
4232
|
+
*
|
|
4233
|
+
* @generated from field: bool lt_now = 7;
|
|
4234
|
+
*/
|
|
4235
|
+
value: boolean;
|
|
4236
|
+
case: "ltNow";
|
|
4237
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
4238
|
+
|
|
4239
|
+
/**
|
|
4240
|
+
* @generated from oneof buf.validate.TimestampRules.greater_than
|
|
4241
|
+
*/
|
|
4242
|
+
greaterThan: {
|
|
4243
|
+
/**
|
|
4244
|
+
* `gt` requires the timestamp field value to be greater than the specified
|
|
4245
|
+
* value (exclusive). If the value of `gt` is larger than a specified `lt`
|
|
4246
|
+
* or `lte`, the range is reversed, and the field value must be outside the
|
|
4247
|
+
* specified range. If the field value doesn't meet the required conditions,
|
|
4248
|
+
* an error message is generated.
|
|
4249
|
+
*
|
|
4250
|
+
* ```proto
|
|
4251
|
+
* message MyTimestamp {
|
|
4252
|
+
* // timestamp must be greater than '2023-01-01T00:00:00Z' [timestamp.gt]
|
|
4253
|
+
* google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gt = { seconds: 1672444800 }];
|
|
4254
|
+
*
|
|
4255
|
+
* // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gt_lt]
|
|
4256
|
+
* google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
|
|
4257
|
+
*
|
|
4258
|
+
* // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gt_lt_exclusive]
|
|
4259
|
+
* google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
|
|
4260
|
+
* }
|
|
4261
|
+
* ```
|
|
4262
|
+
*
|
|
4263
|
+
* @generated from field: google.protobuf.Timestamp gt = 5;
|
|
4264
|
+
*/
|
|
4265
|
+
value: Timestamp;
|
|
4266
|
+
case: "gt";
|
|
4267
|
+
} | {
|
|
4268
|
+
/**
|
|
4269
|
+
* `gte` requires the timestamp field value to be greater than or equal to the
|
|
4270
|
+
* specified value (exclusive). If the value of `gte` is larger than a
|
|
4271
|
+
* specified `lt` or `lte`, the range is reversed, and the field value
|
|
4272
|
+
* must be outside the specified range. If the field value doesn't meet
|
|
4273
|
+
* the required conditions, an error message is generated.
|
|
4274
|
+
*
|
|
4275
|
+
* ```proto
|
|
4276
|
+
* message MyTimestamp {
|
|
4277
|
+
* // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' [timestamp.gte]
|
|
4278
|
+
* google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gte = { seconds: 1672444800 }];
|
|
4279
|
+
*
|
|
4280
|
+
* // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gte_lt]
|
|
4281
|
+
* google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
|
|
4282
|
+
*
|
|
4283
|
+
* // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gte_lt_exclusive]
|
|
4284
|
+
* google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
|
|
4285
|
+
* }
|
|
4286
|
+
* ```
|
|
4287
|
+
*
|
|
4288
|
+
* @generated from field: google.protobuf.Timestamp gte = 6;
|
|
4289
|
+
*/
|
|
4290
|
+
value: Timestamp;
|
|
4291
|
+
case: "gte";
|
|
4292
|
+
} | {
|
|
4293
|
+
/**
|
|
4294
|
+
* `gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time. `gt_now` can only be used with the `within` rule.
|
|
4295
|
+
*
|
|
4296
|
+
* ```proto
|
|
4297
|
+
* message MyTimestamp {
|
|
4298
|
+
* // value must be greater than now
|
|
4299
|
+
* google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true];
|
|
4300
|
+
* }
|
|
4301
|
+
* ```
|
|
4302
|
+
*
|
|
4303
|
+
* @generated from field: bool gt_now = 8;
|
|
4304
|
+
*/
|
|
4305
|
+
value: boolean;
|
|
4306
|
+
case: "gtNow";
|
|
4307
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
4308
|
+
|
|
4309
|
+
/**
|
|
4310
|
+
* `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated.
|
|
4311
|
+
*
|
|
4312
|
+
* ```proto
|
|
4313
|
+
* message MyTimestamp {
|
|
4314
|
+
* // value must be within 1 hour of now
|
|
4315
|
+
* google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
|
|
4316
|
+
* }
|
|
4317
|
+
* ```
|
|
4318
|
+
*
|
|
4319
|
+
* @generated from field: optional google.protobuf.Duration within = 9;
|
|
4320
|
+
*/
|
|
4321
|
+
within?: Duration;
|
|
4322
|
+
|
|
4323
|
+
constructor(data?: PartialMessage<TimestampRules>) {
|
|
4324
|
+
super();
|
|
4325
|
+
proto3.util.initPartial(data, this);
|
|
4326
|
+
}
|
|
4327
|
+
|
|
4328
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
4329
|
+
static readonly typeName = "buf.validate.TimestampRules";
|
|
4330
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
4331
|
+
{ no: 2, name: "const", kind: "message", T: Timestamp, opt: true },
|
|
4332
|
+
{ no: 3, name: "lt", kind: "message", T: Timestamp, oneof: "less_than" },
|
|
4333
|
+
{ no: 4, name: "lte", kind: "message", T: Timestamp, oneof: "less_than" },
|
|
4334
|
+
{ no: 7, name: "lt_now", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "less_than" },
|
|
4335
|
+
{ no: 5, name: "gt", kind: "message", T: Timestamp, oneof: "greater_than" },
|
|
4336
|
+
{ no: 6, name: "gte", kind: "message", T: Timestamp, oneof: "greater_than" },
|
|
4337
|
+
{ no: 8, name: "gt_now", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "greater_than" },
|
|
4338
|
+
{ no: 9, name: "within", kind: "message", T: Duration, opt: true },
|
|
4339
|
+
]);
|
|
4340
|
+
|
|
4341
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TimestampRules {
|
|
4342
|
+
return new TimestampRules().fromBinary(bytes, options);
|
|
4343
|
+
}
|
|
4344
|
+
|
|
4345
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TimestampRules {
|
|
4346
|
+
return new TimestampRules().fromJson(jsonValue, options);
|
|
4347
|
+
}
|
|
4348
|
+
|
|
4349
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TimestampRules {
|
|
4350
|
+
return new TimestampRules().fromJsonString(jsonString, options);
|
|
4351
|
+
}
|
|
4352
|
+
|
|
4353
|
+
static equals(a: TimestampRules | PlainMessage<TimestampRules> | undefined, b: TimestampRules | PlainMessage<TimestampRules> | undefined): boolean {
|
|
4354
|
+
return proto3.util.equals(TimestampRules, a, b);
|
|
4355
|
+
}
|
|
4356
|
+
}
|
|
4357
|
+
|