You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

247 lines
10 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/cloud/securitycenter/v1/finding.proto
  3. package securitycenter // import "google.golang.org/genproto/googleapis/cloud/securitycenter/v1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _struct "github.com/golang/protobuf/ptypes/struct"
  8. import timestamp "github.com/golang/protobuf/ptypes/timestamp"
  9. import _ "google.golang.org/genproto/googleapis/api/annotations"
  10. // Reference imports to suppress errors if they are not otherwise used.
  11. var _ = proto.Marshal
  12. var _ = fmt.Errorf
  13. var _ = math.Inf
  14. // This is a compile-time assertion to ensure that this generated file
  15. // is compatible with the proto package it is being compiled against.
  16. // A compilation error at this line likely means your copy of the
  17. // proto package needs to be updated.
  18. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  19. // The state of the finding.
  20. type Finding_State int32
  21. const (
  22. // Unspecified state.
  23. Finding_STATE_UNSPECIFIED Finding_State = 0
  24. // The finding requires attention and has not been addressed yet.
  25. Finding_ACTIVE Finding_State = 1
  26. // The finding has been fixed, triaged as a non-issue or otherwise addressed
  27. // and is no longer active.
  28. Finding_INACTIVE Finding_State = 2
  29. )
  30. var Finding_State_name = map[int32]string{
  31. 0: "STATE_UNSPECIFIED",
  32. 1: "ACTIVE",
  33. 2: "INACTIVE",
  34. }
  35. var Finding_State_value = map[string]int32{
  36. "STATE_UNSPECIFIED": 0,
  37. "ACTIVE": 1,
  38. "INACTIVE": 2,
  39. }
  40. func (x Finding_State) String() string {
  41. return proto.EnumName(Finding_State_name, int32(x))
  42. }
  43. func (Finding_State) EnumDescriptor() ([]byte, []int) {
  44. return fileDescriptor_finding_8dd8f7ecab8b405d, []int{0, 0}
  45. }
  46. // Cloud Security Command Center (Cloud SCC) finding.
  47. //
  48. // A finding is a record of assessment data (security, risk, health or privacy)
  49. // ingested into Cloud SCC for presentation, notification, analysis,
  50. // policy testing, and enforcement. For example, an XSS vulnerability in an
  51. // App Engine application is a finding.
  52. type Finding struct {
  53. // The relative resource name of this finding. See:
  54. // https://cloud.google.com/apis/design/resource_names#relative_resource_name
  55. // Example:
  56. // "organizations/123/sources/456/findings/789"
  57. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  58. // The relative resource name of the source the finding belongs to. See:
  59. // https://cloud.google.com/apis/design/resource_names#relative_resource_name
  60. // This field is immutable after creation time.
  61. // For example:
  62. // "organizations/123/sources/456"
  63. Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"`
  64. // The full resource name of the Google Cloud Platform (GCP) resource this
  65. // finding is for. See:
  66. // https://cloud.google.com/apis/design/resource_names#full_resource_name
  67. // This field is immutable after creation time.
  68. ResourceName string `protobuf:"bytes,3,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  69. // The state of the finding.
  70. State Finding_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.securitycenter.v1.Finding_State" json:"state,omitempty"`
  71. // The additional taxonomy group within findings from a given source.
  72. // This field is immutable after creation time.
  73. // Example: "XSS_FLASH_INJECTION"
  74. Category string `protobuf:"bytes,5,opt,name=category,proto3" json:"category,omitempty"`
  75. // The URI that, if available, points to a web page outside of Cloud SCC
  76. // where additional information about the finding can be found. This field is
  77. // guaranteed to be either empty or a well formed URL.
  78. ExternalUri string `protobuf:"bytes,6,opt,name=external_uri,json=externalUri,proto3" json:"external_uri,omitempty"`
  79. // Source specific properties. These properties are managed by the source
  80. // that writes the finding. The key names in the source_properties map must be
  81. // between 1 and 255 characters, and must start with a letter and contain
  82. // alphanumeric characters or underscores only.
  83. SourceProperties map[string]*_struct.Value `protobuf:"bytes,7,rep,name=source_properties,json=sourceProperties,proto3" json:"source_properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  84. // Output only. User specified security marks. These marks are entirely
  85. // managed by the user and come from the SecurityMarks resource that belongs
  86. // to the finding.
  87. SecurityMarks *SecurityMarks `protobuf:"bytes,8,opt,name=security_marks,json=securityMarks,proto3" json:"security_marks,omitempty"`
  88. // The time at which the event took place. For example, if the finding
  89. // represents an open firewall it would capture the time the open firewall was
  90. // detected.
  91. EventTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"`
  92. // The time at which the finding was created in Cloud SCC.
  93. CreateTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
  94. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  95. XXX_unrecognized []byte `json:"-"`
  96. XXX_sizecache int32 `json:"-"`
  97. }
  98. func (m *Finding) Reset() { *m = Finding{} }
  99. func (m *Finding) String() string { return proto.CompactTextString(m) }
  100. func (*Finding) ProtoMessage() {}
  101. func (*Finding) Descriptor() ([]byte, []int) {
  102. return fileDescriptor_finding_8dd8f7ecab8b405d, []int{0}
  103. }
  104. func (m *Finding) XXX_Unmarshal(b []byte) error {
  105. return xxx_messageInfo_Finding.Unmarshal(m, b)
  106. }
  107. func (m *Finding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  108. return xxx_messageInfo_Finding.Marshal(b, m, deterministic)
  109. }
  110. func (dst *Finding) XXX_Merge(src proto.Message) {
  111. xxx_messageInfo_Finding.Merge(dst, src)
  112. }
  113. func (m *Finding) XXX_Size() int {
  114. return xxx_messageInfo_Finding.Size(m)
  115. }
  116. func (m *Finding) XXX_DiscardUnknown() {
  117. xxx_messageInfo_Finding.DiscardUnknown(m)
  118. }
  119. var xxx_messageInfo_Finding proto.InternalMessageInfo
  120. func (m *Finding) GetName() string {
  121. if m != nil {
  122. return m.Name
  123. }
  124. return ""
  125. }
  126. func (m *Finding) GetParent() string {
  127. if m != nil {
  128. return m.Parent
  129. }
  130. return ""
  131. }
  132. func (m *Finding) GetResourceName() string {
  133. if m != nil {
  134. return m.ResourceName
  135. }
  136. return ""
  137. }
  138. func (m *Finding) GetState() Finding_State {
  139. if m != nil {
  140. return m.State
  141. }
  142. return Finding_STATE_UNSPECIFIED
  143. }
  144. func (m *Finding) GetCategory() string {
  145. if m != nil {
  146. return m.Category
  147. }
  148. return ""
  149. }
  150. func (m *Finding) GetExternalUri() string {
  151. if m != nil {
  152. return m.ExternalUri
  153. }
  154. return ""
  155. }
  156. func (m *Finding) GetSourceProperties() map[string]*_struct.Value {
  157. if m != nil {
  158. return m.SourceProperties
  159. }
  160. return nil
  161. }
  162. func (m *Finding) GetSecurityMarks() *SecurityMarks {
  163. if m != nil {
  164. return m.SecurityMarks
  165. }
  166. return nil
  167. }
  168. func (m *Finding) GetEventTime() *timestamp.Timestamp {
  169. if m != nil {
  170. return m.EventTime
  171. }
  172. return nil
  173. }
  174. func (m *Finding) GetCreateTime() *timestamp.Timestamp {
  175. if m != nil {
  176. return m.CreateTime
  177. }
  178. return nil
  179. }
  180. func init() {
  181. proto.RegisterType((*Finding)(nil), "google.cloud.securitycenter.v1.Finding")
  182. proto.RegisterMapType((map[string]*_struct.Value)(nil), "google.cloud.securitycenter.v1.Finding.SourcePropertiesEntry")
  183. proto.RegisterEnum("google.cloud.securitycenter.v1.Finding_State", Finding_State_name, Finding_State_value)
  184. }
  185. func init() {
  186. proto.RegisterFile("google/cloud/securitycenter/v1/finding.proto", fileDescriptor_finding_8dd8f7ecab8b405d)
  187. }
  188. var fileDescriptor_finding_8dd8f7ecab8b405d = []byte{
  189. // 503 bytes of a gzipped FileDescriptorProto
  190. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x4f, 0x6f, 0xd3, 0x30,
  191. 0x14, 0x27, 0xeb, 0xda, 0xb5, 0xaf, 0xdd, 0xd4, 0x59, 0xda, 0x14, 0x55, 0x08, 0x4a, 0xb9, 0xf4,
  192. 0x30, 0x12, 0xad, 0xbb, 0x0c, 0x26, 0x0e, 0xa3, 0x64, 0x52, 0x25, 0xa8, 0xaa, 0x34, 0xdb, 0x01,
  193. 0x0e, 0x91, 0x97, 0xbd, 0x45, 0x66, 0x89, 0x1d, 0xd9, 0x4e, 0x45, 0x3f, 0x15, 0x5f, 0x11, 0xc5,
  194. 0x49, 0x26, 0x3a, 0xfe, 0x94, 0x5b, 0x7e, 0xff, 0x9e, 0xdf, 0xf3, 0x73, 0xe0, 0x24, 0x16, 0x22,
  195. 0x4e, 0xd0, 0x8d, 0x12, 0x91, 0xdf, 0xb9, 0x0a, 0xa3, 0x5c, 0x32, 0xbd, 0x8e, 0x90, 0x6b, 0x94,
  196. 0xee, 0xea, 0xd4, 0xbd, 0x67, 0xfc, 0x8e, 0xf1, 0xd8, 0xc9, 0xa4, 0xd0, 0x82, 0xbc, 0x28, 0xdd,
  197. 0x8e, 0x71, 0x3b, 0x9b, 0x6e, 0x67, 0x75, 0x3a, 0x78, 0x5e, 0x55, 0xa3, 0x19, 0x73, 0x29, 0xe7,
  198. 0x42, 0x53, 0xcd, 0x04, 0x57, 0x65, 0x7a, 0x70, 0xb6, 0xe5, 0xac, 0x9a, 0x09, 0x53, 0x2a, 0x1f,
  199. 0xea, 0x50, 0x5d, 0xd2, 0xa0, 0xdb, 0xfc, 0xde, 0x55, 0x5a, 0xe6, 0x91, 0xae, 0xd4, 0x97, 0x4f,
  200. 0x55, 0xcd, 0x52, 0x54, 0x9a, 0xa6, 0x59, 0x69, 0x18, 0xfd, 0x68, 0xc2, 0xde, 0x55, 0x39, 0x03,
  201. 0x21, 0xb0, 0xcb, 0x69, 0x8a, 0xb6, 0x35, 0xb4, 0xc6, 0x1d, 0xdf, 0x7c, 0x93, 0x63, 0x68, 0x65,
  202. 0x54, 0x22, 0xd7, 0xf6, 0x8e, 0x61, 0x2b, 0x44, 0x5e, 0xc3, 0xbe, 0x44, 0x25, 0x72, 0x19, 0x61,
  203. 0x68, 0x42, 0x0d, 0x23, 0xf7, 0x6a, 0x72, 0x5e, 0x84, 0xa7, 0xd0, 0x54, 0x9a, 0x6a, 0xb4, 0x77,
  204. 0x87, 0xd6, 0xf8, 0x60, 0xf2, 0xc6, 0xf9, 0xf7, 0xf5, 0x38, 0x55, 0x23, 0xce, 0xb2, 0x08, 0xf9,
  205. 0x65, 0x96, 0x0c, 0xa0, 0x1d, 0x51, 0x8d, 0xb1, 0x90, 0x6b, 0xbb, 0x69, 0x0e, 0x79, 0xc4, 0xe4,
  206. 0x15, 0xf4, 0xf0, 0xbb, 0x46, 0xc9, 0x69, 0x12, 0xe6, 0x92, 0xd9, 0x2d, 0xa3, 0x77, 0x6b, 0xee,
  207. 0x5a, 0x32, 0xf2, 0x0d, 0x0e, 0xab, 0x36, 0x33, 0x29, 0x32, 0x94, 0x9a, 0xa1, 0xb2, 0xf7, 0x86,
  208. 0x8d, 0x71, 0x77, 0xf2, 0xfe, 0xbf, 0xfb, 0x31, 0x05, 0x16, 0x8f, 0x79, 0x8f, 0x6b, 0xb9, 0xf6,
  209. 0xfb, 0xea, 0x09, 0x4d, 0x02, 0x38, 0xd8, 0xdc, 0x91, 0xdd, 0x1e, 0x5a, 0xe3, 0xee, 0xf6, 0xc1,
  210. 0x97, 0x15, 0xf3, 0xb9, 0x08, 0xf9, 0xfb, 0xea, 0x57, 0x48, 0xde, 0x02, 0xe0, 0x0a, 0xb9, 0x0e,
  211. 0x8b, 0xdd, 0xd9, 0x1d, 0x53, 0x71, 0x50, 0x57, 0xac, 0x17, 0xeb, 0x04, 0xf5, 0x62, 0xfd, 0x8e,
  212. 0x71, 0x17, 0x98, 0x5c, 0x40, 0x37, 0x92, 0x48, 0x35, 0x96, 0x59, 0xd8, 0x9a, 0x85, 0xd2, 0x5e,
  213. 0x10, 0x83, 0xaf, 0x70, 0xf4, 0xc7, 0xc1, 0x49, 0x1f, 0x1a, 0x0f, 0xb8, 0xae, 0x9e, 0x49, 0xf1,
  214. 0x49, 0x4e, 0xa0, 0xb9, 0xa2, 0x49, 0x8e, 0xe6, 0x91, 0x74, 0x27, 0xc7, 0xbf, 0x9d, 0x70, 0x53,
  215. 0xa8, 0x7e, 0x69, 0x7a, 0xb7, 0x73, 0x6e, 0x8d, 0xce, 0xa1, 0x69, 0xb6, 0x4c, 0x8e, 0xe0, 0x70,
  216. 0x19, 0x5c, 0x06, 0x5e, 0x78, 0x3d, 0x5f, 0x2e, 0xbc, 0xe9, 0xec, 0x6a, 0xe6, 0x7d, 0xec, 0x3f,
  217. 0x23, 0x00, 0xad, 0xcb, 0x69, 0x30, 0xbb, 0xf1, 0xfa, 0x16, 0xe9, 0x41, 0x7b, 0x36, 0xaf, 0xd0,
  218. 0xce, 0x07, 0x0d, 0xa3, 0x48, 0xa4, 0x5b, 0x6e, 0x74, 0x61, 0x7d, 0xf9, 0x54, 0x39, 0x62, 0x91,
  219. 0x50, 0x1e, 0x3b, 0x42, 0xc6, 0x6e, 0x8c, 0xdc, 0x74, 0xe4, 0x96, 0x12, 0xcd, 0x98, 0xfa, 0xdb,
  220. 0xcf, 0x76, 0xb1, 0xc9, 0xdc, 0xb6, 0x4c, 0xf0, 0xec, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8a,
  221. 0x14, 0x31, 0xbc, 0x10, 0x04, 0x00, 0x00,
  222. }