Reference documentation and code samples for the Stackdriver Error Reporting V1beta1 Client class DeleteEventsRequest.
Deletes all events in the project.
Generated from protobuf messagegoogle.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest
Namespace
Google \ Cloud \ ErrorReporting \ V1beta1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ project_name
string
Required. The resource name of the Google Cloud Platform project. Written asprojects/{projectID}orprojects/{projectID}/locations/{location}, where{projectID}is theGoogle Cloud Platform project IDand{location}is a Cloud region. Examples:projects/my-project-123,projects/my-project-123/locations/global. For a list of supported locations, seeSupported Regions.globalis the default when unspecified.
getProjectName
Required. The resource name of the Google Cloud Platform project. Written
asprojects/{projectID}orprojects/{projectID}/locations/{location},
where{projectID}is theGoogle Cloud Platform project
IDand{location}is
a Cloud region.
Examples:projects/my-project-123,projects/my-project-123/locations/global.
For a list of supported locations, seeSupported
Regions.globalis
the default when unspecified.
Returns
Type
Description
string
setProjectName
Required. The resource name of the Google Cloud Platform project. Written
asprojects/{projectID}orprojects/{projectID}/locations/{location},
where{projectID}is theGoogle Cloud Platform project
IDand{location}is
a Cloud region.
Examples:projects/my-project-123,projects/my-project-123/locations/global.
For a list of supported locations, seeSupported
Regions.globalis
the default when unspecified.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameter
Name
Description
projectName
string
Required. The resource name of the Google Cloud Platform project. Written
asprojects/{projectID}orprojects/{projectID}/locations/{location},
where{projectID}is theGoogle Cloud Platform project
IDand{location}is
a Cloud region.
[[["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-04 UTC."],[],[],null,["# Stackdriver Error Reporting V1beta1 Client - Class DeleteEventsRequest (0.23.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.23.1 (latest)](/php/docs/reference/cloud-error-reporting/latest/V1beta1.DeleteEventsRequest)\n- [0.23.0](/php/docs/reference/cloud-error-reporting/0.23.0/V1beta1.DeleteEventsRequest)\n- [0.22.10](/php/docs/reference/cloud-error-reporting/0.22.10/V1beta1.DeleteEventsRequest)\n- [0.21.1](/php/docs/reference/cloud-error-reporting/0.21.1/V1beta1.DeleteEventsRequest)\n- [0.20.2](/php/docs/reference/cloud-error-reporting/0.20.2/V1beta1.DeleteEventsRequest)\n- [0.19.12](/php/docs/reference/cloud-error-reporting/0.19.12/V1beta1.DeleteEventsRequest) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Stackdriver Error Reporting V1beta1 Client class DeleteEventsRequest.\n\nDeletes all events in the project.\n\nGenerated from protobuf message `google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ErrorReporting \\\\ V1beta1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getProjectName\n\nRequired. The resource name of the Google Cloud Platform project. Written\nas `projects/{projectID}` or `projects/{projectID}/locations/{location}`,\nwhere `{projectID}` is the [Google Cloud Platform project\nID](https://support.google.com/cloud/answer/6158840) and `{location}` is\na Cloud region.\n\nExamples: `projects/my-project-123`,\n`projects/my-project-123/locations/global`.\nFor a list of supported locations, see [Supported\nRegions](https://cloud.google.com/logging/docs/region-support). `global` is\nthe default when unspecified.\n\n### setProjectName\n\nRequired. The resource name of the Google Cloud Platform project. Written\nas `projects/{projectID}` or `projects/{projectID}/locations/{location}`,\nwhere `{projectID}` is the [Google Cloud Platform project\nID](https://support.google.com/cloud/answer/6158840) and `{location}` is\na Cloud region.\n\nExamples: `projects/my-project-123`,\n`projects/my-project-123/locations/global`.\nFor a list of supported locations, see [Supported\nRegions](https://cloud.google.com/logging/docs/region-support). `global` is\nthe default when unspecified.\n\n### static::build"]]