Class ResourceInfo.Builder (2.37.1)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResourceInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ResourceInfo.Builder
Overrides

build()

public ResourceInfo build()
Returns
TypeDescription
ResourceInfo

buildPartial()

public ResourceInfo buildPartial()
Returns
TypeDescription
ResourceInfo

clear()

public ResourceInfo.Builder clear()
Returns
TypeDescription
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
TypeDescription
ResourceInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ResourceInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ResourceInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ResourceInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ResourceInfo.Builder

This builder for chaining.

clone()

public ResourceInfo.Builder clone()
Returns
TypeDescription
ResourceInfo.Builder
Overrides

getDefaultInstanceForType()

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

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for resourceType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResourceInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourceInfo.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ResourceInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ResourceInfo.Builder
Overrides

mergeFrom(ResourceInfo other)

public ResourceInfo.Builder mergeFrom(ResourceInfo other)
Parameter
NameDescription
otherResourceInfo
Returns
TypeDescription
ResourceInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourceInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
ResourceInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ResourceInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The owner to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for owner to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The resourceName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for resourceName to set.

Returns
TypeDescription
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
NameDescription
valueString

The resourceType to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for resourceType to set.

Returns
TypeDescription
ResourceInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ResourceInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ResourceInfo.Builder
Overrides