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.
 
 
 

362 lines
14 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/cloud/asset/v1/assets.proto
  3. package asset // import "google.golang.org/genproto/googleapis/cloud/asset/v1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "github.com/golang/protobuf/ptypes/any"
  8. import _struct "github.com/golang/protobuf/ptypes/struct"
  9. import timestamp "github.com/golang/protobuf/ptypes/timestamp"
  10. import _ "google.golang.org/genproto/googleapis/api/annotations"
  11. import v1 "google.golang.org/genproto/googleapis/iam/v1"
  12. // Reference imports to suppress errors if they are not otherwise used.
  13. var _ = proto.Marshal
  14. var _ = fmt.Errorf
  15. var _ = math.Inf
  16. // This is a compile-time assertion to ensure that this generated file
  17. // is compatible with the proto package it is being compiled against.
  18. // A compilation error at this line likely means your copy of the
  19. // proto package needs to be updated.
  20. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  21. // Temporal asset. In addition to the asset, the temporal asset includes the
  22. // status of the asset and valid from and to time of it.
  23. type TemporalAsset struct {
  24. // The time window when the asset data and state was observed.
  25. Window *TimeWindow `protobuf:"bytes,1,opt,name=window,proto3" json:"window,omitempty"`
  26. // If the asset is deleted or not.
  27. Deleted bool `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"`
  28. // Asset.
  29. Asset *Asset `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset,omitempty"`
  30. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  31. XXX_unrecognized []byte `json:"-"`
  32. XXX_sizecache int32 `json:"-"`
  33. }
  34. func (m *TemporalAsset) Reset() { *m = TemporalAsset{} }
  35. func (m *TemporalAsset) String() string { return proto.CompactTextString(m) }
  36. func (*TemporalAsset) ProtoMessage() {}
  37. func (*TemporalAsset) Descriptor() ([]byte, []int) {
  38. return fileDescriptor_assets_bfd7f9746df51ed8, []int{0}
  39. }
  40. func (m *TemporalAsset) XXX_Unmarshal(b []byte) error {
  41. return xxx_messageInfo_TemporalAsset.Unmarshal(m, b)
  42. }
  43. func (m *TemporalAsset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  44. return xxx_messageInfo_TemporalAsset.Marshal(b, m, deterministic)
  45. }
  46. func (dst *TemporalAsset) XXX_Merge(src proto.Message) {
  47. xxx_messageInfo_TemporalAsset.Merge(dst, src)
  48. }
  49. func (m *TemporalAsset) XXX_Size() int {
  50. return xxx_messageInfo_TemporalAsset.Size(m)
  51. }
  52. func (m *TemporalAsset) XXX_DiscardUnknown() {
  53. xxx_messageInfo_TemporalAsset.DiscardUnknown(m)
  54. }
  55. var xxx_messageInfo_TemporalAsset proto.InternalMessageInfo
  56. func (m *TemporalAsset) GetWindow() *TimeWindow {
  57. if m != nil {
  58. return m.Window
  59. }
  60. return nil
  61. }
  62. func (m *TemporalAsset) GetDeleted() bool {
  63. if m != nil {
  64. return m.Deleted
  65. }
  66. return false
  67. }
  68. func (m *TemporalAsset) GetAsset() *Asset {
  69. if m != nil {
  70. return m.Asset
  71. }
  72. return nil
  73. }
  74. // A time window of (start_time, end_time].
  75. type TimeWindow struct {
  76. // Start time of the time window (exclusive).
  77. StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
  78. // End time of the time window (inclusive).
  79. // Current timestamp if not specified.
  80. EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
  81. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  82. XXX_unrecognized []byte `json:"-"`
  83. XXX_sizecache int32 `json:"-"`
  84. }
  85. func (m *TimeWindow) Reset() { *m = TimeWindow{} }
  86. func (m *TimeWindow) String() string { return proto.CompactTextString(m) }
  87. func (*TimeWindow) ProtoMessage() {}
  88. func (*TimeWindow) Descriptor() ([]byte, []int) {
  89. return fileDescriptor_assets_bfd7f9746df51ed8, []int{1}
  90. }
  91. func (m *TimeWindow) XXX_Unmarshal(b []byte) error {
  92. return xxx_messageInfo_TimeWindow.Unmarshal(m, b)
  93. }
  94. func (m *TimeWindow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  95. return xxx_messageInfo_TimeWindow.Marshal(b, m, deterministic)
  96. }
  97. func (dst *TimeWindow) XXX_Merge(src proto.Message) {
  98. xxx_messageInfo_TimeWindow.Merge(dst, src)
  99. }
  100. func (m *TimeWindow) XXX_Size() int {
  101. return xxx_messageInfo_TimeWindow.Size(m)
  102. }
  103. func (m *TimeWindow) XXX_DiscardUnknown() {
  104. xxx_messageInfo_TimeWindow.DiscardUnknown(m)
  105. }
  106. var xxx_messageInfo_TimeWindow proto.InternalMessageInfo
  107. func (m *TimeWindow) GetStartTime() *timestamp.Timestamp {
  108. if m != nil {
  109. return m.StartTime
  110. }
  111. return nil
  112. }
  113. func (m *TimeWindow) GetEndTime() *timestamp.Timestamp {
  114. if m != nil {
  115. return m.EndTime
  116. }
  117. return nil
  118. }
  119. // Cloud asset. This includes all Google Cloud Platform resources,
  120. // Cloud IAM policies, and other non-GCP assets.
  121. type Asset struct {
  122. // The full name of the asset. For example:
  123. // `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
  124. // See [Resource
  125. // Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
  126. // for more information.
  127. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  128. // Type of the asset. Example: "google.compute.disk".
  129. AssetType string `protobuf:"bytes,2,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"`
  130. // Representation of the resource.
  131. Resource *Resource `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
  132. // Representation of the actual Cloud IAM policy set on a cloud resource. For
  133. // each resource, there must be at most one Cloud IAM policy set on it.
  134. IamPolicy *v1.Policy `protobuf:"bytes,4,opt,name=iam_policy,json=iamPolicy,proto3" json:"iam_policy,omitempty"`
  135. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  136. XXX_unrecognized []byte `json:"-"`
  137. XXX_sizecache int32 `json:"-"`
  138. }
  139. func (m *Asset) Reset() { *m = Asset{} }
  140. func (m *Asset) String() string { return proto.CompactTextString(m) }
  141. func (*Asset) ProtoMessage() {}
  142. func (*Asset) Descriptor() ([]byte, []int) {
  143. return fileDescriptor_assets_bfd7f9746df51ed8, []int{2}
  144. }
  145. func (m *Asset) XXX_Unmarshal(b []byte) error {
  146. return xxx_messageInfo_Asset.Unmarshal(m, b)
  147. }
  148. func (m *Asset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  149. return xxx_messageInfo_Asset.Marshal(b, m, deterministic)
  150. }
  151. func (dst *Asset) XXX_Merge(src proto.Message) {
  152. xxx_messageInfo_Asset.Merge(dst, src)
  153. }
  154. func (m *Asset) XXX_Size() int {
  155. return xxx_messageInfo_Asset.Size(m)
  156. }
  157. func (m *Asset) XXX_DiscardUnknown() {
  158. xxx_messageInfo_Asset.DiscardUnknown(m)
  159. }
  160. var xxx_messageInfo_Asset proto.InternalMessageInfo
  161. func (m *Asset) GetName() string {
  162. if m != nil {
  163. return m.Name
  164. }
  165. return ""
  166. }
  167. func (m *Asset) GetAssetType() string {
  168. if m != nil {
  169. return m.AssetType
  170. }
  171. return ""
  172. }
  173. func (m *Asset) GetResource() *Resource {
  174. if m != nil {
  175. return m.Resource
  176. }
  177. return nil
  178. }
  179. func (m *Asset) GetIamPolicy() *v1.Policy {
  180. if m != nil {
  181. return m.IamPolicy
  182. }
  183. return nil
  184. }
  185. // Representation of a cloud resource.
  186. type Resource struct {
  187. // The API version. Example: "v1".
  188. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
  189. // The URL of the discovery document containing the resource's JSON schema.
  190. // For example:
  191. // `"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`.
  192. // It will be left unspecified for resources without a discovery-based API,
  193. // such as Cloud Bigtable.
  194. DiscoveryDocumentUri string `protobuf:"bytes,2,opt,name=discovery_document_uri,json=discoveryDocumentUri,proto3" json:"discovery_document_uri,omitempty"`
  195. // The JSON schema name listed in the discovery document.
  196. // Example: "Project". It will be left unspecified for resources (such as
  197. // Cloud Bigtable) without a discovery-based API.
  198. DiscoveryName string `protobuf:"bytes,3,opt,name=discovery_name,json=discoveryName,proto3" json:"discovery_name,omitempty"`
  199. // The REST URL for accessing the resource. An HTTP GET operation using this
  200. // URL returns the resource itself.
  201. // Example:
  202. // `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`.
  203. // It will be left unspecified for resources without a REST API.
  204. ResourceUrl string `protobuf:"bytes,4,opt,name=resource_url,json=resourceUrl,proto3" json:"resource_url,omitempty"`
  205. // The full name of the immediate parent of this resource. See
  206. // [Resource
  207. // Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
  208. // for more information.
  209. //
  210. // For GCP assets, it is the parent resource defined in the [Cloud IAM policy
  211. // hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
  212. // For example:
  213. // `"//cloudresourcemanager.googleapis.com/projects/my_project_123"`.
  214. //
  215. // For third-party assets, it is up to the users to define.
  216. Parent string `protobuf:"bytes,5,opt,name=parent,proto3" json:"parent,omitempty"`
  217. // The content of the resource, in which some sensitive fields are scrubbed
  218. // away and may not be present.
  219. Data *_struct.Struct `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"`
  220. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  221. XXX_unrecognized []byte `json:"-"`
  222. XXX_sizecache int32 `json:"-"`
  223. }
  224. func (m *Resource) Reset() { *m = Resource{} }
  225. func (m *Resource) String() string { return proto.CompactTextString(m) }
  226. func (*Resource) ProtoMessage() {}
  227. func (*Resource) Descriptor() ([]byte, []int) {
  228. return fileDescriptor_assets_bfd7f9746df51ed8, []int{3}
  229. }
  230. func (m *Resource) XXX_Unmarshal(b []byte) error {
  231. return xxx_messageInfo_Resource.Unmarshal(m, b)
  232. }
  233. func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  234. return xxx_messageInfo_Resource.Marshal(b, m, deterministic)
  235. }
  236. func (dst *Resource) XXX_Merge(src proto.Message) {
  237. xxx_messageInfo_Resource.Merge(dst, src)
  238. }
  239. func (m *Resource) XXX_Size() int {
  240. return xxx_messageInfo_Resource.Size(m)
  241. }
  242. func (m *Resource) XXX_DiscardUnknown() {
  243. xxx_messageInfo_Resource.DiscardUnknown(m)
  244. }
  245. var xxx_messageInfo_Resource proto.InternalMessageInfo
  246. func (m *Resource) GetVersion() string {
  247. if m != nil {
  248. return m.Version
  249. }
  250. return ""
  251. }
  252. func (m *Resource) GetDiscoveryDocumentUri() string {
  253. if m != nil {
  254. return m.DiscoveryDocumentUri
  255. }
  256. return ""
  257. }
  258. func (m *Resource) GetDiscoveryName() string {
  259. if m != nil {
  260. return m.DiscoveryName
  261. }
  262. return ""
  263. }
  264. func (m *Resource) GetResourceUrl() string {
  265. if m != nil {
  266. return m.ResourceUrl
  267. }
  268. return ""
  269. }
  270. func (m *Resource) GetParent() string {
  271. if m != nil {
  272. return m.Parent
  273. }
  274. return ""
  275. }
  276. func (m *Resource) GetData() *_struct.Struct {
  277. if m != nil {
  278. return m.Data
  279. }
  280. return nil
  281. }
  282. func init() {
  283. proto.RegisterType((*TemporalAsset)(nil), "google.cloud.asset.v1.TemporalAsset")
  284. proto.RegisterType((*TimeWindow)(nil), "google.cloud.asset.v1.TimeWindow")
  285. proto.RegisterType((*Asset)(nil), "google.cloud.asset.v1.Asset")
  286. proto.RegisterType((*Resource)(nil), "google.cloud.asset.v1.Resource")
  287. }
  288. func init() {
  289. proto.RegisterFile("google/cloud/asset/v1/assets.proto", fileDescriptor_assets_bfd7f9746df51ed8)
  290. }
  291. var fileDescriptor_assets_bfd7f9746df51ed8 = []byte{
  292. // 541 bytes of a gzipped FileDescriptorProto
  293. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0xdf, 0x6a, 0xdb, 0x3c,
  294. 0x14, 0xc7, 0x69, 0x92, 0xc6, 0xa7, 0x5f, 0xbf, 0x0b, 0xb1, 0x74, 0x6e, 0xc8, 0x68, 0x6b, 0x18,
  295. 0x14, 0x06, 0x36, 0xe9, 0xba, 0x8b, 0xae, 0x57, 0xeb, 0x06, 0xbb, 0x1b, 0x41, 0x4b, 0x3b, 0x18,
  296. 0x01, 0xa3, 0xda, 0x9a, 0x11, 0xd8, 0x92, 0x91, 0xe5, 0x94, 0xdc, 0xec, 0x2d, 0x06, 0x7b, 0x86,
  297. 0xc1, 0x5e, 0x64, 0x6f, 0xb2, 0xb7, 0x18, 0x3e, 0x92, 0x53, 0xc8, 0x5a, 0x76, 0xa7, 0x73, 0x7e,
  298. 0x7f, 0x74, 0x7e, 0x47, 0x36, 0x84, 0xb9, 0x52, 0x79, 0xc1, 0xe3, 0xb4, 0x50, 0x4d, 0x16, 0xb3,
  299. 0xba, 0xe6, 0x26, 0x5e, 0xcd, 0xec, 0xa1, 0x8e, 0x2a, 0xad, 0x8c, 0x22, 0x63, 0xcb, 0x89, 0x90,
  300. 0x13, 0x21, 0x14, 0xad, 0x66, 0x93, 0xa9, 0x93, 0xb2, 0x4a, 0xc4, 0x4c, 0x4a, 0x65, 0x98, 0x11,
  301. 0x4a, 0x3a, 0xd1, 0x64, 0xe2, 0x50, 0xc1, 0xca, 0xd6, 0xb0, 0x52, 0x85, 0x48, 0xd7, 0x0e, 0x3b,
  302. 0x74, 0x18, 0x56, 0xb7, 0xcd, 0x97, 0x98, 0xc9, 0x0e, 0x9a, 0x6e, 0x43, 0xb5, 0xd1, 0x4d, 0x6a,
  303. 0x1c, 0x7a, 0xb4, 0x8d, 0x1a, 0x51, 0xf2, 0xda, 0xb0, 0xb2, 0xb2, 0x84, 0xf0, 0xbb, 0x07, 0xfb,
  304. 0x0b, 0x5e, 0x56, 0x4a, 0xb3, 0xe2, 0x4d, 0x3b, 0x28, 0xb9, 0x80, 0xe1, 0x9d, 0x90, 0x99, 0xba,
  305. 0x0b, 0xbc, 0x63, 0xef, 0x74, 0xef, 0xec, 0x24, 0x7a, 0x30, 0x4d, 0xb4, 0x10, 0x25, 0xff, 0x84,
  306. 0x44, 0xea, 0x04, 0x24, 0x80, 0xdd, 0x8c, 0x17, 0xdc, 0xf0, 0x2c, 0xe8, 0x1d, 0x7b, 0xa7, 0x23,
  307. 0xda, 0x95, 0xe4, 0x0c, 0x06, 0x28, 0x0c, 0x76, 0xd0, 0x73, 0xfa, 0x88, 0x27, 0x4e, 0x40, 0x2d,
  308. 0x35, 0xfc, 0x0a, 0x70, 0x7f, 0x07, 0xb9, 0x00, 0xa8, 0x0d, 0xd3, 0x26, 0x69, 0x13, 0xb8, 0xd1,
  309. 0x26, 0x9d, 0x4d, 0x17, 0x0f, 0x87, 0xc2, 0x78, 0xd4, 0x47, 0x76, 0x5b, 0x93, 0x57, 0x30, 0xe2,
  310. 0x32, 0xb3, 0xc2, 0xde, 0x3f, 0x85, 0xbb, 0x5c, 0x66, 0x6d, 0x15, 0xfe, 0xf4, 0x60, 0x60, 0x57,
  311. 0x42, 0xa0, 0x2f, 0x99, 0xbb, 0xd5, 0xa7, 0x78, 0x26, 0xcf, 0x00, 0x70, 0xcc, 0xc4, 0xac, 0x2b,
  312. 0x6b, 0xeb, 0x53, 0x1f, 0x3b, 0x8b, 0x75, 0xc5, 0xc9, 0x25, 0x8c, 0x34, 0xaf, 0x55, 0xa3, 0x53,
  313. 0xee, 0x32, 0x1f, 0x3d, 0x92, 0x99, 0x3a, 0x1a, 0xdd, 0x08, 0xc8, 0x39, 0x80, 0x60, 0x65, 0x62,
  314. 0x3f, 0x81, 0xa0, 0x8f, 0xf2, 0x71, 0x27, 0x17, 0xac, 0x6c, 0x65, 0x73, 0x04, 0xa9, 0x2f, 0x58,
  315. 0x69, 0x8f, 0xe1, 0x6f, 0x0f, 0x46, 0x9d, 0x59, 0xfb, 0x14, 0x2b, 0xae, 0x6b, 0xa1, 0xa4, 0x9b,
  316. 0xba, 0x2b, 0xc9, 0x39, 0x1c, 0x64, 0xa2, 0x4e, 0xd5, 0x8a, 0xeb, 0x75, 0x92, 0xa9, 0xb4, 0x29,
  317. 0xb9, 0x34, 0x49, 0xa3, 0x85, 0x0b, 0xf1, 0x64, 0x83, 0xbe, 0x73, 0xe0, 0xb5, 0x16, 0xe4, 0x39,
  318. 0xfc, 0x7f, 0xaf, 0xc2, 0x65, 0xec, 0x20, 0x7b, 0x7f, 0xd3, 0xfd, 0xd0, 0x6e, 0xe5, 0x04, 0xfe,
  319. 0xeb, 0x52, 0x24, 0x8d, 0x2e, 0x70, 0x76, 0x9f, 0xee, 0x75, 0xbd, 0x6b, 0x5d, 0x90, 0x03, 0x18,
  320. 0x56, 0x4c, 0x73, 0x69, 0x82, 0x01, 0x82, 0xae, 0x22, 0x2f, 0xa0, 0x9f, 0x31, 0xc3, 0x82, 0x21,
  321. 0xc6, 0x7d, 0xfa, 0xd7, 0x0b, 0x7d, 0xc4, 0xef, 0x9a, 0x22, 0xe9, 0xea, 0x9b, 0x07, 0x87, 0xa9,
  322. 0x2a, 0x1f, 0x5e, 0xe9, 0x15, 0xe0, 0xb3, 0xcd, 0x5b, 0xe5, 0xdc, 0xfb, 0xfc, 0xda, 0x91, 0x72,
  323. 0x55, 0x30, 0x99, 0x47, 0x4a, 0xe7, 0x71, 0xce, 0x25, 0xfa, 0xc6, 0x16, 0x62, 0x95, 0xa8, 0xb7,
  324. 0x7e, 0xe8, 0x4b, 0x3c, 0xfc, 0xe8, 0x8d, 0xdf, 0x5b, 0xf1, 0x5b, 0xbc, 0x01, 0x7d, 0xa3, 0x9b,
  325. 0xd9, 0xaf, 0xae, 0xbf, 0xc4, 0xfe, 0x12, 0xfb, 0xcb, 0x9b, 0xd9, 0xed, 0x10, 0x6d, 0x5f, 0xfe,
  326. 0x09, 0x00, 0x00, 0xff, 0xff, 0x66, 0xec, 0xa8, 0x3b, 0x26, 0x04, 0x00, 0x00,
  327. }