Class ResourceInfo.Builder

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

public static final class ResourceInfo.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<ResourceInfo,ResourceInfo.Builder> implements ResourceInfoOrBuilder
 Describes the resource that is being accessed.
 
Protobuf type google.rpc.ResourceInfo
  • 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.
    • setResourceType

      public ResourceInfo.Builder setResourceType(String value)
       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"];
      Parameters:
      value - The resourceType to set.
      Returns:
      This builder for chaining.
    • clearResourceType

      public ResourceInfo.Builder clearResourceType()
       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"];
      Returns:
      This builder for chaining.
    • setResourceTypeBytes

      public ResourceInfo.Builder setResourceTypeBytes(com.google.protobuf.ByteString value)
       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"];
      Parameters:
      value - The bytes for resourceType to set.
      Returns:
      This builder for chaining.
    • 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.
    • setResourceName

      public ResourceInfo.Builder setResourceName(String value)
       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"];
      Parameters:
      value - The resourceName to set.
      Returns:
      This builder for chaining.
    • clearResourceName

      public ResourceInfo.Builder clearResourceName()
       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"];
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public ResourceInfo.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       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"];
      Parameters:
      value - The bytes for resourceName to set.
      Returns:
      This builder for chaining.
    • 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.
    • setOwner

      public ResourceInfo.Builder setOwner(String value)
       The owner of the resource (optional).
       For example, "user:<owner email>" or "project:<Google developer project
       id>".
       
      string owner = 3 [json_name = "owner"];
      Parameters:
      value - The owner to set.
      Returns:
      This builder for chaining.
    • clearOwner

      public ResourceInfo.Builder clearOwner()
       The owner of the resource (optional).
       For example, "user:<owner email>" or "project:<Google developer project
       id>".
       
      string owner = 3 [json_name = "owner"];
      Returns:
      This builder for chaining.
    • setOwnerBytes

      public ResourceInfo.Builder setOwnerBytes(com.google.protobuf.ByteString value)
       The owner of the resource (optional).
       For example, "user:<owner email>" or "project:<Google developer project
       id>".
       
      string owner = 3 [json_name = "owner"];
      Parameters:
      value - The bytes for owner to set.
      Returns:
      This builder for chaining.
    • 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.
    • setDescription

      public ResourceInfo.Builder setDescription(String value)
       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"];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public ResourceInfo.Builder clearDescription()
       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"];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public ResourceInfo.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       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"];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.