1// Code generated by protoc-gen-gogo. DO NOT EDIT. 2// source: google/type/calendar_period.proto 3 4package _type 5 6import ( 7 fmt "fmt" 8 proto "github.com/gogo/protobuf/proto" 9 math "math" 10 strconv "strconv" 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package 23 24// A `CalendarPeriod` represents the abstract concept of a time period that has 25// a canonical start. Grammatically, "the start of the current 26// `CalendarPeriod`." All calendar times begin at midnight UTC. 27type CalendarPeriod int32 28 29const ( 30 // Undefined period, raises an error. 31 CalendarPeriod_CALENDAR_PERIOD_UNSPECIFIED CalendarPeriod = 0 32 // A day. 33 CalendarPeriod_DAY CalendarPeriod = 1 34 // A week. Weeks begin on Monday, following 35 // [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date). 36 CalendarPeriod_WEEK CalendarPeriod = 2 37 // A fortnight. The first calendar fortnight of the year begins at the start 38 // of week 1 according to 39 // [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date). 40 CalendarPeriod_FORTNIGHT CalendarPeriod = 3 41 // A month. 42 CalendarPeriod_MONTH CalendarPeriod = 4 43 // A quarter. Quarters start on dates 1-Jan, 1-Apr, 1-Jul, and 1-Oct of each 44 // year. 45 CalendarPeriod_QUARTER CalendarPeriod = 5 46 // A half-year. Half-years start on dates 1-Jan and 1-Jul. 47 CalendarPeriod_HALF CalendarPeriod = 6 48 // A year. 49 CalendarPeriod_YEAR CalendarPeriod = 7 50) 51 52var CalendarPeriod_name = map[int32]string{ 53 0: "CALENDAR_PERIOD_UNSPECIFIED", 54 1: "DAY", 55 2: "WEEK", 56 3: "FORTNIGHT", 57 4: "MONTH", 58 5: "QUARTER", 59 6: "HALF", 60 7: "YEAR", 61} 62 63var CalendarPeriod_value = map[string]int32{ 64 "CALENDAR_PERIOD_UNSPECIFIED": 0, 65 "DAY": 1, 66 "WEEK": 2, 67 "FORTNIGHT": 3, 68 "MONTH": 4, 69 "QUARTER": 5, 70 "HALF": 6, 71 "YEAR": 7, 72} 73 74func (CalendarPeriod) EnumDescriptor() ([]byte, []int) { 75 return fileDescriptor_52aec33199a3da0e, []int{0} 76} 77 78func init() { 79 proto.RegisterEnum("google.type.CalendarPeriod", CalendarPeriod_name, CalendarPeriod_value) 80} 81 82func init() { proto.RegisterFile("google/type/calendar_period.proto", fileDescriptor_52aec33199a3da0e) } 83 84var fileDescriptor_52aec33199a3da0e = []byte{ 85 // 267 bytes of a gzipped FileDescriptorProto 86 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4c, 0xcf, 0xcf, 0x4f, 87 0xcf, 0x49, 0xd5, 0x2f, 0xa9, 0x2c, 0x48, 0xd5, 0x4f, 0x4e, 0xcc, 0x49, 0xcd, 0x4b, 0x49, 0x2c, 88 0x8a, 0x2f, 0x48, 0x2d, 0xca, 0xcc, 0x4f, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x86, 89 0x28, 0xd1, 0x03, 0x29, 0xd1, 0xaa, 0xe7, 0xe2, 0x73, 0x86, 0xaa, 0x0a, 0x00, 0x2b, 0x12, 0x92, 90 0xe7, 0x92, 0x76, 0x76, 0xf4, 0x71, 0xf5, 0x73, 0x71, 0x0c, 0x8a, 0x0f, 0x70, 0x0d, 0xf2, 0xf4, 91 0x77, 0x89, 0x0f, 0xf5, 0x0b, 0x0e, 0x70, 0x75, 0xf6, 0x74, 0xf3, 0x74, 0x75, 0x11, 0x60, 0x10, 92 0x62, 0xe7, 0x62, 0x76, 0x71, 0x8c, 0x14, 0x60, 0x14, 0xe2, 0xe0, 0x62, 0x09, 0x77, 0x75, 0xf5, 93 0x16, 0x60, 0x12, 0xe2, 0xe5, 0xe2, 0x74, 0xf3, 0x0f, 0x0a, 0xf1, 0xf3, 0x74, 0xf7, 0x08, 0x11, 94 0x60, 0x16, 0xe2, 0xe4, 0x62, 0xf5, 0xf5, 0xf7, 0x0b, 0xf1, 0x10, 0x60, 0x11, 0xe2, 0xe6, 0x62, 95 0x0f, 0x0c, 0x75, 0x0c, 0x0a, 0x71, 0x0d, 0x12, 0x60, 0x05, 0x69, 0xf0, 0x70, 0xf4, 0x71, 0x13, 96 0x60, 0x03, 0xb1, 0x22, 0x5d, 0x1d, 0x83, 0x04, 0xd8, 0x9d, 0x52, 0x6e, 0x3c, 0x94, 0x63, 0xf8, 97 0xf0, 0x50, 0x8e, 0xf1, 0xc7, 0x43, 0x39, 0xc6, 0x86, 0x47, 0x72, 0x8c, 0x2b, 0x1e, 0xc9, 0x31, 98 0x9e, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x2f, 0x1e, 0xc9, 99 0x31, 0x7c, 0x00, 0x89, 0x3f, 0x96, 0x63, 0x3c, 0xf1, 0x58, 0x8e, 0x91, 0x8b, 0x3f, 0x39, 0x3f, 100 0x57, 0x0f, 0xc9, 0x0f, 0x4e, 0xc2, 0xa8, 0x3e, 0x08, 0x00, 0xf9, 0x32, 0x80, 0x31, 0x8a, 0x05, 101 0x24, 0xb9, 0x88, 0x89, 0xd9, 0x3d, 0x24, 0x20, 0x89, 0x0d, 0xec, 0x75, 0x63, 0x40, 0x00, 0x00, 102 0x00, 0xff, 0xff, 0xd9, 0x68, 0x09, 0x75, 0x1f, 0x01, 0x00, 0x00, 103} 104 105func (x CalendarPeriod) String() string { 106 s, ok := CalendarPeriod_name[int32(x)] 107 if ok { 108 return s 109 } 110 return strconv.Itoa(int(x)) 111} 112