Class ResourceInfo
Describes the resource that is being accessed.
Inheritance
System.Object
ResourceInfo
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Google.Api.CommonProtos.dll
Syntax
public sealed class ResourceInfo : IMessage<ResourceInfo>, IMessage, IEquatable<ResourceInfo>, IDeepCloneable<ResourceInfo>
Constructors
ResourceInfo()
Declaration
ResourceInfo(ResourceInfo)
Declaration
public ResourceInfo(ResourceInfo other)
Parameters
Fields
DescriptionFieldNumber
Field number for the "description" field.
Declaration
public const int DescriptionFieldNumber = 4
Field Value
Type |
Description |
System.Int32 |
|
OwnerFieldNumber
Field number for the "owner" field.
Declaration
public const int OwnerFieldNumber = 3
Field Value
Type |
Description |
System.Int32 |
|
ResourceNameFieldNumber
Field number for the "resource_name" field.
Declaration
public const int ResourceNameFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
ResourceTypeFieldNumber
Field number for the "resource_type" field.
Declaration
public const int ResourceTypeFieldNumber = 1
Field Value
Type |
Description |
System.Int32 |
|
Properties
Description
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.
Declaration
public string Description { get; set; }
Property Value
Type |
Description |
System.String |
|
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Owner
The owner of the resource (optional).
For example, "user:<owner email>" or "project:<Google developer project
id>".
Declaration
public string Owner { get; set; }
Property Value
Type |
Description |
System.String |
|
Parser
Declaration
public static MessageParser<ResourceInfo> Parser { get; }
Property Value
ResourceName
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][google.rpc.Code.PERMISSION_DENIED].
Declaration
public string ResourceName { get; set; }
Property Value
Type |
Description |
System.String |
|
ResourceType
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".
Declaration
public string ResourceType { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Implements
Clone()
Declaration
public ResourceInfo Clone()
Returns
Implements
Equals(ResourceInfo)
Declaration
public bool Equals(ResourceInfo other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<T>.Equals(T)
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
System.Object |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Implements
MergeFrom(ResourceInfo)
Declaration
public void MergeFrom(ResourceInfo other)
Parameters
Implements
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
WriteTo(CodedOutputStream)
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Implements
Explicit Interface Implementations
IMessage.Descriptor
Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Implements