genproto: google.golang.org/genproto/googleapis/type/timeofday Index | Files

package timeofday

import "google.golang.org/genproto/googleapis/type/timeofday"

Index

Package Files

timeofday.pb.go

Variables

var File_google_type_timeofday_proto protoreflect.FileDescriptor

type TimeOfDay Uses

type TimeOfDay struct {

    // Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
    // to allow the value "24:00:00" for scenarios like business closing time.
    Hours int32 `protobuf:"varint,1,opt,name=hours,proto3" json:"hours,omitempty"`
    // Minutes of hour of day. Must be from 0 to 59.
    Minutes int32 `protobuf:"varint,2,opt,name=minutes,proto3" json:"minutes,omitempty"`
    // Seconds of minutes of the time. Must normally be from 0 to 59. An API may
    // allow the value 60 if it allows leap-seconds.
    Seconds int32 `protobuf:"varint,3,opt,name=seconds,proto3" json:"seconds,omitempty"`
    // Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
    Nanos int32 `protobuf:"varint,4,opt,name=nanos,proto3" json:"nanos,omitempty"`
    // contains filtered or unexported fields
}

Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are [google.type.Date][google.type.Date] and `google.protobuf.Timestamp`.

func (*TimeOfDay) Descriptor Uses

func (*TimeOfDay) Descriptor() ([]byte, []int)

Deprecated: Use TimeOfDay.ProtoReflect.Descriptor instead.

func (*TimeOfDay) GetHours Uses

func (x *TimeOfDay) GetHours() int32

func (*TimeOfDay) GetMinutes Uses

func (x *TimeOfDay) GetMinutes() int32

func (*TimeOfDay) GetNanos Uses

func (x *TimeOfDay) GetNanos() int32

func (*TimeOfDay) GetSeconds Uses

func (x *TimeOfDay) GetSeconds() int32

func (*TimeOfDay) ProtoMessage Uses

func (*TimeOfDay) ProtoMessage()

func (*TimeOfDay) ProtoReflect Uses

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

func (*TimeOfDay) Reset Uses

func (x *TimeOfDay) Reset()

func (*TimeOfDay) String Uses

func (x *TimeOfDay) String() string

Package timeofday imports 5 packages (graph) and is imported by 14 packages. Updated 2020-06-12. Refresh now. Tools for package owners.