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