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