...

Source file src/google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta/scan_run_warning_trace.pb.go

Documentation: google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta

     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.26.0
    19  // 	protoc        v3.12.2
    20  // source: google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto
    21  
    22  package websecurityscanner
    23  
    24  import (
    25  	reflect "reflect"
    26  	sync "sync"
    27  
    28  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    29  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    30  )
    31  
    32  const (
    33  	// Verify that this generated code is sufficiently up-to-date.
    34  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    35  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    36  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    37  )
    38  
    39  // Output only.
    40  // Defines a warning message code.
    41  // Next id: 6
    42  type ScanRunWarningTrace_Code int32
    43  
    44  const (
    45  	// Default value is never used.
    46  	ScanRunWarningTrace_CODE_UNSPECIFIED ScanRunWarningTrace_Code = 0
    47  	// Indicates that a scan discovered an unexpectedly low number of URLs. This
    48  	// is sometimes caused by complex navigation features or by using a single
    49  	// URL for numerous pages.
    50  	ScanRunWarningTrace_INSUFFICIENT_CRAWL_RESULTS ScanRunWarningTrace_Code = 1
    51  	// Indicates that a scan discovered too many URLs to test, or excessive
    52  	// redundant URLs.
    53  	ScanRunWarningTrace_TOO_MANY_CRAWL_RESULTS ScanRunWarningTrace_Code = 2
    54  	// Indicates that too many tests have been generated for the scan. Customer
    55  	// should try reducing the number of starting URLs, increasing the QPS rate,
    56  	// or narrowing down the scope of the scan using the excluded patterns.
    57  	ScanRunWarningTrace_TOO_MANY_FUZZ_TASKS ScanRunWarningTrace_Code = 3
    58  	// Indicates that a scan is blocked by IAP.
    59  	ScanRunWarningTrace_BLOCKED_BY_IAP ScanRunWarningTrace_Code = 4
    60  )
    61  
    62  // Enum value maps for ScanRunWarningTrace_Code.
    63  var (
    64  	ScanRunWarningTrace_Code_name = map[int32]string{
    65  		0: "CODE_UNSPECIFIED",
    66  		1: "INSUFFICIENT_CRAWL_RESULTS",
    67  		2: "TOO_MANY_CRAWL_RESULTS",
    68  		3: "TOO_MANY_FUZZ_TASKS",
    69  		4: "BLOCKED_BY_IAP",
    70  	}
    71  	ScanRunWarningTrace_Code_value = map[string]int32{
    72  		"CODE_UNSPECIFIED":           0,
    73  		"INSUFFICIENT_CRAWL_RESULTS": 1,
    74  		"TOO_MANY_CRAWL_RESULTS":     2,
    75  		"TOO_MANY_FUZZ_TASKS":        3,
    76  		"BLOCKED_BY_IAP":             4,
    77  	}
    78  )
    79  
    80  func (x ScanRunWarningTrace_Code) Enum() *ScanRunWarningTrace_Code {
    81  	p := new(ScanRunWarningTrace_Code)
    82  	*p = x
    83  	return p
    84  }
    85  
    86  func (x ScanRunWarningTrace_Code) String() string {
    87  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    88  }
    89  
    90  func (ScanRunWarningTrace_Code) Descriptor() protoreflect.EnumDescriptor {
    91  	return file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_enumTypes[0].Descriptor()
    92  }
    93  
    94  func (ScanRunWarningTrace_Code) Type() protoreflect.EnumType {
    95  	return &file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_enumTypes[0]
    96  }
    97  
    98  func (x ScanRunWarningTrace_Code) Number() protoreflect.EnumNumber {
    99  	return protoreflect.EnumNumber(x)
   100  }
   101  
   102  // Deprecated: Use ScanRunWarningTrace_Code.Descriptor instead.
   103  func (ScanRunWarningTrace_Code) EnumDescriptor() ([]byte, []int) {
   104  	return file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_rawDescGZIP(), []int{0, 0}
   105  }
   106  
   107  // Output only.
   108  // Defines a warning trace message for ScanRun. Warning traces provide customers
   109  // with useful information that helps make the scanning process more effective.
   110  type ScanRunWarningTrace struct {
   111  	state         protoimpl.MessageState
   112  	sizeCache     protoimpl.SizeCache
   113  	unknownFields protoimpl.UnknownFields
   114  
   115  	// Indicates the warning code.
   116  	Code ScanRunWarningTrace_Code `protobuf:"varint,1,opt,name=code,proto3,enum=google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace_Code" json:"code,omitempty"`
   117  }
   118  
   119  func (x *ScanRunWarningTrace) Reset() {
   120  	*x = ScanRunWarningTrace{}
   121  	if protoimpl.UnsafeEnabled {
   122  		mi := &file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_msgTypes[0]
   123  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   124  		ms.StoreMessageInfo(mi)
   125  	}
   126  }
   127  
   128  func (x *ScanRunWarningTrace) String() string {
   129  	return protoimpl.X.MessageStringOf(x)
   130  }
   131  
   132  func (*ScanRunWarningTrace) ProtoMessage() {}
   133  
   134  func (x *ScanRunWarningTrace) ProtoReflect() protoreflect.Message {
   135  	mi := &file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_msgTypes[0]
   136  	if protoimpl.UnsafeEnabled && x != nil {
   137  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   138  		if ms.LoadMessageInfo() == nil {
   139  			ms.StoreMessageInfo(mi)
   140  		}
   141  		return ms
   142  	}
   143  	return mi.MessageOf(x)
   144  }
   145  
   146  // Deprecated: Use ScanRunWarningTrace.ProtoReflect.Descriptor instead.
   147  func (*ScanRunWarningTrace) Descriptor() ([]byte, []int) {
   148  	return file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_rawDescGZIP(), []int{0}
   149  }
   150  
   151  func (x *ScanRunWarningTrace) GetCode() ScanRunWarningTrace_Code {
   152  	if x != nil {
   153  		return x.Code
   154  	}
   155  	return ScanRunWarningTrace_CODE_UNSPECIFIED
   156  }
   157  
   158  var File_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto protoreflect.FileDescriptor
   159  
   160  var file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_rawDesc = []byte{
   161  	0x0a, 0x43, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x77,
   162  	0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65,
   163  	0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x73, 0x63, 0x61, 0x6e, 0x5f, 0x72, 0x75,
   164  	0x6e, 0x5f, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e,
   165  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
   166  	0x6f, 0x75, 0x64, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73,
   167  	0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x22, 0xf3, 0x01,
   168  	0x0a, 0x13, 0x53, 0x63, 0x61, 0x6e, 0x52, 0x75, 0x6e, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67,
   169  	0x54, 0x72, 0x61, 0x63, 0x65, 0x12, 0x54, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
   170  	0x01, 0x28, 0x0e, 0x32, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
   171  	0x75, 0x64, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63,
   172  	0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x53, 0x63, 0x61,
   173  	0x6e, 0x52, 0x75, 0x6e, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x63, 0x65,
   174  	0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x85, 0x01, 0x0a, 0x04,
   175  	0x43, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53,
   176  	0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x49, 0x4e,
   177  	0x53, 0x55, 0x46, 0x46, 0x49, 0x43, 0x49, 0x45, 0x4e, 0x54, 0x5f, 0x43, 0x52, 0x41, 0x57, 0x4c,
   178  	0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x53, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x4f,
   179  	0x4f, 0x5f, 0x4d, 0x41, 0x4e, 0x59, 0x5f, 0x43, 0x52, 0x41, 0x57, 0x4c, 0x5f, 0x52, 0x45, 0x53,
   180  	0x55, 0x4c, 0x54, 0x53, 0x10, 0x02, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x4f, 0x4f, 0x5f, 0x4d, 0x41,
   181  	0x4e, 0x59, 0x5f, 0x46, 0x55, 0x5a, 0x5a, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x53, 0x10, 0x03, 0x12,
   182  	0x12, 0x0a, 0x0e, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x45, 0x44, 0x5f, 0x42, 0x59, 0x5f, 0x49, 0x41,
   183  	0x50, 0x10, 0x04, 0x42, 0xa0, 0x02, 0x0a, 0x2a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
   184  	0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75,
   185  	0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65,
   186  	0x74, 0x61, 0x42, 0x18, 0x53, 0x63, 0x61, 0x6e, 0x52, 0x75, 0x6e, 0x57, 0x61, 0x72, 0x6e, 0x69,
   187  	0x6e, 0x67, 0x54, 0x72, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x58,
   188  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72,
   189  	0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   190  	0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x77, 0x65, 0x62, 0x73,
   191  	0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2f, 0x76,
   192  	0x31, 0x62, 0x65, 0x74, 0x61, 0x3b, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
   193  	0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0xaa, 0x02, 0x26, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
   194  	0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x57, 0x65, 0x62, 0x53, 0x65, 0x63, 0x75, 0x72,
   195  	0x69, 0x74, 0x79, 0x53, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74,
   196  	0x61, 0xca, 0x02, 0x26, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64,
   197  	0x5c, 0x57, 0x65, 0x62, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x53, 0x63, 0x61, 0x6e,
   198  	0x6e, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0xea, 0x02, 0x29, 0x47, 0x6f, 0x6f,
   199  	0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x57, 0x65, 0x62, 0x53,
   200  	0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x53, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x3a, 0x3a,
   201  	0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   202  }
   203  
   204  var (
   205  	file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_rawDescOnce sync.Once
   206  	file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_rawDescData = file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_rawDesc
   207  )
   208  
   209  func file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_rawDescGZIP() []byte {
   210  	file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_rawDescOnce.Do(func() {
   211  		file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_rawDescData)
   212  	})
   213  	return file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_rawDescData
   214  }
   215  
   216  var file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   217  var file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   218  var file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_goTypes = []interface{}{
   219  	(ScanRunWarningTrace_Code)(0), // 0: google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code
   220  	(*ScanRunWarningTrace)(nil),   // 1: google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace
   221  }
   222  var file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_depIdxs = []int32{
   223  	0, // 0: google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.code:type_name -> google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code
   224  	1, // [1:1] is the sub-list for method output_type
   225  	1, // [1:1] is the sub-list for method input_type
   226  	1, // [1:1] is the sub-list for extension type_name
   227  	1, // [1:1] is the sub-list for extension extendee
   228  	0, // [0:1] is the sub-list for field type_name
   229  }
   230  
   231  func init() { file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_init() }
   232  func file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_init() {
   233  	if File_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto != nil {
   234  		return
   235  	}
   236  	if !protoimpl.UnsafeEnabled {
   237  		file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   238  			switch v := v.(*ScanRunWarningTrace); i {
   239  			case 0:
   240  				return &v.state
   241  			case 1:
   242  				return &v.sizeCache
   243  			case 2:
   244  				return &v.unknownFields
   245  			default:
   246  				return nil
   247  			}
   248  		}
   249  	}
   250  	type x struct{}
   251  	out := protoimpl.TypeBuilder{
   252  		File: protoimpl.DescBuilder{
   253  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   254  			RawDescriptor: file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_rawDesc,
   255  			NumEnums:      1,
   256  			NumMessages:   1,
   257  			NumExtensions: 0,
   258  			NumServices:   0,
   259  		},
   260  		GoTypes:           file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_goTypes,
   261  		DependencyIndexes: file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_depIdxs,
   262  		EnumInfos:         file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_enumTypes,
   263  		MessageInfos:      file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_msgTypes,
   264  	}.Build()
   265  	File_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto = out.File
   266  	file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_rawDesc = nil
   267  	file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_goTypes = nil
   268  	file_google_cloud_websecurityscanner_v1beta_scan_run_warning_trace_proto_depIdxs = nil
   269  }
   270  

View as plain text