blob: cb9f60e2510d10af1d48a5f29262eca9f9826177 [file]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/securitycenter/settings/v1beta1/settings.proto
package settings
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Defines the onboarding states for SCC
//
// Potentially is just an indicator that a user has reviewed some subset of
// our configuration surface, even if it's still currently set to its
// API-default state.
type Settings_OnboardingState int32
const (
// No onboarding state has been set. Should not be seen in practice, but
// should be functionally equivalent to DISABLED.
Settings_ONBOARDING_STATE_UNSPECIFIED Settings_OnboardingState = 0
// SCC is fully on boarded
Settings_ENABLED Settings_OnboardingState = 1
// SCC has been disabled after being on boarded
Settings_DISABLED Settings_OnboardingState = 2
// SCC's onboarding tier has been explicitly set
Settings_BILLING_SELECTED Settings_OnboardingState = 3
// SCC's CTD FindingsProviders have been chosen
Settings_PROVIDERS_SELECTED Settings_OnboardingState = 4
// SCC's Service-Resource mappings have been set
Settings_RESOURCES_SELECTED Settings_OnboardingState = 5
// SCC's core Service Account was created
Settings_ORG_SERVICE_ACCOUNT_CREATED Settings_OnboardingState = 6
)
var Settings_OnboardingState_name = map[int32]string{
0: "ONBOARDING_STATE_UNSPECIFIED",
1: "ENABLED",
2: "DISABLED",
3: "BILLING_SELECTED",
4: "PROVIDERS_SELECTED",
5: "RESOURCES_SELECTED",
6: "ORG_SERVICE_ACCOUNT_CREATED",
}
var Settings_OnboardingState_value = map[string]int32{
"ONBOARDING_STATE_UNSPECIFIED": 0,
"ENABLED": 1,
"DISABLED": 2,
"BILLING_SELECTED": 3,
"PROVIDERS_SELECTED": 4,
"RESOURCES_SELECTED": 5,
"ORG_SERVICE_ACCOUNT_CREATED": 6,
}
func (x Settings_OnboardingState) String() string {
return proto.EnumName(Settings_OnboardingState_name, int32(x))
}
func (Settings_OnboardingState) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_1c7ed44b5fe59445, []int{0, 0}
}
// Common configuration settings for all of Security Center.
type Settings struct {
// The relative resource name of the settings resource.
// Formats:
// * `organizations/{organization}/settings`
// * `folders/{folder}/settings`
// * `projects/{project}/settings`
// * `projects/{project}/locations/{location}/clusters/{cluster}/settings`
// * `projects/{project}/regions/{region}/clusters/{cluster}/settings`
// * `projects/{project}/zones/{zone}/clusters/{cluster}/settings`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Billing settings
BillingSettings *BillingSettings `protobuf:"bytes,2,opt,name=billing_settings,json=billingSettings,proto3" json:"billing_settings,omitempty"`
// An enum representing the current on boarding state of SCC.
State Settings_OnboardingState `protobuf:"varint,3,opt,name=state,proto3,enum=google.cloud.securitycenter.settings.v1beta1.Settings_OnboardingState" json:"state,omitempty"`
// Output only. The organization-level service account to be used for security center
// components. The component must have permission to "act as" the service
// account.
OrgServiceAccount string `protobuf:"bytes,5,opt,name=org_service_account,json=orgServiceAccount,proto3" json:"org_service_account,omitempty"`
// Sink settings.
SinkSettings *SinkSettings `protobuf:"bytes,6,opt,name=sink_settings,json=sinkSettings,proto3" json:"sink_settings,omitempty"`
// The settings for detectors and/or scanners.
ComponentSettings map[string]*ComponentSettings `protobuf:"bytes,7,rep,name=component_settings,json=componentSettings,proto3" json:"component_settings,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Detector group settings for all Security Center components.
// The key is the name of the detector group and the value is the settings for
// that group.
DetectorGroupSettings map[string]*Settings_DetectorGroupSettings `protobuf:"bytes,8,rep,name=detector_group_settings,json=detectorGroupSettings,proto3" json:"detector_group_settings,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// A fingerprint used for optimistic concurrency. If none is provided
// on updates then the existing metadata will be blindly overwritten.
Etag string `protobuf:"bytes,9,opt,name=etag,proto3" json:"etag,omitempty"`
// Output only. The time these settings were last updated.
UpdateTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Settings) Reset() { *m = Settings{} }
func (m *Settings) String() string { return proto.CompactTextString(m) }
func (*Settings) ProtoMessage() {}
func (*Settings) Descriptor() ([]byte, []int) {
return fileDescriptor_1c7ed44b5fe59445, []int{0}
}
func (m *Settings) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Settings.Unmarshal(m, b)
}
func (m *Settings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Settings.Marshal(b, m, deterministic)
}
func (m *Settings) XXX_Merge(src proto.Message) {
xxx_messageInfo_Settings.Merge(m, src)
}
func (m *Settings) XXX_Size() int {
return xxx_messageInfo_Settings.Size(m)
}
func (m *Settings) XXX_DiscardUnknown() {
xxx_messageInfo_Settings.DiscardUnknown(m)
}
var xxx_messageInfo_Settings proto.InternalMessageInfo
func (m *Settings) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Settings) GetBillingSettings() *BillingSettings {
if m != nil {
return m.BillingSettings
}
return nil
}
func (m *Settings) GetState() Settings_OnboardingState {
if m != nil {
return m.State
}
return Settings_ONBOARDING_STATE_UNSPECIFIED
}
func (m *Settings) GetOrgServiceAccount() string {
if m != nil {
return m.OrgServiceAccount
}
return ""
}
func (m *Settings) GetSinkSettings() *SinkSettings {
if m != nil {
return m.SinkSettings
}
return nil
}
func (m *Settings) GetComponentSettings() map[string]*ComponentSettings {
if m != nil {
return m.ComponentSettings
}
return nil
}
func (m *Settings) GetDetectorGroupSettings() map[string]*Settings_DetectorGroupSettings {
if m != nil {
return m.DetectorGroupSettings
}
return nil
}
func (m *Settings) GetEtag() string {
if m != nil {
return m.Etag
}
return ""
}
func (m *Settings) GetUpdateTime() *timestamp.Timestamp {
if m != nil {
return m.UpdateTime
}
return nil
}
// The DetectorGroupSettings define the configuration for a detector group.
type Settings_DetectorGroupSettings struct {
// The state determines if the group is enabled or not.
State ComponentEnablementState `protobuf:"varint,1,opt,name=state,proto3,enum=google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState" json:"state,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Settings_DetectorGroupSettings) Reset() { *m = Settings_DetectorGroupSettings{} }
func (m *Settings_DetectorGroupSettings) String() string { return proto.CompactTextString(m) }
func (*Settings_DetectorGroupSettings) ProtoMessage() {}
func (*Settings_DetectorGroupSettings) Descriptor() ([]byte, []int) {
return fileDescriptor_1c7ed44b5fe59445, []int{0, 0}
}
func (m *Settings_DetectorGroupSettings) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Settings_DetectorGroupSettings.Unmarshal(m, b)
}
func (m *Settings_DetectorGroupSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Settings_DetectorGroupSettings.Marshal(b, m, deterministic)
}
func (m *Settings_DetectorGroupSettings) XXX_Merge(src proto.Message) {
xxx_messageInfo_Settings_DetectorGroupSettings.Merge(m, src)
}
func (m *Settings_DetectorGroupSettings) XXX_Size() int {
return xxx_messageInfo_Settings_DetectorGroupSettings.Size(m)
}
func (m *Settings_DetectorGroupSettings) XXX_DiscardUnknown() {
xxx_messageInfo_Settings_DetectorGroupSettings.DiscardUnknown(m)
}
var xxx_messageInfo_Settings_DetectorGroupSettings proto.InternalMessageInfo
func (m *Settings_DetectorGroupSettings) GetState() ComponentEnablementState {
if m != nil {
return m.State
}
return ComponentEnablementState_COMPONENT_ENABLEMENT_STATE_UNSPECIFIED
}
func init() {
proto.RegisterEnum("google.cloud.securitycenter.settings.v1beta1.Settings_OnboardingState", Settings_OnboardingState_name, Settings_OnboardingState_value)
proto.RegisterType((*Settings)(nil), "google.cloud.securitycenter.settings.v1beta1.Settings")
proto.RegisterMapType((map[string]*ComponentSettings)(nil), "google.cloud.securitycenter.settings.v1beta1.Settings.ComponentSettingsEntry")
proto.RegisterMapType((map[string]*Settings_DetectorGroupSettings)(nil), "google.cloud.securitycenter.settings.v1beta1.Settings.DetectorGroupSettingsEntry")
proto.RegisterType((*Settings_DetectorGroupSettings)(nil), "google.cloud.securitycenter.settings.v1beta1.Settings.DetectorGroupSettings")
}
func init() {
proto.RegisterFile("google/cloud/securitycenter/settings/v1beta1/settings.proto", fileDescriptor_1c7ed44b5fe59445)
}
var fileDescriptor_1c7ed44b5fe59445 = []byte{
// 891 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xc1, 0x6e, 0xdb, 0x36,
0x18, 0x9e, 0xec, 0x26, 0x4d, 0x99, 0x74, 0x75, 0xb9, 0xb5, 0x73, 0xdd, 0x02, 0x35, 0x0a, 0x6c,
0xc8, 0xa1, 0x90, 0x9a, 0xf4, 0x32, 0x28, 0x18, 0x5a, 0x5b, 0x66, 0x03, 0x03, 0x9e, 0x9d, 0x49,
0x4e, 0x0e, 0x83, 0x01, 0x81, 0x92, 0x19, 0x55, 0x8b, 0x4c, 0x0a, 0x14, 0x15, 0x20, 0xcd, 0x7a,
0xdc, 0x61, 0x2f, 0xb0, 0x87, 0x18, 0xb0, 0xe3, 0x5e, 0xa2, 0x87, 0x3d, 0xc3, 0xce, 0x7d, 0x82,
0x5d, 0x06, 0x0c, 0x14, 0x25, 0x45, 0xf2, 0xbc, 0x62, 0x0e, 0x7a, 0xf2, 0xcf, 0xff, 0xff, 0xbf,
0x8f, 0x1f, 0x7f, 0x7e, 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