Class ResourceInfo

java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<ResourceInfo,ResourceInfo.Builder>
com.google.rpc.ResourceInfo
All Implemented Interfaces:
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, ResourceInfoOrBuilder

public final class ResourceInfo extends com.google.protobuf.GeneratedMessageLite<ResourceInfo,ResourceInfo.Builder> implements ResourceInfoOrBuilder
 Describes the resource that is being accessed.
 
Protobuf type google.rpc.ResourceInfo
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Describes the resource that is being accessed.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
     
    Describes what error is encountered when accessing this resource.
    com.google.protobuf.ByteString
    Describes what error is encountered when accessing this resource.
    The owner of the resource (optional).
    com.google.protobuf.ByteString
    The owner of the resource (optional).
    The name of the resource being accessed.
    com.google.protobuf.ByteString
    The name of the resource being accessed.
    A name for the type of resource being accessed, e.g.
    com.google.protobuf.ByteString
    A name for the type of resource being accessed, e.g.
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<ResourceInfo>
     

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

    • RESOURCE_TYPE_FIELD_NUMBER

      public static final int RESOURCE_TYPE_FIELD_NUMBER
      See Also:
    • RESOURCE_NAME_FIELD_NUMBER

      public static final int RESOURCE_NAME_FIELD_NUMBER
      See Also:
    • OWNER_FIELD_NUMBER

      public static final int OWNER_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
  • Method Details

    • getResourceType

      public String 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 resource_type = 1 [json_name = "resourceType"];
      Specified by:
      getResourceType in interface ResourceInfoOrBuilder
      Returns:
      The resourceType.
    • getResourceTypeBytes

      public com.google.protobuf.ByteString getResourceTypeBytes()
       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 resource_type = 1 [json_name = "resourceType"];
      Specified by:
      getResourceTypeBytes in interface ResourceInfoOrBuilder
      Returns:
      The bytes for resourceType.
    • getResourceName

      public String 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][google.rpc.Code.PERMISSION_DENIED].
       
      string resource_name = 2 [json_name = "resourceName"];
      Specified by:
      getResourceName in interface ResourceInfoOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       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].
       
      string resource_name = 2 [json_name = "resourceName"];
      Specified by:
      getResourceNameBytes in interface ResourceInfoOrBuilder
      Returns:
      The bytes for resourceName.
    • getOwner

      public String getOwner()
       The owner of the resource (optional).
       For example, "user:<owner email>" or "project:<Google developer project
       id>".
       
      string owner = 3 [json_name = "owner"];
      Specified by:
      getOwner in interface ResourceInfoOrBuilder
      Returns:
      The owner.
    • getOwnerBytes

      public com.google.protobuf.ByteString getOwnerBytes()
       The owner of the resource (optional).
       For example, "user:<owner email>" or "project:<Google developer project
       id>".
       
      string owner = 3 [json_name = "owner"];
      Specified by:
      getOwnerBytes in interface ResourceInfoOrBuilder
      Returns:
      The bytes for owner.
    • getDescription

      public String 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 description = 4 [json_name = "description"];
      Specified by:
      getDescription in interface ResourceInfoOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       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 description = 4 [json_name = "description"];
      Specified by:
      getDescriptionBytes in interface ResourceInfoOrBuilder
      Returns:
      The bytes for description.
    • parseFrom

      public static ResourceInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ResourceInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ResourceInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ResourceInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ResourceInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ResourceInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ResourceInfo parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ResourceInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ResourceInfo parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ResourceInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ResourceInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ResourceInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static ResourceInfo.Builder newBuilder()
    • newBuilder

      public static ResourceInfo.Builder newBuilder(ResourceInfo prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<ResourceInfo,ResourceInfo.Builder>
    • getDefaultInstance

      public static ResourceInfo getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ResourceInfo> parser()