程序包 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
-
方法概要
修饰符和类型方法说明addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
build()
clear()
Describes what error is encountered when accessing this resource.clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
The owner of the resource (optional).The name of the resource being accessed.A name for the type of resource being accessed, e.g.clone()
Describes what error is encountered when accessing this resource.com.google.protobuf.ByteString
Describes what error is encountered when accessing this resource.static com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getOwner()
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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
boolean
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
mergeFrom(com.google.protobuf.Message other)
mergeFrom(ResourceInfo other)
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setDescription(String value)
Describes what error is encountered when accessing this resource.setDescriptionBytes(com.google.protobuf.ByteString value)
Describes what error is encountered when accessing this resource.The owner of the resource (optional).setOwnerBytes(com.google.protobuf.ByteString value)
The owner of the resource (optional).setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setResourceName(String value)
The name of the resource being accessed.setResourceNameBytes(com.google.protobuf.ByteString value)
The name of the resource being accessed.setResourceType(String value)
A name for the type of resource being accessed, e.g.setResourceTypeBytes(com.google.protobuf.ByteString value)
A name for the type of resource being accessed, e.g.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
从接口继承的方法 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
- 指定者:
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
- 指定者:
getDefaultInstanceForType
在接口中com.google.protobuf.MessageLiteOrBuilder
- 指定者:
getDefaultInstanceForType
在接口中com.google.protobuf.MessageOrBuilder
-
build
- 指定者:
build
在接口中com.google.protobuf.Message.Builder
- 指定者:
build
在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial
- 指定者:
buildPartial
在接口中com.google.protobuf.Message.Builder
- 指定者:
buildPartial
在接口中com.google.protobuf.MessageLite.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
- 指定者:
clearField
在接口中com.google.protobuf.Message.Builder
- 覆盖:
clearField
在类中com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>
-
clearOneof
- 指定者:
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
- 指定者:
mergeFrom
在接口中com.google.protobuf.Message.Builder
- 覆盖:
mergeFrom
在类中com.google.protobuf.AbstractMessage.Builder<ResourceInfo.Builder>
-
mergeFrom
-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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>
-