public static final class ResourceInfo.Builder extends GeneratedMessageV3.Builder<ResourceInfo.Builder> implements ResourceInfoOrBuilder
Describes the resource that is being accessed.
Protobuf type google.rpc.ResourceInfo
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ResourceInfo.BuilderImplements
ResourceInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ResourceInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ResourceInfo.Builder |
build()
public ResourceInfo build()
Type | Description |
ResourceInfo |
buildPartial()
public ResourceInfo buildPartial()
Type | Description |
ResourceInfo |
clear()
public ResourceInfo.Builder clear()
Type | Description |
ResourceInfo.Builder |
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;
Type | Description |
ResourceInfo.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ResourceInfo.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ResourceInfo.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ResourceInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ResourceInfo.Builder |
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;
Type | Description |
ResourceInfo.Builder | 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.
string resource_name = 2;
Type | Description |
ResourceInfo.Builder | 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;
Type | Description |
ResourceInfo.Builder | This builder for chaining. |
clone()
public ResourceInfo.Builder clone()
Type | Description |
ResourceInfo.Builder |
getDefaultInstanceForType()
public ResourceInfo getDefaultInstanceForType()
Type | Description |
ResourceInfo |
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;
Type | Description |
String | The description. |
getDescriptionBytes()
public 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;
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getOwner()
public String getOwner()
The owner of the resource (optional). For example, "user:<owner email>" or "project:<Google developer project id>".
string owner = 3;
Type | Description |
String | The owner. |
getOwnerBytes()
public ByteString getOwnerBytes()
The owner of the resource (optional). For example, "user:<owner email>" or "project:<Google developer project id>".
string owner = 3;
Type | Description |
ByteString | The bytes for owner. |
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.
string resource_name = 2;
Type | Description |
String | The resourceName. |
getResourceNameBytes()
public 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.
string resource_name = 2;
Type | Description |
ByteString | The bytes for resourceName. |
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;
Type | Description |
String | The resourceType. |
getResourceTypeBytes()
public 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;
Type | Description |
ByteString | The bytes for resourceType. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ResourceInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ResourceInfo.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ResourceInfo.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ResourceInfo.Builder |
mergeFrom(ResourceInfo other)
public ResourceInfo.Builder mergeFrom(ResourceInfo other)
Name | Description |
other | ResourceInfo |
Type | Description |
ResourceInfo.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ResourceInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ResourceInfo.Builder |
setDescription(String value)
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;
Name | Description |
value | String The description to set. |
Type | Description |
ResourceInfo.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public ResourceInfo.Builder setDescriptionBytes(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;
Name | Description |
value | ByteString The bytes for description to set. |
Type | Description |
ResourceInfo.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ResourceInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ResourceInfo.Builder |
setOwner(String value)
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;
Name | Description |
value | String The owner to set. |
Type | Description |
ResourceInfo.Builder | This builder for chaining. |
setOwnerBytes(ByteString value)
public ResourceInfo.Builder setOwnerBytes(ByteString value)
The owner of the resource (optional). For example, "user:<owner email>" or "project:<Google developer project id>".
string owner = 3;
Name | Description |
value | ByteString The bytes for owner to set. |
Type | Description |
ResourceInfo.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ResourceInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ResourceInfo.Builder |
setResourceName(String value)
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.
string resource_name = 2;
Name | Description |
value | String The resourceName to set. |
Type | Description |
ResourceInfo.Builder | This builder for chaining. |
setResourceNameBytes(ByteString value)
public ResourceInfo.Builder setResourceNameBytes(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.
string resource_name = 2;
Name | Description |
value | ByteString The bytes for resourceName to set. |
Type | Description |
ResourceInfo.Builder | This builder for chaining. |
setResourceType(String value)
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;
Name | Description |
value | String The resourceType to set. |
Type | Description |
ResourceInfo.Builder | This builder for chaining. |
setResourceTypeBytes(ByteString value)
public ResourceInfo.Builder setResourceTypeBytes(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;
Name | Description |
value | ByteString The bytes for resourceType to set. |
Type | Description |
ResourceInfo.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ResourceInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ResourceInfo.Builder |