Package com.google.rpc
Class ResourceInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<ResourceInfo,ResourceInfo.Builder>
com.google.rpc.ResourceInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,ResourceInfoOrBuilder
,Cloneable
- Enclosing class:
- ResourceInfo
public static final class ResourceInfo.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<ResourceInfo,ResourceInfo.Builder>
implements ResourceInfoOrBuilder
Describes the resource that is being accessed.Protobuf type
google.rpc.ResourceInfo
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionDescribes what error is encountered when accessing this resource.The owner of the resource (optional).The name of the resource being accessed.A name for the type of resource being accessed, e.g.Describes what error is encountered when accessing this resource.com.google.protobuf.ByteString
Describes what error is encountered when accessing this resource.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.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).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.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
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 [json_name = "resourceType"];
- Specified by:
getResourceType
in interfaceResourceInfoOrBuilder
- Returns:
- 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 [json_name = "resourceType"];
- Specified by:
getResourceTypeBytes
in interfaceResourceInfoOrBuilder
- Returns:
- 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 [json_name = "resourceType"];
- Parameters:
value
- The resourceType to set.- Returns:
- 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 [json_name = "resourceType"];
- Returns:
- 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 [json_name = "resourceType"];
- Parameters:
value
- The bytes for resourceType to set.- Returns:
- 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 [json_name = "resourceName"];
- Specified by:
getResourceName
in interfaceResourceInfoOrBuilder
- Returns:
- 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 [json_name = "resourceName"];
- Specified by:
getResourceNameBytes
in interfaceResourceInfoOrBuilder
- Returns:
- 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 [json_name = "resourceName"];
- Parameters:
value
- The resourceName to set.- Returns:
- 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 [json_name = "resourceName"];
- Returns:
- 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 [json_name = "resourceName"];
- Parameters:
value
- The bytes for resourceName to set.- Returns:
- 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 [json_name = "owner"];
- Specified by:
getOwner
in interfaceResourceInfoOrBuilder
- Returns:
- 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 [json_name = "owner"];
- Specified by:
getOwnerBytes
in interfaceResourceInfoOrBuilder
- Returns:
- 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 [json_name = "owner"];
- Parameters:
value
- The owner to set.- Returns:
- 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 [json_name = "owner"];
- Returns:
- 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 [json_name = "owner"];
- Parameters:
value
- The bytes for owner to set.- Returns:
- 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 [json_name = "description"];
- Specified by:
getDescription
in interfaceResourceInfoOrBuilder
- Returns:
- 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 [json_name = "description"];
- Specified by:
getDescriptionBytes
in interfaceResourceInfoOrBuilder
- Returns:
- 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 [json_name = "description"];
- Parameters:
value
- The description to set.- Returns:
- 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 [json_name = "description"];
- Returns:
- 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 [json_name = "description"];
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-