Google Cloud Advisory Notifications V1 Client - Class ListNotificationsRequest (0.5.1)

Reference documentation and code samples for the Google Cloud Advisory Notifications V1 Client class ListNotificationsRequest.

Request for fetching all notifications for a given parent.

Generated from protobuf message google.cloud.advisorynotifications.v1.ListNotificationsRequest

Namespace

Google \ Cloud \ AdvisoryNotifications \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent, which owns this collection of notifications. Must be of the form "organizations/{organization}/locations/{location}".

↳ page_size int

The maximum number of notifications to return. The service may return fewer than this value. If unspecified or equal to 0, at most 50 notifications will be returned. The maximum value is 50; values above 50 will be coerced to 50.

↳ page_token string

A page token returned from a previous request. When paginating, all other parameters provided in the request must match the call that returned the page token.

↳ view int

Specifies which parts of the notification resource should be returned in the response.

↳ language_code string

ISO code for requested localization language. If unset, will be interpereted as "en". If the requested language is valid, but not supported for this notification, English will be returned with an "Not applicable" LocalizationState. If the ISO code is invalid (i.e. not a real language), this RPC will throw an error.

getParent

Required. The parent, which owns this collection of notifications.

Must be of the form "organizations/{organization}/locations/{location}".

Returns
TypeDescription
string

setParent

Required. The parent, which owns this collection of notifications.

Must be of the form "organizations/{organization}/locations/{location}".

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPageSize

The maximum number of notifications to return. The service may return fewer than this value. If unspecified or equal to 0, at most 50 notifications will be returned. The maximum value is 50; values above 50 will be coerced to 50.

Returns
TypeDescription
int

setPageSize

The maximum number of notifications to return. The service may return fewer than this value. If unspecified or equal to 0, at most 50 notifications will be returned. The maximum value is 50; values above 50 will be coerced to 50.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPageToken

A page token returned from a previous request.

When paginating, all other parameters provided in the request must match the call that returned the page token.

Returns
TypeDescription
string

setPageToken

A page token returned from a previous request.

When paginating, all other parameters provided in the request must match the call that returned the page token.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getView

Specifies which parts of the notification resource should be returned in the response.

Returns
TypeDescription
int

setView

Specifies which parts of the notification resource should be returned in the response.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getLanguageCode

ISO code for requested localization language. If unset, will be interpereted as "en". If the requested language is valid, but not supported for this notification, English will be returned with an "Not applicable" LocalizationState. If the ISO code is invalid (i.e. not a real language), this RPC will throw an error.

Returns
TypeDescription
string

setLanguageCode

ISO code for requested localization language. If unset, will be interpereted as "en". If the requested language is valid, but not supported for this notification, English will be returned with an "Not applicable" LocalizationState. If the ISO code is invalid (i.e. not a real language), this RPC will throw an error.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameter
NameDescription
parent string

Required. The parent, which owns this collection of notifications. Must be of the form "organizations/{organization}/locations/{location}". Please see Google\Cloud\AdvisoryNotifications\V1\AdvisoryNotificationsServiceClient::locationName() for help formatting this field.

Returns
TypeDescription
Google\Cloud\AdvisoryNotifications\V1\ListNotificationsRequest