genproto: Index | Files

package date

import ""


Package Files


type Date Uses

type Date struct {
    // Year of date. Must be from 1 to 9999, or 0 if specifying a date without
    // a year.
    Year int32 `protobuf:"varint,1,opt,name=year,proto3" json:"year,omitempty"`
    // Month of year. Must be from 1 to 12, or 0 if specifying a year without a
    // month and day.
    Month int32 `protobuf:"varint,2,opt,name=month,proto3" json:"month,omitempty"`
    // Day of month. Must be from 1 to 31 and valid for the year and month, or 0
    // if specifying a year by itself or a year and month where the day is not
    // significant.
    Day                  int32    `protobuf:"varint,3,opt,name=day,proto3" json:"day,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`

Represents a whole or partial calendar date, e.g. a birthday. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. This can represent:

* A full date, with non-zero year, month and day values * A month and day value, with a zero year, e.g. an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, e.g. a credit card expiration date

Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and `google.protobuf.Timestamp`.

func (*Date) Descriptor Uses

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

func (*Date) GetDay Uses

func (m *Date) GetDay() int32

func (*Date) GetMonth Uses

func (m *Date) GetMonth() int32

func (*Date) GetYear Uses

func (m *Date) GetYear() int32

func (*Date) ProtoMessage Uses

func (*Date) ProtoMessage()

func (*Date) Reset Uses

func (m *Date) Reset()

func (*Date) String Uses

func (m *Date) String() string

func (*Date) XXX_DiscardUnknown Uses

func (m *Date) XXX_DiscardUnknown()

func (*Date) XXX_Marshal Uses

func (m *Date) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Date) XXX_Merge Uses

func (m *Date) XXX_Merge(src proto.Message)

func (*Date) XXX_Size Uses

func (m *Date) XXX_Size() int

func (*Date) XXX_Unmarshal Uses

func (m *Date) XXX_Unmarshal(b []byte) error

Package date imports 3 packages (graph) and is imported by 6 packages. Updated 2019-10-15. Refresh now. Tools for package owners.