Show / Hide Table of Contents

Class ResourceInfo

Describes the resource that is being accessed.

Inheritance
System.Object
ResourceInfo
Implements
IMessage<ResourceInfo>
IMessage
System.IEquatable<ResourceInfo>
IDeepCloneable<ResourceInfo>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Rpc
Assembly: Google.Api.CommonProtos.dll
Syntax
public sealed class ResourceInfo : IMessage<ResourceInfo>, IMessage, IEquatable<ResourceInfo>, IDeepCloneable<ResourceInfo>

Constructors

ResourceInfo()

Declaration
public ResourceInfo()

ResourceInfo(ResourceInfo)

Declaration
public ResourceInfo(ResourceInfo other)
Parameters
Type Name Description
ResourceInfo other

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
Type Description
MessageDescriptor

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
Type Description
MessageParser<ResourceInfo>

ResourceName

The name of the resource being accessed. For example, a shared calendar name: &quot;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
IMessage.CalculateSize()

Clone()

Declaration
public ResourceInfo Clone()
Returns
Type Description
ResourceInfo
Implements
IDeepCloneable<T>.Clone()

Equals(ResourceInfo)

Declaration
public bool Equals(ResourceInfo other)
Parameters
Type Name Description
ResourceInfo other
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()

MergeFrom(CodedInputStream)

Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Type Name Description
CodedInputStream input
Implements
IMessage.MergeFrom(CodedInputStream)

MergeFrom(ResourceInfo)

Declaration
public void MergeFrom(ResourceInfo other)
Parameters
Type Name Description
ResourceInfo other
Implements
IMessage<T>.MergeFrom(T)

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

WriteTo(CodedOutputStream)

Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Type Name Description
CodedOutputStream output
Implements
IMessage.WriteTo(CodedOutputStream)

Explicit Interface Implementations

IMessage.Descriptor

Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Type Description
MessageDescriptor
Implements
IMessage.Descriptor
Back to top