Reference documentation and code samples for the Google API Common Protos Client class ResourceInfo.
Describes the resource that is being accessed.
Generated from protobuf message google.rpc.ResourceInfo
Namespace
Google \ RpcMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ resource_type
string
A name for the type of resource being accessed, e.g. "sql table", "cloud storage bucket", "file", "Google calendar"; or the type URL of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
↳ resource_name
string
The name of the resource being accessed. For example, a shared calendar name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current error is google.rpc.Code.PERMISSION_DENIED .
↳ owner
string
The owner of the resource (optional). For example, "user:
↳ description
string
Describes what error is encountered when accessing this resource. For example, updating a cloud project may require the writer
permission on the developer console project.
getResourceType
A name for the type of resource being accessed, e.g. "sql table", "cloud storage bucket", "file", "Google calendar"; or the type URL of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
string
setResourceType
A name for the type of resource being accessed, e.g. "sql table", "cloud storage bucket", "file", "Google calendar"; or the type URL of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
var
string
$this
getResourceName
The name of the resource being accessed. For example, a shared calendar name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current error is google.rpc.Code.PERMISSION_DENIED .
string
setResourceName
The name of the resource being accessed. For example, a shared calendar name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current error is google.rpc.Code.PERMISSION_DENIED .
var
string
$this
getOwner
The owner of the resource (optional).
For example, "user:
string
setOwner
The owner of the resource (optional).
For example, "user:
var
string
$this
getDescription
Describes what error is encountered when accessing this resource.
For example, updating a cloud project may require the writer
permission
on the developer console project.
string
setDescription
Describes what error is encountered when accessing this resource.
For example, updating a cloud project may require the writer
permission
on the developer console project.
var
string
$this