程序包 com.google.rpc

# 类 ResourceInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>
com.google.rpc.ResourceInfo.Builder

所有已实现的接口:
  `com.google.protobuf.Message.Builder`, `com.google.protobuf.MessageLite.Builder`, `com.google.protobuf.MessageLiteOrBuilder`, `com.google.protobuf.MessageOrBuilder`, `ResourceInfoOrBuilder`, `Cloneable`

封闭类:
  ResourceInfo

public static final class ResourceInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder> implements ResourceInfoOrBuilder

     Describes the resource that is being accessed.

Protobuf type `google.rpc.ResourceInfo`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `ResourceInfo.Builder`
  `addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)`
  `ResourceInfo`
  `build()`
  `ResourceInfo`
  `buildPartial()`
  `ResourceInfo.Builder`
  `clear()`
  `ResourceInfo.Builder`
  `clearDescription()`
  Describes what error is encountered when accessing this resource.
  `ResourceInfo.Builder`
  `clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)`
  `ResourceInfo.Builder`
  `clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)`
  `ResourceInfo.Builder`
  `clearOwner()`
  The owner of the resource (optional).
  `ResourceInfo.Builder`
  `clearResourceName()`
  The name of the resource being accessed.
  `ResourceInfo.Builder`
  `clearResourceType()`
  A name for the type of resource being accessed, e.g.
  `ResourceInfo.Builder`
  `clone()`
  `ResourceInfo`
  `getDefaultInstanceForType()`
  `String`
  `getDescription()`
  Describes what error is encountered when accessing this resource.
  `com.google.protobuf.ByteString`
  `getDescriptionBytes()`
  Describes what error is encountered when accessing this resource.
  `static com.google.protobuf.Descriptors.Descriptor`
  `getDescriptor()`
  `com.google.protobuf.Descriptors.Descriptor`
  `getDescriptorForType()`
  `String`
  `getOwner()`
  The owner of the resource (optional).
  `com.google.protobuf.ByteString`
  `getOwnerBytes()`
  The owner of the resource (optional).
  `String`
  `getResourceName()`
  The name of the resource being accessed.
  `com.google.protobuf.ByteString`
  `getResourceNameBytes()`
  The name of the resource being accessed.
  `String`
  `getResourceType()`
  A name for the type of resource being accessed, e.g.
  `com.google.protobuf.ByteString`
  `getResourceTypeBytes()`
  A name for the type of resource being accessed, e.g.
  `protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable`
  `internalGetFieldAccessorTable()`
  `boolean`
  `isInitialized()`
  `ResourceInfo.Builder`
  `mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)`
  `ResourceInfo.Builder`
  `mergeFrom​(com.google.protobuf.Message other)`
  `ResourceInfo.Builder`
  `mergeFrom​(ResourceInfo other)`
  `ResourceInfo.Builder`
  `mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)`
  `ResourceInfo.Builder`
  `setDescription​(String value)`
  Describes what error is encountered when accessing this resource.
  `ResourceInfo.Builder`
  `setDescriptionBytes​(com.google.protobuf.ByteString value)`
  Describes what error is encountered when accessing this resource.
  `ResourceInfo.Builder`
  `setField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)`
  `ResourceInfo.Builder`
  `setOwner​(String value)`
  The owner of the resource (optional).
  `ResourceInfo.Builder`
  `setOwnerBytes​(com.google.protobuf.ByteString value)`
  The owner of the resource (optional).
  `ResourceInfo.Builder`
  `setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)`
  `ResourceInfo.Builder`
  `setResourceName​(String value)`
  The name of the resource being accessed.
  `ResourceInfo.Builder`
  `setResourceNameBytes​(com.google.protobuf.ByteString value)`
  The name of the resource being accessed.
  `ResourceInfo.Builder`
  `setResourceType​(String value)`
  A name for the type of resource being accessed, e.g.
  `ResourceInfo.Builder`
  `setResourceTypeBytes​(com.google.protobuf.ByteString value)`
  A name for the type of resource being accessed, e.g.
  `ResourceInfo.Builder`
  `setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)`

  ### 从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder

  `getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3`

  ### 从类继承的方法 com.google.protobuf.AbstractMessage.Builder

  `findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString`

  ### 从类继承的方法 com.google.protobuf.AbstractMessageLite.Builder

  `addAll, addAll, mergeFrom, newUninitializedMessageException`

  ### 从类继承的方法 java.lang.Object

  `equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

  ### 从接口继承的方法 com.google.protobuf.MessageLite.Builder

  `mergeFrom`

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

  `findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof`

- ## 方法详细资料

  - ### getDescriptor

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()

  - ### internalGetFieldAccessorTable

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
    指定者:
      `internalGetFieldAccessorTable` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>`

  - ### clear

    public ResourceInfo.Builder clear()
    指定者:
      `clear` 在接口中 `com.google.protobuf.Message.Builder`
    指定者:
      `clear` 在接口中 `com.google.protobuf.MessageLite.Builder`
    覆盖:
      `clear` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>`

  - ### getDescriptorForType

    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
    指定者:
      `getDescriptorForType` 在接口中 `com.google.protobuf.Message.Builder`
    指定者:
      `getDescriptorForType` 在接口中 `com.google.protobuf.MessageOrBuilder`
    覆盖:
      `getDescriptorForType` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>`

  - ### getDefaultInstanceForType

    public ResourceInfo getDefaultInstanceForType()
    指定者:
      `getDefaultInstanceForType` 在接口中 `com.google.protobuf.MessageLiteOrBuilder`
    指定者:
      `getDefaultInstanceForType` 在接口中 `com.google.protobuf.MessageOrBuilder`

  - ### build

    public ResourceInfo build()
    指定者:
      `build` 在接口中 `com.google.protobuf.Message.Builder`
    指定者:
      `build` 在接口中 `com.google.protobuf.MessageLite.Builder`

  - ### buildPartial

    public ResourceInfo buildPartial()
    指定者:
      `buildPartial` 在接口中 `com.google.protobuf.Message.Builder`
    指定者:
      `buildPartial` 在接口中 `com.google.protobuf.MessageLite.Builder`

  - ### clone

    public ResourceInfo.Builder clone()
    指定者:
      `clone` 在接口中 `com.google.protobuf.Message.Builder`
    指定者:
      `clone` 在接口中 `com.google.protobuf.MessageLite.Builder`
    覆盖:
      `clone` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>`

  - ### setField

    public ResourceInfo.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
    指定者:
      `setField` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `setField` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>`

  - ### clearField

    public ResourceInfo.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
    指定者:
      `clearField` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `clearField` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>`

  - ### clearOneof

    public ResourceInfo.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
    指定者:
      `clearOneof` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `clearOneof` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>`

  - ### setRepeatedField

    public ResourceInfo.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
    指定者:
      `setRepeatedField` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `setRepeatedField` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>`

  - ### addRepeatedField

    public ResourceInfo.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
    指定者:
      `addRepeatedField` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `addRepeatedField` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>`

  - ### mergeFrom

    public ResourceInfo.Builder mergeFrom​(com.google.protobuf.Message other)
    指定者:
      `mergeFrom` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `mergeFrom` 在类中 `com.google.protobuf.AbstractMessage.Builder<ResourceInfo.Builder>`

  - ### mergeFrom

    public ResourceInfo.Builder mergeFrom​(ResourceInfo other)

  - ### isInitialized

    public final boolean isInitialized()
    指定者:
      `isInitialized` 在接口中 `com.google.protobuf.MessageLiteOrBuilder`
    覆盖:
      `isInitialized` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>`

  - ### mergeFrom

    public ResourceInfo.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
    指定者:
      `mergeFrom` 在接口中 `com.google.protobuf.Message.Builder`
    指定者:
      `mergeFrom` 在接口中 `com.google.protobuf.MessageLite.Builder`
    覆盖:
      `mergeFrom` 在类中 `com.google.protobuf.AbstractMessage.Builder<ResourceInfo.Builder>`
    抛出:
      `IOException`

  - ### 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;`
    指定者:
      `getResourceType` 在接口中 `ResourceInfoOrBuilder`
    返回:
      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;`
    指定者:
      `getResourceTypeBytes` 在接口中 `ResourceInfoOrBuilder`
    返回:
      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;`
    参数:
      `value` - The resourceType to set.
    返回:
      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;`
    返回:
      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;`
    参数:
      `value` - The bytes for resourceType to set.
    返回:
      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;`
    指定者:
      `getResourceName` 在接口中 `ResourceInfoOrBuilder`
    返回:
      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;`
    指定者:
      `getResourceNameBytes` 在接口中 `ResourceInfoOrBuilder`
    返回:
      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;`
    参数:
      `value` - The resourceName to set.
    返回:
      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;`
    返回:
      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;`
    参数:
      `value` - The bytes for resourceName to set.
    返回:
      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;`
    指定者:
      `getOwner` 在接口中 `ResourceInfoOrBuilder`
    返回:
      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;`
    指定者:
      `getOwnerBytes` 在接口中 `ResourceInfoOrBuilder`
    返回:
      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;`
    参数:
      `value` - The owner to set.
    返回:
      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;`
    返回:
      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;`
    参数:
      `value` - The bytes for owner to set.
    返回:
      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;`
    指定者:
      `getDescription` 在接口中 `ResourceInfoOrBuilder`
    返回:
      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;`
    指定者:
      `getDescriptionBytes` 在接口中 `ResourceInfoOrBuilder`
    返回:
      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;`
    参数:
      `value` - The description to set.
    返回:
      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;`
    返回:
      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;`
    参数:
      `value` - The bytes for description to set.
    返回:
      This builder for chaining.

  - ### setUnknownFields

    public final ResourceInfo.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
    指定者:
      `setUnknownFields` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `setUnknownFields` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>`

  - ### mergeUnknownFields

    public final ResourceInfo.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
    指定者:
      `mergeUnknownFields` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `mergeUnknownFields` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>`