1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/cloud/asset/v1p1beta1/assets.proto 3 4package asset 5 6import ( 7 fmt "fmt" 8 math "math" 9 10 proto "github.com/golang/protobuf/proto" 11 _ "google.golang.org/genproto/googleapis/api/annotations" 12 v1 "google.golang.org/genproto/googleapis/iam/v1" 13) 14 15// Reference imports to suppress errors if they are not otherwise used. 16var _ = proto.Marshal 17var _ = fmt.Errorf 18var _ = math.Inf 19 20// This is a compile-time assertion to ensure that this generated file 21// is compatible with the proto package it is being compiled against. 22// A compilation error at this line likely means your copy of the 23// proto package needs to be updated. 24const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 25 26// The standard metadata of a cloud resource. 27type StandardResourceMetadata struct { 28 // The full resource name. For example: 29 // `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. 30 // See [Resource 31 // Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) 32 // for more information. 33 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 34 // The type of this resource. 35 // For example: "compute.googleapis.com/Disk". 36 AssetType string `protobuf:"bytes,2,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"` 37 // The project that this resource belongs to, in the form of 38 // `projects/{project_number}`. 39 Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"` 40 // The display name of this resource. 41 DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` 42 // One or more paragraphs of text description of this resource. Maximum length 43 // could be up to 1M bytes. 44 Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` 45 // Additional searchable attributes of this resource. 46 // Informational only. The exact set of attributes is subject to change. 47 // For example: project id, DNS name etc. 48 AdditionalAttributes []string `protobuf:"bytes,10,rep,name=additional_attributes,json=additionalAttributes,proto3" json:"additional_attributes,omitempty"` 49 XXX_NoUnkeyedLiteral struct{} `json:"-"` 50 XXX_unrecognized []byte `json:"-"` 51 XXX_sizecache int32 `json:"-"` 52} 53 54func (m *StandardResourceMetadata) Reset() { *m = StandardResourceMetadata{} } 55func (m *StandardResourceMetadata) String() string { return proto.CompactTextString(m) } 56func (*StandardResourceMetadata) ProtoMessage() {} 57func (*StandardResourceMetadata) Descriptor() ([]byte, []int) { 58 return fileDescriptor_292d674e8a9d7e8b, []int{0} 59} 60 61func (m *StandardResourceMetadata) XXX_Unmarshal(b []byte) error { 62 return xxx_messageInfo_StandardResourceMetadata.Unmarshal(m, b) 63} 64func (m *StandardResourceMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 65 return xxx_messageInfo_StandardResourceMetadata.Marshal(b, m, deterministic) 66} 67func (m *StandardResourceMetadata) XXX_Merge(src proto.Message) { 68 xxx_messageInfo_StandardResourceMetadata.Merge(m, src) 69} 70func (m *StandardResourceMetadata) XXX_Size() int { 71 return xxx_messageInfo_StandardResourceMetadata.Size(m) 72} 73func (m *StandardResourceMetadata) XXX_DiscardUnknown() { 74 xxx_messageInfo_StandardResourceMetadata.DiscardUnknown(m) 75} 76 77var xxx_messageInfo_StandardResourceMetadata proto.InternalMessageInfo 78 79func (m *StandardResourceMetadata) GetName() string { 80 if m != nil { 81 return m.Name 82 } 83 return "" 84} 85 86func (m *StandardResourceMetadata) GetAssetType() string { 87 if m != nil { 88 return m.AssetType 89 } 90 return "" 91} 92 93func (m *StandardResourceMetadata) GetProject() string { 94 if m != nil { 95 return m.Project 96 } 97 return "" 98} 99 100func (m *StandardResourceMetadata) GetDisplayName() string { 101 if m != nil { 102 return m.DisplayName 103 } 104 return "" 105} 106 107func (m *StandardResourceMetadata) GetDescription() string { 108 if m != nil { 109 return m.Description 110 } 111 return "" 112} 113 114func (m *StandardResourceMetadata) GetAdditionalAttributes() []string { 115 if m != nil { 116 return m.AdditionalAttributes 117 } 118 return nil 119} 120 121// The result for a IAM Policy search. 122type IamPolicySearchResult struct { 123 // The [full resource 124 // name](https://cloud.google.com/apis/design/resource_names#full_resource_name) 125 // of the resource associated with this IAM policy. 126 Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` 127 // The project that the associated GCP resource belongs to, in the form of 128 // `projects/{project_number}`. If an IAM policy is set on a resource (like VM 129 // instance, Cloud Storage bucket), the project field will indicate the 130 // project that contains the resource. If an IAM policy is set on a folder or 131 // orgnization, the project field will be empty. 132 Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"` 133 // Representation of the actual Cloud IAM policy set on a cloud resource. For 134 // each resource, there must be at most one Cloud IAM policy set on it. 135 Policy *v1.Policy `protobuf:"bytes,4,opt,name=policy,proto3" json:"policy,omitempty"` 136 XXX_NoUnkeyedLiteral struct{} `json:"-"` 137 XXX_unrecognized []byte `json:"-"` 138 XXX_sizecache int32 `json:"-"` 139} 140 141func (m *IamPolicySearchResult) Reset() { *m = IamPolicySearchResult{} } 142func (m *IamPolicySearchResult) String() string { return proto.CompactTextString(m) } 143func (*IamPolicySearchResult) ProtoMessage() {} 144func (*IamPolicySearchResult) Descriptor() ([]byte, []int) { 145 return fileDescriptor_292d674e8a9d7e8b, []int{1} 146} 147 148func (m *IamPolicySearchResult) XXX_Unmarshal(b []byte) error { 149 return xxx_messageInfo_IamPolicySearchResult.Unmarshal(m, b) 150} 151func (m *IamPolicySearchResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 152 return xxx_messageInfo_IamPolicySearchResult.Marshal(b, m, deterministic) 153} 154func (m *IamPolicySearchResult) XXX_Merge(src proto.Message) { 155 xxx_messageInfo_IamPolicySearchResult.Merge(m, src) 156} 157func (m *IamPolicySearchResult) XXX_Size() int { 158 return xxx_messageInfo_IamPolicySearchResult.Size(m) 159} 160func (m *IamPolicySearchResult) XXX_DiscardUnknown() { 161 xxx_messageInfo_IamPolicySearchResult.DiscardUnknown(m) 162} 163 164var xxx_messageInfo_IamPolicySearchResult proto.InternalMessageInfo 165 166func (m *IamPolicySearchResult) GetResource() string { 167 if m != nil { 168 return m.Resource 169 } 170 return "" 171} 172 173func (m *IamPolicySearchResult) GetProject() string { 174 if m != nil { 175 return m.Project 176 } 177 return "" 178} 179 180func (m *IamPolicySearchResult) GetPolicy() *v1.Policy { 181 if m != nil { 182 return m.Policy 183 } 184 return nil 185} 186 187func init() { 188 proto.RegisterType((*StandardResourceMetadata)(nil), "google.cloud.asset.v1p1beta1.StandardResourceMetadata") 189 proto.RegisterType((*IamPolicySearchResult)(nil), "google.cloud.asset.v1p1beta1.IamPolicySearchResult") 190} 191 192func init() { 193 proto.RegisterFile("google/cloud/asset/v1p1beta1/assets.proto", fileDescriptor_292d674e8a9d7e8b) 194} 195 196var fileDescriptor_292d674e8a9d7e8b = []byte{ 197 // 401 bytes of a gzipped FileDescriptorProto 198 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xb1, 0xae, 0xd3, 0x30, 199 0x14, 0x86, 0x95, 0x7b, 0x2f, 0x17, 0xea, 0x32, 0x59, 0x54, 0x8a, 0xa2, 0x22, 0x85, 0x4e, 0x65, 200 0xc0, 0x56, 0xe8, 0xc8, 0xd4, 0x32, 0x20, 0x06, 0x50, 0x94, 0xa2, 0x0e, 0xa8, 0x52, 0x75, 0x1a, 201 0x5b, 0xc1, 0x28, 0x89, 0x2d, 0xdb, 0xa9, 0x14, 0x89, 0x27, 0x62, 0xe6, 0x29, 0x78, 0x0b, 0xde, 202 0x82, 0x11, 0xe5, 0xc4, 0x6d, 0x17, 0xd4, 0xcd, 0xe7, 0x7c, 0xbf, 0xff, 0x3f, 0xc7, 0x27, 0xe4, 203 0x75, 0xa5, 0x75, 0x55, 0x4b, 0x5e, 0xd6, 0xba, 0x13, 0x1c, 0x9c, 0x93, 0x9e, 0x9f, 0x32, 0x93, 204 0x1d, 0xa5, 0x87, 0x6c, 0xac, 0x1d, 0x33, 0x56, 0x7b, 0x4d, 0xe7, 0xa3, 0x94, 0xa1, 0x94, 0x21, 205 0x62, 0x17, 0x69, 0x92, 0x04, 0x23, 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, 0xed, 0x8c, 0x85, 0xdd, 0x28, 0x68, 217 0xd8, 0x29, 0x63, 0x63, 0x50, 0x11, 0x44, 0x9b, 0x5f, 0x11, 0x49, 0x4b, 0xdd, 0xb0, 0x5b, 0x0b, 218 0xdc, 0x90, 0xf5, 0xd0, 0xc8, 0x87, 0x95, 0xe4, 0xd1, 0xd7, 0x75, 0xd0, 0x56, 0xba, 0x86, 0xb6, 219 0x62, 0xda, 0x56, 0xbc, 0x92, 0x2d, 0x2e, 0x8c, 0x8f, 0x08, 0x8c, 0x72, 0xff, 0xff, 0x6d, 0xde, 220 0x61, 0xfd, 0x37, 0x8a, 0x7e, 0xde, 0xcd, 0x3f, 0x8c, 0x36, 0xef, 0x31, 0x12, 0x13, 0xd8, 0x2e, 221 0xcb, 0xb3, 0xcd, 0xa0, 0xfb, 0x7d, 0xc6, 0x7b, 0xc4, 0x7b, 0xc4, 0xfb, 0xdd, 0xd9, 0xe6, 0xf8, 222 0x88, 0x71, 0xab, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xb6, 0x0a, 0xc1, 0x70, 0xa4, 0x02, 0x00, 223 0x00, 224} 225