程序包 com.google.rpc

接口 ResourceInfoOrBuilder

所有超级接口:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
所有已知实现类:
ResourceInfo, ResourceInfo.Builder

public interface ResourceInfoOrBuilder extends com.google.protobuf.MessageOrBuilder
  • 方法概要

    修饰符和类型
    方法
    说明
    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.

    从接口继承的方法 com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    从接口继承的方法 com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 方法详细资料

    • getResourceType

      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;
      返回:
      The resourceType.
    • getResourceTypeBytes

      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;
      返回:
      The bytes for resourceType.
    • getResourceName

      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;
      返回:
      The resourceName.
    • getResourceNameBytes

      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;
      返回:
      The bytes for resourceName.
    • getOwner

      String getOwner()
       The owner of the resource (optional).
       For example, "user:<owner email>" or "project:<Google developer project
       id>".
       
      string owner = 3;
      返回:
      The owner.
    • getOwnerBytes

      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;
      返回:
      The bytes for owner.
    • getDescription

      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;
      返回:
      The description.
    • getDescriptionBytes

      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;
      返回:
      The bytes for description.