xref: /aosp_15_r20/build/soong/cmd/release_config/release_config_proto/build_flags_common.pb.go (revision 333d2b3687b3a337dbcca9d65000bca186795e39)
1//
2// Copyright (C) 2024 The Android Open-Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//   http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16// Code generated by protoc-gen-go. DO NOT EDIT.
17// versions:
18// 	protoc-gen-go v1.33.0
19// 	protoc        v3.21.12
20// source: build_flags_common.proto
21
22package release_config_proto
23
24import (
25	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
26	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
27	reflect "reflect"
28	sync "sync"
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
38type Workflow int32
39
40const (
41	Workflow_WORKFLOW_UNSPECIFIED Workflow = 0
42	// Deprecated.  Use WORKFLOW_UNSPECIFIED instead.
43	Workflow_Workflow_Unspecified Workflow = 0
44	// Boolean value flags that progress from false to true.
45	Workflow_LAUNCH Workflow = 1
46	// String value flags that get updated with new version strings to control
47	// prebuilt inclusion.
48	Workflow_PREBUILT Workflow = 2
49	// Manually managed outside flags.  These are likely to be found in a
50	// different directory than flags with other workflows.
51	Workflow_MANUAL Workflow = 3
52)
53
54// Enum value maps for Workflow.
55var (
56	Workflow_name = map[int32]string{
57		0: "WORKFLOW_UNSPECIFIED",
58		// Duplicate value: 0: "Workflow_Unspecified",
59		1: "LAUNCH",
60		2: "PREBUILT",
61		3: "MANUAL",
62	}
63	Workflow_value = map[string]int32{
64		"WORKFLOW_UNSPECIFIED": 0,
65		"Workflow_Unspecified": 0,
66		"LAUNCH":               1,
67		"PREBUILT":             2,
68		"MANUAL":               3,
69	}
70)
71
72func (x Workflow) Enum() *Workflow {
73	p := new(Workflow)
74	*p = x
75	return p
76}
77
78func (x Workflow) String() string {
79	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
80}
81
82func (Workflow) Descriptor() protoreflect.EnumDescriptor {
83	return file_build_flags_common_proto_enumTypes[0].Descriptor()
84}
85
86func (Workflow) Type() protoreflect.EnumType {
87	return &file_build_flags_common_proto_enumTypes[0]
88}
89
90func (x Workflow) Number() protoreflect.EnumNumber {
91	return protoreflect.EnumNumber(x)
92}
93
94// Deprecated: Do not use.
95func (x *Workflow) UnmarshalJSON(b []byte) error {
96	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
97	if err != nil {
98		return err
99	}
100	*x = Workflow(num)
101	return nil
102}
103
104// Deprecated: Use Workflow.Descriptor instead.
105func (Workflow) EnumDescriptor() ([]byte, []int) {
106	return file_build_flags_common_proto_rawDescGZIP(), []int{0}
107}
108
109var File_build_flags_common_proto protoreflect.FileDescriptor
110
111var file_build_flags_common_proto_rawDesc = []byte{
112	0x0a, 0x18, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x5f, 0x63, 0x6f,
113	0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x61, 0x6e, 0x64, 0x72,
114	0x6f, 0x69, 0x64, 0x2e, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66,
115	0x69, 0x67, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2a, 0x68, 0x0a, 0x08, 0x57, 0x6f, 0x72, 0x6b,
116	0x66, 0x6c, 0x6f, 0x77, 0x12, 0x18, 0x0a, 0x14, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57,
117	0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18,
118	0x0a, 0x14, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x55, 0x6e, 0x73, 0x70, 0x65,
119	0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x41, 0x55, 0x4e,
120	0x43, 0x48, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x52, 0x45, 0x42, 0x55, 0x49, 0x4c, 0x54,
121	0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x41, 0x4e, 0x55, 0x41, 0x4c, 0x10, 0x03, 0x1a, 0x02,
122	0x10, 0x01, 0x42, 0x33, 0x5a, 0x31, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x2f, 0x73, 0x6f,
123	0x6f, 0x6e, 0x67, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66,
124	0x69, 0x67, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69,
125	0x67, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
126}
127
128var (
129	file_build_flags_common_proto_rawDescOnce sync.Once
130	file_build_flags_common_proto_rawDescData = file_build_flags_common_proto_rawDesc
131)
132
133func file_build_flags_common_proto_rawDescGZIP() []byte {
134	file_build_flags_common_proto_rawDescOnce.Do(func() {
135		file_build_flags_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_build_flags_common_proto_rawDescData)
136	})
137	return file_build_flags_common_proto_rawDescData
138}
139
140var file_build_flags_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
141var file_build_flags_common_proto_goTypes = []interface{}{
142	(Workflow)(0), // 0: android.release_config_proto.Workflow
143}
144var file_build_flags_common_proto_depIdxs = []int32{
145	0, // [0:0] is the sub-list for method output_type
146	0, // [0:0] is the sub-list for method input_type
147	0, // [0:0] is the sub-list for extension type_name
148	0, // [0:0] is the sub-list for extension extendee
149	0, // [0:0] is the sub-list for field type_name
150}
151
152func init() { file_build_flags_common_proto_init() }
153func file_build_flags_common_proto_init() {
154	if File_build_flags_common_proto != nil {
155		return
156	}
157	type x struct{}
158	out := protoimpl.TypeBuilder{
159		File: protoimpl.DescBuilder{
160			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
161			RawDescriptor: file_build_flags_common_proto_rawDesc,
162			NumEnums:      1,
163			NumMessages:   0,
164			NumExtensions: 0,
165			NumServices:   0,
166		},
167		GoTypes:           file_build_flags_common_proto_goTypes,
168		DependencyIndexes: file_build_flags_common_proto_depIdxs,
169		EnumInfos:         file_build_flags_common_proto_enumTypes,
170	}.Build()
171	File_build_flags_common_proto = out.File
172	file_build_flags_common_proto_rawDesc = nil
173	file_build_flags_common_proto_goTypes = nil
174	file_build_flags_common_proto_depIdxs = nil
175}
176