| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: google/cloud/asset/v1beta1/assets.proto |
| |
| package asset |
| |
| import ( |
| fmt "fmt" |
| math "math" |
| |
| proto "github.com/golang/protobuf/proto" |
| _ "github.com/golang/protobuf/ptypes/any" |
| _struct "github.com/golang/protobuf/ptypes/struct" |
| timestamp "github.com/golang/protobuf/ptypes/timestamp" |
| _ "google.golang.org/genproto/googleapis/api/annotations" |
| v1 "google.golang.org/genproto/googleapis/iam/v1" |
| ) |
| |
| // 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 |
| |
| // Temporal asset. In addition to the asset, the temporal asset includes the |
| // status of the asset and valid from and to time of it. |
| type TemporalAsset struct { |
| // The time window when the asset data and state was observed. |
| Window *TimeWindow `protobuf:"bytes,1,opt,name=window,proto3" json:"window,omitempty"` |
| // If the asset is deleted or not. |
| Deleted bool `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"` |
| // Asset. |
| Asset *Asset `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *TemporalAsset) Reset() { *m = TemporalAsset{} } |
| func (m *TemporalAsset) String() string { return proto.CompactTextString(m) } |
| func (*TemporalAsset) ProtoMessage() {} |
| func (*TemporalAsset) Descriptor() ([]byte, []int) { |
| return fileDescriptor_2e0a79b6d8a101c1, []int{0} |
| } |
| |
| func (m *TemporalAsset) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_TemporalAsset.Unmarshal(m, b) |
| } |
| func (m *TemporalAsset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_TemporalAsset.Marshal(b, m, deterministic) |
| } |
| func (m *TemporalAsset) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_TemporalAsset.Merge(m, src) |
| } |
| func (m *TemporalAsset) XXX_Size() int { |
| return xxx_messageInfo_TemporalAsset.Size(m) |
| } |
| func (m *TemporalAsset) XXX_DiscardUnknown() { |
| xxx_messageInfo_TemporalAsset.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_TemporalAsset proto.InternalMessageInfo |
| |
| func (m *TemporalAsset) GetWindow() *TimeWindow { |
| if m != nil { |
| return m.Window |
| } |
| return nil |
| } |
| |
| func (m *TemporalAsset) GetDeleted() bool { |
| if m != nil { |
| return m.Deleted |
| } |
| return false |
| } |
| |
| func (m *TemporalAsset) GetAsset() *Asset { |
| if m != nil { |
| return m.Asset |
| } |
| return nil |
| } |
| |
| // A time window of (start_time, end_time]. |
| type TimeWindow struct { |
| // Start time of the time window (exclusive). |
| StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` |
| // End time of the time window (inclusive). |
| // Current timestamp if not specified. |
| EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *TimeWindow) Reset() { *m = TimeWindow{} } |
| func (m *TimeWindow) String() string { return proto.CompactTextString(m) } |
| func (*TimeWindow) ProtoMessage() {} |
| func (*TimeWindow) Descriptor() ([]byte, []int) { |
| return fileDescriptor_2e0a79b6d8a101c1, []int{1} |
| } |
| |
| func (m *TimeWindow) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_TimeWindow.Unmarshal(m, b) |
| } |
| func (m *TimeWindow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_TimeWindow.Marshal(b, m, deterministic) |
| } |
| func (m *TimeWindow) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_TimeWindow.Merge(m, src) |
| } |
| func (m *TimeWindow) XXX_Size() int { |
| return xxx_messageInfo_TimeWindow.Size(m) |
| } |
| func (m *TimeWindow) XXX_DiscardUnknown() { |
| xxx_messageInfo_TimeWindow.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_TimeWindow proto.InternalMessageInfo |
| |
| func (m *TimeWindow) GetStartTime() *timestamp.Timestamp { |
| if m != nil { |
| return m.StartTime |
| } |
| return nil |
| } |
| |
| func (m *TimeWindow) GetEndTime() *timestamp.Timestamp { |
| if m != nil { |
| return m.EndTime |
| } |
| return nil |
| } |
| |
| // Cloud asset. This includes all Google Cloud Platform resources, |
| // Cloud IAM policies, and other non-GCP assets. |
| type Asset struct { |
| // The full name of the asset. For example: |
| // `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. |
| // See [Resource |
| // Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) |
| // for more information. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // Type of the asset. Example: "google.compute.Disk". |
| AssetType string `protobuf:"bytes,2,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"` |
| // Representation of the resource. |
| Resource *Resource `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"` |
| // Representation of the actual Cloud IAM policy set on a cloud resource. For |
| // each resource, there must be at most one Cloud IAM policy set on it. |
| IamPolicy *v1.Policy `protobuf:"bytes,4,opt,name=iam_policy,json=iamPolicy,proto3" json:"iam_policy,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Asset) Reset() { *m = Asset{} } |
| func (m *Asset) String() string { return proto.CompactTextString(m) } |
| func (*Asset) ProtoMessage() {} |
| func (*Asset) Descriptor() ([]byte, []int) { |
| return fileDescriptor_2e0a79b6d8a101c1, []int{2} |
| } |
| |
| func (m *Asset) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Asset.Unmarshal(m, b) |
| } |
| func (m *Asset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Asset.Marshal(b, m, deterministic) |
| } |
| func (m *Asset) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Asset.Merge(m, src) |
| } |
| func (m *Asset) XXX_Size() int { |
| return xxx_messageInfo_Asset.Size(m) |
| } |
| func (m *Asset) XXX_DiscardUnknown() { |
| xxx_messageInfo_Asset.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Asset proto.InternalMessageInfo |
| |
| func (m *Asset) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func (m *Asset) GetAssetType() string { |
| if m != nil { |
| return m.AssetType |
| } |
| return "" |
| } |
| |
| func (m *Asset) GetResource() *Resource { |
| if m != nil { |
| return m.Resource |
| } |
| return nil |
| } |
| |
| func (m *Asset) GetIamPolicy() *v1.Policy { |
| if m != nil { |
| return m.IamPolicy |
| } |
| return nil |
| } |
| |
| // Representation of a cloud resource. |
| type Resource struct { |
| // The API version. Example: "v1". |
| Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` |
| // The URL of the discovery document containing the resource's JSON schema. |
| // For example: |
| // `"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`. |
| // It will be left unspecified for resources without a discovery-based API, |
| // such as Cloud Bigtable. |
| DiscoveryDocumentUri string `protobuf:"bytes,2,opt,name=discovery_document_uri,json=discoveryDocumentUri,proto3" json:"discovery_document_uri,omitempty"` |
| // The JSON schema name listed in the discovery document. |
| // Example: "Project". It will be left unspecified for resources (such as |
| // Cloud Bigtable) without a discovery-based API. |
| DiscoveryName string `protobuf:"bytes,3,opt,name=discovery_name,json=discoveryName,proto3" json:"discovery_name,omitempty"` |
| // The REST URL for accessing the resource. An HTTP GET operation using this |
| // URL returns the resource itself. |
| // Example: |
| // `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`. |
| // It will be left unspecified for resources without a REST API. |
| ResourceUrl string `protobuf:"bytes,4,opt,name=resource_url,json=resourceUrl,proto3" json:"resource_url,omitempty"` |
| // The full name of the immediate parent of this resource. See |
| // [Resource |
| // Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) |
| // for more information. |
| // |
| // For GCP assets, it is the parent resource defined in the [Cloud IAM policy |
| // hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). |
| // For example: |
| // `"//cloudresourcemanager.googleapis.com/projects/my_project_123"`. |
| // |
| // For third-party assets, it is up to the users to define. |
| Parent string `protobuf:"bytes,5,opt,name=parent,proto3" json:"parent,omitempty"` |
| // The content of the resource, in which some sensitive fields are scrubbed |
| // away and may not be present. |
| Data *_struct.Struct `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Resource) Reset() { *m = Resource{} } |
| func (m *Resource) String() string { return proto.CompactTextString(m) } |
| func (*Resource) ProtoMessage() {} |
| func (*Resource) Descriptor() ([]byte, []int) { |
| return fileDescriptor_2e0a79b6d8a101c1, []int{3} |
| } |
| |
| func (m *Resource) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Resource.Unmarshal(m, b) |
| } |
| func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Resource.Marshal(b, m, deterministic) |
| } |
| func (m *Resource) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Resource.Merge(m, src) |
| } |
| func (m *Resource) XXX_Size() int { |
| return xxx_messageInfo_Resource.Size(m) |
| } |
| func (m *Resource) XXX_DiscardUnknown() { |
| xxx_messageInfo_Resource.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Resource proto.InternalMessageInfo |
| |
| func (m *Resource) GetVersion() string { |
| if m != nil { |
| return m.Version |
| } |
| return "" |
| } |
| |
| func (m *Resource) GetDiscoveryDocumentUri() string { |
| if m != nil { |
| return m.DiscoveryDocumentUri |
| } |
| return "" |
| } |
| |
| func (m *Resource) GetDiscoveryName() string { |
| if m != nil { |
| return m.DiscoveryName |
| } |
| return "" |
| } |
| |
| func (m *Resource) GetResourceUrl() string { |
| if m != nil { |
| return m.ResourceUrl |
| } |
| return "" |
| } |
| |
| func (m *Resource) GetParent() string { |
| if m != nil { |
| return m.Parent |
| } |
| return "" |
| } |
| |
| func (m *Resource) GetData() *_struct.Struct { |
| if m != nil { |
| return m.Data |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterType((*TemporalAsset)(nil), "google.cloud.asset.v1beta1.TemporalAsset") |
| proto.RegisterType((*TimeWindow)(nil), "google.cloud.asset.v1beta1.TimeWindow") |
| proto.RegisterType((*Asset)(nil), "google.cloud.asset.v1beta1.Asset") |
| proto.RegisterType((*Resource)(nil), "google.cloud.asset.v1beta1.Resource") |
| } |
| |
| func init() { |
| proto.RegisterFile("google/cloud/asset/v1beta1/assets.proto", fileDescriptor_2e0a79b6d8a101c1) |
| } |
| |
| var fileDescriptor_2e0a79b6d8a101c1 = []byte{ |
| // 584 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0xdf, 0x6e, 0xd3, 0x3c, |
| 0x14, 0x57, 0xb6, 0xb6, 0x6b, 0xce, 0xbe, 0x7d, 0x17, 0x16, 0x8c, 0x50, 0x0d, 0xb6, 0x55, 0x83, |
| 0x4d, 0x20, 0x25, 0x2a, 0x0c, 0x21, 0x40, 0x02, 0x56, 0x90, 0xb8, 0x43, 0x55, 0xe8, 0x86, 0x84, |
| 0x2a, 0x45, 0x6e, 0x62, 0x22, 0x4b, 0x89, 0x1d, 0x39, 0x4e, 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| 0x31, 0x35, 0x8f, 0x12, 0x19, 0x57, 0x39, 0x13, 0x3a, 0xaa, 0x14, 0xb7, 0x91, 0xaf, 0x2c, 0xd0, |
| 0x97, 0x16, 0x3c, 0x57, 0x9c, 0xdc, 0x82, 0xff, 0x97, 0x2a, 0x1c, 0xdd, 0x26, 0xb2, 0x77, 0x16, |
| 0xb7, 0xaf, 0xeb, 0x19, 0x1e, 0xc2, 0x7f, 0x4d, 0xdc, 0xa8, 0x52, 0x19, 0x86, 0x74, 0xc3, 0xed, |
| 0xe6, 0xee, 0x5c, 0x65, 0x64, 0x17, 0x3a, 0x05, 0x55, 0x4c, 0x68, 0xaf, 0x8d, 0xa0, 0xad, 0xc8, |
| 0x5d, 0x68, 0x25, 0x54, 0x53, 0xaf, 0x83, 0x73, 0xb9, 0xf6, 0xdb, 0x3e, 0xdf, 0xe0, 0xff, 0x21, |
| 0x44, 0xd2, 0xf0, 0xb3, 0x03, 0x37, 0x63, 0x99, 0xaf, 0x59, 0xc0, 0x10, 0x70, 0x30, 0xa3, 0x5a, |
| 0x3e, 0x72, 0xde, 0x3d, 0xb3, 0xcc, 0x54, 0x66, 0x54, 0xa4, 0xbe, 0x54, 0x69, 0x90, 0x32, 0x81, |
| 0xe6, 0xc1, 0x72, 0xa0, 0x7f, 0xfa, 0x64, 0x3c, 0xc1, 0xea, 0x87, 0xe3, 0x7c, 0xda, 0xe8, 0xbd, |
| 0x32, 0x26, 0x2f, 0xb0, 0x1d, 0xfa, 0xfb, 0x17, 0x83, 0x61, 0xcd, 0xfa, 0xd2, 0x80, 0x13, 0x04, |
| 0x27, 0x08, 0x4e, 0x2e, 0x8c, 0xc5, 0xb4, 0x83, 0x8d, 0xee, 0xff, 0x0c, 0x00, 0x00, 0xff, 0xff, |
| 0x59, 0xba, 0x0e, 0xaa, 0x9a, 0x04, 0x00, 0x00, |
| } |