Documentation ¶
Index ¶
- Variables
- type Timestamp
- func (x *Timestamp) AsTime() time.Time
- func (x *Timestamp) CheckValid() error
- func (x *Timestamp) GetNanos() int32
- func (x *Timestamp) GetSeconds() int64
- func (x *Timestamp) IsValid() bool
- func (m *Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Timestamp) MarshalToVT(dAtA []byte) (int, error)
- func (m *Timestamp) MarshalVT() (dAtA []byte, err error)
- func (x *Timestamp) ProtoReflect() protoreflect.Message
- func (m *Timestamp) SizeVT() (n int)
- func (m *Timestamp) UnmarshalVT(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Timestamp ¶
type Timestamp struct { // Represents seconds of UTC time since Unix epoch // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to // 9999-12-31T23:59:59Z inclusive. Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` // Non-negative fractions of a second at nanosecond resolution. Negative // second values with fractions must still have non-negative nanos values // that count forward in time. Must be from 0 to 999,999,999 // inclusive. Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` // contains filtered or unexported fields }
func (*Timestamp) CheckValid ¶
CheckValid returns an error if the timestamp is invalid. In particular, it checks whether the value represents a date that is in the range of 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive. An error is reported for a nil Timestamp.
func (*Timestamp) GetSeconds ¶
func (*Timestamp) IsValid ¶
IsValid reports whether the timestamp is valid. It is equivalent to CheckValid == nil.
func (*Timestamp) MarshalToSizedBufferVT ¶
func (*Timestamp) ProtoReflect ¶
func (x *Timestamp) ProtoReflect() protoreflect.Message
func (*Timestamp) UnmarshalVT ¶
Click to show internal directories.
Click to hide internal directories.