Class ResourceInfo.Builder (2.48.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResourceInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResourceInfo.Builder
Overrides

build()

public ResourceInfo build()
Returns
Type Description
ResourceInfo

buildPartial()

public ResourceInfo buildPartial()
Returns
Type Description
ResourceInfo

clear()

public ResourceInfo.Builder clear()
Returns
Type Description
ResourceInfo.Builder
Overrides

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;

Returns
Type Description
ResourceInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ResourceInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ResourceInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ResourceInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ResourceInfo.Builder
Overrides

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;

Returns
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;

Returns
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;

Returns
Type Description
ResourceInfo.Builder

This builder for chaining.

clone()

public ResourceInfo.Builder clone()
Returns
Type Description
ResourceInfo.Builder
Overrides

getDefaultInstanceForType()

public ResourceInfo getDefaultInstanceForType()
Returns
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;

Returns
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;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getOwner()

public String getOwner()

The owner of the resource (optional). For example, "user:<owner email>" or "project:<Google developer project id>".

string owner = 3;

Returns
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;

Returns
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;

Returns
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;

Returns
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;

Returns
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;

Returns
Type Description
ByteString

The bytes for resourceType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResourceInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ResourceInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ResourceInfo.Builder
Overrides

mergeFrom(ResourceInfo other)

public ResourceInfo.Builder mergeFrom(ResourceInfo other)
Parameter
Name Description
other ResourceInfo
Returns
Type Description
ResourceInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourceInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResourceInfo.Builder
Overrides

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;

Parameter
Name Description
value String

The description to set.

Returns
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;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
ResourceInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ResourceInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResourceInfo.Builder
Overrides

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;

Parameter
Name Description
value String

The owner to set.

Returns
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;

Parameter
Name Description
value ByteString

The bytes for owner to set.

Returns
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)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ResourceInfo.Builder
Overrides

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;

Parameter
Name Description
value String

The resourceName to set.

Returns
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;

Parameter
Name Description
value ByteString

The bytes for resourceName to set.

Returns
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;

Parameter
Name Description
value String

The resourceType to set.

Returns
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;

Parameter
Name Description
value ByteString

The bytes for resourceType to set.

Returns
Type Description
ResourceInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ResourceInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResourceInfo.Builder
Overrides