kubernetes/vendor/google.golang.org/protobuf/types/known/durationpb/duration.pb.go

type Duration

// New constructs a new Duration from the provided time.Duration.
func New(d time.Duration) *Duration {}

// AsDuration converts x to a time.Duration,
// returning the closest duration value in the event of overflow.
func (x *Duration) AsDuration() time.Duration {}

// IsValid reports whether the duration is valid.
// It is equivalent to CheckValid == nil.
func (x *Duration) IsValid() bool {}

// CheckValid returns an error if the duration is invalid.
// In particular, it checks whether the value is within the range of
// -10000 years to +10000 years inclusive.
// An error is reported for a nil Duration.
func (x *Duration) CheckValid() error {}

const _

const invalidNil

const invalidUnderflow

const invalidOverflow

const invalidNanosRange

const invalidNanosSign

func (x *Duration) check() uint {}

func (x *Duration) Reset() {}

func (x *Duration) String() string {}

func (*Duration) ProtoMessage() {}

func (x *Duration) ProtoReflect() protoreflect.Message {}

// Deprecated: Use Duration.ProtoReflect.Descriptor instead.
func (*Duration) Descriptor() ([]byte, []int) {}

func (x *Duration) GetSeconds() int64 {}

func (x *Duration) GetNanos() int32 {}

var File_google_protobuf_duration_proto

var file_google_protobuf_duration_proto_rawDesc

var file_google_protobuf_duration_proto_rawDescOnce

var file_google_protobuf_duration_proto_rawDescData

func file_google_protobuf_duration_proto_rawDescGZIP() []byte {}

var file_google_protobuf_duration_proto_msgTypes

var file_google_protobuf_duration_proto_goTypes

var file_google_protobuf_duration_proto_depIdxs

func init() {}

func file_google_protobuf_duration_proto_init() {}