@grpc/grpc-js
Version:
gRPC Library for Node - pure JS implementation
84 lines (83 loc) • 2.59 kB
TypeScript
import type { Long } from '@grpc/proto-loader';
/**
* SInt64Rules describes the constraints applied to `sint64` values
*/
export interface SInt64Rules {
/**
* Const specifies that this field must be exactly the specified value
*/
'const'?: (number | string | Long);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt'?: (number | string | Long);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte'?: (number | string | Long);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt'?: (number | string | Long);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte'?: (number | string | Long);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in'?: (number | string | Long)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in'?: (number | string | Long)[];
}
/**
* SInt64Rules describes the constraints applied to `sint64` values
*/
export interface SInt64Rules__Output {
/**
* Const specifies that this field must be exactly the specified value
*/
'const': (string);
/**
* Lt specifies that this field must be less than the specified value,
* exclusive
*/
'lt': (string);
/**
* Lte specifies that this field must be less than or equal to the
* specified value, inclusive
*/
'lte': (string);
/**
* Gt specifies that this field must be greater than the specified value,
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
* range is reversed.
*/
'gt': (string);
/**
* Gte specifies that this field must be greater than or equal to the
* specified value, inclusive. If the value of Gte is larger than a
* specified Lt or Lte, the range is reversed.
*/
'gte': (string);
/**
* In specifies that this field must be equal to one of the specified
* values
*/
'in': (string)[];
/**
* NotIn specifies that this field cannot be equal to one of the specified
* values
*/
'not_in': (string)[];
}