timev1

package
v1.36.10-2024102212432... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: unknown License: MIT Imports: 4 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_time_v1_time_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Time

type Time 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
}

Time

source: https://github.com/protocolbuffers/protobuf/blob/b81c127e94d953aa9be5c9f00a1ad323552bae0e/src/google/protobuf/timestamp.proto

func (*Time) GetNanos

func (x *Time) GetNanos() int32

func (*Time) GetSeconds

func (x *Time) GetSeconds() int64

func (*Time) ProtoMessage

func (*Time) ProtoMessage()

func (*Time) ProtoReflect

func (x *Time) ProtoReflect() protoreflect.Message

func (*Time) Reset

func (x *Time) Reset()

func (*Time) SetNanos

func (x *Time) SetNanos(v int32)

func (*Time) SetSeconds

func (x *Time) SetSeconds(v int64)

func (*Time) String

func (x *Time) String() string

type Time_builder

type Time_builder 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
	// 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
	// contains filtered or unexported fields
}

func (Time_builder) Build

func (b0 Time_builder) Build() *Time

Source Files

  • time.pb.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL