| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: google/cloud/asset/v1p1beta1/assets.proto |
| |
| package asset |
| |
| import ( |
| fmt "fmt" |
| math "math" |
| |
| proto "github.com/golang/protobuf/proto" |
| _ "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 |
| |
| // The standard metadata of a cloud resource. |
| type StandardResourceMetadata struct { |
| // The full resource name. 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"` |
| // The type of this resource. |
| // For example: "compute.googleapis.com/Disk". |
| AssetType string `protobuf:"bytes,2,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"` |
| // The project that this resource belongs to, in the form of |
| // `projects/{project_number}`. |
| Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"` |
| // The display name of this resource. |
| DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` |
| // One or more paragraphs of text description of this resource. Maximum length |
| // could be up to 1M bytes. |
| Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` |
| // Additional searchable attributes of this resource. |
| // Informational only. The exact set of attributes is subject to change. |
| // For example: project id, DNS name etc. |
| AdditionalAttributes []string `protobuf:"bytes,10,rep,name=additional_attributes,json=additionalAttributes,proto3" json:"additional_attributes,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *StandardResourceMetadata) Reset() { *m = StandardResourceMetadata{} } |
| func (m *StandardResourceMetadata) String() string { return proto.CompactTextString(m) } |
| func (*StandardResourceMetadata) ProtoMessage() {} |
| func (*StandardResourceMetadata) Descriptor() ([]byte, []int) { |
| return fileDescriptor_292d674e8a9d7e8b, []int{0} |
| } |
| |
| func (m *StandardResourceMetadata) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_StandardResourceMetadata.Unmarshal(m, b) |
| } |
| func (m *StandardResourceMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_StandardResourceMetadata.Marshal(b, m, deterministic) |
| } |
| func (m *StandardResourceMetadata) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_StandardResourceMetadata.Merge(m, src) |
| } |
| func (m *StandardResourceMetadata) XXX_Size() int { |
| return xxx_messageInfo_StandardResourceMetadata.Size(m) |
| } |
| func (m *StandardResourceMetadata) XXX_DiscardUnknown() { |
| xxx_messageInfo_StandardResourceMetadata.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_StandardResourceMetadata proto.InternalMessageInfo |
| |
| func (m *StandardResourceMetadata) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func (m *StandardResourceMetadata) GetAssetType() string { |
| if m != nil { |
| return m.AssetType |
| } |
| return "" |
| } |
| |
| func (m *StandardResourceMetadata) GetProject() string { |
| if m != nil { |
| return m.Project |
| } |
| return "" |
| } |
| |
| func (m *StandardResourceMetadata) GetDisplayName() string { |
| if m != nil { |
| return m.DisplayName |
| } |
| return "" |
| } |
| |
| func (m *StandardResourceMetadata) GetDescription() string { |
| if m != nil { |
| return m.Description |
| } |
| return "" |
| } |
| |
| func (m *StandardResourceMetadata) GetAdditionalAttributes() []string { |
| if m != nil { |
| return m.AdditionalAttributes |
| } |
| return nil |
| } |
| |
| // The result for a IAM Policy search. |
| type IamPolicySearchResult struct { |
| // The [full resource |
| // name](https://cloud.google.com/apis/design/resource_names#full_resource_name) |
| // of the resource associated with this IAM policy. |
| Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` |
| // The project that the associated GCP resource belongs to, in the form of |
| // `projects/{project_number}`. If an IAM policy is set on a resource (like VM |
| // instance, Cloud Storage bucket), the project field will indicate the |
| // project that contains the resource. If an IAM policy is set on a folder or |
| // orgnization, the project field will be empty. |
| Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,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. |
| Policy *v1.Policy `protobuf:"bytes,4,opt,name=policy,proto3" json:"policy,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *IamPolicySearchResult) Reset() { *m = IamPolicySearchResult{} } |
| func (m *IamPolicySearchResult) String() string { return proto.CompactTextString(m) } |
| func (*IamPolicySearchResult) ProtoMessage() {} |
| func (*IamPolicySearchResult) Descriptor() ([]byte, []int) { |
| return fileDescriptor_292d674e8a9d7e8b, []int{1} |
| } |
| |
| func (m *IamPolicySearchResult) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_IamPolicySearchResult.Unmarshal(m, b) |
| } |
| func (m *IamPolicySearchResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_IamPolicySearchResult.Marshal(b, m, deterministic) |
| } |
| func (m *IamPolicySearchResult) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_IamPolicySearchResult.Merge(m, src) |
| } |
| func (m *IamPolicySearchResult) XXX_Size() int { |
| return xxx_messageInfo_IamPolicySearchResult.Size(m) |
| } |
| func (m *IamPolicySearchResult) XXX_DiscardUnknown() { |
| xxx_messageInfo_IamPolicySearchResult.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_IamPolicySearchResult proto.InternalMessageInfo |
| |
| func (m *IamPolicySearchResult) GetResource() string { |
| if m != nil { |
| return m.Resource |
| } |
| return "" |
| } |
| |
| func (m *IamPolicySearchResult) GetProject() string { |
| if m != nil { |
| return m.Project |
| } |
| return "" |
| } |
| |
| func (m *IamPolicySearchResult) GetPolicy() *v1.Policy { |
| if m != nil { |
| return m.Policy |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterType((*StandardResourceMetadata)(nil), "google.cloud.asset.v1p1beta1.StandardResourceMetadata") |
| proto.RegisterType((*IamPolicySearchResult)(nil), "google.cloud.asset.v1p1beta1.IamPolicySearchResult") |
| } |
| |
| func init() { |
| proto.RegisterFile("google/cloud/asset/v1p1beta1/assets.proto", fileDescriptor_292d674e8a9d7e8b) |
| } |
| |
| var fileDescriptor_292d674e8a9d7e8b = []byte{ |
| // 401 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xb1, 0xae, 0xd3, 0x30, |
| 0x14, 0x86, 0x95, 0x7b, 0x2f, 0x17, 0xea, 0x32, 0x59, 0x54, 0x8a, 0xa2, 0x22, 0x85, 0x4e, 0x65, |
| 0xc0, 0x56, 0xe8, 0xc8, 0xd4, 0x32, 0x20, 0x06, 0x50, 0x94, 0xa2, 0x0e, 0xa8, 0x52, 0x75, 0x1a, |
| 0x5b, 0xc1, 0x28, 0x89, 0x2d, 0xdb, 0xa9, 0x14, 0x89, 0x27, 0x62, 0xe6, 0x29, 0x78, 0x0b, 0xde, |
| 0x82, 0x11, 0xe5, 0xc4, 0x6d, 0x17, 0xd4, 0xcd, 0xe7, 0x7c, 0xbf, 0xff, 0x3f, 0xc7, 0x27, 0xe4, |
| 0x75, 0xa5, 0x75, 0x55, 0x4b, 0x5e, 0xd6, 0xba, 0x13, 0x1c, 0x9c, 0x93, 0x9e, 0x9f, 0x32, 0x93, |
| 0x1d, 0xa5, 0x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