public final class ResourceInfo extends com.google.protobuf.GeneratedMessageV3 implements ResourceInfoOrBuilder
Describes the resource that is being accessed.Protobuf type
google.rpc.ResourceInfo| 限定符和类型 | 类和说明 |
|---|---|
static class |
ResourceInfo.Builder
Describes the resource that is being accessed.
|
com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
OWNER_FIELD_NUMBER |
static int |
RESOURCE_NAME_FIELD_NUMBER |
static int |
RESOURCE_TYPE_FIELD_NUMBER |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object obj) |
static ResourceInfo |
getDefaultInstance() |
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() |
String |
getOwner()
The owner of the resource (optional).
|
com.google.protobuf.ByteString |
getOwnerBytes()
The owner of the resource (optional).
|
com.google.protobuf.Parser<ResourceInfo> |
getParserForType() |
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.
|
int |
getSerializedSize() |
int |
hashCode() |
boolean |
isInitialized() |
static ResourceInfo.Builder |
newBuilder() |
static ResourceInfo.Builder |
newBuilder(ResourceInfo prototype) |
ResourceInfo.Builder |
newBuilderForType() |
static ResourceInfo |
parseDelimitedFrom(InputStream input) |
static ResourceInfo |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourceInfo |
parseFrom(byte[] data) |
static ResourceInfo |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourceInfo |
parseFrom(ByteBuffer data) |
static ResourceInfo |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourceInfo |
parseFrom(com.google.protobuf.ByteString data) |
static ResourceInfo |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourceInfo |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ResourceInfo |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourceInfo |
parseFrom(InputStream input) |
static ResourceInfo |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ResourceInfo> |
parser() |
ResourceInfo.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneoffindInitializationErrors, getInitializationErrorString, toStringtoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int RESOURCE_TYPE_FIELD_NUMBER
public static final int RESOURCE_NAME_FIELD_NUMBER
public static final int OWNER_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
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 在接口中 ResourceInfoOrBuilderpublic 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 在接口中 ResourceInfoOrBuilderpublic 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 在接口中 ResourceInfoOrBuilderpublic 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 在接口中 ResourceInfoOrBuilderpublic String getOwner()
The owner of the resource (optional). For example, "user:<owner email>" or "project:<Google developer project id>".
string owner = 3;getOwner 在接口中 ResourceInfoOrBuilderpublic 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 在接口中 ResourceInfoOrBuilderpublic 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 在接口中 ResourceInfoOrBuilderpublic 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 在接口中 ResourceInfoOrBuilderpublic final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo 在接口中 com.google.protobuf.MessageLitewriteTo 在类中 com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize 在接口中 com.google.protobuf.MessageLitegetSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals 在接口中 com.google.protobuf.Messageequals 在类中 com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode 在接口中 com.google.protobuf.MessagehashCode 在类中 com.google.protobuf.AbstractMessagepublic static ResourceInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourceInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourceInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourceInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourceInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourceInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourceInfo parseFrom(InputStream input) throws IOException
IOExceptionpublic static ResourceInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ResourceInfo parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ResourceInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ResourceInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ResourceInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ResourceInfo.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static ResourceInfo.Builder newBuilder()
public static ResourceInfo.Builder newBuilder(ResourceInfo prototype)
public ResourceInfo.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLitepublic static ResourceInfo getDefaultInstance()
public static com.google.protobuf.Parser<ResourceInfo> parser()
public com.google.protobuf.Parser<ResourceInfo> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public ResourceInfo getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.