Documentation
¶
Index ¶
- Variables
- type Pagination
- type TimeRange
- func (*TimeRange) Descriptor() ([]byte, []int)deprecated
- func (x *TimeRange) GetFrom() *timestamppb.Timestamp
- func (x *TimeRange) GetTo() *timestamppb.Timestamp
- func (*TimeRange) ProtoMessage()
- func (x *TimeRange) ProtoReflect() protoreflect.Message
- func (x *TimeRange) Reset()
- func (x *TimeRange) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_bricks_v1_common_pagination_proto protoreflect.FileDescriptor
View Source
var File_bricks_v1_common_timerange_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Pagination ¶
type Pagination struct {
// last_id indicates the id of the last seen record, to indicate where the viewer currently is on the list. If unset,
// should default to returning the first record according to the sort
LastId *string `protobuf:"bytes,1,opt,name=last_id,json=lastId,proto3,oneof" json:"last_id,omitempty"`
// count indicates how many records to return
Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
// contains filtered or unexported fields
}
Pagination defines how to select a portion of a large data set for a given request.
func (*Pagination) Descriptor
deprecated
func (*Pagination) Descriptor() ([]byte, []int)
Deprecated: Use Pagination.ProtoReflect.Descriptor instead.
func (*Pagination) GetCount ¶
func (x *Pagination) GetCount() uint32
func (*Pagination) GetLastId ¶
func (x *Pagination) GetLastId() string
func (*Pagination) ProtoMessage ¶
func (*Pagination) ProtoMessage()
func (*Pagination) ProtoReflect ¶
func (x *Pagination) ProtoReflect() protoreflect.Message
func (*Pagination) Reset ¶
func (x *Pagination) Reset()
func (*Pagination) String ¶
func (x *Pagination) String() string
type TimeRange ¶
type TimeRange struct {
From *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=from,proto3,oneof" json:"from,omitempty"`
To *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=to,proto3,oneof" json:"to,omitempty"`
// contains filtered or unexported fields
}
TimeRange describes a time period between two dates. Both parameters are optional - by convention, not providing a parameter for either value should indicate that end of the range is the start/end of time as appropriate. Uses of this message should indicate the type of interval this describes - for example, [closed, open) would indicate that `from` was in the range, and `to` would be out of the range.
func (*TimeRange) Descriptor
deprecated
func (*TimeRange) GetFrom ¶
func (x *TimeRange) GetFrom() *timestamppb.Timestamp
func (*TimeRange) GetTo ¶
func (x *TimeRange) GetTo() *timestamppb.Timestamp
func (*TimeRange) ProtoMessage ¶
func (*TimeRange) ProtoMessage()
func (*TimeRange) ProtoReflect ¶
func (x *TimeRange) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.