Reference documentation and code samples for the Google Cloud Asset V1 Client class CreateFeedRequest.
Create asset feed request.
Generated from protobuf messagegoogle.cloud.asset.v1.CreateFeedRequest
Namespace
Google \ Cloud \ Asset \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The name of the project/folder/organization where this feed should be created in. It can only be an organization number (such as "organizations/123"), a folder number (such as "folders/123"), a project ID (such as "projects/my-project-id"), or a project number (such as "projects/12345").
↳ feed_id
string
Required. This is the client-assigned asset feed identifier and it needs to be unique under a specific parent project/folder/organization.
Required. The feed details. The fieldnamemust be empty and it will be generated in the format of: projects/project_number/feeds/feed_id folders/folder_number/feeds/feed_id organizations/organization_number/feeds/feed_id
getParent
Required. The name of the project/folder/organization where this feed
should be created in. It can only be an organization number (such as
"organizations/123"), a folder number (such as "folders/123"), a project ID
(such as "projects/my-project-id"), or a project number (such as
"projects/12345").
Returns
Type
Description
string
setParent
Required. The name of the project/folder/organization where this feed
should be created in. It can only be an organization number (such as
"organizations/123"), a folder number (such as "folders/123"), a project ID
(such as "projects/my-project-id"), or a project number (such as
"projects/12345").
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getFeedId
Required. This is the client-assigned asset feed identifier and it needs to
be unique under a specific parent project/folder/organization.
Returns
Type
Description
string
setFeedId
Required. This is the client-assigned asset feed identifier and it needs to
be unique under a specific parent project/folder/organization.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getFeed
Required. The feed details. The fieldnamemust be empty and it will be
generated in the format of: projects/project_number/feeds/feed_id
folders/folder_number/feeds/feed_id
organizations/organization_number/feeds/feed_id
Required. The feed details. The fieldnamemust be empty and it will be
generated in the format of: projects/project_number/feeds/feed_id
folders/folder_number/feeds/feed_id
organizations/organization_number/feeds/feed_id
Required. The name of the project/folder/organization where this feed
should be created in. It can only be an organization number (such as
"organizations/123"), a folder number (such as "folders/123"), a project ID
(such as "projects/my-project-id"), or a project number (such as
"projects/12345").
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Cloud Asset V1 Client - Class CreateFeedRequest (2.2.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.3 (latest)](/php/docs/reference/cloud-asset/latest/V1.CreateFeedRequest)\n- [2.2.2](/php/docs/reference/cloud-asset/2.2.2/V1.CreateFeedRequest)\n- [2.1.3](/php/docs/reference/cloud-asset/2.1.3/V1.CreateFeedRequest)\n- [2.0.1](/php/docs/reference/cloud-asset/2.0.1/V1.CreateFeedRequest)\n- [1.16.4](/php/docs/reference/cloud-asset/1.16.4/V1.CreateFeedRequest)\n- [1.14.1](/php/docs/reference/cloud-asset/1.14.1/V1.CreateFeedRequest)\n- [1.13.2](/php/docs/reference/cloud-asset/1.13.2/V1.CreateFeedRequest)\n- [1.12.2](/php/docs/reference/cloud-asset/1.12.2/V1.CreateFeedRequest)\n- [1.11.3](/php/docs/reference/cloud-asset/1.11.3/V1.CreateFeedRequest)\n- [1.10.2](/php/docs/reference/cloud-asset/1.10.2/V1.CreateFeedRequest)\n- [1.9.2](/php/docs/reference/cloud-asset/1.9.2/V1.CreateFeedRequest) \nReference documentation and code samples for the Google Cloud Asset V1 Client class CreateFeedRequest.\n\nCreate asset feed request.\n\nGenerated from protobuf message `google.cloud.asset.v1.CreateFeedRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Asset \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The name of the project/folder/organization where this feed\nshould be created in. It can only be an organization number (such as\n\"organizations/123\"), a folder number (such as \"folders/123\"), a project ID\n(such as \"projects/my-project-id\"), or a project number (such as\n\"projects/12345\").\n\n### setParent\n\nRequired. The name of the project/folder/organization where this feed\nshould be created in. It can only be an organization number (such as\n\"organizations/123\"), a folder number (such as \"folders/123\"), a project ID\n(such as \"projects/my-project-id\"), or a project number (such as\n\"projects/12345\").\n\n### getFeedId\n\nRequired. This is the client-assigned asset feed identifier and it needs to\nbe unique under a specific parent project/folder/organization.\n\n### setFeedId\n\nRequired. This is the client-assigned asset feed identifier and it needs to\nbe unique under a specific parent project/folder/organization.\n\n### getFeed\n\nRequired. The feed details. The field `name` must be empty and it will be\ngenerated in the format of: projects/project_number/feeds/feed_id\nfolders/folder_number/feeds/feed_id\norganizations/organization_number/feeds/feed_id\n\n### hasFeed\n\n### clearFeed\n\n### setFeed\n\nRequired. The feed details. The field `name` must be empty and it will be\ngenerated in the format of: projects/project_number/feeds/feed_id\nfolders/folder_number/feeds/feed_id\norganizations/organization_number/feeds/feed_id\n\n### static::build"]]