evmos.proto.autogen.py.cosmos.orm.query.v1alpha1
Classes
|
GetRequest is the Query/Get request type. |
|
GetResponse is the Query/Get response type. |
|
IndexValue represents the value of a field in an ORM index expression. |
|
ListRequest is the Query/List request type. |
|
Prefix specifies the arguments to a prefix query. |
|
Range specifies the arguments to a range query. |
|
ListResponse is the Query/List response type. |
|
- class evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.GetRequest(message_name: str = <object object>, index: str = <object object>, values: ~typing.List[~evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.IndexValue] = <object object>)[source]
Bases:
MessageGetRequest is the Query/Get request type.
- index: str = <object object>
index is the index fields expression used in orm definitions. If it is empty, the table’s primary key is assumed. If it is non-empty, it must refer to an unique index.
- message_name: str = <object object>
message_name is the fully-qualified message name of the ORM table being queried.
- values: List[IndexValue] = <object object>
values are the values of the fields corresponding to the requested index. There must be as many values provided as there are fields in the index and these values must correspond to the index field types.
- class evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.GetResponse(result: ~betterproto.lib.google.protobuf.Any = <object object>)[source]
Bases:
MessageGetResponse is the Query/Get response type.
- result: Any = <object object>
result is the result of the get query. If no value is found, the gRPC status code NOT_FOUND will be returned.
- class evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.IndexValue(uint: int = <object object>, int: int = <object object>, str: str = <object object>, bytes: bytes = <object object>, enum: str = <object object>, bool: bool = <object object>, timestamp: ~datetime.datetime = <object object>, duration: ~datetime.timedelta = <object object>)[source]
Bases:
MessageIndexValue represents the value of a field in an ORM index expression.
- class evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.ListRequest(message_name: str = <object object>, index: str = <object object>, prefix: ~evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.ListRequestPrefix = <object object>, range: ~evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.ListRequestRange = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageRequest = <object object>)[source]
Bases:
MessageListRequest is the Query/List request type.
- index: str = <object object>
index is the index fields expression used in orm definitions. If it is empty, the table’s primary key is assumed.
- message_name: str = <object object>
message_name is the fully-qualified message name of the ORM table being queried.
- pagination: PageRequest = <object object>
pagination is the pagination request.
- prefix: ListRequestPrefix = <object object>
prefix defines a prefix query.
- range: ListRequestRange = <object object>
range defines a range query.
- class evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.ListRequestPrefix(values: ~typing.List[~evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.IndexValue] = <object object>)[source]
Bases:
MessagePrefix specifies the arguments to a prefix query.
- values: List[IndexValue] = <object object>
values specifies the index values for the prefix query. It is valid to special a partial prefix with fewer values than the number of fields in the index.
- class evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.ListRequestRange(start: ~typing.List[~evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.IndexValue] = <object object>, end: ~typing.List[~evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.IndexValue] = <object object>)[source]
Bases:
MessageRange specifies the arguments to a range query.
- end: List[IndexValue] = <object object>
end specifies the inclusive ending index values for the range query. It is valid to provide fewer values than the number of fields in the index.
- start: List[IndexValue] = <object object>
start specifies the starting index values for the range query. It is valid to provide fewer values than the number of fields in the index.
- class evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.ListResponse(results: ~typing.List[~betterproto.lib.google.protobuf.Any] = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageResponse = <object object>)[source]
Bases:
MessageListResponse is the Query/List response type.
- pagination: PageResponse = <object object>
pagination is the pagination response.
- class evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.QueryBase[source]
Bases:
ServiceBase- async get(get_request: GetRequest) GetResponse[source]
- async list(list_request: ListRequest) ListResponse[source]
- class evmos.proto.autogen.py.cosmos.orm.query.v1alpha1.QueryStub(channel: Channel, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: Mapping[str, str | bytes] | Collection[Tuple[str, str | bytes]] | None = None)[source]
Bases:
ServiceStub- async get(get_request: GetRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) GetResponse[source]
- async list(list_request: ListRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) ListResponse[source]