@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,2437 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2023 Buf Technologies, Inc.
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.TimestampRules = exports.DurationRules = exports.AnyRules = exports.MapRules = exports.RepeatedRules = exports.EnumRules = exports.BytesRules = exports.StringRules = exports.BoolRules = exports.SFixed64Rules = exports.SFixed32Rules = exports.Fixed64Rules = exports.Fixed32Rules = exports.SInt64Rules = exports.SInt32Rules = exports.UInt64Rules = exports.UInt32Rules = exports.Int64Rules = exports.Int32Rules = exports.DoubleRules = exports.FloatRules = exports.FieldConstraints = exports.OneofConstraints = exports.MessageConstraints = exports.KnownRegex = void 0;
|
|
17
|
+
const protobuf_1 = require("@bufbuild/protobuf");
|
|
18
|
+
const expression_pb_1 = require("./expression_pb");
|
|
19
|
+
/**
|
|
20
|
+
* WellKnownRegex contain some well-known patterns.
|
|
21
|
+
*
|
|
22
|
+
* @generated from enum buf.validate.KnownRegex
|
|
23
|
+
*/
|
|
24
|
+
var KnownRegex;
|
|
25
|
+
(function (KnownRegex) {
|
|
26
|
+
/**
|
|
27
|
+
* @generated from enum value: KNOWN_REGEX_UNSPECIFIED = 0;
|
|
28
|
+
*/
|
|
29
|
+
KnownRegex[KnownRegex["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
30
|
+
/**
|
|
31
|
+
* HTTP header name as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2).
|
|
32
|
+
*
|
|
33
|
+
* @generated from enum value: KNOWN_REGEX_HTTP_HEADER_NAME = 1;
|
|
34
|
+
*/
|
|
35
|
+
KnownRegex[KnownRegex["HTTP_HEADER_NAME"] = 1] = "HTTP_HEADER_NAME";
|
|
36
|
+
/**
|
|
37
|
+
* HTTP header value as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2.4).
|
|
38
|
+
*
|
|
39
|
+
* @generated from enum value: KNOWN_REGEX_HTTP_HEADER_VALUE = 2;
|
|
40
|
+
*/
|
|
41
|
+
KnownRegex[KnownRegex["HTTP_HEADER_VALUE"] = 2] = "HTTP_HEADER_VALUE";
|
|
42
|
+
})(KnownRegex || (exports.KnownRegex = KnownRegex = {}));
|
|
43
|
+
// Retrieve enum metadata with: proto3.getEnumType(KnownRegex)
|
|
44
|
+
protobuf_1.proto3.util.setEnumType(KnownRegex, "buf.validate.KnownRegex", [
|
|
45
|
+
{ no: 0, name: "KNOWN_REGEX_UNSPECIFIED" },
|
|
46
|
+
{ no: 1, name: "KNOWN_REGEX_HTTP_HEADER_NAME" },
|
|
47
|
+
{ no: 2, name: "KNOWN_REGEX_HTTP_HEADER_VALUE" },
|
|
48
|
+
]);
|
|
49
|
+
/**
|
|
50
|
+
* MessageConstraints represents validation rules that are applied to the entire message.
|
|
51
|
+
* It includes disabling options and a list of Constraint messages representing Common Expression Language (CEL) validation rules.
|
|
52
|
+
*
|
|
53
|
+
* @generated from message buf.validate.MessageConstraints
|
|
54
|
+
*/
|
|
55
|
+
class MessageConstraints extends protobuf_1.Message {
|
|
56
|
+
/**
|
|
57
|
+
* `disabled` is a boolean flag that, when set to true, nullifies any validation rules for this message.
|
|
58
|
+
* This includes any fields within the message that would otherwise support validation.
|
|
59
|
+
*
|
|
60
|
+
* ```proto
|
|
61
|
+
* message MyMessage {
|
|
62
|
+
* // validation will be bypassed for this message
|
|
63
|
+
* option (buf.validate.message).disabled = true;
|
|
64
|
+
* }
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* @generated from field: optional bool disabled = 1;
|
|
68
|
+
*/
|
|
69
|
+
disabled;
|
|
70
|
+
/**
|
|
71
|
+
* `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
|
|
72
|
+
* These constraints are written in Common Expression Language (CEL) syntax. For more information on
|
|
73
|
+
* CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
|
|
74
|
+
*
|
|
75
|
+
*
|
|
76
|
+
* ```proto
|
|
77
|
+
* message MyMessage {
|
|
78
|
+
* // The field `foo` must be greater than 42.
|
|
79
|
+
* option (buf.validate.message).cel = {
|
|
80
|
+
* id: "my_message.value",
|
|
81
|
+
* message: "value must be greater than 42",
|
|
82
|
+
* expression: "this.foo > 42",
|
|
83
|
+
* };
|
|
84
|
+
* optional int32 foo = 1;
|
|
85
|
+
* }
|
|
86
|
+
* ```
|
|
87
|
+
*
|
|
88
|
+
* @generated from field: repeated buf.validate.Constraint cel = 3;
|
|
89
|
+
*/
|
|
90
|
+
cel = [];
|
|
91
|
+
constructor(data) {
|
|
92
|
+
super();
|
|
93
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
94
|
+
}
|
|
95
|
+
static runtime = protobuf_1.proto3;
|
|
96
|
+
static typeName = "buf.validate.MessageConstraints";
|
|
97
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
98
|
+
{ no: 1, name: "disabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
99
|
+
{ no: 3, name: "cel", kind: "message", T: expression_pb_1.Constraint, repeated: true },
|
|
100
|
+
]);
|
|
101
|
+
static fromBinary(bytes, options) {
|
|
102
|
+
return new MessageConstraints().fromBinary(bytes, options);
|
|
103
|
+
}
|
|
104
|
+
static fromJson(jsonValue, options) {
|
|
105
|
+
return new MessageConstraints().fromJson(jsonValue, options);
|
|
106
|
+
}
|
|
107
|
+
static fromJsonString(jsonString, options) {
|
|
108
|
+
return new MessageConstraints().fromJsonString(jsonString, options);
|
|
109
|
+
}
|
|
110
|
+
static equals(a, b) {
|
|
111
|
+
return protobuf_1.proto3.util.equals(MessageConstraints, a, b);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
exports.MessageConstraints = MessageConstraints;
|
|
115
|
+
/**
|
|
116
|
+
* The `OneofConstraints` message type enables you to manage constraints for
|
|
117
|
+
* oneof fields in your protobuf messages.
|
|
118
|
+
*
|
|
119
|
+
* @generated from message buf.validate.OneofConstraints
|
|
120
|
+
*/
|
|
121
|
+
class OneofConstraints extends protobuf_1.Message {
|
|
122
|
+
/**
|
|
123
|
+
* If `required` is true, exactly one field of the oneof must be present. A
|
|
124
|
+
* validation error is returned if no fields in the oneof are present. The
|
|
125
|
+
* field itself may still be a default value; further constraints
|
|
126
|
+
* should be placed on the fields themselves to ensure they are valid values,
|
|
127
|
+
* such as `min_len` or `gt`.
|
|
128
|
+
*
|
|
129
|
+
* ```proto
|
|
130
|
+
* message MyMessage {
|
|
131
|
+
* oneof value {
|
|
132
|
+
* // Either `a` or `b` must be set. If `a` is set, it must also be
|
|
133
|
+
* // non-empty; whereas if `b` is set, it can still be an empty string.
|
|
134
|
+
* option (buf.validate.oneof).required = true;
|
|
135
|
+
* string a = 1 [(buf.validate.field).string.min_len = 1];
|
|
136
|
+
* string b = 2;
|
|
137
|
+
* }
|
|
138
|
+
* }
|
|
139
|
+
* ```
|
|
140
|
+
*
|
|
141
|
+
* @generated from field: optional bool required = 1;
|
|
142
|
+
*/
|
|
143
|
+
required;
|
|
144
|
+
constructor(data) {
|
|
145
|
+
super();
|
|
146
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
147
|
+
}
|
|
148
|
+
static runtime = protobuf_1.proto3;
|
|
149
|
+
static typeName = "buf.validate.OneofConstraints";
|
|
150
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
151
|
+
{ no: 1, name: "required", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
152
|
+
]);
|
|
153
|
+
static fromBinary(bytes, options) {
|
|
154
|
+
return new OneofConstraints().fromBinary(bytes, options);
|
|
155
|
+
}
|
|
156
|
+
static fromJson(jsonValue, options) {
|
|
157
|
+
return new OneofConstraints().fromJson(jsonValue, options);
|
|
158
|
+
}
|
|
159
|
+
static fromJsonString(jsonString, options) {
|
|
160
|
+
return new OneofConstraints().fromJsonString(jsonString, options);
|
|
161
|
+
}
|
|
162
|
+
static equals(a, b) {
|
|
163
|
+
return protobuf_1.proto3.util.equals(OneofConstraints, a, b);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
exports.OneofConstraints = OneofConstraints;
|
|
167
|
+
/**
|
|
168
|
+
* FieldRules encapsulates the rules for each type of field. Depending on the
|
|
169
|
+
* field, the correct set should be used to ensure proper validations.
|
|
170
|
+
*
|
|
171
|
+
* @generated from message buf.validate.FieldConstraints
|
|
172
|
+
*/
|
|
173
|
+
class FieldConstraints extends protobuf_1.Message {
|
|
174
|
+
/**
|
|
175
|
+
* `cel` is a repeated field used to represent a textual expression
|
|
176
|
+
* in the Common Expression Language (CEL) syntax. For more information on
|
|
177
|
+
* CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
|
|
178
|
+
*
|
|
179
|
+
* ```proto
|
|
180
|
+
* message MyMessage {
|
|
181
|
+
* // The field `value` must be greater than 42.
|
|
182
|
+
* optional int32 value = 1 [(buf.validate.field).cel = {
|
|
183
|
+
* id: "my_message.value",
|
|
184
|
+
* message: "value must be greater than 42",
|
|
185
|
+
* expression: "this > 42",
|
|
186
|
+
* }];
|
|
187
|
+
* }
|
|
188
|
+
* ```
|
|
189
|
+
*
|
|
190
|
+
* @generated from field: repeated buf.validate.Constraint cel = 23;
|
|
191
|
+
*/
|
|
192
|
+
cel = [];
|
|
193
|
+
/**
|
|
194
|
+
* `skipped` is an optional boolean attribute that specifies that the
|
|
195
|
+
* validation rules of this field should not be evaluated. If skipped is set to
|
|
196
|
+
* true, any validation rules set for the field will be ignored.
|
|
197
|
+
*
|
|
198
|
+
* ```proto
|
|
199
|
+
* message MyMessage {
|
|
200
|
+
* // The field `value` must not be set.
|
|
201
|
+
* optional MyOtherMessage value = 1 [(buf.validate.field).skipped = true];
|
|
202
|
+
* }
|
|
203
|
+
* ```
|
|
204
|
+
*
|
|
205
|
+
* @generated from field: bool skipped = 24;
|
|
206
|
+
*/
|
|
207
|
+
skipped = false;
|
|
208
|
+
/**
|
|
209
|
+
* If `required` is true, the field must be populated. Field presence can be
|
|
210
|
+
* described as "serialized in the wire format," which follows the following rules:
|
|
211
|
+
*
|
|
212
|
+
* - the following "nullable" fields must be explicitly set to be considered present:
|
|
213
|
+
* - singular message fields (may be their empty value)
|
|
214
|
+
* - member fields of a oneof (may be their default value)
|
|
215
|
+
* - proto3 optional fields (may be their default value)
|
|
216
|
+
* - proto2 scalar fields
|
|
217
|
+
* - proto3 scalar fields must be non-zero to be considered present
|
|
218
|
+
* - repeated and map fields must be non-empty to be considered present
|
|
219
|
+
*
|
|
220
|
+
* ```proto
|
|
221
|
+
* message MyMessage {
|
|
222
|
+
* // The field `value` must be set to a non-null value.
|
|
223
|
+
* optional MyOtherMessage value = 1 [(buf.validate.field).required = true];
|
|
224
|
+
* }
|
|
225
|
+
* ```
|
|
226
|
+
*
|
|
227
|
+
* @generated from field: bool required = 25;
|
|
228
|
+
*/
|
|
229
|
+
required = false;
|
|
230
|
+
/**
|
|
231
|
+
* If `ignore_empty` is true and applied to a non-nullable field (see
|
|
232
|
+
* `required` for more details), validation is skipped on the field if it is
|
|
233
|
+
* the default or empty value. Adding `ignore_empty` to a "nullable" field is
|
|
234
|
+
* a noop as these unset fields already skip validation (with the exception
|
|
235
|
+
* of `required`).
|
|
236
|
+
*
|
|
237
|
+
* ```proto
|
|
238
|
+
* message MyRepeated {
|
|
239
|
+
* // The field `value` min_len rule is only applied if the field isn't empty.
|
|
240
|
+
* repeated string value = 1 [
|
|
241
|
+
* (buf.validate.field).ignore_empty = true,
|
|
242
|
+
* (buf.validate.field).min_len = 5
|
|
243
|
+
* ];
|
|
244
|
+
* }
|
|
245
|
+
* ```
|
|
246
|
+
*
|
|
247
|
+
* @generated from field: bool ignore_empty = 26;
|
|
248
|
+
*/
|
|
249
|
+
ignoreEmpty = false;
|
|
250
|
+
/**
|
|
251
|
+
* @generated from oneof buf.validate.FieldConstraints.type
|
|
252
|
+
*/
|
|
253
|
+
type = { case: undefined };
|
|
254
|
+
constructor(data) {
|
|
255
|
+
super();
|
|
256
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
257
|
+
}
|
|
258
|
+
static runtime = protobuf_1.proto3;
|
|
259
|
+
static typeName = "buf.validate.FieldConstraints";
|
|
260
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
261
|
+
{ no: 23, name: "cel", kind: "message", T: expression_pb_1.Constraint, repeated: true },
|
|
262
|
+
{ no: 24, name: "skipped", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
263
|
+
{ no: 25, name: "required", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
264
|
+
{ no: 26, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
265
|
+
{ no: 1, name: "float", kind: "message", T: FloatRules, oneof: "type" },
|
|
266
|
+
{ no: 2, name: "double", kind: "message", T: DoubleRules, oneof: "type" },
|
|
267
|
+
{ no: 3, name: "int32", kind: "message", T: Int32Rules, oneof: "type" },
|
|
268
|
+
{ no: 4, name: "int64", kind: "message", T: Int64Rules, oneof: "type" },
|
|
269
|
+
{ no: 5, name: "uint32", kind: "message", T: UInt32Rules, oneof: "type" },
|
|
270
|
+
{ no: 6, name: "uint64", kind: "message", T: UInt64Rules, oneof: "type" },
|
|
271
|
+
{ no: 7, name: "sint32", kind: "message", T: SInt32Rules, oneof: "type" },
|
|
272
|
+
{ no: 8, name: "sint64", kind: "message", T: SInt64Rules, oneof: "type" },
|
|
273
|
+
{ no: 9, name: "fixed32", kind: "message", T: Fixed32Rules, oneof: "type" },
|
|
274
|
+
{ no: 10, name: "fixed64", kind: "message", T: Fixed64Rules, oneof: "type" },
|
|
275
|
+
{ no: 11, name: "sfixed32", kind: "message", T: SFixed32Rules, oneof: "type" },
|
|
276
|
+
{ no: 12, name: "sfixed64", kind: "message", T: SFixed64Rules, oneof: "type" },
|
|
277
|
+
{ no: 13, name: "bool", kind: "message", T: BoolRules, oneof: "type" },
|
|
278
|
+
{ no: 14, name: "string", kind: "message", T: StringRules, oneof: "type" },
|
|
279
|
+
{ no: 15, name: "bytes", kind: "message", T: BytesRules, oneof: "type" },
|
|
280
|
+
{ no: 16, name: "enum", kind: "message", T: EnumRules, oneof: "type" },
|
|
281
|
+
{ no: 18, name: "repeated", kind: "message", T: RepeatedRules, oneof: "type" },
|
|
282
|
+
{ no: 19, name: "map", kind: "message", T: MapRules, oneof: "type" },
|
|
283
|
+
{ no: 20, name: "any", kind: "message", T: AnyRules, oneof: "type" },
|
|
284
|
+
{ no: 21, name: "duration", kind: "message", T: DurationRules, oneof: "type" },
|
|
285
|
+
{ no: 22, name: "timestamp", kind: "message", T: TimestampRules, oneof: "type" },
|
|
286
|
+
]);
|
|
287
|
+
static fromBinary(bytes, options) {
|
|
288
|
+
return new FieldConstraints().fromBinary(bytes, options);
|
|
289
|
+
}
|
|
290
|
+
static fromJson(jsonValue, options) {
|
|
291
|
+
return new FieldConstraints().fromJson(jsonValue, options);
|
|
292
|
+
}
|
|
293
|
+
static fromJsonString(jsonString, options) {
|
|
294
|
+
return new FieldConstraints().fromJsonString(jsonString, options);
|
|
295
|
+
}
|
|
296
|
+
static equals(a, b) {
|
|
297
|
+
return protobuf_1.proto3.util.equals(FieldConstraints, a, b);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
exports.FieldConstraints = FieldConstraints;
|
|
301
|
+
/**
|
|
302
|
+
* FloatRules describes the constraints applied to `float` values. These
|
|
303
|
+
* rules may also be applied to the `google.protobuf.FloatValue` Well-Known-Type.
|
|
304
|
+
*
|
|
305
|
+
* @generated from message buf.validate.FloatRules
|
|
306
|
+
*/
|
|
307
|
+
class FloatRules extends protobuf_1.Message {
|
|
308
|
+
/**
|
|
309
|
+
* `const` requires the field value to exactly match the specified value. If
|
|
310
|
+
* the field value doesn't match, an error message is generated.
|
|
311
|
+
*
|
|
312
|
+
* ```proto
|
|
313
|
+
* message MyFloat {
|
|
314
|
+
* // value must equal 42.0
|
|
315
|
+
* float value = 1 [(buf.validate.field).float.const = 42.0];
|
|
316
|
+
* }
|
|
317
|
+
* ```
|
|
318
|
+
*
|
|
319
|
+
* @generated from field: optional float const = 1;
|
|
320
|
+
*/
|
|
321
|
+
const;
|
|
322
|
+
/**
|
|
323
|
+
* @generated from oneof buf.validate.FloatRules.less_than
|
|
324
|
+
*/
|
|
325
|
+
lessThan = { case: undefined };
|
|
326
|
+
/**
|
|
327
|
+
* @generated from oneof buf.validate.FloatRules.greater_than
|
|
328
|
+
*/
|
|
329
|
+
greaterThan = { case: undefined };
|
|
330
|
+
/**
|
|
331
|
+
* `in` requires the field value to be equal to one of the specified values.
|
|
332
|
+
* If the field value isn't one of the specified values, an error message
|
|
333
|
+
* is generated.
|
|
334
|
+
*
|
|
335
|
+
* ```proto
|
|
336
|
+
* message MyFloat {
|
|
337
|
+
* // value must be in list [1.0, 2.0, 3.0]
|
|
338
|
+
* repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] };
|
|
339
|
+
* }
|
|
340
|
+
* ```
|
|
341
|
+
*
|
|
342
|
+
* @generated from field: repeated float in = 6;
|
|
343
|
+
*/
|
|
344
|
+
in = [];
|
|
345
|
+
/**
|
|
346
|
+
* `in` requires the field value to not be equal to any of the specified
|
|
347
|
+
* values. If the field value is one of the specified values, an error
|
|
348
|
+
* message is generated.
|
|
349
|
+
*
|
|
350
|
+
* ```proto
|
|
351
|
+
* message MyFloat {
|
|
352
|
+
* // value must not be in list [1.0, 2.0, 3.0]
|
|
353
|
+
* repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] };
|
|
354
|
+
* }
|
|
355
|
+
* ```
|
|
356
|
+
*
|
|
357
|
+
* @generated from field: repeated float not_in = 7;
|
|
358
|
+
*/
|
|
359
|
+
notIn = [];
|
|
360
|
+
/**
|
|
361
|
+
* `finite` requires the field value to be finite. If the field value is
|
|
362
|
+
* infinite or NaN, an error message is generated.
|
|
363
|
+
*
|
|
364
|
+
* @generated from field: bool finite = 8;
|
|
365
|
+
*/
|
|
366
|
+
finite = false;
|
|
367
|
+
constructor(data) {
|
|
368
|
+
super();
|
|
369
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
370
|
+
}
|
|
371
|
+
static runtime = protobuf_1.proto3;
|
|
372
|
+
static typeName = "buf.validate.FloatRules";
|
|
373
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
374
|
+
{ no: 1, name: "const", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
375
|
+
{ no: 2, name: "lt", kind: "scalar", T: 2 /* ScalarType.FLOAT */, oneof: "less_than" },
|
|
376
|
+
{ no: 3, name: "lte", kind: "scalar", T: 2 /* ScalarType.FLOAT */, oneof: "less_than" },
|
|
377
|
+
{ no: 4, name: "gt", kind: "scalar", T: 2 /* ScalarType.FLOAT */, oneof: "greater_than" },
|
|
378
|
+
{ no: 5, name: "gte", kind: "scalar", T: 2 /* ScalarType.FLOAT */, oneof: "greater_than" },
|
|
379
|
+
{ no: 6, name: "in", kind: "scalar", T: 2 /* ScalarType.FLOAT */, repeated: true },
|
|
380
|
+
{ no: 7, name: "not_in", kind: "scalar", T: 2 /* ScalarType.FLOAT */, repeated: true },
|
|
381
|
+
{ no: 8, name: "finite", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
382
|
+
]);
|
|
383
|
+
static fromBinary(bytes, options) {
|
|
384
|
+
return new FloatRules().fromBinary(bytes, options);
|
|
385
|
+
}
|
|
386
|
+
static fromJson(jsonValue, options) {
|
|
387
|
+
return new FloatRules().fromJson(jsonValue, options);
|
|
388
|
+
}
|
|
389
|
+
static fromJsonString(jsonString, options) {
|
|
390
|
+
return new FloatRules().fromJsonString(jsonString, options);
|
|
391
|
+
}
|
|
392
|
+
static equals(a, b) {
|
|
393
|
+
return protobuf_1.proto3.util.equals(FloatRules, a, b);
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
exports.FloatRules = FloatRules;
|
|
397
|
+
/**
|
|
398
|
+
* DoubleRules describes the constraints applied to `double` values. These
|
|
399
|
+
* rules may also be applied to the `google.protobuf.DoubleValue` Well-Known-Type.
|
|
400
|
+
*
|
|
401
|
+
* @generated from message buf.validate.DoubleRules
|
|
402
|
+
*/
|
|
403
|
+
class DoubleRules extends protobuf_1.Message {
|
|
404
|
+
/**
|
|
405
|
+
* `const` requires the field value to exactly match the specified value. If
|
|
406
|
+
* the field value doesn't match, an error message is generated.
|
|
407
|
+
*
|
|
408
|
+
* ```proto
|
|
409
|
+
* message MyDouble {
|
|
410
|
+
* // value must equal 42.0
|
|
411
|
+
* double value = 1 [(buf.validate.field).double.const = 42.0];
|
|
412
|
+
* }
|
|
413
|
+
* ```
|
|
414
|
+
*
|
|
415
|
+
* @generated from field: optional double const = 1;
|
|
416
|
+
*/
|
|
417
|
+
const;
|
|
418
|
+
/**
|
|
419
|
+
* @generated from oneof buf.validate.DoubleRules.less_than
|
|
420
|
+
*/
|
|
421
|
+
lessThan = { case: undefined };
|
|
422
|
+
/**
|
|
423
|
+
* @generated from oneof buf.validate.DoubleRules.greater_than
|
|
424
|
+
*/
|
|
425
|
+
greaterThan = { case: undefined };
|
|
426
|
+
/**
|
|
427
|
+
* `in` requires the field value to be equal to one of the specified values.
|
|
428
|
+
* If the field value isn't one of the specified values, an error message is
|
|
429
|
+
* generated.
|
|
430
|
+
*
|
|
431
|
+
* ```proto
|
|
432
|
+
* message MyDouble {
|
|
433
|
+
* // value must be in list [1.0, 2.0, 3.0]
|
|
434
|
+
* repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] };
|
|
435
|
+
* }
|
|
436
|
+
* ```
|
|
437
|
+
*
|
|
438
|
+
* @generated from field: repeated double in = 6;
|
|
439
|
+
*/
|
|
440
|
+
in = [];
|
|
441
|
+
/**
|
|
442
|
+
* `not_in` requires the field value to not be equal to any of the specified
|
|
443
|
+
* values. If the field value is one of the specified values, an error
|
|
444
|
+
* message is generated.
|
|
445
|
+
*
|
|
446
|
+
* ```proto
|
|
447
|
+
* message MyDouble {
|
|
448
|
+
* // value must not be in list [1.0, 2.0, 3.0]
|
|
449
|
+
* repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] };
|
|
450
|
+
* }
|
|
451
|
+
* ```
|
|
452
|
+
*
|
|
453
|
+
* @generated from field: repeated double not_in = 7;
|
|
454
|
+
*/
|
|
455
|
+
notIn = [];
|
|
456
|
+
/**
|
|
457
|
+
* `finite` requires the field value to be finite. If the field value is
|
|
458
|
+
* infinite or NaN, an error message is generated.
|
|
459
|
+
*
|
|
460
|
+
* @generated from field: bool finite = 8;
|
|
461
|
+
*/
|
|
462
|
+
finite = false;
|
|
463
|
+
constructor(data) {
|
|
464
|
+
super();
|
|
465
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
466
|
+
}
|
|
467
|
+
static runtime = protobuf_1.proto3;
|
|
468
|
+
static typeName = "buf.validate.DoubleRules";
|
|
469
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
470
|
+
{ no: 1, name: "const", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
471
|
+
{ no: 2, name: "lt", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, oneof: "less_than" },
|
|
472
|
+
{ no: 3, name: "lte", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, oneof: "less_than" },
|
|
473
|
+
{ no: 4, name: "gt", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, oneof: "greater_than" },
|
|
474
|
+
{ no: 5, name: "gte", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, oneof: "greater_than" },
|
|
475
|
+
{ no: 6, name: "in", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, repeated: true },
|
|
476
|
+
{ no: 7, name: "not_in", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, repeated: true },
|
|
477
|
+
{ no: 8, name: "finite", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
478
|
+
]);
|
|
479
|
+
static fromBinary(bytes, options) {
|
|
480
|
+
return new DoubleRules().fromBinary(bytes, options);
|
|
481
|
+
}
|
|
482
|
+
static fromJson(jsonValue, options) {
|
|
483
|
+
return new DoubleRules().fromJson(jsonValue, options);
|
|
484
|
+
}
|
|
485
|
+
static fromJsonString(jsonString, options) {
|
|
486
|
+
return new DoubleRules().fromJsonString(jsonString, options);
|
|
487
|
+
}
|
|
488
|
+
static equals(a, b) {
|
|
489
|
+
return protobuf_1.proto3.util.equals(DoubleRules, a, b);
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
exports.DoubleRules = DoubleRules;
|
|
493
|
+
/**
|
|
494
|
+
* Int32Rules describes the constraints applied to `int32` values. These
|
|
495
|
+
* rules may also be applied to the `google.protobuf.Int32Value` Well-Known-Type.
|
|
496
|
+
*
|
|
497
|
+
* @generated from message buf.validate.Int32Rules
|
|
498
|
+
*/
|
|
499
|
+
class Int32Rules extends protobuf_1.Message {
|
|
500
|
+
/**
|
|
501
|
+
* `const` requires the field value to exactly match the specified value. If
|
|
502
|
+
* the field value doesn't match, an error message is generated.
|
|
503
|
+
*
|
|
504
|
+
* ```proto
|
|
505
|
+
* message MyInt32 {
|
|
506
|
+
* // value must equal 42
|
|
507
|
+
* int32 value = 1 [(buf.validate.field).int32.const = 42];
|
|
508
|
+
* }
|
|
509
|
+
* ```
|
|
510
|
+
*
|
|
511
|
+
* @generated from field: optional int32 const = 1;
|
|
512
|
+
*/
|
|
513
|
+
const;
|
|
514
|
+
/**
|
|
515
|
+
* @generated from oneof buf.validate.Int32Rules.less_than
|
|
516
|
+
*/
|
|
517
|
+
lessThan = { case: undefined };
|
|
518
|
+
/**
|
|
519
|
+
* @generated from oneof buf.validate.Int32Rules.greater_than
|
|
520
|
+
*/
|
|
521
|
+
greaterThan = { case: undefined };
|
|
522
|
+
/**
|
|
523
|
+
* `in` requires the field value to be equal to one of the specified values.
|
|
524
|
+
* If the field value isn't one of the specified values, an error message is
|
|
525
|
+
* generated.
|
|
526
|
+
*
|
|
527
|
+
* ```proto
|
|
528
|
+
* message MyInt32 {
|
|
529
|
+
* // value must be in list [1, 2, 3]
|
|
530
|
+
* repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] };
|
|
531
|
+
* }
|
|
532
|
+
* ```
|
|
533
|
+
*
|
|
534
|
+
* @generated from field: repeated int32 in = 6;
|
|
535
|
+
*/
|
|
536
|
+
in = [];
|
|
537
|
+
/**
|
|
538
|
+
* `not_in` requires the field value to not be equal to any of the specified
|
|
539
|
+
* values. If the field value is one of the specified values, an error message
|
|
540
|
+
* is generated.
|
|
541
|
+
*
|
|
542
|
+
* ```proto
|
|
543
|
+
* message MyInt32 {
|
|
544
|
+
* // value must not be in list [1, 2, 3]
|
|
545
|
+
* repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] };
|
|
546
|
+
* }
|
|
547
|
+
* ```
|
|
548
|
+
*
|
|
549
|
+
* @generated from field: repeated int32 not_in = 7;
|
|
550
|
+
*/
|
|
551
|
+
notIn = [];
|
|
552
|
+
constructor(data) {
|
|
553
|
+
super();
|
|
554
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
555
|
+
}
|
|
556
|
+
static runtime = protobuf_1.proto3;
|
|
557
|
+
static typeName = "buf.validate.Int32Rules";
|
|
558
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
559
|
+
{ no: 1, name: "const", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
560
|
+
{ no: 2, name: "lt", kind: "scalar", T: 5 /* ScalarType.INT32 */, oneof: "less_than" },
|
|
561
|
+
{ no: 3, name: "lte", kind: "scalar", T: 5 /* ScalarType.INT32 */, oneof: "less_than" },
|
|
562
|
+
{ no: 4, name: "gt", kind: "scalar", T: 5 /* ScalarType.INT32 */, oneof: "greater_than" },
|
|
563
|
+
{ no: 5, name: "gte", kind: "scalar", T: 5 /* ScalarType.INT32 */, oneof: "greater_than" },
|
|
564
|
+
{ no: 6, name: "in", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
|
|
565
|
+
{ no: 7, name: "not_in", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
|
|
566
|
+
]);
|
|
567
|
+
static fromBinary(bytes, options) {
|
|
568
|
+
return new Int32Rules().fromBinary(bytes, options);
|
|
569
|
+
}
|
|
570
|
+
static fromJson(jsonValue, options) {
|
|
571
|
+
return new Int32Rules().fromJson(jsonValue, options);
|
|
572
|
+
}
|
|
573
|
+
static fromJsonString(jsonString, options) {
|
|
574
|
+
return new Int32Rules().fromJsonString(jsonString, options);
|
|
575
|
+
}
|
|
576
|
+
static equals(a, b) {
|
|
577
|
+
return protobuf_1.proto3.util.equals(Int32Rules, a, b);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
exports.Int32Rules = Int32Rules;
|
|
581
|
+
/**
|
|
582
|
+
* Int64Rules describes the constraints applied to `int64` values. These
|
|
583
|
+
* rules may also be applied to the `google.protobuf.Int64Value` Well-Known-Type.
|
|
584
|
+
*
|
|
585
|
+
* @generated from message buf.validate.Int64Rules
|
|
586
|
+
*/
|
|
587
|
+
class Int64Rules extends protobuf_1.Message {
|
|
588
|
+
/**
|
|
589
|
+
* `const` requires the field value to exactly match the specified value. If
|
|
590
|
+
* the field value doesn't match, an error message is generated.
|
|
591
|
+
*
|
|
592
|
+
* ```proto
|
|
593
|
+
* message MyInt64 {
|
|
594
|
+
* // value must equal 42
|
|
595
|
+
* int64 value = 1 [(buf.validate.field).int64.const = 42];
|
|
596
|
+
* }
|
|
597
|
+
* ```
|
|
598
|
+
*
|
|
599
|
+
* @generated from field: optional int64 const = 1;
|
|
600
|
+
*/
|
|
601
|
+
const;
|
|
602
|
+
/**
|
|
603
|
+
* @generated from oneof buf.validate.Int64Rules.less_than
|
|
604
|
+
*/
|
|
605
|
+
lessThan = { case: undefined };
|
|
606
|
+
/**
|
|
607
|
+
* @generated from oneof buf.validate.Int64Rules.greater_than
|
|
608
|
+
*/
|
|
609
|
+
greaterThan = { case: undefined };
|
|
610
|
+
/**
|
|
611
|
+
* `in` requires the field value to be equal to one of the specified values.
|
|
612
|
+
* If the field value isn't one of the specified values, an error message is
|
|
613
|
+
* generated.
|
|
614
|
+
*
|
|
615
|
+
* ```proto
|
|
616
|
+
* message MyInt64 {
|
|
617
|
+
* // value must be in list [1, 2, 3]
|
|
618
|
+
* repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] };
|
|
619
|
+
* }
|
|
620
|
+
* ```
|
|
621
|
+
*
|
|
622
|
+
* @generated from field: repeated int64 in = 6;
|
|
623
|
+
*/
|
|
624
|
+
in = [];
|
|
625
|
+
/**
|
|
626
|
+
* `not_in` requires the field value to not be equal to any of the specified
|
|
627
|
+
* values. If the field value is one of the specified values, an error
|
|
628
|
+
* message is generated.
|
|
629
|
+
*
|
|
630
|
+
* ```proto
|
|
631
|
+
* message MyInt64 {
|
|
632
|
+
* // value must not be in list [1, 2, 3]
|
|
633
|
+
* repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] };
|
|
634
|
+
* }
|
|
635
|
+
* ```
|
|
636
|
+
*
|
|
637
|
+
* @generated from field: repeated int64 not_in = 7;
|
|
638
|
+
*/
|
|
639
|
+
notIn = [];
|
|
640
|
+
constructor(data) {
|
|
641
|
+
super();
|
|
642
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
643
|
+
}
|
|
644
|
+
static runtime = protobuf_1.proto3;
|
|
645
|
+
static typeName = "buf.validate.Int64Rules";
|
|
646
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
647
|
+
{ no: 1, name: "const", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
|
|
648
|
+
{ no: 2, name: "lt", kind: "scalar", T: 3 /* ScalarType.INT64 */, oneof: "less_than" },
|
|
649
|
+
{ no: 3, name: "lte", kind: "scalar", T: 3 /* ScalarType.INT64 */, oneof: "less_than" },
|
|
650
|
+
{ no: 4, name: "gt", kind: "scalar", T: 3 /* ScalarType.INT64 */, oneof: "greater_than" },
|
|
651
|
+
{ no: 5, name: "gte", kind: "scalar", T: 3 /* ScalarType.INT64 */, oneof: "greater_than" },
|
|
652
|
+
{ no: 6, name: "in", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true },
|
|
653
|
+
{ no: 7, name: "not_in", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true },
|
|
654
|
+
]);
|
|
655
|
+
static fromBinary(bytes, options) {
|
|
656
|
+
return new Int64Rules().fromBinary(bytes, options);
|
|
657
|
+
}
|
|
658
|
+
static fromJson(jsonValue, options) {
|
|
659
|
+
return new Int64Rules().fromJson(jsonValue, options);
|
|
660
|
+
}
|
|
661
|
+
static fromJsonString(jsonString, options) {
|
|
662
|
+
return new Int64Rules().fromJsonString(jsonString, options);
|
|
663
|
+
}
|
|
664
|
+
static equals(a, b) {
|
|
665
|
+
return protobuf_1.proto3.util.equals(Int64Rules, a, b);
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
exports.Int64Rules = Int64Rules;
|
|
669
|
+
/**
|
|
670
|
+
* UInt32Rules describes the constraints applied to `uint32` values. These
|
|
671
|
+
* rules may also be applied to the `google.protobuf.UInt32Value` Well-Known-Type.
|
|
672
|
+
*
|
|
673
|
+
* @generated from message buf.validate.UInt32Rules
|
|
674
|
+
*/
|
|
675
|
+
class UInt32Rules extends protobuf_1.Message {
|
|
676
|
+
/**
|
|
677
|
+
* `const` requires the field value to exactly match the specified value. If
|
|
678
|
+
* the field value doesn't match, an error message is generated.
|
|
679
|
+
*
|
|
680
|
+
* ```proto
|
|
681
|
+
* message MyUInt32 {
|
|
682
|
+
* // value must equal 42
|
|
683
|
+
* uint32 value = 1 [(buf.validate.field).uint32.const = 42];
|
|
684
|
+
* }
|
|
685
|
+
* ```
|
|
686
|
+
*
|
|
687
|
+
* @generated from field: optional uint32 const = 1;
|
|
688
|
+
*/
|
|
689
|
+
const;
|
|
690
|
+
/**
|
|
691
|
+
* @generated from oneof buf.validate.UInt32Rules.less_than
|
|
692
|
+
*/
|
|
693
|
+
lessThan = { case: undefined };
|
|
694
|
+
/**
|
|
695
|
+
* @generated from oneof buf.validate.UInt32Rules.greater_than
|
|
696
|
+
*/
|
|
697
|
+
greaterThan = { case: undefined };
|
|
698
|
+
/**
|
|
699
|
+
* `in` requires the field value to be equal to one of the specified values.
|
|
700
|
+
* If the field value isn't one of the specified values, an error message is
|
|
701
|
+
* generated.
|
|
702
|
+
*
|
|
703
|
+
* ```proto
|
|
704
|
+
* message MyUInt32 {
|
|
705
|
+
* // value must be in list [1, 2, 3]
|
|
706
|
+
* repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] };
|
|
707
|
+
* }
|
|
708
|
+
* ```
|
|
709
|
+
*
|
|
710
|
+
* @generated from field: repeated uint32 in = 6;
|
|
711
|
+
*/
|
|
712
|
+
in = [];
|
|
713
|
+
/**
|
|
714
|
+
* `not_in` requires the field value to not be equal to any of the specified
|
|
715
|
+
* values. If the field value is one of the specified values, an error
|
|
716
|
+
* message is generated.
|
|
717
|
+
*
|
|
718
|
+
* ```proto
|
|
719
|
+
* message MyUInt32 {
|
|
720
|
+
* // value must not be in list [1, 2, 3]
|
|
721
|
+
* repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] };
|
|
722
|
+
* }
|
|
723
|
+
* ```
|
|
724
|
+
*
|
|
725
|
+
* @generated from field: repeated uint32 not_in = 7;
|
|
726
|
+
*/
|
|
727
|
+
notIn = [];
|
|
728
|
+
constructor(data) {
|
|
729
|
+
super();
|
|
730
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
731
|
+
}
|
|
732
|
+
static runtime = protobuf_1.proto3;
|
|
733
|
+
static typeName = "buf.validate.UInt32Rules";
|
|
734
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
735
|
+
{ no: 1, name: "const", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
736
|
+
{ no: 2, name: "lt", kind: "scalar", T: 13 /* ScalarType.UINT32 */, oneof: "less_than" },
|
|
737
|
+
{ no: 3, name: "lte", kind: "scalar", T: 13 /* ScalarType.UINT32 */, oneof: "less_than" },
|
|
738
|
+
{ no: 4, name: "gt", kind: "scalar", T: 13 /* ScalarType.UINT32 */, oneof: "greater_than" },
|
|
739
|
+
{ no: 5, name: "gte", kind: "scalar", T: 13 /* ScalarType.UINT32 */, oneof: "greater_than" },
|
|
740
|
+
{ no: 6, name: "in", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
741
|
+
{ no: 7, name: "not_in", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
742
|
+
]);
|
|
743
|
+
static fromBinary(bytes, options) {
|
|
744
|
+
return new UInt32Rules().fromBinary(bytes, options);
|
|
745
|
+
}
|
|
746
|
+
static fromJson(jsonValue, options) {
|
|
747
|
+
return new UInt32Rules().fromJson(jsonValue, options);
|
|
748
|
+
}
|
|
749
|
+
static fromJsonString(jsonString, options) {
|
|
750
|
+
return new UInt32Rules().fromJsonString(jsonString, options);
|
|
751
|
+
}
|
|
752
|
+
static equals(a, b) {
|
|
753
|
+
return protobuf_1.proto3.util.equals(UInt32Rules, a, b);
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
exports.UInt32Rules = UInt32Rules;
|
|
757
|
+
/**
|
|
758
|
+
* UInt64Rules describes the constraints applied to `uint64` values. These
|
|
759
|
+
* rules may also be applied to the `google.protobuf.UInt64Value` Well-Known-Type.
|
|
760
|
+
*
|
|
761
|
+
* @generated from message buf.validate.UInt64Rules
|
|
762
|
+
*/
|
|
763
|
+
class UInt64Rules extends protobuf_1.Message {
|
|
764
|
+
/**
|
|
765
|
+
* `const` requires the field value to exactly match the specified value. If
|
|
766
|
+
* the field value doesn't match, an error message is generated.
|
|
767
|
+
*
|
|
768
|
+
* ```proto
|
|
769
|
+
* message MyUInt64 {
|
|
770
|
+
* // value must equal 42
|
|
771
|
+
* uint64 value = 1 [(buf.validate.field).uint64.const = 42];
|
|
772
|
+
* }
|
|
773
|
+
* ```
|
|
774
|
+
*
|
|
775
|
+
* @generated from field: optional uint64 const = 1;
|
|
776
|
+
*/
|
|
777
|
+
const;
|
|
778
|
+
/**
|
|
779
|
+
* @generated from oneof buf.validate.UInt64Rules.less_than
|
|
780
|
+
*/
|
|
781
|
+
lessThan = { case: undefined };
|
|
782
|
+
/**
|
|
783
|
+
* @generated from oneof buf.validate.UInt64Rules.greater_than
|
|
784
|
+
*/
|
|
785
|
+
greaterThan = { case: undefined };
|
|
786
|
+
/**
|
|
787
|
+
* `in` requires the field value to be equal to one of the specified values.
|
|
788
|
+
* If the field value isn't one of the specified values, an error message is
|
|
789
|
+
* generated.
|
|
790
|
+
*
|
|
791
|
+
* ```proto
|
|
792
|
+
* message MyUInt64 {
|
|
793
|
+
* // value must be in list [1, 2, 3]
|
|
794
|
+
* repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] };
|
|
795
|
+
* }
|
|
796
|
+
* ```
|
|
797
|
+
*
|
|
798
|
+
* @generated from field: repeated uint64 in = 6;
|
|
799
|
+
*/
|
|
800
|
+
in = [];
|
|
801
|
+
/**
|
|
802
|
+
* `not_in` requires the field value to not be equal to any of the specified
|
|
803
|
+
* values. If the field value is one of the specified values, an error
|
|
804
|
+
* message is generated.
|
|
805
|
+
*
|
|
806
|
+
* ```proto
|
|
807
|
+
* message MyUInt64 {
|
|
808
|
+
* // value must not be in list [1, 2, 3]
|
|
809
|
+
* repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] };
|
|
810
|
+
* }
|
|
811
|
+
* ```
|
|
812
|
+
*
|
|
813
|
+
* @generated from field: repeated uint64 not_in = 7;
|
|
814
|
+
*/
|
|
815
|
+
notIn = [];
|
|
816
|
+
constructor(data) {
|
|
817
|
+
super();
|
|
818
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
819
|
+
}
|
|
820
|
+
static runtime = protobuf_1.proto3;
|
|
821
|
+
static typeName = "buf.validate.UInt64Rules";
|
|
822
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
823
|
+
{ no: 1, name: "const", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
824
|
+
{ no: 2, name: "lt", kind: "scalar", T: 4 /* ScalarType.UINT64 */, oneof: "less_than" },
|
|
825
|
+
{ no: 3, name: "lte", kind: "scalar", T: 4 /* ScalarType.UINT64 */, oneof: "less_than" },
|
|
826
|
+
{ no: 4, name: "gt", kind: "scalar", T: 4 /* ScalarType.UINT64 */, oneof: "greater_than" },
|
|
827
|
+
{ no: 5, name: "gte", kind: "scalar", T: 4 /* ScalarType.UINT64 */, oneof: "greater_than" },
|
|
828
|
+
{ no: 6, name: "in", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true },
|
|
829
|
+
{ no: 7, name: "not_in", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true },
|
|
830
|
+
]);
|
|
831
|
+
static fromBinary(bytes, options) {
|
|
832
|
+
return new UInt64Rules().fromBinary(bytes, options);
|
|
833
|
+
}
|
|
834
|
+
static fromJson(jsonValue, options) {
|
|
835
|
+
return new UInt64Rules().fromJson(jsonValue, options);
|
|
836
|
+
}
|
|
837
|
+
static fromJsonString(jsonString, options) {
|
|
838
|
+
return new UInt64Rules().fromJsonString(jsonString, options);
|
|
839
|
+
}
|
|
840
|
+
static equals(a, b) {
|
|
841
|
+
return protobuf_1.proto3.util.equals(UInt64Rules, a, b);
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
exports.UInt64Rules = UInt64Rules;
|
|
845
|
+
/**
|
|
846
|
+
* SInt32Rules describes the constraints applied to `sint32` values.
|
|
847
|
+
*
|
|
848
|
+
* @generated from message buf.validate.SInt32Rules
|
|
849
|
+
*/
|
|
850
|
+
class SInt32Rules extends protobuf_1.Message {
|
|
851
|
+
/**
|
|
852
|
+
* `const` requires the field value to exactly match the specified value. If
|
|
853
|
+
* the field value doesn't match, an error message is generated.
|
|
854
|
+
*
|
|
855
|
+
* ```proto
|
|
856
|
+
* message MySInt32 {
|
|
857
|
+
* // value must equal 42
|
|
858
|
+
* sint32 value = 1 [(buf.validate.field).sint32.const = 42];
|
|
859
|
+
* }
|
|
860
|
+
* ```
|
|
861
|
+
*
|
|
862
|
+
* @generated from field: optional sint32 const = 1;
|
|
863
|
+
*/
|
|
864
|
+
const;
|
|
865
|
+
/**
|
|
866
|
+
* @generated from oneof buf.validate.SInt32Rules.less_than
|
|
867
|
+
*/
|
|
868
|
+
lessThan = { case: undefined };
|
|
869
|
+
/**
|
|
870
|
+
* @generated from oneof buf.validate.SInt32Rules.greater_than
|
|
871
|
+
*/
|
|
872
|
+
greaterThan = { case: undefined };
|
|
873
|
+
/**
|
|
874
|
+
* `in` requires the field value to be equal to one of the specified values.
|
|
875
|
+
* If the field value isn't one of the specified values, an error message is
|
|
876
|
+
* generated.
|
|
877
|
+
*
|
|
878
|
+
* ```proto
|
|
879
|
+
* message MySInt32 {
|
|
880
|
+
* // value must be in list [1, 2, 3]
|
|
881
|
+
* repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] };
|
|
882
|
+
* }
|
|
883
|
+
* ```
|
|
884
|
+
*
|
|
885
|
+
* @generated from field: repeated sint32 in = 6;
|
|
886
|
+
*/
|
|
887
|
+
in = [];
|
|
888
|
+
/**
|
|
889
|
+
* `not_in` requires the field value to not be equal to any of the specified
|
|
890
|
+
* values. If the field value is one of the specified values, an error
|
|
891
|
+
* message is generated.
|
|
892
|
+
*
|
|
893
|
+
* ```proto
|
|
894
|
+
* message MySInt32 {
|
|
895
|
+
* // value must not be in list [1, 2, 3]
|
|
896
|
+
* repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] };
|
|
897
|
+
* }
|
|
898
|
+
* ```
|
|
899
|
+
*
|
|
900
|
+
* @generated from field: repeated sint32 not_in = 7;
|
|
901
|
+
*/
|
|
902
|
+
notIn = [];
|
|
903
|
+
constructor(data) {
|
|
904
|
+
super();
|
|
905
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
906
|
+
}
|
|
907
|
+
static runtime = protobuf_1.proto3;
|
|
908
|
+
static typeName = "buf.validate.SInt32Rules";
|
|
909
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
910
|
+
{ no: 1, name: "const", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
911
|
+
{ no: 2, name: "lt", kind: "scalar", T: 17 /* ScalarType.SINT32 */, oneof: "less_than" },
|
|
912
|
+
{ no: 3, name: "lte", kind: "scalar", T: 17 /* ScalarType.SINT32 */, oneof: "less_than" },
|
|
913
|
+
{ no: 4, name: "gt", kind: "scalar", T: 17 /* ScalarType.SINT32 */, oneof: "greater_than" },
|
|
914
|
+
{ no: 5, name: "gte", kind: "scalar", T: 17 /* ScalarType.SINT32 */, oneof: "greater_than" },
|
|
915
|
+
{ no: 6, name: "in", kind: "scalar", T: 17 /* ScalarType.SINT32 */, repeated: true },
|
|
916
|
+
{ no: 7, name: "not_in", kind: "scalar", T: 17 /* ScalarType.SINT32 */, repeated: true },
|
|
917
|
+
]);
|
|
918
|
+
static fromBinary(bytes, options) {
|
|
919
|
+
return new SInt32Rules().fromBinary(bytes, options);
|
|
920
|
+
}
|
|
921
|
+
static fromJson(jsonValue, options) {
|
|
922
|
+
return new SInt32Rules().fromJson(jsonValue, options);
|
|
923
|
+
}
|
|
924
|
+
static fromJsonString(jsonString, options) {
|
|
925
|
+
return new SInt32Rules().fromJsonString(jsonString, options);
|
|
926
|
+
}
|
|
927
|
+
static equals(a, b) {
|
|
928
|
+
return protobuf_1.proto3.util.equals(SInt32Rules, a, b);
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
exports.SInt32Rules = SInt32Rules;
|
|
932
|
+
/**
|
|
933
|
+
* SInt64Rules describes the constraints applied to `sint64` values.
|
|
934
|
+
*
|
|
935
|
+
* @generated from message buf.validate.SInt64Rules
|
|
936
|
+
*/
|
|
937
|
+
class SInt64Rules extends protobuf_1.Message {
|
|
938
|
+
/**
|
|
939
|
+
* `const` requires the field value to exactly match the specified value. If
|
|
940
|
+
* the field value doesn't match, an error message is generated.
|
|
941
|
+
*
|
|
942
|
+
* ```proto
|
|
943
|
+
* message MySInt64 {
|
|
944
|
+
* // value must equal 42
|
|
945
|
+
* sint64 value = 1 [(buf.validate.field).sint64.const = 42];
|
|
946
|
+
* }
|
|
947
|
+
* ```
|
|
948
|
+
*
|
|
949
|
+
* @generated from field: optional sint64 const = 1;
|
|
950
|
+
*/
|
|
951
|
+
const;
|
|
952
|
+
/**
|
|
953
|
+
* @generated from oneof buf.validate.SInt64Rules.less_than
|
|
954
|
+
*/
|
|
955
|
+
lessThan = { case: undefined };
|
|
956
|
+
/**
|
|
957
|
+
* @generated from oneof buf.validate.SInt64Rules.greater_than
|
|
958
|
+
*/
|
|
959
|
+
greaterThan = { case: undefined };
|
|
960
|
+
/**
|
|
961
|
+
* `in` requires the field value to be equal to one of the specified values.
|
|
962
|
+
* If the field value isn't one of the specified values, an error message
|
|
963
|
+
* is generated.
|
|
964
|
+
*
|
|
965
|
+
* ```proto
|
|
966
|
+
* message MySInt64 {
|
|
967
|
+
* // value must be in list [1, 2, 3]
|
|
968
|
+
* repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] };
|
|
969
|
+
* }
|
|
970
|
+
* ```
|
|
971
|
+
*
|
|
972
|
+
* @generated from field: repeated sint64 in = 6;
|
|
973
|
+
*/
|
|
974
|
+
in = [];
|
|
975
|
+
/**
|
|
976
|
+
* `not_in` requires the field value to not be equal to any of the specified
|
|
977
|
+
* values. If the field value is one of the specified values, an error
|
|
978
|
+
* message is generated.
|
|
979
|
+
*
|
|
980
|
+
* ```proto
|
|
981
|
+
* message MySInt64 {
|
|
982
|
+
* // value must not be in list [1, 2, 3]
|
|
983
|
+
* repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] };
|
|
984
|
+
* }
|
|
985
|
+
* ```
|
|
986
|
+
*
|
|
987
|
+
* @generated from field: repeated sint64 not_in = 7;
|
|
988
|
+
*/
|
|
989
|
+
notIn = [];
|
|
990
|
+
constructor(data) {
|
|
991
|
+
super();
|
|
992
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
993
|
+
}
|
|
994
|
+
static runtime = protobuf_1.proto3;
|
|
995
|
+
static typeName = "buf.validate.SInt64Rules";
|
|
996
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
997
|
+
{ no: 1, name: "const", kind: "scalar", T: 18 /* ScalarType.SINT64 */, opt: true },
|
|
998
|
+
{ no: 2, name: "lt", kind: "scalar", T: 18 /* ScalarType.SINT64 */, oneof: "less_than" },
|
|
999
|
+
{ no: 3, name: "lte", kind: "scalar", T: 18 /* ScalarType.SINT64 */, oneof: "less_than" },
|
|
1000
|
+
{ no: 4, name: "gt", kind: "scalar", T: 18 /* ScalarType.SINT64 */, oneof: "greater_than" },
|
|
1001
|
+
{ no: 5, name: "gte", kind: "scalar", T: 18 /* ScalarType.SINT64 */, oneof: "greater_than" },
|
|
1002
|
+
{ no: 6, name: "in", kind: "scalar", T: 18 /* ScalarType.SINT64 */, repeated: true },
|
|
1003
|
+
{ no: 7, name: "not_in", kind: "scalar", T: 18 /* ScalarType.SINT64 */, repeated: true },
|
|
1004
|
+
]);
|
|
1005
|
+
static fromBinary(bytes, options) {
|
|
1006
|
+
return new SInt64Rules().fromBinary(bytes, options);
|
|
1007
|
+
}
|
|
1008
|
+
static fromJson(jsonValue, options) {
|
|
1009
|
+
return new SInt64Rules().fromJson(jsonValue, options);
|
|
1010
|
+
}
|
|
1011
|
+
static fromJsonString(jsonString, options) {
|
|
1012
|
+
return new SInt64Rules().fromJsonString(jsonString, options);
|
|
1013
|
+
}
|
|
1014
|
+
static equals(a, b) {
|
|
1015
|
+
return protobuf_1.proto3.util.equals(SInt64Rules, a, b);
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
exports.SInt64Rules = SInt64Rules;
|
|
1019
|
+
/**
|
|
1020
|
+
* Fixed32Rules describes the constraints applied to `fixed32` values.
|
|
1021
|
+
*
|
|
1022
|
+
* @generated from message buf.validate.Fixed32Rules
|
|
1023
|
+
*/
|
|
1024
|
+
class Fixed32Rules extends protobuf_1.Message {
|
|
1025
|
+
/**
|
|
1026
|
+
* `const` requires the field value to exactly match the specified value.
|
|
1027
|
+
* If the field value doesn't match, an error message is generated.
|
|
1028
|
+
*
|
|
1029
|
+
* ```proto
|
|
1030
|
+
* message MyFixed32 {
|
|
1031
|
+
* // value must equal 42
|
|
1032
|
+
* fixed32 value = 1 [(buf.validate.field).fixed32.const = 42];
|
|
1033
|
+
* }
|
|
1034
|
+
* ```
|
|
1035
|
+
*
|
|
1036
|
+
* @generated from field: optional fixed32 const = 1;
|
|
1037
|
+
*/
|
|
1038
|
+
const;
|
|
1039
|
+
/**
|
|
1040
|
+
* @generated from oneof buf.validate.Fixed32Rules.less_than
|
|
1041
|
+
*/
|
|
1042
|
+
lessThan = { case: undefined };
|
|
1043
|
+
/**
|
|
1044
|
+
* @generated from oneof buf.validate.Fixed32Rules.greater_than
|
|
1045
|
+
*/
|
|
1046
|
+
greaterThan = { case: undefined };
|
|
1047
|
+
/**
|
|
1048
|
+
* `in` requires the field value to be equal to one of the specified values.
|
|
1049
|
+
* If the field value isn't one of the specified values, an error message
|
|
1050
|
+
* is generated.
|
|
1051
|
+
*
|
|
1052
|
+
* ```proto
|
|
1053
|
+
* message MyFixed32 {
|
|
1054
|
+
* // value must be in list [1, 2, 3]
|
|
1055
|
+
* repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] };
|
|
1056
|
+
* }
|
|
1057
|
+
* ```
|
|
1058
|
+
*
|
|
1059
|
+
* @generated from field: repeated fixed32 in = 6;
|
|
1060
|
+
*/
|
|
1061
|
+
in = [];
|
|
1062
|
+
/**
|
|
1063
|
+
* `not_in` requires the field value to not be equal to any of the specified
|
|
1064
|
+
* values. If the field value is one of the specified values, an error
|
|
1065
|
+
* message is generated.
|
|
1066
|
+
*
|
|
1067
|
+
* ```proto
|
|
1068
|
+
* message MyFixed32 {
|
|
1069
|
+
* // value must not be in list [1, 2, 3]
|
|
1070
|
+
* repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] };
|
|
1071
|
+
* }
|
|
1072
|
+
* ```
|
|
1073
|
+
*
|
|
1074
|
+
* @generated from field: repeated fixed32 not_in = 7;
|
|
1075
|
+
*/
|
|
1076
|
+
notIn = [];
|
|
1077
|
+
constructor(data) {
|
|
1078
|
+
super();
|
|
1079
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1080
|
+
}
|
|
1081
|
+
static runtime = protobuf_1.proto3;
|
|
1082
|
+
static typeName = "buf.validate.Fixed32Rules";
|
|
1083
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1084
|
+
{ no: 1, name: "const", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, opt: true },
|
|
1085
|
+
{ no: 2, name: "lt", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, oneof: "less_than" },
|
|
1086
|
+
{ no: 3, name: "lte", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, oneof: "less_than" },
|
|
1087
|
+
{ no: 4, name: "gt", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, oneof: "greater_than" },
|
|
1088
|
+
{ no: 5, name: "gte", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, oneof: "greater_than" },
|
|
1089
|
+
{ no: 6, name: "in", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, repeated: true },
|
|
1090
|
+
{ no: 7, name: "not_in", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, repeated: true },
|
|
1091
|
+
]);
|
|
1092
|
+
static fromBinary(bytes, options) {
|
|
1093
|
+
return new Fixed32Rules().fromBinary(bytes, options);
|
|
1094
|
+
}
|
|
1095
|
+
static fromJson(jsonValue, options) {
|
|
1096
|
+
return new Fixed32Rules().fromJson(jsonValue, options);
|
|
1097
|
+
}
|
|
1098
|
+
static fromJsonString(jsonString, options) {
|
|
1099
|
+
return new Fixed32Rules().fromJsonString(jsonString, options);
|
|
1100
|
+
}
|
|
1101
|
+
static equals(a, b) {
|
|
1102
|
+
return protobuf_1.proto3.util.equals(Fixed32Rules, a, b);
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
exports.Fixed32Rules = Fixed32Rules;
|
|
1106
|
+
/**
|
|
1107
|
+
* Fixed64Rules describes the constraints applied to `fixed64` values.
|
|
1108
|
+
*
|
|
1109
|
+
* @generated from message buf.validate.Fixed64Rules
|
|
1110
|
+
*/
|
|
1111
|
+
class Fixed64Rules extends protobuf_1.Message {
|
|
1112
|
+
/**
|
|
1113
|
+
* `const` requires the field value to exactly match the specified value. If
|
|
1114
|
+
* the field value doesn't match, an error message is generated.
|
|
1115
|
+
*
|
|
1116
|
+
* ```proto
|
|
1117
|
+
* message MyFixed64 {
|
|
1118
|
+
* // value must equal 42
|
|
1119
|
+
* fixed64 value = 1 [(buf.validate.field).fixed64.const = 42];
|
|
1120
|
+
* }
|
|
1121
|
+
* ```
|
|
1122
|
+
*
|
|
1123
|
+
* @generated from field: optional fixed64 const = 1;
|
|
1124
|
+
*/
|
|
1125
|
+
const;
|
|
1126
|
+
/**
|
|
1127
|
+
* @generated from oneof buf.validate.Fixed64Rules.less_than
|
|
1128
|
+
*/
|
|
1129
|
+
lessThan = { case: undefined };
|
|
1130
|
+
/**
|
|
1131
|
+
* @generated from oneof buf.validate.Fixed64Rules.greater_than
|
|
1132
|
+
*/
|
|
1133
|
+
greaterThan = { case: undefined };
|
|
1134
|
+
/**
|
|
1135
|
+
* `in` requires the field value to be equal to one of the specified values.
|
|
1136
|
+
* If the field value isn't one of the specified values, an error message is
|
|
1137
|
+
* generated.
|
|
1138
|
+
*
|
|
1139
|
+
* ```proto
|
|
1140
|
+
* message MyFixed64 {
|
|
1141
|
+
* // value must be in list [1, 2, 3]
|
|
1142
|
+
* repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] };
|
|
1143
|
+
* }
|
|
1144
|
+
* ```
|
|
1145
|
+
*
|
|
1146
|
+
* @generated from field: repeated fixed64 in = 6;
|
|
1147
|
+
*/
|
|
1148
|
+
in = [];
|
|
1149
|
+
/**
|
|
1150
|
+
* `not_in` requires the field value to not be equal to any of the specified
|
|
1151
|
+
* values. If the field value is one of the specified values, an error
|
|
1152
|
+
* message is generated.
|
|
1153
|
+
*
|
|
1154
|
+
* ```proto
|
|
1155
|
+
* message MyFixed64 {
|
|
1156
|
+
* // value must not be in list [1, 2, 3]
|
|
1157
|
+
* repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] };
|
|
1158
|
+
* }
|
|
1159
|
+
* ```
|
|
1160
|
+
*
|
|
1161
|
+
* @generated from field: repeated fixed64 not_in = 7;
|
|
1162
|
+
*/
|
|
1163
|
+
notIn = [];
|
|
1164
|
+
constructor(data) {
|
|
1165
|
+
super();
|
|
1166
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1167
|
+
}
|
|
1168
|
+
static runtime = protobuf_1.proto3;
|
|
1169
|
+
static typeName = "buf.validate.Fixed64Rules";
|
|
1170
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1171
|
+
{ no: 1, name: "const", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, opt: true },
|
|
1172
|
+
{ no: 2, name: "lt", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, oneof: "less_than" },
|
|
1173
|
+
{ no: 3, name: "lte", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, oneof: "less_than" },
|
|
1174
|
+
{ no: 4, name: "gt", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, oneof: "greater_than" },
|
|
1175
|
+
{ no: 5, name: "gte", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, oneof: "greater_than" },
|
|
1176
|
+
{ no: 6, name: "in", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, repeated: true },
|
|
1177
|
+
{ no: 7, name: "not_in", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, repeated: true },
|
|
1178
|
+
]);
|
|
1179
|
+
static fromBinary(bytes, options) {
|
|
1180
|
+
return new Fixed64Rules().fromBinary(bytes, options);
|
|
1181
|
+
}
|
|
1182
|
+
static fromJson(jsonValue, options) {
|
|
1183
|
+
return new Fixed64Rules().fromJson(jsonValue, options);
|
|
1184
|
+
}
|
|
1185
|
+
static fromJsonString(jsonString, options) {
|
|
1186
|
+
return new Fixed64Rules().fromJsonString(jsonString, options);
|
|
1187
|
+
}
|
|
1188
|
+
static equals(a, b) {
|
|
1189
|
+
return protobuf_1.proto3.util.equals(Fixed64Rules, a, b);
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
exports.Fixed64Rules = Fixed64Rules;
|
|
1193
|
+
/**
|
|
1194
|
+
* SFixed32Rules describes the constraints applied to `fixed32` values.
|
|
1195
|
+
*
|
|
1196
|
+
* @generated from message buf.validate.SFixed32Rules
|
|
1197
|
+
*/
|
|
1198
|
+
class SFixed32Rules extends protobuf_1.Message {
|
|
1199
|
+
/**
|
|
1200
|
+
* `const` requires the field value to exactly match the specified value. If
|
|
1201
|
+
* the field value doesn't match, an error message is generated.
|
|
1202
|
+
*
|
|
1203
|
+
* ```proto
|
|
1204
|
+
* message MySFixed32 {
|
|
1205
|
+
* // value must equal 42
|
|
1206
|
+
* sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42];
|
|
1207
|
+
* }
|
|
1208
|
+
* ```
|
|
1209
|
+
*
|
|
1210
|
+
* @generated from field: optional sfixed32 const = 1;
|
|
1211
|
+
*/
|
|
1212
|
+
const;
|
|
1213
|
+
/**
|
|
1214
|
+
* @generated from oneof buf.validate.SFixed32Rules.less_than
|
|
1215
|
+
*/
|
|
1216
|
+
lessThan = { case: undefined };
|
|
1217
|
+
/**
|
|
1218
|
+
* @generated from oneof buf.validate.SFixed32Rules.greater_than
|
|
1219
|
+
*/
|
|
1220
|
+
greaterThan = { case: undefined };
|
|
1221
|
+
/**
|
|
1222
|
+
* `in` requires the field value to be equal to one of the specified values.
|
|
1223
|
+
* If the field value isn't one of the specified values, an error message is
|
|
1224
|
+
* generated.
|
|
1225
|
+
*
|
|
1226
|
+
* ```proto
|
|
1227
|
+
* message MySFixed32 {
|
|
1228
|
+
* // value must be in list [1, 2, 3]
|
|
1229
|
+
* repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] };
|
|
1230
|
+
* }
|
|
1231
|
+
* ```
|
|
1232
|
+
*
|
|
1233
|
+
* @generated from field: repeated sfixed32 in = 6;
|
|
1234
|
+
*/
|
|
1235
|
+
in = [];
|
|
1236
|
+
/**
|
|
1237
|
+
* `not_in` requires the field value to not be equal to any of the specified
|
|
1238
|
+
* values. If the field value is one of the specified values, an error
|
|
1239
|
+
* message is generated.
|
|
1240
|
+
*
|
|
1241
|
+
* ```proto
|
|
1242
|
+
* message MySFixed32 {
|
|
1243
|
+
* // value must not be in list [1, 2, 3]
|
|
1244
|
+
* repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] };
|
|
1245
|
+
* }
|
|
1246
|
+
* ```
|
|
1247
|
+
*
|
|
1248
|
+
* @generated from field: repeated sfixed32 not_in = 7;
|
|
1249
|
+
*/
|
|
1250
|
+
notIn = [];
|
|
1251
|
+
constructor(data) {
|
|
1252
|
+
super();
|
|
1253
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1254
|
+
}
|
|
1255
|
+
static runtime = protobuf_1.proto3;
|
|
1256
|
+
static typeName = "buf.validate.SFixed32Rules";
|
|
1257
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1258
|
+
{ no: 1, name: "const", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, opt: true },
|
|
1259
|
+
{ no: 2, name: "lt", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, oneof: "less_than" },
|
|
1260
|
+
{ no: 3, name: "lte", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, oneof: "less_than" },
|
|
1261
|
+
{ no: 4, name: "gt", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, oneof: "greater_than" },
|
|
1262
|
+
{ no: 5, name: "gte", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, oneof: "greater_than" },
|
|
1263
|
+
{ no: 6, name: "in", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, repeated: true },
|
|
1264
|
+
{ no: 7, name: "not_in", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, repeated: true },
|
|
1265
|
+
]);
|
|
1266
|
+
static fromBinary(bytes, options) {
|
|
1267
|
+
return new SFixed32Rules().fromBinary(bytes, options);
|
|
1268
|
+
}
|
|
1269
|
+
static fromJson(jsonValue, options) {
|
|
1270
|
+
return new SFixed32Rules().fromJson(jsonValue, options);
|
|
1271
|
+
}
|
|
1272
|
+
static fromJsonString(jsonString, options) {
|
|
1273
|
+
return new SFixed32Rules().fromJsonString(jsonString, options);
|
|
1274
|
+
}
|
|
1275
|
+
static equals(a, b) {
|
|
1276
|
+
return protobuf_1.proto3.util.equals(SFixed32Rules, a, b);
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
exports.SFixed32Rules = SFixed32Rules;
|
|
1280
|
+
/**
|
|
1281
|
+
* SFixed64Rules describes the constraints applied to `fixed64` values.
|
|
1282
|
+
*
|
|
1283
|
+
* @generated from message buf.validate.SFixed64Rules
|
|
1284
|
+
*/
|
|
1285
|
+
class SFixed64Rules extends protobuf_1.Message {
|
|
1286
|
+
/**
|
|
1287
|
+
* `const` requires the field value to exactly match the specified value. If
|
|
1288
|
+
* the field value doesn't match, an error message is generated.
|
|
1289
|
+
*
|
|
1290
|
+
* ```proto
|
|
1291
|
+
* message MySFixed64 {
|
|
1292
|
+
* // value must equal 42
|
|
1293
|
+
* sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42];
|
|
1294
|
+
* }
|
|
1295
|
+
* ```
|
|
1296
|
+
*
|
|
1297
|
+
* @generated from field: optional sfixed64 const = 1;
|
|
1298
|
+
*/
|
|
1299
|
+
const;
|
|
1300
|
+
/**
|
|
1301
|
+
* @generated from oneof buf.validate.SFixed64Rules.less_than
|
|
1302
|
+
*/
|
|
1303
|
+
lessThan = { case: undefined };
|
|
1304
|
+
/**
|
|
1305
|
+
* @generated from oneof buf.validate.SFixed64Rules.greater_than
|
|
1306
|
+
*/
|
|
1307
|
+
greaterThan = { case: undefined };
|
|
1308
|
+
/**
|
|
1309
|
+
* `in` requires the field value to be equal to one of the specified values.
|
|
1310
|
+
* If the field value isn't one of the specified values, an error message is
|
|
1311
|
+
* generated.
|
|
1312
|
+
*
|
|
1313
|
+
* ```proto
|
|
1314
|
+
* message MySFixed64 {
|
|
1315
|
+
* // value must be in list [1, 2, 3]
|
|
1316
|
+
* repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] };
|
|
1317
|
+
* }
|
|
1318
|
+
* ```
|
|
1319
|
+
*
|
|
1320
|
+
* @generated from field: repeated sfixed64 in = 6;
|
|
1321
|
+
*/
|
|
1322
|
+
in = [];
|
|
1323
|
+
/**
|
|
1324
|
+
* `not_in` requires the field value to not be equal to any of the specified
|
|
1325
|
+
* values. If the field value is one of the specified values, an error
|
|
1326
|
+
* message is generated.
|
|
1327
|
+
*
|
|
1328
|
+
* ```proto
|
|
1329
|
+
* message MySFixed64 {
|
|
1330
|
+
* // value must not be in list [1, 2, 3]
|
|
1331
|
+
* repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] };
|
|
1332
|
+
* }
|
|
1333
|
+
* ```
|
|
1334
|
+
*
|
|
1335
|
+
* @generated from field: repeated sfixed64 not_in = 7;
|
|
1336
|
+
*/
|
|
1337
|
+
notIn = [];
|
|
1338
|
+
constructor(data) {
|
|
1339
|
+
super();
|
|
1340
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1341
|
+
}
|
|
1342
|
+
static runtime = protobuf_1.proto3;
|
|
1343
|
+
static typeName = "buf.validate.SFixed64Rules";
|
|
1344
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1345
|
+
{ no: 1, name: "const", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, opt: true },
|
|
1346
|
+
{ no: 2, name: "lt", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, oneof: "less_than" },
|
|
1347
|
+
{ no: 3, name: "lte", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, oneof: "less_than" },
|
|
1348
|
+
{ no: 4, name: "gt", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, oneof: "greater_than" },
|
|
1349
|
+
{ no: 5, name: "gte", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, oneof: "greater_than" },
|
|
1350
|
+
{ no: 6, name: "in", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, repeated: true },
|
|
1351
|
+
{ no: 7, name: "not_in", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, repeated: true },
|
|
1352
|
+
]);
|
|
1353
|
+
static fromBinary(bytes, options) {
|
|
1354
|
+
return new SFixed64Rules().fromBinary(bytes, options);
|
|
1355
|
+
}
|
|
1356
|
+
static fromJson(jsonValue, options) {
|
|
1357
|
+
return new SFixed64Rules().fromJson(jsonValue, options);
|
|
1358
|
+
}
|
|
1359
|
+
static fromJsonString(jsonString, options) {
|
|
1360
|
+
return new SFixed64Rules().fromJsonString(jsonString, options);
|
|
1361
|
+
}
|
|
1362
|
+
static equals(a, b) {
|
|
1363
|
+
return protobuf_1.proto3.util.equals(SFixed64Rules, a, b);
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
exports.SFixed64Rules = SFixed64Rules;
|
|
1367
|
+
/**
|
|
1368
|
+
* BoolRules describes the constraints applied to `bool` values. These rules
|
|
1369
|
+
* may also be applied to the `google.protobuf.BoolValue` Well-Known-Type.
|
|
1370
|
+
*
|
|
1371
|
+
* @generated from message buf.validate.BoolRules
|
|
1372
|
+
*/
|
|
1373
|
+
class BoolRules extends protobuf_1.Message {
|
|
1374
|
+
/**
|
|
1375
|
+
* `const` requires the field value to exactly match the specified boolean value.
|
|
1376
|
+
* If the field value doesn't match, an error message is generated.
|
|
1377
|
+
*
|
|
1378
|
+
* ```proto
|
|
1379
|
+
* message MyBool {
|
|
1380
|
+
* // value must equal true
|
|
1381
|
+
* bool value = 1 [(buf.validate.field).bool.const = true];
|
|
1382
|
+
* }
|
|
1383
|
+
* ```
|
|
1384
|
+
*
|
|
1385
|
+
* @generated from field: optional bool const = 1;
|
|
1386
|
+
*/
|
|
1387
|
+
const;
|
|
1388
|
+
constructor(data) {
|
|
1389
|
+
super();
|
|
1390
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1391
|
+
}
|
|
1392
|
+
static runtime = protobuf_1.proto3;
|
|
1393
|
+
static typeName = "buf.validate.BoolRules";
|
|
1394
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1395
|
+
{ no: 1, name: "const", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1396
|
+
]);
|
|
1397
|
+
static fromBinary(bytes, options) {
|
|
1398
|
+
return new BoolRules().fromBinary(bytes, options);
|
|
1399
|
+
}
|
|
1400
|
+
static fromJson(jsonValue, options) {
|
|
1401
|
+
return new BoolRules().fromJson(jsonValue, options);
|
|
1402
|
+
}
|
|
1403
|
+
static fromJsonString(jsonString, options) {
|
|
1404
|
+
return new BoolRules().fromJsonString(jsonString, options);
|
|
1405
|
+
}
|
|
1406
|
+
static equals(a, b) {
|
|
1407
|
+
return protobuf_1.proto3.util.equals(BoolRules, a, b);
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
exports.BoolRules = BoolRules;
|
|
1411
|
+
/**
|
|
1412
|
+
* StringRules describes the constraints applied to `string` values These
|
|
1413
|
+
* rules may also be applied to the `google.protobuf.StringValue` Well-Known-Type.
|
|
1414
|
+
*
|
|
1415
|
+
* @generated from message buf.validate.StringRules
|
|
1416
|
+
*/
|
|
1417
|
+
class StringRules extends protobuf_1.Message {
|
|
1418
|
+
/**
|
|
1419
|
+
* `const` requires the field value to exactly match the specified value. If
|
|
1420
|
+
* the field value doesn't match, an error message is generated.
|
|
1421
|
+
*
|
|
1422
|
+
* ```proto
|
|
1423
|
+
* message MyString {
|
|
1424
|
+
* // value must equal `hello`
|
|
1425
|
+
* string value = 1 [(buf.validate.field).string.const = "hello"];
|
|
1426
|
+
* }
|
|
1427
|
+
* ```
|
|
1428
|
+
*
|
|
1429
|
+
* @generated from field: optional string const = 1;
|
|
1430
|
+
*/
|
|
1431
|
+
const;
|
|
1432
|
+
/**
|
|
1433
|
+
* `len` dictates that the field value must have the specified
|
|
1434
|
+
* number of characters (Unicode code points), which may differ from the number
|
|
1435
|
+
* of bytes in the string. If the field value does not meet the specified
|
|
1436
|
+
* length, an error message will be generated.
|
|
1437
|
+
*
|
|
1438
|
+
* ```proto
|
|
1439
|
+
* message MyString {
|
|
1440
|
+
* // value length must be 5 characters
|
|
1441
|
+
* string value = 1 [(buf.validate.field).string.len = 5];
|
|
1442
|
+
* }
|
|
1443
|
+
* ```
|
|
1444
|
+
*
|
|
1445
|
+
* @generated from field: optional uint64 len = 19;
|
|
1446
|
+
*/
|
|
1447
|
+
len;
|
|
1448
|
+
/**
|
|
1449
|
+
* `min_len` specifies that the field value must have at least the specified
|
|
1450
|
+
* number of characters (Unicode code points), which may differ from the number
|
|
1451
|
+
* of bytes in the string. If the field value contains fewer characters, an error
|
|
1452
|
+
* message will be generated.
|
|
1453
|
+
*
|
|
1454
|
+
* ```proto
|
|
1455
|
+
* message MyString {
|
|
1456
|
+
* // value length must be at least 3 characters
|
|
1457
|
+
* string value = 1 [(buf.validate.field).string.min_len = 3];
|
|
1458
|
+
* }
|
|
1459
|
+
* ```
|
|
1460
|
+
*
|
|
1461
|
+
* @generated from field: optional uint64 min_len = 2;
|
|
1462
|
+
*/
|
|
1463
|
+
minLen;
|
|
1464
|
+
/**
|
|
1465
|
+
* `max_len` specifies that the field value must have no more than the specified
|
|
1466
|
+
* number of characters (Unicode code points), which may differ from the
|
|
1467
|
+
* number of bytes in the string. If the field value contains more characters,
|
|
1468
|
+
* an error message will be generated.
|
|
1469
|
+
*
|
|
1470
|
+
* ```proto
|
|
1471
|
+
* message MyString {
|
|
1472
|
+
* // value length must be at most 10 characters
|
|
1473
|
+
* string value = 1 [(buf.validate.field).string.max_len = 10];
|
|
1474
|
+
* }
|
|
1475
|
+
* ```
|
|
1476
|
+
*
|
|
1477
|
+
* @generated from field: optional uint64 max_len = 3;
|
|
1478
|
+
*/
|
|
1479
|
+
maxLen;
|
|
1480
|
+
/**
|
|
1481
|
+
* `len_bytes` dictates that the field value must have the specified number of
|
|
1482
|
+
* bytes. If the field value does not match the specified length in bytes,
|
|
1483
|
+
* an error message will be generated.
|
|
1484
|
+
*
|
|
1485
|
+
* ```proto
|
|
1486
|
+
* message MyString {
|
|
1487
|
+
* // value length must be 6 bytes
|
|
1488
|
+
* string value = 1 [(buf.validate.field).string.len_bytes = 6];
|
|
1489
|
+
* }
|
|
1490
|
+
* ```
|
|
1491
|
+
*
|
|
1492
|
+
* @generated from field: optional uint64 len_bytes = 20;
|
|
1493
|
+
*/
|
|
1494
|
+
lenBytes;
|
|
1495
|
+
/**
|
|
1496
|
+
* `min_bytes` specifies that the field value must have at least the specified
|
|
1497
|
+
* number of bytes. If the field value contains fewer bytes, an error message
|
|
1498
|
+
* will be generated.
|
|
1499
|
+
*
|
|
1500
|
+
* ```proto
|
|
1501
|
+
* message MyString {
|
|
1502
|
+
* // value length must be at least 4 bytes
|
|
1503
|
+
* string value = 1 [(buf.validate.field).string.min_bytes = 4];
|
|
1504
|
+
* }
|
|
1505
|
+
*
|
|
1506
|
+
* ```
|
|
1507
|
+
*
|
|
1508
|
+
* @generated from field: optional uint64 min_bytes = 4;
|
|
1509
|
+
*/
|
|
1510
|
+
minBytes;
|
|
1511
|
+
/**
|
|
1512
|
+
* `max_bytes` specifies that the field value must have no more than the
|
|
1513
|
+
* specified number of bytes. If the field value contains more bytes, an
|
|
1514
|
+
* error message will be generated.
|
|
1515
|
+
*
|
|
1516
|
+
* ```proto
|
|
1517
|
+
* message MyString {
|
|
1518
|
+
* // value length must be at most 8 bytes
|
|
1519
|
+
* string value = 1 [(buf.validate.field).string.max_bytes = 8];
|
|
1520
|
+
* }
|
|
1521
|
+
* ```
|
|
1522
|
+
*
|
|
1523
|
+
* @generated from field: optional uint64 max_bytes = 5;
|
|
1524
|
+
*/
|
|
1525
|
+
maxBytes;
|
|
1526
|
+
/**
|
|
1527
|
+
* `pattern` specifies that the field value must match the specified
|
|
1528
|
+
* regular expression (RE2 syntax), with the expression provided without any
|
|
1529
|
+
* delimiters. If the field value doesn't match the regular expression, an
|
|
1530
|
+
* error message will be generated.
|
|
1531
|
+
*
|
|
1532
|
+
* ```proto
|
|
1533
|
+
* message MyString {
|
|
1534
|
+
* // value does not match regex pattern `^[a-zA-Z]//$`
|
|
1535
|
+
* string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"];
|
|
1536
|
+
* }
|
|
1537
|
+
* ```
|
|
1538
|
+
*
|
|
1539
|
+
* @generated from field: optional string pattern = 6;
|
|
1540
|
+
*/
|
|
1541
|
+
pattern;
|
|
1542
|
+
/**
|
|
1543
|
+
* `prefix` specifies that the field value must have the
|
|
1544
|
+
* specified substring at the beginning of the string. If the field value
|
|
1545
|
+
* doesn't start with the specified prefix, an error message will be
|
|
1546
|
+
* generated.
|
|
1547
|
+
*
|
|
1548
|
+
* ```proto
|
|
1549
|
+
* message MyString {
|
|
1550
|
+
* // value does not have prefix `pre`
|
|
1551
|
+
* string value = 1 [(buf.validate.field).string.prefix = "pre"];
|
|
1552
|
+
* }
|
|
1553
|
+
* ```
|
|
1554
|
+
*
|
|
1555
|
+
* @generated from field: optional string prefix = 7;
|
|
1556
|
+
*/
|
|
1557
|
+
prefix;
|
|
1558
|
+
/**
|
|
1559
|
+
* `suffix` specifies that the field value must have the
|
|
1560
|
+
* specified substring at the end of the string. If the field value doesn't
|
|
1561
|
+
* end with the specified suffix, an error message will be generated.
|
|
1562
|
+
*
|
|
1563
|
+
* ```proto
|
|
1564
|
+
* message MyString {
|
|
1565
|
+
* // value does not have suffix `post`
|
|
1566
|
+
* string value = 1 [(buf.validate.field).string.suffix = "post"];
|
|
1567
|
+
* }
|
|
1568
|
+
* ```
|
|
1569
|
+
*
|
|
1570
|
+
* @generated from field: optional string suffix = 8;
|
|
1571
|
+
*/
|
|
1572
|
+
suffix;
|
|
1573
|
+
/**
|
|
1574
|
+
* `contains` specifies that the field value must have the
|
|
1575
|
+
* specified substring anywhere in the string. If the field value doesn't
|
|
1576
|
+
* contain the specified substring, an error message will be generated.
|
|
1577
|
+
*
|
|
1578
|
+
* ```proto
|
|
1579
|
+
* message MyString {
|
|
1580
|
+
* // value does not contain substring `inside`.
|
|
1581
|
+
* string value = 1 [(buf.validate.field).string.contains = "inside"];
|
|
1582
|
+
* }
|
|
1583
|
+
* ```
|
|
1584
|
+
*
|
|
1585
|
+
* @generated from field: optional string contains = 9;
|
|
1586
|
+
*/
|
|
1587
|
+
contains;
|
|
1588
|
+
/**
|
|
1589
|
+
* `not_contains` specifies that the field value must not have the
|
|
1590
|
+
* specified substring anywhere in the string. If the field value contains
|
|
1591
|
+
* the specified substring, an error message will be generated.
|
|
1592
|
+
*
|
|
1593
|
+
* ```proto
|
|
1594
|
+
* message MyString {
|
|
1595
|
+
* // value contains substring `inside`.
|
|
1596
|
+
* string value = 1 [(buf.validate.field).string.not_contains = "inside"];
|
|
1597
|
+
* }
|
|
1598
|
+
* ```
|
|
1599
|
+
*
|
|
1600
|
+
* @generated from field: optional string not_contains = 23;
|
|
1601
|
+
*/
|
|
1602
|
+
notContains;
|
|
1603
|
+
/**
|
|
1604
|
+
* `in` specifies that the field value must be equal to one of the specified
|
|
1605
|
+
* values. If the field value isn't one of the specified values, an error
|
|
1606
|
+
* message will be generated.
|
|
1607
|
+
*
|
|
1608
|
+
* ```proto
|
|
1609
|
+
* message MyString {
|
|
1610
|
+
* // value must be in list ["apple", "banana"]
|
|
1611
|
+
* repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
|
|
1612
|
+
* }
|
|
1613
|
+
* ```
|
|
1614
|
+
*
|
|
1615
|
+
* @generated from field: repeated string in = 10;
|
|
1616
|
+
*/
|
|
1617
|
+
in = [];
|
|
1618
|
+
/**
|
|
1619
|
+
* `not_in` specifies that the field value cannot be equal to any
|
|
1620
|
+
* of the specified values. If the field value is one of the specified values,
|
|
1621
|
+
* an error message will be generated.
|
|
1622
|
+
* ```proto
|
|
1623
|
+
* message MyString {
|
|
1624
|
+
* // value must not be in list ["orange", "grape"]
|
|
1625
|
+
* repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"];
|
|
1626
|
+
* }
|
|
1627
|
+
* ```
|
|
1628
|
+
*
|
|
1629
|
+
* @generated from field: repeated string not_in = 11;
|
|
1630
|
+
*/
|
|
1631
|
+
notIn = [];
|
|
1632
|
+
/**
|
|
1633
|
+
* `WellKnown` rules provide advanced constraints against common string
|
|
1634
|
+
* patterns
|
|
1635
|
+
*
|
|
1636
|
+
* @generated from oneof buf.validate.StringRules.well_known
|
|
1637
|
+
*/
|
|
1638
|
+
wellKnown = { case: undefined };
|
|
1639
|
+
/**
|
|
1640
|
+
* This applies to regexes `HTTP_HEADER_NAME` and `HTTP_HEADER_VALUE` to
|
|
1641
|
+
* enable strict header validation. By default, this is true, and HTTP header
|
|
1642
|
+
* validations are [RFC-compliant](https://tools.ietf.org/html/rfc7230#section-3). Setting to false will enable looser
|
|
1643
|
+
* validations that only disallow `\r\n\0` characters, which can be used to
|
|
1644
|
+
* bypass header matching rules.
|
|
1645
|
+
*
|
|
1646
|
+
* ```proto
|
|
1647
|
+
* message MyString {
|
|
1648
|
+
* // The field `value` must have be a valid HTTP headers, but not enforced with strict rules.
|
|
1649
|
+
* string value = 1 [(buf.validate.field).string.strict = false];
|
|
1650
|
+
* }
|
|
1651
|
+
* ```
|
|
1652
|
+
*
|
|
1653
|
+
* @generated from field: optional bool strict = 25;
|
|
1654
|
+
*/
|
|
1655
|
+
strict;
|
|
1656
|
+
constructor(data) {
|
|
1657
|
+
super();
|
|
1658
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1659
|
+
}
|
|
1660
|
+
static runtime = protobuf_1.proto3;
|
|
1661
|
+
static typeName = "buf.validate.StringRules";
|
|
1662
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1663
|
+
{ no: 1, name: "const", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1664
|
+
{ no: 19, name: "len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
1665
|
+
{ no: 2, name: "min_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
1666
|
+
{ no: 3, name: "max_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
1667
|
+
{ no: 20, name: "len_bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
1668
|
+
{ no: 4, name: "min_bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
1669
|
+
{ no: 5, name: "max_bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
1670
|
+
{ no: 6, name: "pattern", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1671
|
+
{ no: 7, name: "prefix", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1672
|
+
{ no: 8, name: "suffix", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1673
|
+
{ no: 9, name: "contains", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1674
|
+
{ no: 23, name: "not_contains", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1675
|
+
{ no: 10, name: "in", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
1676
|
+
{ no: 11, name: "not_in", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
1677
|
+
{ no: 12, name: "email", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
1678
|
+
{ no: 13, name: "hostname", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
1679
|
+
{ no: 14, name: "ip", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
1680
|
+
{ no: 15, name: "ipv4", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
1681
|
+
{ no: 16, name: "ipv6", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
1682
|
+
{ no: 17, name: "uri", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
1683
|
+
{ no: 18, name: "uri_ref", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
1684
|
+
{ no: 21, name: "address", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
1685
|
+
{ no: 22, name: "uuid", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
1686
|
+
{ no: 26, name: "ip_with_prefixlen", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
1687
|
+
{ no: 27, name: "ipv4_with_prefixlen", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
1688
|
+
{ no: 28, name: "ipv6_with_prefixlen", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
1689
|
+
{ no: 29, name: "ip_prefix", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
1690
|
+
{ no: 30, name: "ipv4_prefix", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
1691
|
+
{ no: 31, name: "ipv6_prefix", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
1692
|
+
{ no: 24, name: "well_known_regex", kind: "enum", T: protobuf_1.proto3.getEnumType(KnownRegex), oneof: "well_known" },
|
|
1693
|
+
{ no: 25, name: "strict", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1694
|
+
]);
|
|
1695
|
+
static fromBinary(bytes, options) {
|
|
1696
|
+
return new StringRules().fromBinary(bytes, options);
|
|
1697
|
+
}
|
|
1698
|
+
static fromJson(jsonValue, options) {
|
|
1699
|
+
return new StringRules().fromJson(jsonValue, options);
|
|
1700
|
+
}
|
|
1701
|
+
static fromJsonString(jsonString, options) {
|
|
1702
|
+
return new StringRules().fromJsonString(jsonString, options);
|
|
1703
|
+
}
|
|
1704
|
+
static equals(a, b) {
|
|
1705
|
+
return protobuf_1.proto3.util.equals(StringRules, a, b);
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1708
|
+
exports.StringRules = StringRules;
|
|
1709
|
+
/**
|
|
1710
|
+
* BytesRules describe the constraints applied to `bytes` values. These rules
|
|
1711
|
+
* may also be applied to the `google.protobuf.BytesValue` Well-Known-Type.
|
|
1712
|
+
*
|
|
1713
|
+
* @generated from message buf.validate.BytesRules
|
|
1714
|
+
*/
|
|
1715
|
+
class BytesRules extends protobuf_1.Message {
|
|
1716
|
+
/**
|
|
1717
|
+
* `const` requires the field value to exactly match the specified bytes
|
|
1718
|
+
* value. If the field value doesn't match, an error message is generated.
|
|
1719
|
+
*
|
|
1720
|
+
* ```proto
|
|
1721
|
+
* message MyBytes {
|
|
1722
|
+
* // value must be "\x01\x02\x03\x04"
|
|
1723
|
+
* bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"];
|
|
1724
|
+
* }
|
|
1725
|
+
* ```
|
|
1726
|
+
*
|
|
1727
|
+
* @generated from field: optional bytes const = 1;
|
|
1728
|
+
*/
|
|
1729
|
+
const;
|
|
1730
|
+
/**
|
|
1731
|
+
* `len` requires the field value to have the specified length in bytes.
|
|
1732
|
+
* If the field value doesn't match, an error message is generated.
|
|
1733
|
+
*
|
|
1734
|
+
* ```proto
|
|
1735
|
+
* message MyBytes {
|
|
1736
|
+
* // value length must be 4 bytes.
|
|
1737
|
+
* optional bytes value = 1 [(buf.validate.field).bytes.len = 4];
|
|
1738
|
+
* }
|
|
1739
|
+
* ```
|
|
1740
|
+
*
|
|
1741
|
+
* @generated from field: optional uint64 len = 13;
|
|
1742
|
+
*/
|
|
1743
|
+
len;
|
|
1744
|
+
/**
|
|
1745
|
+
* `min_len` requires the field value to have at least the specified minimum
|
|
1746
|
+
* length in bytes.
|
|
1747
|
+
* If the field value doesn't meet the requirement, an error message is generated.
|
|
1748
|
+
*
|
|
1749
|
+
* ```proto
|
|
1750
|
+
* message MyBytes {
|
|
1751
|
+
* // value length must be at least 2 bytes.
|
|
1752
|
+
* optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2];
|
|
1753
|
+
* }
|
|
1754
|
+
* ```
|
|
1755
|
+
*
|
|
1756
|
+
* @generated from field: optional uint64 min_len = 2;
|
|
1757
|
+
*/
|
|
1758
|
+
minLen;
|
|
1759
|
+
/**
|
|
1760
|
+
* `max_len` requires the field value to have at most the specified maximum
|
|
1761
|
+
* length in bytes.
|
|
1762
|
+
* If the field value exceeds the requirement, an error message is generated.
|
|
1763
|
+
*
|
|
1764
|
+
* ```proto
|
|
1765
|
+
* message MyBytes {
|
|
1766
|
+
* // value must be at most 6 bytes.
|
|
1767
|
+
* optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6];
|
|
1768
|
+
* }
|
|
1769
|
+
* ```
|
|
1770
|
+
*
|
|
1771
|
+
* @generated from field: optional uint64 max_len = 3;
|
|
1772
|
+
*/
|
|
1773
|
+
maxLen;
|
|
1774
|
+
/**
|
|
1775
|
+
* `pattern` requires the field value to match the specified regular
|
|
1776
|
+
* expression ([RE2 syntax](https://github.com/google/re2/wiki/Syntax)).
|
|
1777
|
+
* The value of the field must be valid UTF-8 or validation will fail with a
|
|
1778
|
+
* runtime error.
|
|
1779
|
+
* If the field value doesn't match the pattern, an error message is generated.
|
|
1780
|
+
*
|
|
1781
|
+
* ```proto
|
|
1782
|
+
* message MyBytes {
|
|
1783
|
+
* // value must match regex pattern "^[a-zA-Z0-9]+$".
|
|
1784
|
+
* optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"];
|
|
1785
|
+
* }
|
|
1786
|
+
* ```
|
|
1787
|
+
*
|
|
1788
|
+
* @generated from field: optional string pattern = 4;
|
|
1789
|
+
*/
|
|
1790
|
+
pattern;
|
|
1791
|
+
/**
|
|
1792
|
+
* `prefix` requires the field value to have the specified bytes at the
|
|
1793
|
+
* beginning of the string.
|
|
1794
|
+
* If the field value doesn't meet the requirement, an error message is generated.
|
|
1795
|
+
*
|
|
1796
|
+
* ```proto
|
|
1797
|
+
* message MyBytes {
|
|
1798
|
+
* // value does not have prefix \x01\x02
|
|
1799
|
+
* optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"];
|
|
1800
|
+
* }
|
|
1801
|
+
* ```
|
|
1802
|
+
*
|
|
1803
|
+
* @generated from field: optional bytes prefix = 5;
|
|
1804
|
+
*/
|
|
1805
|
+
prefix;
|
|
1806
|
+
/**
|
|
1807
|
+
* `suffix` requires the field value to have the specified bytes at the end
|
|
1808
|
+
* of the string.
|
|
1809
|
+
* If the field value doesn't meet the requirement, an error message is generated.
|
|
1810
|
+
*
|
|
1811
|
+
* ```proto
|
|
1812
|
+
* message MyBytes {
|
|
1813
|
+
* // value does not have suffix \x03\x04
|
|
1814
|
+
* optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"];
|
|
1815
|
+
* }
|
|
1816
|
+
* ```
|
|
1817
|
+
*
|
|
1818
|
+
* @generated from field: optional bytes suffix = 6;
|
|
1819
|
+
*/
|
|
1820
|
+
suffix;
|
|
1821
|
+
/**
|
|
1822
|
+
* `contains` requires the field value to have the specified bytes anywhere in
|
|
1823
|
+
* the string.
|
|
1824
|
+
* If the field value doesn't meet the requirement, an error message is generated.
|
|
1825
|
+
*
|
|
1826
|
+
* ```protobuf
|
|
1827
|
+
* message MyBytes {
|
|
1828
|
+
* // value does not contain \x02\x03
|
|
1829
|
+
* optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"];
|
|
1830
|
+
* }
|
|
1831
|
+
* ```
|
|
1832
|
+
*
|
|
1833
|
+
* @generated from field: optional bytes contains = 7;
|
|
1834
|
+
*/
|
|
1835
|
+
contains;
|
|
1836
|
+
/**
|
|
1837
|
+
* `in` requires the field value to be equal to one of the specified
|
|
1838
|
+
* values. If the field value doesn't match any of the specified values, an
|
|
1839
|
+
* error message is generated.
|
|
1840
|
+
*
|
|
1841
|
+
* ```protobuf
|
|
1842
|
+
* message MyBytes {
|
|
1843
|
+
* // value must in ["\x01\x02", "\x02\x03", "\x03\x04"]
|
|
1844
|
+
* optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
|
|
1845
|
+
* }
|
|
1846
|
+
* ```
|
|
1847
|
+
*
|
|
1848
|
+
* @generated from field: repeated bytes in = 8;
|
|
1849
|
+
*/
|
|
1850
|
+
in = [];
|
|
1851
|
+
/**
|
|
1852
|
+
* `not_in` requires the field value to be not equal to any of the specified
|
|
1853
|
+
* values.
|
|
1854
|
+
* If the field value matches any of the specified values, an error message is
|
|
1855
|
+
* generated.
|
|
1856
|
+
*
|
|
1857
|
+
* ```proto
|
|
1858
|
+
* message MyBytes {
|
|
1859
|
+
* // value must not in ["\x01\x02", "\x02\x03", "\x03\x04"]
|
|
1860
|
+
* optional bytes value = 1 [(buf.validate.field).bytes.not_in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
|
|
1861
|
+
* }
|
|
1862
|
+
* ```
|
|
1863
|
+
*
|
|
1864
|
+
* @generated from field: repeated bytes not_in = 9;
|
|
1865
|
+
*/
|
|
1866
|
+
notIn = [];
|
|
1867
|
+
/**
|
|
1868
|
+
* WellKnown rules provide advanced constraints against common byte
|
|
1869
|
+
* patterns
|
|
1870
|
+
*
|
|
1871
|
+
* @generated from oneof buf.validate.BytesRules.well_known
|
|
1872
|
+
*/
|
|
1873
|
+
wellKnown = { case: undefined };
|
|
1874
|
+
constructor(data) {
|
|
1875
|
+
super();
|
|
1876
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1877
|
+
}
|
|
1878
|
+
static runtime = protobuf_1.proto3;
|
|
1879
|
+
static typeName = "buf.validate.BytesRules";
|
|
1880
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1881
|
+
{ no: 1, name: "const", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
|
|
1882
|
+
{ no: 13, name: "len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
1883
|
+
{ no: 2, name: "min_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
1884
|
+
{ no: 3, name: "max_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
1885
|
+
{ no: 4, name: "pattern", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1886
|
+
{ no: 5, name: "prefix", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
|
|
1887
|
+
{ no: 6, name: "suffix", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
|
|
1888
|
+
{ no: 7, name: "contains", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
|
|
1889
|
+
{ no: 8, name: "in", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true },
|
|
1890
|
+
{ no: 9, name: "not_in", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true },
|
|
1891
|
+
{ no: 10, name: "ip", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
1892
|
+
{ no: 11, name: "ipv4", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
1893
|
+
{ no: 12, name: "ipv6", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
|
|
1894
|
+
]);
|
|
1895
|
+
static fromBinary(bytes, options) {
|
|
1896
|
+
return new BytesRules().fromBinary(bytes, options);
|
|
1897
|
+
}
|
|
1898
|
+
static fromJson(jsonValue, options) {
|
|
1899
|
+
return new BytesRules().fromJson(jsonValue, options);
|
|
1900
|
+
}
|
|
1901
|
+
static fromJsonString(jsonString, options) {
|
|
1902
|
+
return new BytesRules().fromJsonString(jsonString, options);
|
|
1903
|
+
}
|
|
1904
|
+
static equals(a, b) {
|
|
1905
|
+
return protobuf_1.proto3.util.equals(BytesRules, a, b);
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
exports.BytesRules = BytesRules;
|
|
1909
|
+
/**
|
|
1910
|
+
* EnumRules describe the constraints applied to `enum` values.
|
|
1911
|
+
*
|
|
1912
|
+
* @generated from message buf.validate.EnumRules
|
|
1913
|
+
*/
|
|
1914
|
+
class EnumRules extends protobuf_1.Message {
|
|
1915
|
+
/**
|
|
1916
|
+
* `const` requires the field value to exactly match the specified enum value.
|
|
1917
|
+
* If the field value doesn't match, an error message is generated.
|
|
1918
|
+
*
|
|
1919
|
+
* ```proto
|
|
1920
|
+
* enum MyEnum {
|
|
1921
|
+
* MY_ENUM_UNSPECIFIED = 0;
|
|
1922
|
+
* MY_ENUM_VALUE1 = 1;
|
|
1923
|
+
* MY_ENUM_VALUE2 = 2;
|
|
1924
|
+
* }
|
|
1925
|
+
*
|
|
1926
|
+
* message MyMessage {
|
|
1927
|
+
* // The field `value` must be exactly MY_ENUM_VALUE1.
|
|
1928
|
+
* MyEnum value = 1 [(buf.validate.field).enum.const = 1];
|
|
1929
|
+
* }
|
|
1930
|
+
* ```
|
|
1931
|
+
*
|
|
1932
|
+
* @generated from field: optional int32 const = 1;
|
|
1933
|
+
*/
|
|
1934
|
+
const;
|
|
1935
|
+
/**
|
|
1936
|
+
* `defined_only` requires the field value to be one of the defined values for
|
|
1937
|
+
* this enum, failing on any undefined value.
|
|
1938
|
+
*
|
|
1939
|
+
* ```proto
|
|
1940
|
+
* enum MyEnum {
|
|
1941
|
+
* MY_ENUM_UNSPECIFIED = 0;
|
|
1942
|
+
* MY_ENUM_VALUE1 = 1;
|
|
1943
|
+
* MY_ENUM_VALUE2 = 2;
|
|
1944
|
+
* }
|
|
1945
|
+
*
|
|
1946
|
+
* message MyMessage {
|
|
1947
|
+
* // The field `value` must be a defined value of MyEnum.
|
|
1948
|
+
* MyEnum value = 1 [(buf.validate.field).enum.defined_only = true];
|
|
1949
|
+
* }
|
|
1950
|
+
* ```
|
|
1951
|
+
*
|
|
1952
|
+
* @generated from field: optional bool defined_only = 2;
|
|
1953
|
+
*/
|
|
1954
|
+
definedOnly;
|
|
1955
|
+
/**
|
|
1956
|
+
* `in` requires the field value to be equal to one of the
|
|
1957
|
+
* specified enum values. If the field value doesn't match any of the
|
|
1958
|
+
* specified values, an error message is generated.
|
|
1959
|
+
*
|
|
1960
|
+
* ```proto
|
|
1961
|
+
* enum MyEnum {
|
|
1962
|
+
* MY_ENUM_UNSPECIFIED = 0;
|
|
1963
|
+
* MY_ENUM_VALUE1 = 1;
|
|
1964
|
+
* MY_ENUM_VALUE2 = 2;
|
|
1965
|
+
* }
|
|
1966
|
+
*
|
|
1967
|
+
* message MyMessage {
|
|
1968
|
+
* // The field `value` must be equal to one of the specified values.
|
|
1969
|
+
* MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
|
|
1970
|
+
* }
|
|
1971
|
+
* ```
|
|
1972
|
+
*
|
|
1973
|
+
* @generated from field: repeated int32 in = 3;
|
|
1974
|
+
*/
|
|
1975
|
+
in = [];
|
|
1976
|
+
/**
|
|
1977
|
+
* `not_in` requires the field value to be not equal to any of the
|
|
1978
|
+
* specified enum values. If the field value matches one of the specified
|
|
1979
|
+
* values, an error message is generated.
|
|
1980
|
+
*
|
|
1981
|
+
* ```proto
|
|
1982
|
+
* enum MyEnum {
|
|
1983
|
+
* MY_ENUM_UNSPECIFIED = 0;
|
|
1984
|
+
* MY_ENUM_VALUE1 = 1;
|
|
1985
|
+
* MY_ENUM_VALUE2 = 2;
|
|
1986
|
+
* }
|
|
1987
|
+
*
|
|
1988
|
+
* message MyMessage {
|
|
1989
|
+
* // The field `value` must not be equal to any of the specified values.
|
|
1990
|
+
* MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
|
|
1991
|
+
* }
|
|
1992
|
+
* ```
|
|
1993
|
+
*
|
|
1994
|
+
* @generated from field: repeated int32 not_in = 4;
|
|
1995
|
+
*/
|
|
1996
|
+
notIn = [];
|
|
1997
|
+
constructor(data) {
|
|
1998
|
+
super();
|
|
1999
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
2000
|
+
}
|
|
2001
|
+
static runtime = protobuf_1.proto3;
|
|
2002
|
+
static typeName = "buf.validate.EnumRules";
|
|
2003
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
2004
|
+
{ no: 1, name: "const", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2005
|
+
{ no: 2, name: "defined_only", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
2006
|
+
{ no: 3, name: "in", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
|
|
2007
|
+
{ no: 4, name: "not_in", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
|
|
2008
|
+
]);
|
|
2009
|
+
static fromBinary(bytes, options) {
|
|
2010
|
+
return new EnumRules().fromBinary(bytes, options);
|
|
2011
|
+
}
|
|
2012
|
+
static fromJson(jsonValue, options) {
|
|
2013
|
+
return new EnumRules().fromJson(jsonValue, options);
|
|
2014
|
+
}
|
|
2015
|
+
static fromJsonString(jsonString, options) {
|
|
2016
|
+
return new EnumRules().fromJsonString(jsonString, options);
|
|
2017
|
+
}
|
|
2018
|
+
static equals(a, b) {
|
|
2019
|
+
return protobuf_1.proto3.util.equals(EnumRules, a, b);
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
exports.EnumRules = EnumRules;
|
|
2023
|
+
/**
|
|
2024
|
+
* RepeatedRules describe the constraints applied to `repeated` values.
|
|
2025
|
+
*
|
|
2026
|
+
* @generated from message buf.validate.RepeatedRules
|
|
2027
|
+
*/
|
|
2028
|
+
class RepeatedRules extends protobuf_1.Message {
|
|
2029
|
+
/**
|
|
2030
|
+
* `min_items` requires that this field must contain at least the specified
|
|
2031
|
+
* minimum number of items.
|
|
2032
|
+
*
|
|
2033
|
+
* Note that `min_items = 1` is equivalent to setting a field as `required`.
|
|
2034
|
+
*
|
|
2035
|
+
* ```proto
|
|
2036
|
+
* message MyRepeated {
|
|
2037
|
+
* // value must contain at least 2 items
|
|
2038
|
+
* repeated string value = 1 [(buf.validate.field).repeated.min_items = 2];
|
|
2039
|
+
* }
|
|
2040
|
+
* ```
|
|
2041
|
+
*
|
|
2042
|
+
* @generated from field: optional uint64 min_items = 1;
|
|
2043
|
+
*/
|
|
2044
|
+
minItems;
|
|
2045
|
+
/**
|
|
2046
|
+
* `max_items` denotes that this field must not exceed a
|
|
2047
|
+
* certain number of items as the upper limit. If the field contains more
|
|
2048
|
+
* items than specified, an error message will be generated, requiring the
|
|
2049
|
+
* field to maintain no more than the specified number of items.
|
|
2050
|
+
*
|
|
2051
|
+
* ```proto
|
|
2052
|
+
* message MyRepeated {
|
|
2053
|
+
* // value must contain no more than 3 item(s)
|
|
2054
|
+
* repeated string value = 1 [(buf.validate.field).repeated.max_items = 3];
|
|
2055
|
+
* }
|
|
2056
|
+
* ```
|
|
2057
|
+
*
|
|
2058
|
+
* @generated from field: optional uint64 max_items = 2;
|
|
2059
|
+
*/
|
|
2060
|
+
maxItems;
|
|
2061
|
+
/**
|
|
2062
|
+
* `unique` indicates that all elements in this field must
|
|
2063
|
+
* be unique. This constraint is strictly applicable to scalar and enum
|
|
2064
|
+
* types, with message types not being supported.
|
|
2065
|
+
*
|
|
2066
|
+
* ```proto
|
|
2067
|
+
* message MyRepeated {
|
|
2068
|
+
* // repeated value must contain unique items
|
|
2069
|
+
* repeated string value = 1 [(buf.validate.field).repeated.unique = true];
|
|
2070
|
+
* }
|
|
2071
|
+
* ```
|
|
2072
|
+
*
|
|
2073
|
+
* @generated from field: optional bool unique = 3;
|
|
2074
|
+
*/
|
|
2075
|
+
unique;
|
|
2076
|
+
/**
|
|
2077
|
+
* `items` details the constraints to be applied to each item
|
|
2078
|
+
* in the field. Even for repeated message fields, validation is executed
|
|
2079
|
+
* against each item unless skip is explicitly specified.
|
|
2080
|
+
*
|
|
2081
|
+
* ```proto
|
|
2082
|
+
* message MyRepeated {
|
|
2083
|
+
* // The items in the field `value` must follow the specified constraints.
|
|
2084
|
+
* repeated string value = 1 [(buf.validate.field).repeated.items = {
|
|
2085
|
+
* string: {
|
|
2086
|
+
* min_len: 3
|
|
2087
|
+
* max_len: 10
|
|
2088
|
+
* }
|
|
2089
|
+
* }];
|
|
2090
|
+
* }
|
|
2091
|
+
* ```
|
|
2092
|
+
*
|
|
2093
|
+
* @generated from field: optional buf.validate.FieldConstraints items = 4;
|
|
2094
|
+
*/
|
|
2095
|
+
items;
|
|
2096
|
+
constructor(data) {
|
|
2097
|
+
super();
|
|
2098
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
2099
|
+
}
|
|
2100
|
+
static runtime = protobuf_1.proto3;
|
|
2101
|
+
static typeName = "buf.validate.RepeatedRules";
|
|
2102
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
2103
|
+
{ no: 1, name: "min_items", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
2104
|
+
{ no: 2, name: "max_items", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
2105
|
+
{ no: 3, name: "unique", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
2106
|
+
{ no: 4, name: "items", kind: "message", T: FieldConstraints, opt: true },
|
|
2107
|
+
]);
|
|
2108
|
+
static fromBinary(bytes, options) {
|
|
2109
|
+
return new RepeatedRules().fromBinary(bytes, options);
|
|
2110
|
+
}
|
|
2111
|
+
static fromJson(jsonValue, options) {
|
|
2112
|
+
return new RepeatedRules().fromJson(jsonValue, options);
|
|
2113
|
+
}
|
|
2114
|
+
static fromJsonString(jsonString, options) {
|
|
2115
|
+
return new RepeatedRules().fromJsonString(jsonString, options);
|
|
2116
|
+
}
|
|
2117
|
+
static equals(a, b) {
|
|
2118
|
+
return protobuf_1.proto3.util.equals(RepeatedRules, a, b);
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
exports.RepeatedRules = RepeatedRules;
|
|
2122
|
+
/**
|
|
2123
|
+
* MapRules describe the constraints applied to `map` values.
|
|
2124
|
+
*
|
|
2125
|
+
* @generated from message buf.validate.MapRules
|
|
2126
|
+
*/
|
|
2127
|
+
class MapRules extends protobuf_1.Message {
|
|
2128
|
+
/**
|
|
2129
|
+
* Specifies the minimum number of key-value pairs allowed. If the field has
|
|
2130
|
+
* fewer key-value pairs than specified, an error message is generated.
|
|
2131
|
+
*
|
|
2132
|
+
* ```proto
|
|
2133
|
+
* message MyMap {
|
|
2134
|
+
* // The field `value` must have at least 2 key-value pairs.
|
|
2135
|
+
* map<string, string> value = 1 [(buf.validate.field).map.min_pairs = 2];
|
|
2136
|
+
* }
|
|
2137
|
+
* ```
|
|
2138
|
+
*
|
|
2139
|
+
* @generated from field: optional uint64 min_pairs = 1;
|
|
2140
|
+
*/
|
|
2141
|
+
minPairs;
|
|
2142
|
+
/**
|
|
2143
|
+
* Specifies the maximum number of key-value pairs allowed. If the field has
|
|
2144
|
+
* more key-value pairs than specified, an error message is generated.
|
|
2145
|
+
*
|
|
2146
|
+
* ```proto
|
|
2147
|
+
* message MyMap {
|
|
2148
|
+
* // The field `value` must have at most 3 key-value pairs.
|
|
2149
|
+
* map<string, string> value = 1 [(buf.validate.field).map.max_pairs = 3];
|
|
2150
|
+
* }
|
|
2151
|
+
* ```
|
|
2152
|
+
*
|
|
2153
|
+
* @generated from field: optional uint64 max_pairs = 2;
|
|
2154
|
+
*/
|
|
2155
|
+
maxPairs;
|
|
2156
|
+
/**
|
|
2157
|
+
* Specifies the constraints to be applied to each key in the field.
|
|
2158
|
+
*
|
|
2159
|
+
* ```proto
|
|
2160
|
+
* message MyMap {
|
|
2161
|
+
* // The keys in the field `value` must follow the specified constraints.
|
|
2162
|
+
* map<string, string> value = 1 [(buf.validate.field).map.keys = {
|
|
2163
|
+
* string: {
|
|
2164
|
+
* min_len: 3
|
|
2165
|
+
* max_len: 10
|
|
2166
|
+
* }
|
|
2167
|
+
* }];
|
|
2168
|
+
* }
|
|
2169
|
+
* ```
|
|
2170
|
+
*
|
|
2171
|
+
* @generated from field: optional buf.validate.FieldConstraints keys = 4;
|
|
2172
|
+
*/
|
|
2173
|
+
keys;
|
|
2174
|
+
/**
|
|
2175
|
+
* Specifies the constraints to be applied to the value of each key in the
|
|
2176
|
+
* field. Message values will still have their validations evaluated unless
|
|
2177
|
+
* skip is specified here.
|
|
2178
|
+
*
|
|
2179
|
+
* ```proto
|
|
2180
|
+
* message MyMap {
|
|
2181
|
+
* // The values in the field `value` must follow the specified constraints.
|
|
2182
|
+
* map<string, string> value = 1 [(buf.validate.field).map.values = {
|
|
2183
|
+
* string: {
|
|
2184
|
+
* min_len: 5
|
|
2185
|
+
* max_len: 20
|
|
2186
|
+
* }
|
|
2187
|
+
* }];
|
|
2188
|
+
* }
|
|
2189
|
+
* ```
|
|
2190
|
+
*
|
|
2191
|
+
* @generated from field: optional buf.validate.FieldConstraints values = 5;
|
|
2192
|
+
*/
|
|
2193
|
+
values;
|
|
2194
|
+
constructor(data) {
|
|
2195
|
+
super();
|
|
2196
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
2197
|
+
}
|
|
2198
|
+
static runtime = protobuf_1.proto3;
|
|
2199
|
+
static typeName = "buf.validate.MapRules";
|
|
2200
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
2201
|
+
{ no: 1, name: "min_pairs", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
2202
|
+
{ no: 2, name: "max_pairs", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
2203
|
+
{ no: 4, name: "keys", kind: "message", T: FieldConstraints, opt: true },
|
|
2204
|
+
{ no: 5, name: "values", kind: "message", T: FieldConstraints, opt: true },
|
|
2205
|
+
]);
|
|
2206
|
+
static fromBinary(bytes, options) {
|
|
2207
|
+
return new MapRules().fromBinary(bytes, options);
|
|
2208
|
+
}
|
|
2209
|
+
static fromJson(jsonValue, options) {
|
|
2210
|
+
return new MapRules().fromJson(jsonValue, options);
|
|
2211
|
+
}
|
|
2212
|
+
static fromJsonString(jsonString, options) {
|
|
2213
|
+
return new MapRules().fromJsonString(jsonString, options);
|
|
2214
|
+
}
|
|
2215
|
+
static equals(a, b) {
|
|
2216
|
+
return protobuf_1.proto3.util.equals(MapRules, a, b);
|
|
2217
|
+
}
|
|
2218
|
+
}
|
|
2219
|
+
exports.MapRules = MapRules;
|
|
2220
|
+
/**
|
|
2221
|
+
* AnyRules describe constraints applied exclusively to the `google.protobuf.Any` well-known type.
|
|
2222
|
+
*
|
|
2223
|
+
* @generated from message buf.validate.AnyRules
|
|
2224
|
+
*/
|
|
2225
|
+
class AnyRules extends protobuf_1.Message {
|
|
2226
|
+
/**
|
|
2227
|
+
* `in` requires the field's `type_url` to be equal to one of the
|
|
2228
|
+
* specified values. If it doesn't match any of the specified values, an error
|
|
2229
|
+
* message is generated.
|
|
2230
|
+
*
|
|
2231
|
+
* ```proto
|
|
2232
|
+
* message MyAny {
|
|
2233
|
+
* // The `value` field must have a `type_url` equal to one of the specified values.
|
|
2234
|
+
* google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]];
|
|
2235
|
+
* }
|
|
2236
|
+
* ```
|
|
2237
|
+
*
|
|
2238
|
+
* @generated from field: repeated string in = 2;
|
|
2239
|
+
*/
|
|
2240
|
+
in = [];
|
|
2241
|
+
/**
|
|
2242
|
+
* 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.
|
|
2243
|
+
*
|
|
2244
|
+
* ```proto
|
|
2245
|
+
* message MyAny {
|
|
2246
|
+
* // The field `value` must not have a `type_url` equal to any of the specified values.
|
|
2247
|
+
* google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]];
|
|
2248
|
+
* }
|
|
2249
|
+
* ```
|
|
2250
|
+
*
|
|
2251
|
+
* @generated from field: repeated string not_in = 3;
|
|
2252
|
+
*/
|
|
2253
|
+
notIn = [];
|
|
2254
|
+
constructor(data) {
|
|
2255
|
+
super();
|
|
2256
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
2257
|
+
}
|
|
2258
|
+
static runtime = protobuf_1.proto3;
|
|
2259
|
+
static typeName = "buf.validate.AnyRules";
|
|
2260
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
2261
|
+
{ no: 2, name: "in", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
2262
|
+
{ no: 3, name: "not_in", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
2263
|
+
]);
|
|
2264
|
+
static fromBinary(bytes, options) {
|
|
2265
|
+
return new AnyRules().fromBinary(bytes, options);
|
|
2266
|
+
}
|
|
2267
|
+
static fromJson(jsonValue, options) {
|
|
2268
|
+
return new AnyRules().fromJson(jsonValue, options);
|
|
2269
|
+
}
|
|
2270
|
+
static fromJsonString(jsonString, options) {
|
|
2271
|
+
return new AnyRules().fromJsonString(jsonString, options);
|
|
2272
|
+
}
|
|
2273
|
+
static equals(a, b) {
|
|
2274
|
+
return protobuf_1.proto3.util.equals(AnyRules, a, b);
|
|
2275
|
+
}
|
|
2276
|
+
}
|
|
2277
|
+
exports.AnyRules = AnyRules;
|
|
2278
|
+
/**
|
|
2279
|
+
* DurationRules describe the constraints applied exclusively to the `google.protobuf.Duration` well-known type.
|
|
2280
|
+
*
|
|
2281
|
+
* @generated from message buf.validate.DurationRules
|
|
2282
|
+
*/
|
|
2283
|
+
class DurationRules extends protobuf_1.Message {
|
|
2284
|
+
/**
|
|
2285
|
+
* `const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly.
|
|
2286
|
+
* If the field's value deviates from the specified value, an error message
|
|
2287
|
+
* will be generated.
|
|
2288
|
+
*
|
|
2289
|
+
* ```proto
|
|
2290
|
+
* message MyDuration {
|
|
2291
|
+
* // value must equal 5s
|
|
2292
|
+
* google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"];
|
|
2293
|
+
* }
|
|
2294
|
+
* ```
|
|
2295
|
+
*
|
|
2296
|
+
* @generated from field: optional google.protobuf.Duration const = 2;
|
|
2297
|
+
*/
|
|
2298
|
+
const;
|
|
2299
|
+
/**
|
|
2300
|
+
* @generated from oneof buf.validate.DurationRules.less_than
|
|
2301
|
+
*/
|
|
2302
|
+
lessThan = { case: undefined };
|
|
2303
|
+
/**
|
|
2304
|
+
* @generated from oneof buf.validate.DurationRules.greater_than
|
|
2305
|
+
*/
|
|
2306
|
+
greaterThan = { case: undefined };
|
|
2307
|
+
/**
|
|
2308
|
+
* `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
|
|
2309
|
+
* If the field's value doesn't correspond to any of the specified values,
|
|
2310
|
+
* an error message will be generated.
|
|
2311
|
+
*
|
|
2312
|
+
* ```proto
|
|
2313
|
+
* message MyDuration {
|
|
2314
|
+
* // value must be in list [1s, 2s, 3s]
|
|
2315
|
+
* google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
|
|
2316
|
+
* }
|
|
2317
|
+
* ```
|
|
2318
|
+
*
|
|
2319
|
+
* @generated from field: repeated google.protobuf.Duration in = 7;
|
|
2320
|
+
*/
|
|
2321
|
+
in = [];
|
|
2322
|
+
/**
|
|
2323
|
+
* `not_in` denotes that the field must not be equal to
|
|
2324
|
+
* any of the specified values of the `google.protobuf.Duration` type.
|
|
2325
|
+
* If the field's value matches any of these values, an error message will be
|
|
2326
|
+
* generated.
|
|
2327
|
+
*
|
|
2328
|
+
* ```proto
|
|
2329
|
+
* message MyDuration {
|
|
2330
|
+
* // value must not be in list [1s, 2s, 3s]
|
|
2331
|
+
* google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
|
|
2332
|
+
* }
|
|
2333
|
+
* ```
|
|
2334
|
+
*
|
|
2335
|
+
* @generated from field: repeated google.protobuf.Duration not_in = 8;
|
|
2336
|
+
*/
|
|
2337
|
+
notIn = [];
|
|
2338
|
+
constructor(data) {
|
|
2339
|
+
super();
|
|
2340
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
2341
|
+
}
|
|
2342
|
+
static runtime = protobuf_1.proto3;
|
|
2343
|
+
static typeName = "buf.validate.DurationRules";
|
|
2344
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
2345
|
+
{ no: 2, name: "const", kind: "message", T: protobuf_1.Duration, opt: true },
|
|
2346
|
+
{ no: 3, name: "lt", kind: "message", T: protobuf_1.Duration, oneof: "less_than" },
|
|
2347
|
+
{ no: 4, name: "lte", kind: "message", T: protobuf_1.Duration, oneof: "less_than" },
|
|
2348
|
+
{ no: 5, name: "gt", kind: "message", T: protobuf_1.Duration, oneof: "greater_than" },
|
|
2349
|
+
{ no: 6, name: "gte", kind: "message", T: protobuf_1.Duration, oneof: "greater_than" },
|
|
2350
|
+
{ no: 7, name: "in", kind: "message", T: protobuf_1.Duration, repeated: true },
|
|
2351
|
+
{ no: 8, name: "not_in", kind: "message", T: protobuf_1.Duration, repeated: true },
|
|
2352
|
+
]);
|
|
2353
|
+
static fromBinary(bytes, options) {
|
|
2354
|
+
return new DurationRules().fromBinary(bytes, options);
|
|
2355
|
+
}
|
|
2356
|
+
static fromJson(jsonValue, options) {
|
|
2357
|
+
return new DurationRules().fromJson(jsonValue, options);
|
|
2358
|
+
}
|
|
2359
|
+
static fromJsonString(jsonString, options) {
|
|
2360
|
+
return new DurationRules().fromJsonString(jsonString, options);
|
|
2361
|
+
}
|
|
2362
|
+
static equals(a, b) {
|
|
2363
|
+
return protobuf_1.proto3.util.equals(DurationRules, a, b);
|
|
2364
|
+
}
|
|
2365
|
+
}
|
|
2366
|
+
exports.DurationRules = DurationRules;
|
|
2367
|
+
/**
|
|
2368
|
+
* TimestampRules describe the constraints applied exclusively to the `google.protobuf.Timestamp` well-known type.
|
|
2369
|
+
*
|
|
2370
|
+
* @generated from message buf.validate.TimestampRules
|
|
2371
|
+
*/
|
|
2372
|
+
class TimestampRules extends protobuf_1.Message {
|
|
2373
|
+
/**
|
|
2374
|
+
* `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.
|
|
2375
|
+
*
|
|
2376
|
+
* ```proto
|
|
2377
|
+
* message MyTimestamp {
|
|
2378
|
+
* // value must equal 2023-05-03T10:00:00Z
|
|
2379
|
+
* google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];
|
|
2380
|
+
* }
|
|
2381
|
+
* ```
|
|
2382
|
+
*
|
|
2383
|
+
* @generated from field: optional google.protobuf.Timestamp const = 2;
|
|
2384
|
+
*/
|
|
2385
|
+
const;
|
|
2386
|
+
/**
|
|
2387
|
+
* @generated from oneof buf.validate.TimestampRules.less_than
|
|
2388
|
+
*/
|
|
2389
|
+
lessThan = { case: undefined };
|
|
2390
|
+
/**
|
|
2391
|
+
* @generated from oneof buf.validate.TimestampRules.greater_than
|
|
2392
|
+
*/
|
|
2393
|
+
greaterThan = { case: undefined };
|
|
2394
|
+
/**
|
|
2395
|
+
* `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.
|
|
2396
|
+
*
|
|
2397
|
+
* ```proto
|
|
2398
|
+
* message MyTimestamp {
|
|
2399
|
+
* // value must be within 1 hour of now
|
|
2400
|
+
* google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
|
|
2401
|
+
* }
|
|
2402
|
+
* ```
|
|
2403
|
+
*
|
|
2404
|
+
* @generated from field: optional google.protobuf.Duration within = 9;
|
|
2405
|
+
*/
|
|
2406
|
+
within;
|
|
2407
|
+
constructor(data) {
|
|
2408
|
+
super();
|
|
2409
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
2410
|
+
}
|
|
2411
|
+
static runtime = protobuf_1.proto3;
|
|
2412
|
+
static typeName = "buf.validate.TimestampRules";
|
|
2413
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
2414
|
+
{ no: 2, name: "const", kind: "message", T: protobuf_1.Timestamp, opt: true },
|
|
2415
|
+
{ no: 3, name: "lt", kind: "message", T: protobuf_1.Timestamp, oneof: "less_than" },
|
|
2416
|
+
{ no: 4, name: "lte", kind: "message", T: protobuf_1.Timestamp, oneof: "less_than" },
|
|
2417
|
+
{ no: 7, name: "lt_now", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "less_than" },
|
|
2418
|
+
{ no: 5, name: "gt", kind: "message", T: protobuf_1.Timestamp, oneof: "greater_than" },
|
|
2419
|
+
{ no: 6, name: "gte", kind: "message", T: protobuf_1.Timestamp, oneof: "greater_than" },
|
|
2420
|
+
{ no: 8, name: "gt_now", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "greater_than" },
|
|
2421
|
+
{ no: 9, name: "within", kind: "message", T: protobuf_1.Duration, opt: true },
|
|
2422
|
+
]);
|
|
2423
|
+
static fromBinary(bytes, options) {
|
|
2424
|
+
return new TimestampRules().fromBinary(bytes, options);
|
|
2425
|
+
}
|
|
2426
|
+
static fromJson(jsonValue, options) {
|
|
2427
|
+
return new TimestampRules().fromJson(jsonValue, options);
|
|
2428
|
+
}
|
|
2429
|
+
static fromJsonString(jsonString, options) {
|
|
2430
|
+
return new TimestampRules().fromJsonString(jsonString, options);
|
|
2431
|
+
}
|
|
2432
|
+
static equals(a, b) {
|
|
2433
|
+
return protobuf_1.proto3.util.equals(TimestampRules, a, b);
|
|
2434
|
+
}
|
|
2435
|
+
}
|
|
2436
|
+
exports.TimestampRules = TimestampRules;
|
|
2437
|
+
//# sourceMappingURL=validate_pb.js.map
|