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