blob: 22c00f79af85d4cfb69c2f4344f49d08405c0135 [file] [edit]
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v6.33.2
// source: google/devtools/containeranalysis/v1beta1/containeranalysis.proto
package containeranalysispb
import (
reflect "reflect"
sync "sync"
unsafe "unsafe"
iampb "cloud.google.com/go/iam/apiv1/iampb"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// GeneratePackagesSummaryRequest is the request body for the
// GeneratePackagesSummary API method. It just takes a single name argument,
// referring to the resource.
type GeneratePackagesSummaryRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Required. The name of the resource to get a packages summary for in the
// form of `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GeneratePackagesSummaryRequest) Reset() {
*x = GeneratePackagesSummaryRequest{}
mi := &file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GeneratePackagesSummaryRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GeneratePackagesSummaryRequest) ProtoMessage() {}
func (x *GeneratePackagesSummaryRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GeneratePackagesSummaryRequest.ProtoReflect.Descriptor instead.
func (*GeneratePackagesSummaryRequest) Descriptor() ([]byte, []int) {
return file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_rawDescGZIP(), []int{0}
}
func (x *GeneratePackagesSummaryRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// A summary of the packages found within the given resource.
type PackagesSummaryResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The unique URL of the image or the container for which this summary
// applies.
ResourceUrl string `protobuf:"bytes,1,opt,name=resource_url,json=resourceUrl,proto3" json:"resource_url,omitempty"`
// A listing by license name of each of the licenses and their counts.
LicensesSummary []*PackagesSummaryResponse_LicensesSummary `protobuf:"bytes,2,rep,name=licenses_summary,json=licensesSummary,proto3" json:"licenses_summary,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PackagesSummaryResponse) Reset() {
*x = PackagesSummaryResponse{}
mi := &file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PackagesSummaryResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PackagesSummaryResponse) ProtoMessage() {}
func (x *PackagesSummaryResponse) ProtoReflect() protoreflect.Message {
mi := &file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PackagesSummaryResponse.ProtoReflect.Descriptor instead.
func (*PackagesSummaryResponse) Descriptor() ([]byte, []int) {
return file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_rawDescGZIP(), []int{1}
}
func (x *PackagesSummaryResponse) GetResourceUrl() string {
if x != nil {
return x.ResourceUrl
}
return ""
}
func (x *PackagesSummaryResponse) GetLicensesSummary() []*PackagesSummaryResponse_LicensesSummary {
if x != nil {
return x.LicensesSummary
}
return nil
}
// The request to a call of ExportSBOM
type ExportSBOMRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Required. The name of the resource in the form of
// `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ExportSBOMRequest) Reset() {
*x = ExportSBOMRequest{}
mi := &file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ExportSBOMRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExportSBOMRequest) ProtoMessage() {}
func (x *ExportSBOMRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ExportSBOMRequest.ProtoReflect.Descriptor instead.
func (*ExportSBOMRequest) Descriptor() ([]byte, []int) {
return file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_rawDescGZIP(), []int{2}
}
func (x *ExportSBOMRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// The response from a call to ExportSBOM
type ExportSBOMResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name of the discovery occurrence in the form
// "projects/{project_id}/occurrences/{OCCURRENCE_ID}
// It can be used to track the progression of the SBOM export.
DiscoveryOccurrenceId string `protobuf:"bytes,1,opt,name=discovery_occurrence_id,json=discoveryOccurrenceId,proto3" json:"discovery_occurrence_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ExportSBOMResponse) Reset() {
*x = ExportSBOMResponse{}
mi := &file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ExportSBOMResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExportSBOMResponse) ProtoMessage() {}
func (x *ExportSBOMResponse) ProtoReflect() protoreflect.Message {
mi := &file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ExportSBOMResponse.ProtoReflect.Descriptor instead.
func (*ExportSBOMResponse) Descriptor() ([]byte, []int) {
return file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_rawDescGZIP(), []int{3}
}
func (x *ExportSBOMResponse) GetDiscoveryOccurrenceId() string {
if x != nil {
return x.DiscoveryOccurrenceId
}
return ""
}
// Per license count
type PackagesSummaryResponse_LicensesSummary struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The license of the package. Note that the format of this value is not
// guaranteed. It may be nil, an empty string, a boolean value (A | B), a
// differently formed boolean value (A OR B), etc...
License string `protobuf:"bytes,1,opt,name=license,proto3" json:"license,omitempty"`
// The number of fixable vulnerabilities associated with this resource.
Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PackagesSummaryResponse_LicensesSummary) Reset() {
*x = PackagesSummaryResponse_LicensesSummary{}
mi := &file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PackagesSummaryResponse_LicensesSummary) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PackagesSummaryResponse_LicensesSummary) ProtoMessage() {}
func (x *PackagesSummaryResponse_LicensesSummary) ProtoReflect() protoreflect.Message {
mi := &file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PackagesSummaryResponse_LicensesSummary.ProtoReflect.Descriptor instead.
func (*PackagesSummaryResponse_LicensesSummary) Descriptor() ([]byte, []int) {
return file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_rawDescGZIP(), []int{1, 0}
}
func (x *PackagesSummaryResponse_LicensesSummary) GetLicense() string {
if x != nil {
return x.License
}
return ""
}
func (x *PackagesSummaryResponse_LicensesSummary) GetCount() int64 {
if x != nil {
return x.Count
}
return 0
}
var File_google_devtools_containeranalysis_v1beta1_containeranalysis_proto protoreflect.FileDescriptor
const file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_rawDesc = "" +
"\n" +
"Agoogle/devtools/containeranalysis/v1beta1/containeranalysis.proto\x12)google.devtools.containeranalysis.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\"9\n" +
"\x1eGeneratePackagesSummaryRequest\x12\x17\n" +
"\x04name\x18\x01 \x01(\tB\x03\xe0A\x02R\x04name\"\xfe\x01\n" +
"\x17PackagesSummaryResponse\x12!\n" +
"\fresource_url\x18\x01 \x01(\tR\vresourceUrl\x12}\n" +
"\x10licenses_summary\x18\x02 \x03(\v2R.google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummaryR\x0flicensesSummary\x1aA\n" +
"\x0fLicensesSummary\x12\x18\n" +
"\alicense\x18\x01 \x01(\tR\alicense\x12\x14\n" +
"\x05count\x18\x02 \x01(\x03R\x05count\",\n" +
"\x11ExportSBOMRequest\x12\x17\n" +
"\x04name\x18\x01 \x01(\tB\x03\xe0A\x02R\x04name\"L\n" +
"\x12ExportSBOMResponse\x126\n" +
"\x17discovery_occurrence_id\x18\x01 \x01(\tR\x15discoveryOccurrenceId2\xd8\x0e\n" +
"\x18ContainerAnalysisV1Beta1\x12\xef\x02\n" +
"\fSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xa3\x02\xdaA\x0fresource,policy\x82\xd3\xe4\x93\x02\x8a\x02:\x01*Z>:\x01*\"9/v1beta1/{resource=projects/*/occurrences/*}:setIamPolicyZD:\x01*\"?/v1beta1/{resource=projects/*/locations/*/notes/*}:setIamPolicyZJ:\x01*\"E/v1beta1/{resource=projects/*/locations/*/occurrences/*}:setIamPolicy\"3/v1beta1/{resource=projects/*/notes/*}:setIamPolicy\x12\xe8\x02\n" +
"\fGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\x9c\x02\xdaA\bresource\x82\xd3\xe4\x93\x02\x8a\x02:\x01*Z>:\x01*\"9/v1beta1/{resource=projects/*/occurrences/*}:getIamPolicyZD:\x01*\"?/v1beta1/{resource=projects/*/locations/*/notes/*}:getIamPolicyZJ:\x01*\"E/v1beta1/{resource=projects/*/locations/*/occurrences/*}:getIamPolicy\"3/v1beta1/{resource=projects/*/notes/*}:getIamPolicy\x12\xac\x03\n" +
"\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"\xc0\x02\xdaA\x14resource,permissions\x82\xd3\xe4\x93\x02\xa2\x02:\x01*ZD:\x01*\"?/v1beta1/{resource=projects/*/occurrences/*}:testIamPermissionsZJ:\x01*\"E/v1beta1/{resource=projects/*/locations/*/notes/*}:testIamPermissionsZP:\x01*\"K/v1beta1/{resource=projects/*/locations/*/occurrences/*}:testIamPermissions\"9/v1beta1/{resource=projects/*/notes/*}:testIamPermissions\x12\xc8\x02\n" +
"\x17GeneratePackagesSummary\x12I.google.devtools.containeranalysis.v1beta1.GeneratePackagesSummaryRequest\x1aB.google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse\"\x9d\x01\x82\xd3\xe4\x93\x02\x96\x01:\x01*ZP:\x01*\"K/v1beta1/{name=projects/*/locations/*/resources/**}:generatePackagesSummary\"?/v1beta1/{name=projects/*/resources/**}:generatePackagesSummary\x12\x8e\x02\n" +
"\n" +
"ExportSBOM\x12<.google.devtools.containeranalysis.v1beta1.ExportSBOMRequest\x1a=.google.devtools.containeranalysis.v1beta1.ExportSBOMResponse\"\x82\x01\x82\xd3\xe4\x93\x02|:\x01*ZC:\x01*\">/v1beta1/{name=projects/*/locations/*/resources/**}:exportSBOM\"2/v1beta1/{name=projects/*/resources/**}:exportSBOM\x1aT\xcaA containeranalysis.googleapis.com\xd2A.https://www.googleapis.com/auth/cloud-platformB\x88\x01\n" +
"$com.google.containeranalysis.v1beta1P\x01ZXcloud.google.com/go/containeranalysis/apiv1beta1/containeranalysispb;containeranalysispb\xa2\x02\x03GCAb\x06proto3"
var (
file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_rawDescOnce sync.Once
file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_rawDescData []byte
)
func file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_rawDescGZIP() []byte {
file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_rawDescOnce.Do(func() {
file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_rawDesc), len(file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_rawDesc)))
})
return file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_rawDescData
}
var file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_goTypes = []any{
(*GeneratePackagesSummaryRequest)(nil), // 0: google.devtools.containeranalysis.v1beta1.GeneratePackagesSummaryRequest
(*PackagesSummaryResponse)(nil), // 1: google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse
(*ExportSBOMRequest)(nil), // 2: google.devtools.containeranalysis.v1beta1.ExportSBOMRequest
(*ExportSBOMResponse)(nil), // 3: google.devtools.containeranalysis.v1beta1.ExportSBOMResponse
(*PackagesSummaryResponse_LicensesSummary)(nil), // 4: google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary
(*iampb.SetIamPolicyRequest)(nil), // 5: google.iam.v1.SetIamPolicyRequest
(*iampb.GetIamPolicyRequest)(nil), // 6: google.iam.v1.GetIamPolicyRequest
(*iampb.TestIamPermissionsRequest)(nil), // 7: google.iam.v1.TestIamPermissionsRequest
(*iampb.Policy)(nil), // 8: google.iam.v1.Policy
(*iampb.TestIamPermissionsResponse)(nil), // 9: google.iam.v1.TestIamPermissionsResponse
}
var file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_depIdxs = []int32{
4, // 0: google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.licenses_summary:type_name -> google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary
5, // 1: google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.SetIamPolicy:input_type -> google.iam.v1.SetIamPolicyRequest
6, // 2: google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.GetIamPolicy:input_type -> google.iam.v1.GetIamPolicyRequest
7, // 3: google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.TestIamPermissions:input_type -> google.iam.v1.TestIamPermissionsRequest
0, // 4: google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.GeneratePackagesSummary:input_type -> google.devtools.containeranalysis.v1beta1.GeneratePackagesSummaryRequest
2, // 5: google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.ExportSBOM:input_type -> google.devtools.containeranalysis.v1beta1.ExportSBOMRequest
8, // 6: google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.SetIamPolicy:output_type -> google.iam.v1.Policy
8, // 7: google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.GetIamPolicy:output_type -> google.iam.v1.Policy
9, // 8: google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.TestIamPermissions:output_type -> google.iam.v1.TestIamPermissionsResponse
1, // 9: google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.GeneratePackagesSummary:output_type -> google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse
3, // 10: google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.ExportSBOM:output_type -> google.devtools.containeranalysis.v1beta1.ExportSBOMResponse
6, // [6:11] is the sub-list for method output_type
1, // [1:6] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_init() }
func file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_init() {
if File_google_devtools_containeranalysis_v1beta1_containeranalysis_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_rawDesc), len(file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_rawDesc)),
NumEnums: 0,
NumMessages: 5,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_goTypes,
DependencyIndexes: file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_depIdxs,
MessageInfos: file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_msgTypes,
}.Build()
File_google_devtools_containeranalysis_v1beta1_containeranalysis_proto = out.File
file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_goTypes = nil
file_google_devtools_containeranalysis_v1beta1_containeranalysis_proto_depIdxs = nil
}