1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/type/date.proto
3
4package date
5
6import (
7	fmt "fmt"
8	math "math"
9
10	proto "github.com/golang/protobuf/proto"
11)
12
13// Reference imports to suppress errors if they are not otherwise used.
14var _ = proto.Marshal
15var _ = fmt.Errorf
16var _ = math.Inf
17
18// This is a compile-time assertion to ensure that this generated file
19// is compatible with the proto package it is being compiled against.
20// A compilation error at this line likely means your copy of the
21// proto package needs to be updated.
22const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
23
24// Represents a whole or partial calendar date, e.g. a birthday. The time of day
25// and time zone are either specified elsewhere or are not significant. The date
26// is relative to the Proleptic Gregorian Calendar. This can represent:
27//
28// * A full date, with non-zero year, month and day values
29// * A month and day value, with a zero year, e.g. an anniversary
30// * A year on its own, with zero month and day values
31// * A year and month value, with a zero day, e.g. a credit card expiration date
32//
33// Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and `google.protobuf.Timestamp`.
34type Date struct {
35	// Year of date. Must be from 1 to 9999, or 0 if specifying a date without
36	// a year.
37	Year int32 `protobuf:"varint,1,opt,name=year,proto3" json:"year,omitempty"`
38	// Month of year. Must be from 1 to 12, or 0 if specifying a year without a
39	// month and day.
40	Month int32 `protobuf:"varint,2,opt,name=month,proto3" json:"month,omitempty"`
41	// Day of month. Must be from 1 to 31 and valid for the year and month, or 0
42	// if specifying a year by itself or a year and month where the day is not
43	// significant.
44	Day                  int32    `protobuf:"varint,3,opt,name=day,proto3" json:"day,omitempty"`
45	XXX_NoUnkeyedLiteral struct{} `json:"-"`
46	XXX_unrecognized     []byte   `json:"-"`
47	XXX_sizecache        int32    `json:"-"`
48}
49
50func (m *Date) Reset()         { *m = Date{} }
51func (m *Date) String() string { return proto.CompactTextString(m) }
52func (*Date) ProtoMessage()    {}
53func (*Date) Descriptor() ([]byte, []int) {
54	return fileDescriptor_92c30699df886e3f, []int{0}
55}
56
57func (m *Date) XXX_Unmarshal(b []byte) error {
58	return xxx_messageInfo_Date.Unmarshal(m, b)
59}
60func (m *Date) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
61	return xxx_messageInfo_Date.Marshal(b, m, deterministic)
62}
63func (m *Date) XXX_Merge(src proto.Message) {
64	xxx_messageInfo_Date.Merge(m, src)
65}
66func (m *Date) XXX_Size() int {
67	return xxx_messageInfo_Date.Size(m)
68}
69func (m *Date) XXX_DiscardUnknown() {
70	xxx_messageInfo_Date.DiscardUnknown(m)
71}
72
73var xxx_messageInfo_Date proto.InternalMessageInfo
74
75func (m *Date) GetYear() int32 {
76	if m != nil {
77		return m.Year
78	}
79	return 0
80}
81
82func (m *Date) GetMonth() int32 {
83	if m != nil {
84		return m.Month
85	}
86	return 0
87}
88
89func (m *Date) GetDay() int32 {
90	if m != nil {
91		return m.Day
92	}
93	return 0
94}
95
96func init() {
97	proto.RegisterType((*Date)(nil), "google.type.Date")
98}
99
100func init() { proto.RegisterFile("google/type/date.proto", fileDescriptor_92c30699df886e3f) }
101
102var fileDescriptor_92c30699df886e3f = []byte{
103	// 172 bytes of a gzipped FileDescriptorProto
104	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4b, 0xcf, 0xcf, 0x4f,
105	0xcf, 0x49, 0xd5, 0x2f, 0xa9, 0x2c, 0x48, 0xd5, 0x4f, 0x49, 0x2c, 0x49, 0xd5, 0x2b, 0x28, 0xca,
106	0x2f, 0xc9, 0x17, 0xe2, 0x86, 0x88, 0xeb, 0x81, 0xc4, 0x95, 0x9c, 0xb8, 0x58, 0x5c, 0x12, 0x4b,
107	0x52, 0x85, 0x84, 0xb8, 0x58, 0x2a, 0x53, 0x13, 0x8b, 0x24, 0x18, 0x15, 0x18, 0x35, 0x58, 0x83,
108	0xc0, 0x6c, 0x21, 0x11, 0x2e, 0xd6, 0xdc, 0xfc, 0xbc, 0x92, 0x0c, 0x09, 0x26, 0xb0, 0x20, 0x84,
109	0x23, 0x24, 0xc0, 0xc5, 0x9c, 0x92, 0x58, 0x29, 0xc1, 0x0c, 0x16, 0x03, 0x31, 0x9d, 0x62, 0xb9,
110	0xf8, 0x93, 0xf3, 0x73, 0xf5, 0x90, 0x8c, 0x75, 0xe2, 0x04, 0x19, 0x1a, 0x00, 0xb2, 0x2e, 0x80,
111	0x31, 0xca, 0x04, 0x2a, 0x93, 0x9e, 0x9f, 0x93, 0x98, 0x97, 0xae, 0x97, 0x5f, 0x94, 0xae, 0x9f,
112	0x9e, 0x9a, 0x07, 0x76, 0x8c, 0x3e, 0x44, 0x2a, 0xb1, 0x20, 0xb3, 0x18, 0xe1, 0x4e, 0x6b, 0x10,
113	0xf1, 0x83, 0x91, 0x71, 0x11, 0x13, 0xb3, 0x7b, 0x48, 0x40, 0x12, 0x1b, 0x58, 0xa5, 0x31, 0x20,
114	0x00, 0x00, 0xff, 0xff, 0x84, 0x95, 0xf3, 0x4c, 0xd0, 0x00, 0x00, 0x00,
115}
116