1// Copyright 2019 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
16// Code generated by protoc-gen-go. DO NOT EDIT.
17// versions:
18// 	protoc-gen-go v1.25.0
19// 	protoc        v3.13.0
20// source: google/cloud/websecurityscanner/v1alpha/crawled_url.proto
21
22package websecurityscanner
23
24import (
25	reflect "reflect"
26	sync "sync"
27
28	proto "github.com/golang/protobuf/proto"
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// A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
45// Security Scanner Service crawls the web applications, following all links
46// within the scope of sites, to find the URLs to test against.
47type CrawledUrl struct {
48	state         protoimpl.MessageState
49	sizeCache     protoimpl.SizeCache
50	unknownFields protoimpl.UnknownFields
51
52	// Output only. The http method of the request that was used to visit the URL, in
53	// uppercase.
54	HttpMethod string `protobuf:"bytes,1,opt,name=http_method,json=httpMethod,proto3" json:"http_method,omitempty"`
55	// Output only. The URL that was crawled.
56	Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
57	// Output only. The body of the request that was used to visit the URL.
58	Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
59}
60
61func (x *CrawledUrl) Reset() {
62	*x = CrawledUrl{}
63	if protoimpl.UnsafeEnabled {
64		mi := &file_google_cloud_websecurityscanner_v1alpha_crawled_url_proto_msgTypes[0]
65		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
66		ms.StoreMessageInfo(mi)
67	}
68}
69
70func (x *CrawledUrl) String() string {
71	return protoimpl.X.MessageStringOf(x)
72}
73
74func (*CrawledUrl) ProtoMessage() {}
75
76func (x *CrawledUrl) ProtoReflect() protoreflect.Message {
77	mi := &file_google_cloud_websecurityscanner_v1alpha_crawled_url_proto_msgTypes[0]
78	if protoimpl.UnsafeEnabled && x != nil {
79		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
80		if ms.LoadMessageInfo() == nil {
81			ms.StoreMessageInfo(mi)
82		}
83		return ms
84	}
85	return mi.MessageOf(x)
86}
87
88// Deprecated: Use CrawledUrl.ProtoReflect.Descriptor instead.
89func (*CrawledUrl) Descriptor() ([]byte, []int) {
90	return file_google_cloud_websecurityscanner_v1alpha_crawled_url_proto_rawDescGZIP(), []int{0}
91}
92
93func (x *CrawledUrl) GetHttpMethod() string {
94	if x != nil {
95		return x.HttpMethod
96	}
97	return ""
98}
99
100func (x *CrawledUrl) GetUrl() string {
101	if x != nil {
102		return x.Url
103	}
104	return ""
105}
106
107func (x *CrawledUrl) GetBody() string {
108	if x != nil {
109		return x.Body
110	}
111	return ""
112}
113
114var File_google_cloud_websecurityscanner_v1alpha_crawled_url_proto protoreflect.FileDescriptor
115
116var file_google_cloud_websecurityscanner_v1alpha_crawled_url_proto_rawDesc = []byte{
117	0x0a, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x77,
118	0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65,
119	0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x63, 0x72, 0x61, 0x77, 0x6c, 0x65,
120	0x64, 0x5f, 0x75, 0x72, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x27, 0x67, 0x6f, 0x6f,
121	0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63,
122	0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x61,
123	0x6c, 0x70, 0x68, 0x61, 0x22, 0x53, 0x0a, 0x0a, 0x43, 0x72, 0x61, 0x77, 0x6c, 0x65, 0x64, 0x55,
124	0x72, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f,
125	0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x68, 0x74, 0x74, 0x70, 0x4d, 0x65, 0x74,
126	0x68, 0x6f, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
127	0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20,
128	0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x42, 0x9b, 0x01, 0x0a, 0x2b, 0x63, 0x6f,
129	0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x77,
130	0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65,
131	0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x0f, 0x43, 0x72, 0x61, 0x77, 0x6c,
132	0x65, 0x64, 0x55, 0x72, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, 0x6f,
133	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f,
134	0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
135	0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63,
136	0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x61,
137	0x6c, 0x70, 0x68, 0x61, 0x3b, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79,
138	0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
139}
140
141var (
142	file_google_cloud_websecurityscanner_v1alpha_crawled_url_proto_rawDescOnce sync.Once
143	file_google_cloud_websecurityscanner_v1alpha_crawled_url_proto_rawDescData = file_google_cloud_websecurityscanner_v1alpha_crawled_url_proto_rawDesc
144)
145
146func file_google_cloud_websecurityscanner_v1alpha_crawled_url_proto_rawDescGZIP() []byte {
147	file_google_cloud_websecurityscanner_v1alpha_crawled_url_proto_rawDescOnce.Do(func() {
148		file_google_cloud_websecurityscanner_v1alpha_crawled_url_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_websecurityscanner_v1alpha_crawled_url_proto_rawDescData)
149	})
150	return file_google_cloud_websecurityscanner_v1alpha_crawled_url_proto_rawDescData
151}
152
153var file_google_cloud_websecurityscanner_v1alpha_crawled_url_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
154var file_google_cloud_websecurityscanner_v1alpha_crawled_url_proto_goTypes = []interface{}{
155	(*CrawledUrl)(nil), // 0: google.cloud.websecurityscanner.v1alpha.CrawledUrl
156}
157var file_google_cloud_websecurityscanner_v1alpha_crawled_url_proto_depIdxs = []int32{
158	0, // [0:0] is the sub-list for method output_type
159	0, // [0:0] is the sub-list for method input_type
160	0, // [0:0] is the sub-list for extension type_name
161	0, // [0:0] is the sub-list for extension extendee
162	0, // [0:0] is the sub-list for field type_name
163}
164
165func init() { file_google_cloud_websecurityscanner_v1alpha_crawled_url_proto_init() }
166func file_google_cloud_websecurityscanner_v1alpha_crawled_url_proto_init() {
167	if File_google_cloud_websecurityscanner_v1alpha_crawled_url_proto != nil {
168		return
169	}
170	if !protoimpl.UnsafeEnabled {
171		file_google_cloud_websecurityscanner_v1alpha_crawled_url_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
172			switch v := v.(*CrawledUrl); i {
173			case 0:
174				return &v.state
175			case 1:
176				return &v.sizeCache
177			case 2:
178				return &v.unknownFields
179			default:
180				return nil
181			}
182		}
183	}
184	type x struct{}
185	out := protoimpl.TypeBuilder{
186		File: protoimpl.DescBuilder{
187			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
188			RawDescriptor: file_google_cloud_websecurityscanner_v1alpha_crawled_url_proto_rawDesc,
189			NumEnums:      0,
190			NumMessages:   1,
191			NumExtensions: 0,
192			NumServices:   0,
193		},
194		GoTypes:           file_google_cloud_websecurityscanner_v1alpha_crawled_url_proto_goTypes,
195		DependencyIndexes: file_google_cloud_websecurityscanner_v1alpha_crawled_url_proto_depIdxs,
196		MessageInfos:      file_google_cloud_websecurityscanner_v1alpha_crawled_url_proto_msgTypes,
197	}.Build()
198	File_google_cloud_websecurityscanner_v1alpha_crawled_url_proto = out.File
199	file_google_cloud_websecurityscanner_v1alpha_crawled_url_proto_rawDesc = nil
200	file_google_cloud_websecurityscanner_v1alpha_crawled_url_proto_goTypes = nil
201	file_google_cloud_websecurityscanner_v1alpha_crawled_url_proto_depIdxs = nil
202}
203