Spaces:
Paused
Paused
Download node_modules/@grpc/grpc-js/src/generated/validate/MapRules.ts from Huzaifa1313/prof002313: direct link, hf CLI and curl.
- Browser
- Download file 2.11 kB
-
https://huggingface.co/spaces/Huzaifa1313/prof002313/resolve/main/node_modules/%40grpc/grpc-js/src/generated/validate/MapRules.ts
- Command line
-
hf download hf://spaces/Huzaifa1313/prof002313/node_modules/@grpc/grpc-js/src/generated/validate/MapRules.ts
-
curl -L -o MapRules.ts https://huggingface.co/spaces/Huzaifa1313/prof002313/resolve/main/node_modules/%40grpc/grpc-js/src/generated/validate/MapRules.ts
2.11 kB
| // Original file: proto/protoc-gen-validate/validate/validate.proto | |
| import type { FieldRules as _validate_FieldRules, FieldRules__Output as _validate_FieldRules__Output } from '../validate/FieldRules'; | |
| import type { Long } from '@grpc/proto-loader'; | |
| /** | |
| * MapRules describe the constraints applied to `map` values | |
| */ | |
| export interface MapRules { | |
| /** | |
| * MinPairs specifies that this field must have the specified number of | |
| * KVs at a minimum | |
| */ | |
| 'min_pairs'?: (number | string | Long); | |
| /** | |
| * MaxPairs specifies that this field must have the specified number of | |
| * KVs at a maximum | |
| */ | |
| 'max_pairs'?: (number | string | Long); | |
| /** | |
| * NoSparse specifies values in this field cannot be unset. This only | |
| * applies to map's with message value types. | |
| */ | |
| 'no_sparse'?: (boolean); | |
| /** | |
| * Keys specifies the constraints to be applied to each key in the field. | |
| */ | |
| 'keys'?: (_validate_FieldRules | null); | |
| /** | |
| * Values specifies the constraints to be applied to the value of each key | |
| * in the field. Message values will still have their validations evaluated | |
| * unless skip is specified here. | |
| */ | |
| 'values'?: (_validate_FieldRules | null); | |
| } | |
| /** | |
| * MapRules describe the constraints applied to `map` values | |
| */ | |
| export interface MapRules__Output { | |
| /** | |
| * MinPairs specifies that this field must have the specified number of | |
| * KVs at a minimum | |
| */ | |
| 'min_pairs': (string); | |
| /** | |
| * MaxPairs specifies that this field must have the specified number of | |
| * KVs at a maximum | |
| */ | |
| 'max_pairs': (string); | |
| /** | |
| * NoSparse specifies values in this field cannot be unset. This only | |
| * applies to map's with message value types. | |
| */ | |
| 'no_sparse': (boolean); | |
| /** | |
| * Keys specifies the constraints to be applied to each key in the field. | |
| */ | |
| 'keys': (_validate_FieldRules__Output | null); | |
| /** | |
| * Values specifies the constraints to be applied to the value of each key | |
| * in the field. Message values will still have their validations evaluated | |
| * unless skip is specified here. | |
| */ | |
| 'values': (_validate_FieldRules__Output | null); | |
| } | |