Debian Codegraph @

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