OSDN Git Service

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