Lines Matching defs:Duration
148 type Duration struct { struct
149 state protoimpl.MessageState
150 sizeCache protoimpl.SizeCache
151 unknownFields protoimpl.UnknownFields
156 Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"`
163 Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"`
167 func New(d time.Duration) *Duration {
176 func (x *Duration) AsDuration() time.Duration {
197 func (x *Duration) IsValid() bool {
205 func (x *Duration) CheckValid() error {
231 func (x *Duration) check() uint {
251 func (x *Duration) Reset() {
260 func (x *Duration) String() string {
264 func (*Duration) ProtoMessage() {}
266 func (x *Duration) ProtoReflect() protoreflect.Message {
279 func (*Duration) Descriptor() ([]byte, []int) {
283 func (x *Duration) GetSeconds() int64 {
290 func (x *Duration) GetNanos() int32 {