Debian Codegraph @

osconfig/apiv1alpha/osconfigpb/osconfig_common.pb.go

raw
1 // Copyright 2025 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.35.2
18 // protoc v4.25.7
19 // source: google/cloud/osconfig/v1alpha/osconfig_common.proto
20
21 package osconfigpb
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 reflect "reflect"
27 sync "sync"
28 )
29
30 const (
31 // Verify that this generated code is sufficiently up-to-date.
32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33 // Verify that runtime/protoimpl is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35 )
36
37 // Message encapsulating a value that can be either absolute ("fixed") or
38 // relative ("percent") to a value.
39 type FixedOrPercent struct {
40 state protoimpl.MessageState
41 sizeCache protoimpl.SizeCache
42 unknownFields protoimpl.UnknownFields
43
44 // Type of the value.
45 //
46 // Types that are assignable to Mode:
47 //
48 // *FixedOrPercent_Fixed
49 // *FixedOrPercent_Percent
50 Mode isFixedOrPercent_Mode `protobuf_oneof:"mode"`
51 }
52
53 func (x *FixedOrPercent) Reset() {
54 *x = FixedOrPercent{}
55 mi := &file_google_cloud_osconfig_v1alpha_osconfig_common_proto_msgTypes[0]
56 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
57 ms.StoreMessageInfo(mi)
58 }
59
60 func (x *FixedOrPercent) String() string {
61 return protoimpl.X.MessageStringOf(x)
62 }
63
64 func (*FixedOrPercent) ProtoMessage() {}
65
66 func (x *FixedOrPercent) ProtoReflect() protoreflect.Message {
67 mi := &file_google_cloud_osconfig_v1alpha_osconfig_common_proto_msgTypes[0]
68 if x != nil {
69 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
70 if ms.LoadMessageInfo() == nil {
71 ms.StoreMessageInfo(mi)
72 }
73 return ms
74 }
75 return mi.MessageOf(x)
76 }
77
78 // Deprecated: Use FixedOrPercent.ProtoReflect.Descriptor instead.
79 func (*FixedOrPercent) Descriptor() ([]byte, []int) {
80 return file_google_cloud_osconfig_v1alpha_osconfig_common_proto_rawDescGZIP(), []int{0}
81 }
82
83 func (m *FixedOrPercent) GetMode() isFixedOrPercent_Mode {
84 if m != nil {
85 return m.Mode
86 }
87 return nil
88 }
89
90 func (x *FixedOrPercent) GetFixed() int32 {
91 if x, ok := x.GetMode().(*FixedOrPercent_Fixed); ok {
92 return x.Fixed
93 }
94 return 0
95 }
96
97 func (x *FixedOrPercent) GetPercent() int32 {
98 if x, ok := x.GetMode().(*FixedOrPercent_Percent); ok {
99 return x.Percent
100 }
101 return 0
102 }
103
104 type isFixedOrPercent_Mode interface {
105 isFixedOrPercent_Mode()
106 }
107
108 type FixedOrPercent_Fixed struct {
109 // Specifies a fixed value.
110 Fixed int32 `protobuf:"varint,1,opt,name=fixed,proto3,oneof"`
111 }
112
113 type FixedOrPercent_Percent struct {
114 // Specifies the relative value defined as a percentage, which will be
115 // multiplied by a reference value.
116 Percent int32 `protobuf:"varint,2,opt,name=percent,proto3,oneof"`
117 }
118
119 func (*FixedOrPercent_Fixed) isFixedOrPercent_Mode() {}
120
121 func (*FixedOrPercent_Percent) isFixedOrPercent_Mode() {}
122
123 var File_google_cloud_osconfig_v1alpha_osconfig_common_proto protoreflect.FileDescriptor
124
125 var file_google_cloud_osconfig_v1alpha_osconfig_common_proto_rawDesc = []byte{
126 0x0a, 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6f,
127 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f,
128 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
129 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
130 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x61,
131 0x6c, 0x70, 0x68, 0x61, 0x22, 0x4c, 0x0a, 0x0e, 0x46, 0x69, 0x78, 0x65, 0x64, 0x4f, 0x72, 0x50,
132 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x05, 0x66, 0x69, 0x78, 0x65, 0x64, 0x18,
133 0x01, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x05, 0x66, 0x69, 0x78, 0x65, 0x64, 0x12, 0x1a,
134 0x0a, 0x07, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48,
135 0x00, 0x52, 0x07, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x42, 0x06, 0x0a, 0x04, 0x6d, 0x6f,
136 0x64, 0x65, 0x42, 0xcf, 0x01, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
137 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
138 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x06, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
139 0x50, 0x01, 0x5a, 0x3d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
140 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
141 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x6f, 0x73, 0x63, 0x6f,
142 0x6e, 0x66, 0x69, 0x67, 0x70, 0x62, 0x3b, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x70,
143 0x62, 0xaa, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64,
144 0x2e, 0x4f, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, 0x41, 0x6c, 0x70, 0x68,
145 0x61, 0xca, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64,
146 0x5c, 0x4f, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68,
147 0x61, 0xea, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75,
148 0x64, 0x3a, 0x3a, 0x4f, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x61,
149 0x6c, 0x70, 0x68, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
150 }
151
152 var (
153 file_google_cloud_osconfig_v1alpha_osconfig_common_proto_rawDescOnce sync.Once
154 file_google_cloud_osconfig_v1alpha_osconfig_common_proto_rawDescData = file_google_cloud_osconfig_v1alpha_osconfig_common_proto_rawDesc
155 )
156
157 func file_google_cloud_osconfig_v1alpha_osconfig_common_proto_rawDescGZIP() []byte {
158 file_google_cloud_osconfig_v1alpha_osconfig_common_proto_rawDescOnce.Do(func() {
159 file_google_cloud_osconfig_v1alpha_osconfig_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_osconfig_v1alpha_osconfig_common_proto_rawDescData)
160 })
161 return file_google_cloud_osconfig_v1alpha_osconfig_common_proto_rawDescData
162 }
163
164 var file_google_cloud_osconfig_v1alpha_osconfig_common_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
165 var file_google_cloud_osconfig_v1alpha_osconfig_common_proto_goTypes = []any{
166 (*FixedOrPercent)(nil), // 0: google.cloud.osconfig.v1alpha.FixedOrPercent
167 }
168 var file_google_cloud_osconfig_v1alpha_osconfig_common_proto_depIdxs = []int32{
169 0, // [0:0] is the sub-list for method output_type
170 0, // [0:0] is the sub-list for method input_type
171 0, // [0:0] is the sub-list for extension type_name
172 0, // [0:0] is the sub-list for extension extendee
173 0, // [0:0] is the sub-list for field type_name
174 }
175
176 func init() { file_google_cloud_osconfig_v1alpha_osconfig_common_proto_init() }
177 func file_google_cloud_osconfig_v1alpha_osconfig_common_proto_init() {
178 if File_google_cloud_osconfig_v1alpha_osconfig_common_proto != nil {
179 return
180 }
181 file_google_cloud_osconfig_v1alpha_osconfig_common_proto_msgTypes[0].OneofWrappers = []any{
182 (*FixedOrPercent_Fixed)(nil),
183 (*FixedOrPercent_Percent)(nil),
184 }
185 type x struct{}
186 out := protoimpl.TypeBuilder{
187 File: protoimpl.DescBuilder{
188 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
189 RawDescriptor: file_google_cloud_osconfig_v1alpha_osconfig_common_proto_rawDesc,
190 NumEnums: 0,
191 NumMessages: 1,
192 NumExtensions: 0,
193 NumServices: 0,
194 },
195 GoTypes: file_google_cloud_osconfig_v1alpha_osconfig_common_proto_goTypes,
196 DependencyIndexes: file_google_cloud_osconfig_v1alpha_osconfig_common_proto_depIdxs,
197 MessageInfos: file_google_cloud_osconfig_v1alpha_osconfig_common_proto_msgTypes,
198 }.Build()
199 File_google_cloud_osconfig_v1alpha_osconfig_common_proto = out.File
200 file_google_cloud_osconfig_v1alpha_osconfig_common_proto_rawDesc = nil
201 file_google_cloud_osconfig_v1alpha_osconfig_common_proto_goTypes = nil
202 file_google_cloud_osconfig_v1alpha_osconfig_common_proto_depIdxs = nil
203 }