Debian Codegraph @

securitycenter/apiv1/securitycenterpb/label.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/securitycenter/v1/label.proto
20
21 package securitycenterpb
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 // Represents a generic name-value label. A label has separate name and value
38 // fields to support filtering with the `contains()` function. For more
39 // information, see [Filtering on array-type
40 // fields](https://cloud.google.com/security-command-center/docs/how-to-api-list-findings#array-contains-filtering).
41 type Label struct {
42 state protoimpl.MessageState
43 sizeCache protoimpl.SizeCache
44 unknownFields protoimpl.UnknownFields
45
46 // Name of the label.
47 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
48 // Value that corresponds to the label's name.
49 Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
50 }
51
52 func (x *Label) Reset() {
53 *x = Label{}
54 mi := &file_google_cloud_securitycenter_v1_label_proto_msgTypes[0]
55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
56 ms.StoreMessageInfo(mi)
57 }
58
59 func (x *Label) String() string {
60 return protoimpl.X.MessageStringOf(x)
61 }
62
63 func (*Label) ProtoMessage() {}
64
65 func (x *Label) ProtoReflect() protoreflect.Message {
66 mi := &file_google_cloud_securitycenter_v1_label_proto_msgTypes[0]
67 if x != nil {
68 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
69 if ms.LoadMessageInfo() == nil {
70 ms.StoreMessageInfo(mi)
71 }
72 return ms
73 }
74 return mi.MessageOf(x)
75 }
76
77 // Deprecated: Use Label.ProtoReflect.Descriptor instead.
78 func (*Label) Descriptor() ([]byte, []int) {
79 return file_google_cloud_securitycenter_v1_label_proto_rawDescGZIP(), []int{0}
80 }
81
82 func (x *Label) GetName() string {
83 if x != nil {
84 return x.Name
85 }
86 return ""
87 }
88
89 func (x *Label) GetValue() string {
90 if x != nil {
91 return x.Value
92 }
93 return ""
94 }
95
96 var File_google_cloud_securitycenter_v1_label_proto protoreflect.FileDescriptor
97
98 var file_google_cloud_securitycenter_v1_label_proto_rawDesc = []byte{
99 0x0a, 0x2a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
100 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31,
101 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x67, 0x6f,
102 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72,
103 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x22, 0x31, 0x0a, 0x05,
104 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
105 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
106 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42,
107 0xe4, 0x01, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
108 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e,
109 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x50, 0x72, 0x6f,
110 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
111 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69,
112 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x73,
113 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0x3b,
114 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62,
115 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
116 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x56,
117 0x31, 0xca, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64,
118 0x5c, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5c,
119 0x56, 0x31, 0xea, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f,
120 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74,
121 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
122 }
123
124 var (
125 file_google_cloud_securitycenter_v1_label_proto_rawDescOnce sync.Once
126 file_google_cloud_securitycenter_v1_label_proto_rawDescData = file_google_cloud_securitycenter_v1_label_proto_rawDesc
127 )
128
129 func file_google_cloud_securitycenter_v1_label_proto_rawDescGZIP() []byte {
130 file_google_cloud_securitycenter_v1_label_proto_rawDescOnce.Do(func() {
131 file_google_cloud_securitycenter_v1_label_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v1_label_proto_rawDescData)
132 })
133 return file_google_cloud_securitycenter_v1_label_proto_rawDescData
134 }
135
136 var file_google_cloud_securitycenter_v1_label_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
137 var file_google_cloud_securitycenter_v1_label_proto_goTypes = []any{
138 (*Label)(nil), // 0: google.cloud.securitycenter.v1.Label
139 }
140 var file_google_cloud_securitycenter_v1_label_proto_depIdxs = []int32{
141 0, // [0:0] is the sub-list for method output_type
142 0, // [0:0] is the sub-list for method input_type
143 0, // [0:0] is the sub-list for extension type_name
144 0, // [0:0] is the sub-list for extension extendee
145 0, // [0:0] is the sub-list for field type_name
146 }
147
148 func init() { file_google_cloud_securitycenter_v1_label_proto_init() }
149 func file_google_cloud_securitycenter_v1_label_proto_init() {
150 if File_google_cloud_securitycenter_v1_label_proto != nil {
151 return
152 }
153 type x struct{}
154 out := protoimpl.TypeBuilder{
155 File: protoimpl.DescBuilder{
156 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
157 RawDescriptor: file_google_cloud_securitycenter_v1_label_proto_rawDesc,
158 NumEnums: 0,
159 NumMessages: 1,
160 NumExtensions: 0,
161 NumServices: 0,
162 },
163 GoTypes: file_google_cloud_securitycenter_v1_label_proto_goTypes,
164 DependencyIndexes: file_google_cloud_securitycenter_v1_label_proto_depIdxs,
165 MessageInfos: file_google_cloud_securitycenter_v1_label_proto_msgTypes,
166 }.Build()
167 File_google_cloud_securitycenter_v1_label_proto = out.File
168 file_google_cloud_securitycenter_v1_label_proto_rawDesc = nil
169 file_google_cloud_securitycenter_v1_label_proto_goTypes = nil
170 file_google_cloud_securitycenter_v1_label_proto_depIdxs = nil
171 }