...

Source file src/google.golang.org/genproto/googleapis/grafeas/v1/compliance.pb.go

Documentation: google.golang.org/genproto/googleapis/grafeas/v1

     1  // Copyright 2021 The Grafeas Authors. All rights reserved.
     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.26.0
    18  // 	protoc        v4.24.4
    19  // source: grafeas/v1/compliance.proto
    20  
    21  package grafeas
    22  
    23  import (
    24  	reflect "reflect"
    25  	sync "sync"
    26  
    27  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    28  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    29  )
    30  
    31  const (
    32  	// Verify that this generated code is sufficiently up-to-date.
    33  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    34  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    36  )
    37  
    38  type ComplianceNote struct {
    39  	state         protoimpl.MessageState
    40  	sizeCache     protoimpl.SizeCache
    41  	unknownFields protoimpl.UnknownFields
    42  
    43  	// The title that identifies this compliance check.
    44  	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
    45  	// A description about this compliance check.
    46  	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
    47  	// The OS and config versions the benchmark applies to.
    48  	Version []*ComplianceVersion `protobuf:"bytes,3,rep,name=version,proto3" json:"version,omitempty"`
    49  	// A rationale for the existence of this compliance check.
    50  	Rationale string `protobuf:"bytes,4,opt,name=rationale,proto3" json:"rationale,omitempty"`
    51  	// A description of remediation steps if the compliance check fails.
    52  	Remediation string `protobuf:"bytes,5,opt,name=remediation,proto3" json:"remediation,omitempty"`
    53  	// Types that are assignable to ComplianceType:
    54  	//
    55  	//	*ComplianceNote_CisBenchmark_
    56  	ComplianceType isComplianceNote_ComplianceType `protobuf_oneof:"compliance_type"`
    57  	// Serialized scan instructions with a predefined format.
    58  	ScanInstructions []byte `protobuf:"bytes,7,opt,name=scan_instructions,json=scanInstructions,proto3" json:"scan_instructions,omitempty"`
    59  	// Potential impact of the suggested remediation
    60  	//
    61  	// Types that are assignable to PotentialImpact:
    62  	//
    63  	//	*ComplianceNote_Impact
    64  	PotentialImpact isComplianceNote_PotentialImpact `protobuf_oneof:"potential_impact"`
    65  }
    66  
    67  func (x *ComplianceNote) Reset() {
    68  	*x = ComplianceNote{}
    69  	if protoimpl.UnsafeEnabled {
    70  		mi := &file_grafeas_v1_compliance_proto_msgTypes[0]
    71  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    72  		ms.StoreMessageInfo(mi)
    73  	}
    74  }
    75  
    76  func (x *ComplianceNote) String() string {
    77  	return protoimpl.X.MessageStringOf(x)
    78  }
    79  
    80  func (*ComplianceNote) ProtoMessage() {}
    81  
    82  func (x *ComplianceNote) ProtoReflect() protoreflect.Message {
    83  	mi := &file_grafeas_v1_compliance_proto_msgTypes[0]
    84  	if protoimpl.UnsafeEnabled && x != nil {
    85  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    86  		if ms.LoadMessageInfo() == nil {
    87  			ms.StoreMessageInfo(mi)
    88  		}
    89  		return ms
    90  	}
    91  	return mi.MessageOf(x)
    92  }
    93  
    94  // Deprecated: Use ComplianceNote.ProtoReflect.Descriptor instead.
    95  func (*ComplianceNote) Descriptor() ([]byte, []int) {
    96  	return file_grafeas_v1_compliance_proto_rawDescGZIP(), []int{0}
    97  }
    98  
    99  func (x *ComplianceNote) GetTitle() string {
   100  	if x != nil {
   101  		return x.Title
   102  	}
   103  	return ""
   104  }
   105  
   106  func (x *ComplianceNote) GetDescription() string {
   107  	if x != nil {
   108  		return x.Description
   109  	}
   110  	return ""
   111  }
   112  
   113  func (x *ComplianceNote) GetVersion() []*ComplianceVersion {
   114  	if x != nil {
   115  		return x.Version
   116  	}
   117  	return nil
   118  }
   119  
   120  func (x *ComplianceNote) GetRationale() string {
   121  	if x != nil {
   122  		return x.Rationale
   123  	}
   124  	return ""
   125  }
   126  
   127  func (x *ComplianceNote) GetRemediation() string {
   128  	if x != nil {
   129  		return x.Remediation
   130  	}
   131  	return ""
   132  }
   133  
   134  func (m *ComplianceNote) GetComplianceType() isComplianceNote_ComplianceType {
   135  	if m != nil {
   136  		return m.ComplianceType
   137  	}
   138  	return nil
   139  }
   140  
   141  func (x *ComplianceNote) GetCisBenchmark() *ComplianceNote_CisBenchmark {
   142  	if x, ok := x.GetComplianceType().(*ComplianceNote_CisBenchmark_); ok {
   143  		return x.CisBenchmark
   144  	}
   145  	return nil
   146  }
   147  
   148  func (x *ComplianceNote) GetScanInstructions() []byte {
   149  	if x != nil {
   150  		return x.ScanInstructions
   151  	}
   152  	return nil
   153  }
   154  
   155  func (m *ComplianceNote) GetPotentialImpact() isComplianceNote_PotentialImpact {
   156  	if m != nil {
   157  		return m.PotentialImpact
   158  	}
   159  	return nil
   160  }
   161  
   162  func (x *ComplianceNote) GetImpact() string {
   163  	if x, ok := x.GetPotentialImpact().(*ComplianceNote_Impact); ok {
   164  		return x.Impact
   165  	}
   166  	return ""
   167  }
   168  
   169  type isComplianceNote_ComplianceType interface {
   170  	isComplianceNote_ComplianceType()
   171  }
   172  
   173  type ComplianceNote_CisBenchmark_ struct {
   174  	CisBenchmark *ComplianceNote_CisBenchmark `protobuf:"bytes,6,opt,name=cis_benchmark,json=cisBenchmark,proto3,oneof"`
   175  }
   176  
   177  func (*ComplianceNote_CisBenchmark_) isComplianceNote_ComplianceType() {}
   178  
   179  type isComplianceNote_PotentialImpact interface {
   180  	isComplianceNote_PotentialImpact()
   181  }
   182  
   183  type ComplianceNote_Impact struct {
   184  	Impact string `protobuf:"bytes,8,opt,name=impact,proto3,oneof"`
   185  }
   186  
   187  func (*ComplianceNote_Impact) isComplianceNote_PotentialImpact() {}
   188  
   189  // Describes the CIS benchmark version that is applicable to a given OS and
   190  // os version.
   191  type ComplianceVersion struct {
   192  	state         protoimpl.MessageState
   193  	sizeCache     protoimpl.SizeCache
   194  	unknownFields protoimpl.UnknownFields
   195  
   196  	// The CPE URI (https://cpe.mitre.org/specification/) this benchmark is
   197  	// applicable to.
   198  	CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"`
   199  	// The name of the document that defines this benchmark, e.g. "CIS
   200  	// Container-Optimized OS".
   201  	BenchmarkDocument string `protobuf:"bytes,3,opt,name=benchmark_document,json=benchmarkDocument,proto3" json:"benchmark_document,omitempty"`
   202  	// The version of the benchmark. This is set to the version of the OS-specific
   203  	// CIS document the benchmark is defined in.
   204  	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
   205  }
   206  
   207  func (x *ComplianceVersion) Reset() {
   208  	*x = ComplianceVersion{}
   209  	if protoimpl.UnsafeEnabled {
   210  		mi := &file_grafeas_v1_compliance_proto_msgTypes[1]
   211  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   212  		ms.StoreMessageInfo(mi)
   213  	}
   214  }
   215  
   216  func (x *ComplianceVersion) String() string {
   217  	return protoimpl.X.MessageStringOf(x)
   218  }
   219  
   220  func (*ComplianceVersion) ProtoMessage() {}
   221  
   222  func (x *ComplianceVersion) ProtoReflect() protoreflect.Message {
   223  	mi := &file_grafeas_v1_compliance_proto_msgTypes[1]
   224  	if protoimpl.UnsafeEnabled && x != nil {
   225  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   226  		if ms.LoadMessageInfo() == nil {
   227  			ms.StoreMessageInfo(mi)
   228  		}
   229  		return ms
   230  	}
   231  	return mi.MessageOf(x)
   232  }
   233  
   234  // Deprecated: Use ComplianceVersion.ProtoReflect.Descriptor instead.
   235  func (*ComplianceVersion) Descriptor() ([]byte, []int) {
   236  	return file_grafeas_v1_compliance_proto_rawDescGZIP(), []int{1}
   237  }
   238  
   239  func (x *ComplianceVersion) GetCpeUri() string {
   240  	if x != nil {
   241  		return x.CpeUri
   242  	}
   243  	return ""
   244  }
   245  
   246  func (x *ComplianceVersion) GetBenchmarkDocument() string {
   247  	if x != nil {
   248  		return x.BenchmarkDocument
   249  	}
   250  	return ""
   251  }
   252  
   253  func (x *ComplianceVersion) GetVersion() string {
   254  	if x != nil {
   255  		return x.Version
   256  	}
   257  	return ""
   258  }
   259  
   260  // An indication that the compliance checks in the associated ComplianceNote
   261  // were not satisfied for particular resources or a specified reason.
   262  type ComplianceOccurrence struct {
   263  	state         protoimpl.MessageState
   264  	sizeCache     protoimpl.SizeCache
   265  	unknownFields protoimpl.UnknownFields
   266  
   267  	NonCompliantFiles   []*NonCompliantFile `protobuf:"bytes,2,rep,name=non_compliant_files,json=nonCompliantFiles,proto3" json:"non_compliant_files,omitempty"`
   268  	NonComplianceReason string              `protobuf:"bytes,3,opt,name=non_compliance_reason,json=nonComplianceReason,proto3" json:"non_compliance_reason,omitempty"`
   269  }
   270  
   271  func (x *ComplianceOccurrence) Reset() {
   272  	*x = ComplianceOccurrence{}
   273  	if protoimpl.UnsafeEnabled {
   274  		mi := &file_grafeas_v1_compliance_proto_msgTypes[2]
   275  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   276  		ms.StoreMessageInfo(mi)
   277  	}
   278  }
   279  
   280  func (x *ComplianceOccurrence) String() string {
   281  	return protoimpl.X.MessageStringOf(x)
   282  }
   283  
   284  func (*ComplianceOccurrence) ProtoMessage() {}
   285  
   286  func (x *ComplianceOccurrence) ProtoReflect() protoreflect.Message {
   287  	mi := &file_grafeas_v1_compliance_proto_msgTypes[2]
   288  	if protoimpl.UnsafeEnabled && x != nil {
   289  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   290  		if ms.LoadMessageInfo() == nil {
   291  			ms.StoreMessageInfo(mi)
   292  		}
   293  		return ms
   294  	}
   295  	return mi.MessageOf(x)
   296  }
   297  
   298  // Deprecated: Use ComplianceOccurrence.ProtoReflect.Descriptor instead.
   299  func (*ComplianceOccurrence) Descriptor() ([]byte, []int) {
   300  	return file_grafeas_v1_compliance_proto_rawDescGZIP(), []int{2}
   301  }
   302  
   303  func (x *ComplianceOccurrence) GetNonCompliantFiles() []*NonCompliantFile {
   304  	if x != nil {
   305  		return x.NonCompliantFiles
   306  	}
   307  	return nil
   308  }
   309  
   310  func (x *ComplianceOccurrence) GetNonComplianceReason() string {
   311  	if x != nil {
   312  		return x.NonComplianceReason
   313  	}
   314  	return ""
   315  }
   316  
   317  // Details about files that caused a compliance check to fail.
   318  type NonCompliantFile struct {
   319  	state         protoimpl.MessageState
   320  	sizeCache     protoimpl.SizeCache
   321  	unknownFields protoimpl.UnknownFields
   322  
   323  	// Empty if `display_command` is set.
   324  	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
   325  	// Command to display the non-compliant files.
   326  	DisplayCommand string `protobuf:"bytes,2,opt,name=display_command,json=displayCommand,proto3" json:"display_command,omitempty"`
   327  	// Explains why a file is non compliant for a CIS check.
   328  	Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
   329  }
   330  
   331  func (x *NonCompliantFile) Reset() {
   332  	*x = NonCompliantFile{}
   333  	if protoimpl.UnsafeEnabled {
   334  		mi := &file_grafeas_v1_compliance_proto_msgTypes[3]
   335  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   336  		ms.StoreMessageInfo(mi)
   337  	}
   338  }
   339  
   340  func (x *NonCompliantFile) String() string {
   341  	return protoimpl.X.MessageStringOf(x)
   342  }
   343  
   344  func (*NonCompliantFile) ProtoMessage() {}
   345  
   346  func (x *NonCompliantFile) ProtoReflect() protoreflect.Message {
   347  	mi := &file_grafeas_v1_compliance_proto_msgTypes[3]
   348  	if protoimpl.UnsafeEnabled && x != nil {
   349  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   350  		if ms.LoadMessageInfo() == nil {
   351  			ms.StoreMessageInfo(mi)
   352  		}
   353  		return ms
   354  	}
   355  	return mi.MessageOf(x)
   356  }
   357  
   358  // Deprecated: Use NonCompliantFile.ProtoReflect.Descriptor instead.
   359  func (*NonCompliantFile) Descriptor() ([]byte, []int) {
   360  	return file_grafeas_v1_compliance_proto_rawDescGZIP(), []int{3}
   361  }
   362  
   363  func (x *NonCompliantFile) GetPath() string {
   364  	if x != nil {
   365  		return x.Path
   366  	}
   367  	return ""
   368  }
   369  
   370  func (x *NonCompliantFile) GetDisplayCommand() string {
   371  	if x != nil {
   372  		return x.DisplayCommand
   373  	}
   374  	return ""
   375  }
   376  
   377  func (x *NonCompliantFile) GetReason() string {
   378  	if x != nil {
   379  		return x.Reason
   380  	}
   381  	return ""
   382  }
   383  
   384  // A compliance check that is a CIS benchmark.
   385  type ComplianceNote_CisBenchmark struct {
   386  	state         protoimpl.MessageState
   387  	sizeCache     protoimpl.SizeCache
   388  	unknownFields protoimpl.UnknownFields
   389  
   390  	ProfileLevel int32    `protobuf:"varint,1,opt,name=profile_level,json=profileLevel,proto3" json:"profile_level,omitempty"`
   391  	Severity     Severity `protobuf:"varint,2,opt,name=severity,proto3,enum=grafeas.v1.Severity" json:"severity,omitempty"`
   392  }
   393  
   394  func (x *ComplianceNote_CisBenchmark) Reset() {
   395  	*x = ComplianceNote_CisBenchmark{}
   396  	if protoimpl.UnsafeEnabled {
   397  		mi := &file_grafeas_v1_compliance_proto_msgTypes[4]
   398  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   399  		ms.StoreMessageInfo(mi)
   400  	}
   401  }
   402  
   403  func (x *ComplianceNote_CisBenchmark) String() string {
   404  	return protoimpl.X.MessageStringOf(x)
   405  }
   406  
   407  func (*ComplianceNote_CisBenchmark) ProtoMessage() {}
   408  
   409  func (x *ComplianceNote_CisBenchmark) ProtoReflect() protoreflect.Message {
   410  	mi := &file_grafeas_v1_compliance_proto_msgTypes[4]
   411  	if protoimpl.UnsafeEnabled && x != nil {
   412  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   413  		if ms.LoadMessageInfo() == nil {
   414  			ms.StoreMessageInfo(mi)
   415  		}
   416  		return ms
   417  	}
   418  	return mi.MessageOf(x)
   419  }
   420  
   421  // Deprecated: Use ComplianceNote_CisBenchmark.ProtoReflect.Descriptor instead.
   422  func (*ComplianceNote_CisBenchmark) Descriptor() ([]byte, []int) {
   423  	return file_grafeas_v1_compliance_proto_rawDescGZIP(), []int{0, 0}
   424  }
   425  
   426  func (x *ComplianceNote_CisBenchmark) GetProfileLevel() int32 {
   427  	if x != nil {
   428  		return x.ProfileLevel
   429  	}
   430  	return 0
   431  }
   432  
   433  func (x *ComplianceNote_CisBenchmark) GetSeverity() Severity {
   434  	if x != nil {
   435  		return x.Severity
   436  	}
   437  	return Severity_SEVERITY_UNSPECIFIED
   438  }
   439  
   440  var File_grafeas_v1_compliance_proto protoreflect.FileDescriptor
   441  
   442  var file_grafeas_v1_compliance_proto_rawDesc = []byte{
   443  	0x0a, 0x1b, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d,
   444  	0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67,
   445  	0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x67, 0x72, 0x61, 0x66, 0x65,
   446  	0x61, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x70,
   447  	0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe6, 0x03, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x69, 0x61,
   448  	0x6e, 0x63, 0x65, 0x4e, 0x6f, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,
   449  	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a,
   450  	0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01,
   451  	0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12,
   452  	0x37, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
   453  	0x32, 0x1d, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f,
   454  	0x6d, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52,
   455  	0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x61, 0x74, 0x69,
   456  	0x6f, 0x6e, 0x61, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x61, 0x74,
   457  	0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x6d, 0x65, 0x64, 0x69,
   458  	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x6d,
   459  	0x65, 0x64, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4e, 0x0a, 0x0d, 0x63, 0x69, 0x73, 0x5f,
   460  	0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32,
   461  	0x27, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d,
   462  	0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x4e, 0x6f, 0x74, 0x65, 0x2e, 0x43, 0x69, 0x73, 0x42,
   463  	0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x69, 0x73, 0x42,
   464  	0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x12, 0x2b, 0x0a, 0x11, 0x73, 0x63, 0x61, 0x6e,
   465  	0x5f, 0x69, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20,
   466  	0x01, 0x28, 0x0c, 0x52, 0x10, 0x73, 0x63, 0x61, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x63,
   467  	0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x18, 0x0a, 0x06, 0x69, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x18,
   468  	0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x06, 0x69, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x1a,
   469  	0x65, 0x0a, 0x0c, 0x43, 0x69, 0x73, 0x42, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x12,
   470  	0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c,
   471  	0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x4c,
   472  	0x65, 0x76, 0x65, 0x6c, 0x12, 0x30, 0x0a, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79,
   473  	0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73,
   474  	0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, 0x08, 0x73, 0x65,
   475  	0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x42, 0x11, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x69,
   476  	0x61, 0x6e, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x42, 0x12, 0x0a, 0x10, 0x70, 0x6f, 0x74,
   477  	0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x69, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x22, 0x75, 0x0a,
   478  	0x11, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69,
   479  	0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x70, 0x65, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20,
   480  	0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x70, 0x65, 0x55, 0x72, 0x69, 0x12, 0x2d, 0x0a, 0x12, 0x62,
   481  	0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x5f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e,
   482  	0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61,
   483  	0x72, 0x6b, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65,
   484  	0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72,
   485  	0x73, 0x69, 0x6f, 0x6e, 0x22, 0x98, 0x01, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x69, 0x61,
   486  	0x6e, 0x63, 0x65, 0x4f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x4c, 0x0a,
   487  	0x13, 0x6e, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x74, 0x5f, 0x66,
   488  	0x69, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x61,
   489  	0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6c,
   490  	0x69, 0x61, 0x6e, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x11, 0x6e, 0x6f, 0x6e, 0x43, 0x6f, 0x6d,
   491  	0x70, 0x6c, 0x69, 0x61, 0x6e, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x6e,
   492  	0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x72, 0x65,
   493  	0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x6e, 0x6f, 0x6e, 0x43,
   494  	0x6f, 0x6d, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22,
   495  	0x67, 0x0a, 0x10, 0x4e, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x74, 0x46,
   496  	0x69, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28,
   497  	0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x27, 0x0a, 0x0f, 0x64, 0x69, 0x73, 0x70, 0x6c,
   498  	0x61, 0x79, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
   499  	0x52, 0x0e, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,
   500  	0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
   501  	0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x42, 0x51, 0x0a, 0x0d, 0x69, 0x6f, 0x2e, 0x67,
   502  	0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x38, 0x67, 0x6f, 0x6f,
   503  	0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67,
   504  	0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
   505  	0x69, 0x73, 0x2f, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x72,
   506  	0x61, 0x66, 0x65, 0x61, 0x73, 0xa2, 0x02, 0x03, 0x47, 0x52, 0x41, 0x62, 0x06, 0x70, 0x72, 0x6f,
   507  	0x74, 0x6f, 0x33,
   508  }
   509  
   510  var (
   511  	file_grafeas_v1_compliance_proto_rawDescOnce sync.Once
   512  	file_grafeas_v1_compliance_proto_rawDescData = file_grafeas_v1_compliance_proto_rawDesc
   513  )
   514  
   515  func file_grafeas_v1_compliance_proto_rawDescGZIP() []byte {
   516  	file_grafeas_v1_compliance_proto_rawDescOnce.Do(func() {
   517  		file_grafeas_v1_compliance_proto_rawDescData = protoimpl.X.CompressGZIP(file_grafeas_v1_compliance_proto_rawDescData)
   518  	})
   519  	return file_grafeas_v1_compliance_proto_rawDescData
   520  }
   521  
   522  var file_grafeas_v1_compliance_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
   523  var file_grafeas_v1_compliance_proto_goTypes = []interface{}{
   524  	(*ComplianceNote)(nil),              // 0: grafeas.v1.ComplianceNote
   525  	(*ComplianceVersion)(nil),           // 1: grafeas.v1.ComplianceVersion
   526  	(*ComplianceOccurrence)(nil),        // 2: grafeas.v1.ComplianceOccurrence
   527  	(*NonCompliantFile)(nil),            // 3: grafeas.v1.NonCompliantFile
   528  	(*ComplianceNote_CisBenchmark)(nil), // 4: grafeas.v1.ComplianceNote.CisBenchmark
   529  	(Severity)(0),                       // 5: grafeas.v1.Severity
   530  }
   531  var file_grafeas_v1_compliance_proto_depIdxs = []int32{
   532  	1, // 0: grafeas.v1.ComplianceNote.version:type_name -> grafeas.v1.ComplianceVersion
   533  	4, // 1: grafeas.v1.ComplianceNote.cis_benchmark:type_name -> grafeas.v1.ComplianceNote.CisBenchmark
   534  	3, // 2: grafeas.v1.ComplianceOccurrence.non_compliant_files:type_name -> grafeas.v1.NonCompliantFile
   535  	5, // 3: grafeas.v1.ComplianceNote.CisBenchmark.severity:type_name -> grafeas.v1.Severity
   536  	4, // [4:4] is the sub-list for method output_type
   537  	4, // [4:4] is the sub-list for method input_type
   538  	4, // [4:4] is the sub-list for extension type_name
   539  	4, // [4:4] is the sub-list for extension extendee
   540  	0, // [0:4] is the sub-list for field type_name
   541  }
   542  
   543  func init() { file_grafeas_v1_compliance_proto_init() }
   544  func file_grafeas_v1_compliance_proto_init() {
   545  	if File_grafeas_v1_compliance_proto != nil {
   546  		return
   547  	}
   548  	file_grafeas_v1_severity_proto_init()
   549  	if !protoimpl.UnsafeEnabled {
   550  		file_grafeas_v1_compliance_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   551  			switch v := v.(*ComplianceNote); i {
   552  			case 0:
   553  				return &v.state
   554  			case 1:
   555  				return &v.sizeCache
   556  			case 2:
   557  				return &v.unknownFields
   558  			default:
   559  				return nil
   560  			}
   561  		}
   562  		file_grafeas_v1_compliance_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   563  			switch v := v.(*ComplianceVersion); i {
   564  			case 0:
   565  				return &v.state
   566  			case 1:
   567  				return &v.sizeCache
   568  			case 2:
   569  				return &v.unknownFields
   570  			default:
   571  				return nil
   572  			}
   573  		}
   574  		file_grafeas_v1_compliance_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   575  			switch v := v.(*ComplianceOccurrence); i {
   576  			case 0:
   577  				return &v.state
   578  			case 1:
   579  				return &v.sizeCache
   580  			case 2:
   581  				return &v.unknownFields
   582  			default:
   583  				return nil
   584  			}
   585  		}
   586  		file_grafeas_v1_compliance_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   587  			switch v := v.(*NonCompliantFile); i {
   588  			case 0:
   589  				return &v.state
   590  			case 1:
   591  				return &v.sizeCache
   592  			case 2:
   593  				return &v.unknownFields
   594  			default:
   595  				return nil
   596  			}
   597  		}
   598  		file_grafeas_v1_compliance_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
   599  			switch v := v.(*ComplianceNote_CisBenchmark); i {
   600  			case 0:
   601  				return &v.state
   602  			case 1:
   603  				return &v.sizeCache
   604  			case 2:
   605  				return &v.unknownFields
   606  			default:
   607  				return nil
   608  			}
   609  		}
   610  	}
   611  	file_grafeas_v1_compliance_proto_msgTypes[0].OneofWrappers = []interface{}{
   612  		(*ComplianceNote_CisBenchmark_)(nil),
   613  		(*ComplianceNote_Impact)(nil),
   614  	}
   615  	type x struct{}
   616  	out := protoimpl.TypeBuilder{
   617  		File: protoimpl.DescBuilder{
   618  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   619  			RawDescriptor: file_grafeas_v1_compliance_proto_rawDesc,
   620  			NumEnums:      0,
   621  			NumMessages:   5,
   622  			NumExtensions: 0,
   623  			NumServices:   0,
   624  		},
   625  		GoTypes:           file_grafeas_v1_compliance_proto_goTypes,
   626  		DependencyIndexes: file_grafeas_v1_compliance_proto_depIdxs,
   627  		MessageInfos:      file_grafeas_v1_compliance_proto_msgTypes,
   628  	}.Build()
   629  	File_grafeas_v1_compliance_proto = out.File
   630  	file_grafeas_v1_compliance_proto_rawDesc = nil
   631  	file_grafeas_v1_compliance_proto_goTypes = nil
   632  	file_grafeas_v1_compliance_proto_depIdxs = nil
   633  }
   634  

View as plain text