Debian Codegraph @

osconfig/apiv1/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/v1/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_v1_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_v1_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_v1_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_v1_osconfig_common_proto protoreflect.FileDescriptor
124
125 var file_google_cloud_osconfig_v1_osconfig_common_proto_rawDesc = []byte{
126 0x0a, 0x2e, 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, 0x2f, 0x6f, 0x73, 0x63, 0x6f, 0x6e,
128 0x66, 0x69, 0x67, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
129 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f,
130 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x22, 0x4c, 0x0a, 0x0e, 0x46, 0x69,
131 0x78, 0x65, 0x64, 0x4f, 0x72, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x05,
132 0x66, 0x69, 0x78, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x05, 0x66,
133 0x69, 0x78, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x07, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x18,
134 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x07, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74,
135 0x42, 0x06, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x42, 0xb4, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d,
136 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x73,
137 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x06, 0x43, 0x6f, 0x6d, 0x6d, 0x6f,
138 0x6e, 0x5a, 0x38, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
139 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f,
140 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x70, 0x62,
141 0x3b, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x70, 0x62, 0xaa, 0x02, 0x18, 0x47, 0x6f,
142 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x4f, 0x73, 0x43, 0x6f, 0x6e,
143 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x18, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c,
144 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x4f, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56,
145 0x31, 0xea, 0x02, 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75,
146 0x64, 0x3a, 0x3a, 0x4f, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62,
147 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
148 }
149
150 var (
151 file_google_cloud_osconfig_v1_osconfig_common_proto_rawDescOnce sync.Once
152 file_google_cloud_osconfig_v1_osconfig_common_proto_rawDescData = file_google_cloud_osconfig_v1_osconfig_common_proto_rawDesc
153 )
154
155 func file_google_cloud_osconfig_v1_osconfig_common_proto_rawDescGZIP() []byte {
156 file_google_cloud_osconfig_v1_osconfig_common_proto_rawDescOnce.Do(func() {
157 file_google_cloud_osconfig_v1_osconfig_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_osconfig_v1_osconfig_common_proto_rawDescData)
158 })
159 return file_google_cloud_osconfig_v1_osconfig_common_proto_rawDescData
160 }
161
162 var file_google_cloud_osconfig_v1_osconfig_common_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
163 var file_google_cloud_osconfig_v1_osconfig_common_proto_goTypes = []any{
164 (*FixedOrPercent)(nil), // 0: google.cloud.osconfig.v1.FixedOrPercent
165 }
166 var file_google_cloud_osconfig_v1_osconfig_common_proto_depIdxs = []int32{
167 0, // [0:0] is the sub-list for method output_type
168 0, // [0:0] is the sub-list for method input_type
169 0, // [0:0] is the sub-list for extension type_name
170 0, // [0:0] is the sub-list for extension extendee
171 0, // [0:0] is the sub-list for field type_name
172 }
173
174 func init() { file_google_cloud_osconfig_v1_osconfig_common_proto_init() }
175 func file_google_cloud_osconfig_v1_osconfig_common_proto_init() {
176 if File_google_cloud_osconfig_v1_osconfig_common_proto != nil {
177 return
178 }
179 file_google_cloud_osconfig_v1_osconfig_common_proto_msgTypes[0].OneofWrappers = []any{
180 (*FixedOrPercent_Fixed)(nil),
181 (*FixedOrPercent_Percent)(nil),
182 }
183 type x struct{}
184 out := protoimpl.TypeBuilder{
185 File: protoimpl.DescBuilder{
186 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
187 RawDescriptor: file_google_cloud_osconfig_v1_osconfig_common_proto_rawDesc,
188 NumEnums: 0,
189 NumMessages: 1,
190 NumExtensions: 0,
191 NumServices: 0,
192 },
193 GoTypes: file_google_cloud_osconfig_v1_osconfig_common_proto_goTypes,
194 DependencyIndexes: file_google_cloud_osconfig_v1_osconfig_common_proto_depIdxs,
195 MessageInfos: file_google_cloud_osconfig_v1_osconfig_common_proto_msgTypes,
196 }.Build()
197 File_google_cloud_osconfig_v1_osconfig_common_proto = out.File
198 file_google_cloud_osconfig_v1_osconfig_common_proto_rawDesc = nil
199 file_google_cloud_osconfig_v1_osconfig_common_proto_goTypes = nil
200 file_google_cloud_osconfig_v1_osconfig_common_proto_depIdxs = nil
201 }