1// Copyright 2020 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.25.0
18// 	protoc        v3.13.0
19// source: google/cloud/securitycenter/v1/source.proto
20
21package securitycenter
22
23import (
24	reflect "reflect"
25	sync "sync"
26
27	proto "github.com/golang/protobuf/proto"
28	_ "google.golang.org/genproto/googleapis/api/annotations"
29	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
30	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
31)
32
33const (
34	// Verify that this generated code is sufficiently up-to-date.
35	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
36	// Verify that runtime/protoimpl is sufficiently up-to-date.
37	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
38)
39
40// This is a compile-time assertion that a sufficiently up-to-date version
41// of the legacy proto package is being used.
42const _ = proto.ProtoPackageIsVersion4
43
44// Security Command Center finding source. A finding source
45// is an entity or a mechanism that can produce a finding. A source is like a
46// container of findings that come from the same scanner, logger, monitor, and
47// other tools.
48type Source struct {
49	state         protoimpl.MessageState
50	sizeCache     protoimpl.SizeCache
51	unknownFields protoimpl.UnknownFields
52
53	// The relative resource name of this source. See:
54	// https://cloud.google.com/apis/design/resource_names#relative_resource_name
55	// Example:
56	// "organizations/{organization_id}/sources/{source_id}"
57	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
58	// The source's display name.
59	// A source's display name must be unique amongst its siblings, for example,
60	// two sources with the same parent can't share the same display name.
61	// The display name must have a length between 1 and 64 characters
62	// (inclusive).
63	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
64	// The description of the source (max of 1024 characters).
65	// Example:
66	// "Web Security Scanner is a web security scanner for common
67	// vulnerabilities in App Engine applications. It can automatically
68	// scan and detect four common vulnerabilities, including cross-site-scripting
69	// (XSS), Flash injection, mixed content (HTTP in HTTPS), and
70	// outdated or insecure libraries."
71	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
72}
73
74func (x *Source) Reset() {
75	*x = Source{}
76	if protoimpl.UnsafeEnabled {
77		mi := &file_google_cloud_securitycenter_v1_source_proto_msgTypes[0]
78		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
79		ms.StoreMessageInfo(mi)
80	}
81}
82
83func (x *Source) String() string {
84	return protoimpl.X.MessageStringOf(x)
85}
86
87func (*Source) ProtoMessage() {}
88
89func (x *Source) ProtoReflect() protoreflect.Message {
90	mi := &file_google_cloud_securitycenter_v1_source_proto_msgTypes[0]
91	if protoimpl.UnsafeEnabled && x != nil {
92		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
93		if ms.LoadMessageInfo() == nil {
94			ms.StoreMessageInfo(mi)
95		}
96		return ms
97	}
98	return mi.MessageOf(x)
99}
100
101// Deprecated: Use Source.ProtoReflect.Descriptor instead.
102func (*Source) Descriptor() ([]byte, []int) {
103	return file_google_cloud_securitycenter_v1_source_proto_rawDescGZIP(), []int{0}
104}
105
106func (x *Source) GetName() string {
107	if x != nil {
108		return x.Name
109	}
110	return ""
111}
112
113func (x *Source) GetDisplayName() string {
114	if x != nil {
115		return x.DisplayName
116	}
117	return ""
118}
119
120func (x *Source) GetDescription() string {
121	if x != nil {
122		return x.Description
123	}
124	return ""
125}
126
127var File_google_cloud_securitycenter_v1_source_proto protoreflect.FileDescriptor
128
129var file_google_cloud_securitycenter_v1_source_proto_rawDesc = []byte{
130	0x0a, 0x2b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
131	0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31,
132	0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x67,
133	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75,
134	0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67,
135	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61,
136	0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f,
137	0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
138	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbb, 0x01, 0x0a, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63,
139	0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
140	0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79,
141	0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73,
142	0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63,
143	0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64,
144	0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x58, 0xea, 0x41, 0x55, 0x0a,
145	0x24, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e,
146	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53,
147	0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x2d, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74,
148	0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69,
149	0x6f, 0x6e, 0x7d, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x6f, 0x75,
150	0x72, 0x63, 0x65, 0x7d, 0x42, 0xda, 0x01, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f,
151	0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69,
152	0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x4c, 0x67,
153	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
154	0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
155	0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72,
156	0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x65, 0x63,
157	0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0xaa, 0x02, 0x1e, 0x47, 0x6f,
158	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72,
159	0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1e, 0x47,
160	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x65, 0x63, 0x75,
161	0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x21,
162	0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53,
163	0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3a, 0x3a, 0x56,
164	0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
165}
166
167var (
168	file_google_cloud_securitycenter_v1_source_proto_rawDescOnce sync.Once
169	file_google_cloud_securitycenter_v1_source_proto_rawDescData = file_google_cloud_securitycenter_v1_source_proto_rawDesc
170)
171
172func file_google_cloud_securitycenter_v1_source_proto_rawDescGZIP() []byte {
173	file_google_cloud_securitycenter_v1_source_proto_rawDescOnce.Do(func() {
174		file_google_cloud_securitycenter_v1_source_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v1_source_proto_rawDescData)
175	})
176	return file_google_cloud_securitycenter_v1_source_proto_rawDescData
177}
178
179var file_google_cloud_securitycenter_v1_source_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
180var file_google_cloud_securitycenter_v1_source_proto_goTypes = []interface{}{
181	(*Source)(nil), // 0: google.cloud.securitycenter.v1.Source
182}
183var file_google_cloud_securitycenter_v1_source_proto_depIdxs = []int32{
184	0, // [0:0] is the sub-list for method output_type
185	0, // [0:0] is the sub-list for method input_type
186	0, // [0:0] is the sub-list for extension type_name
187	0, // [0:0] is the sub-list for extension extendee
188	0, // [0:0] is the sub-list for field type_name
189}
190
191func init() { file_google_cloud_securitycenter_v1_source_proto_init() }
192func file_google_cloud_securitycenter_v1_source_proto_init() {
193	if File_google_cloud_securitycenter_v1_source_proto != nil {
194		return
195	}
196	if !protoimpl.UnsafeEnabled {
197		file_google_cloud_securitycenter_v1_source_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
198			switch v := v.(*Source); i {
199			case 0:
200				return &v.state
201			case 1:
202				return &v.sizeCache
203			case 2:
204				return &v.unknownFields
205			default:
206				return nil
207			}
208		}
209	}
210	type x struct{}
211	out := protoimpl.TypeBuilder{
212		File: protoimpl.DescBuilder{
213			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
214			RawDescriptor: file_google_cloud_securitycenter_v1_source_proto_rawDesc,
215			NumEnums:      0,
216			NumMessages:   1,
217			NumExtensions: 0,
218			NumServices:   0,
219		},
220		GoTypes:           file_google_cloud_securitycenter_v1_source_proto_goTypes,
221		DependencyIndexes: file_google_cloud_securitycenter_v1_source_proto_depIdxs,
222		MessageInfos:      file_google_cloud_securitycenter_v1_source_proto_msgTypes,
223	}.Build()
224	File_google_cloud_securitycenter_v1_source_proto = out.File
225	file_google_cloud_securitycenter_v1_source_proto_rawDesc = nil
226	file_google_cloud_securitycenter_v1_source_proto_goTypes = nil
227	file_google_cloud_securitycenter_v1_source_proto_depIdxs = nil
228}
229