1// Copyright 2021 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Code generated by protoc-gen-go. DO NOT EDIT.
16// versions:
17// 	protoc-gen-go v1.26.0
18// 	protoc        v3.12.2
19// source: google/type/calendar_period.proto
20
21package calendarperiod
22
23import (
24	reflect "reflect"
25	sync "sync"
26
27	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29)
30
31const (
32	// Verify that this generated code is sufficiently up-to-date.
33	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34	// Verify that runtime/protoimpl is sufficiently up-to-date.
35	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36)
37
38// A `CalendarPeriod` represents the abstract concept of a time period that has
39// a canonical start. Grammatically, "the start of the current
40// `CalendarPeriod`." All calendar times begin at midnight UTC.
41type CalendarPeriod int32
42
43const (
44	// Undefined period, raises an error.
45	CalendarPeriod_CALENDAR_PERIOD_UNSPECIFIED CalendarPeriod = 0
46	// A day.
47	CalendarPeriod_DAY CalendarPeriod = 1
48	// A week. Weeks begin on Monday, following
49	// [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date).
50	CalendarPeriod_WEEK CalendarPeriod = 2
51	// A fortnight. The first calendar fortnight of the year begins at the start
52	// of week 1 according to
53	// [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date).
54	CalendarPeriod_FORTNIGHT CalendarPeriod = 3
55	// A month.
56	CalendarPeriod_MONTH CalendarPeriod = 4
57	// A quarter. Quarters start on dates 1-Jan, 1-Apr, 1-Jul, and 1-Oct of each
58	// year.
59	CalendarPeriod_QUARTER CalendarPeriod = 5
60	// A half-year. Half-years start on dates 1-Jan and 1-Jul.
61	CalendarPeriod_HALF CalendarPeriod = 6
62	// A year.
63	CalendarPeriod_YEAR CalendarPeriod = 7
64)
65
66// Enum value maps for CalendarPeriod.
67var (
68	CalendarPeriod_name = map[int32]string{
69		0: "CALENDAR_PERIOD_UNSPECIFIED",
70		1: "DAY",
71		2: "WEEK",
72		3: "FORTNIGHT",
73		4: "MONTH",
74		5: "QUARTER",
75		6: "HALF",
76		7: "YEAR",
77	}
78	CalendarPeriod_value = map[string]int32{
79		"CALENDAR_PERIOD_UNSPECIFIED": 0,
80		"DAY":                         1,
81		"WEEK":                        2,
82		"FORTNIGHT":                   3,
83		"MONTH":                       4,
84		"QUARTER":                     5,
85		"HALF":                        6,
86		"YEAR":                        7,
87	}
88)
89
90func (x CalendarPeriod) Enum() *CalendarPeriod {
91	p := new(CalendarPeriod)
92	*p = x
93	return p
94}
95
96func (x CalendarPeriod) String() string {
97	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
98}
99
100func (CalendarPeriod) Descriptor() protoreflect.EnumDescriptor {
101	return file_google_type_calendar_period_proto_enumTypes[0].Descriptor()
102}
103
104func (CalendarPeriod) Type() protoreflect.EnumType {
105	return &file_google_type_calendar_period_proto_enumTypes[0]
106}
107
108func (x CalendarPeriod) Number() protoreflect.EnumNumber {
109	return protoreflect.EnumNumber(x)
110}
111
112// Deprecated: Use CalendarPeriod.Descriptor instead.
113func (CalendarPeriod) EnumDescriptor() ([]byte, []int) {
114	return file_google_type_calendar_period_proto_rawDescGZIP(), []int{0}
115}
116
117var File_google_type_calendar_period_proto protoreflect.FileDescriptor
118
119var file_google_type_calendar_period_proto_rawDesc = []byte{
120	0x0a, 0x21, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x63, 0x61,
121	0x6c, 0x65, 0x6e, 0x64, 0x61, 0x72, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x2e, 0x70, 0x72,
122	0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65,
123	0x2a, 0x7f, 0x0a, 0x0e, 0x43, 0x61, 0x6c, 0x65, 0x6e, 0x64, 0x61, 0x72, 0x50, 0x65, 0x72, 0x69,
124	0x6f, 0x64, 0x12, 0x1f, 0x0a, 0x1b, 0x43, 0x41, 0x4c, 0x45, 0x4e, 0x44, 0x41, 0x52, 0x5f, 0x50,
125	0x45, 0x52, 0x49, 0x4f, 0x44, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,
126	0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x44, 0x41, 0x59, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04,
127	0x57, 0x45, 0x45, 0x4b, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x46, 0x4f, 0x52, 0x54, 0x4e, 0x49,
128	0x47, 0x48, 0x54, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x10, 0x04,
129	0x12, 0x0b, 0x0a, 0x07, 0x51, 0x55, 0x41, 0x52, 0x54, 0x45, 0x52, 0x10, 0x05, 0x12, 0x08, 0x0a,
130	0x04, 0x48, 0x41, 0x4c, 0x46, 0x10, 0x06, 0x12, 0x08, 0x0a, 0x04, 0x59, 0x45, 0x41, 0x52, 0x10,
131	0x07, 0x42, 0x78, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
132	0x74, 0x79, 0x70, 0x65, 0x42, 0x13, 0x43, 0x61, 0x6c, 0x65, 0x6e, 0x64, 0x61, 0x72, 0x50, 0x65,
133	0x72, 0x69, 0x6f, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x48, 0x67, 0x6f, 0x6f,
134	0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67,
135	0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
136	0x69, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x63, 0x61, 0x6c, 0x65, 0x6e, 0x64, 0x61, 0x72,
137	0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x3b, 0x63, 0x61, 0x6c, 0x65, 0x6e, 0x64, 0x61, 0x72, 0x70,
138	0x65, 0x72, 0x69, 0x6f, 0x64, 0xa2, 0x02, 0x03, 0x47, 0x54, 0x50, 0x62, 0x06, 0x70, 0x72, 0x6f,
139	0x74, 0x6f, 0x33,
140}
141
142var (
143	file_google_type_calendar_period_proto_rawDescOnce sync.Once
144	file_google_type_calendar_period_proto_rawDescData = file_google_type_calendar_period_proto_rawDesc
145)
146
147func file_google_type_calendar_period_proto_rawDescGZIP() []byte {
148	file_google_type_calendar_period_proto_rawDescOnce.Do(func() {
149		file_google_type_calendar_period_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_type_calendar_period_proto_rawDescData)
150	})
151	return file_google_type_calendar_period_proto_rawDescData
152}
153
154var file_google_type_calendar_period_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
155var file_google_type_calendar_period_proto_goTypes = []interface{}{
156	(CalendarPeriod)(0), // 0: google.type.CalendarPeriod
157}
158var file_google_type_calendar_period_proto_depIdxs = []int32{
159	0, // [0:0] is the sub-list for method output_type
160	0, // [0:0] is the sub-list for method input_type
161	0, // [0:0] is the sub-list for extension type_name
162	0, // [0:0] is the sub-list for extension extendee
163	0, // [0:0] is the sub-list for field type_name
164}
165
166func init() { file_google_type_calendar_period_proto_init() }
167func file_google_type_calendar_period_proto_init() {
168	if File_google_type_calendar_period_proto != nil {
169		return
170	}
171	type x struct{}
172	out := protoimpl.TypeBuilder{
173		File: protoimpl.DescBuilder{
174			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
175			RawDescriptor: file_google_type_calendar_period_proto_rawDesc,
176			NumEnums:      1,
177			NumMessages:   0,
178			NumExtensions: 0,
179			NumServices:   0,
180		},
181		GoTypes:           file_google_type_calendar_period_proto_goTypes,
182		DependencyIndexes: file_google_type_calendar_period_proto_depIdxs,
183		EnumInfos:         file_google_type_calendar_period_proto_enumTypes,
184	}.Build()
185	File_google_type_calendar_period_proto = out.File
186	file_google_type_calendar_period_proto_rawDesc = nil
187	file_google_type_calendar_period_proto_goTypes = nil
188	file_google_type_calendar_period_proto_depIdxs = nil
189}
190