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
Modifier and Type | Method and Description |
---|---|
ResourceInfo.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
ResourceInfo |
build() |
ResourceInfo |
buildPartial() |
ResourceInfo.Builder |
clear() |
ResourceInfo.Builder |
clearDescription()
Describes what error is encountered when accessing this resource.
|
ResourceInfo.Builder |
clearField(Descriptors.FieldDescriptor field) |
ResourceInfo.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
ResourceInfo.Builder |
clearOwner()
The owner of the resource (optional).
|
ResourceInfo.Builder |
clearResourceName()
The name of the resource being accessed.
|
ResourceInfo.Builder |
clearResourceType()
A name for the type of resource being accessed, e.g.
|
ResourceInfo.Builder |
clone() |
ResourceInfo |
getDefaultInstanceForType() |
java.lang.String |
getDescription()
Describes what error is encountered when accessing this resource.
|
ByteString |
getDescriptionBytes()
Describes what error is encountered when accessing this resource.
|
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getOwner()
The owner of the resource (optional).
|
ByteString |
getOwnerBytes()
The owner of the resource (optional).
|
java.lang.String |
getResourceName()
The name of the resource being accessed.
|
ByteString |
getResourceNameBytes()
The name of the resource being accessed.
|
java.lang.String |
getResourceType()
A name for the type of resource being accessed, e.g.
|
ByteString |
getResourceTypeBytes()
A name for the type of resource being accessed, e.g.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ResourceInfo.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
ResourceInfo.Builder |
mergeFrom(Message other) |
ResourceInfo.Builder |
mergeFrom(ResourceInfo other) |
ResourceInfo.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
ResourceInfo.Builder |
setDescription(java.lang.String value)
Describes what error is encountered when accessing this resource.
|
ResourceInfo.Builder |
setDescriptionBytes(ByteString value)
Describes what error is encountered when accessing this resource.
|
ResourceInfo.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
ResourceInfo.Builder |
setOwner(java.lang.String value)
The owner of the resource (optional).
|
ResourceInfo.Builder |
setOwnerBytes(ByteString value)
The owner of the resource (optional).
|
ResourceInfo.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
ResourceInfo.Builder |
setResourceName(java.lang.String value)
The name of the resource being accessed.
|
ResourceInfo.Builder |
setResourceNameBytes(ByteString value)
The name of the resource being accessed.
|
ResourceInfo.Builder |
setResourceType(java.lang.String value)
A name for the type of resource being accessed, e.g.
|
ResourceInfo.Builder |
setResourceTypeBytes(ByteString value)
A name for the type of resource being accessed, e.g.
|
ResourceInfo.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<ResourceInfo.Builder>
public ResourceInfo.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<ResourceInfo.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<ResourceInfo.Builder>
public ResourceInfo getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public ResourceInfo build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public ResourceInfo buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public ResourceInfo.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<ResourceInfo.Builder>
public ResourceInfo.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<ResourceInfo.Builder>
public ResourceInfo.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<ResourceInfo.Builder>
public ResourceInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<ResourceInfo.Builder>
public ResourceInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<ResourceInfo.Builder>
public ResourceInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<ResourceInfo.Builder>
public ResourceInfo.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<ResourceInfo.Builder>
public ResourceInfo.Builder mergeFrom(ResourceInfo other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<ResourceInfo.Builder>
public ResourceInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<ResourceInfo.Builder>
java.io.IOException
public java.lang.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;
getResourceType
in interface ResourceInfoOrBuilder
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;
getResourceTypeBytes
in interface ResourceInfoOrBuilder
public ResourceInfo.Builder setResourceType(java.lang.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;
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;
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;
public java.lang.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][google.rpc.Code.PERMISSION_DENIED].
string resource_name = 2;
getResourceName
in interface ResourceInfoOrBuilder
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][google.rpc.Code.PERMISSION_DENIED].
string resource_name = 2;
getResourceNameBytes
in interface ResourceInfoOrBuilder
public ResourceInfo.Builder setResourceName(java.lang.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][google.rpc.Code.PERMISSION_DENIED].
string resource_name = 2;
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][google.rpc.Code.PERMISSION_DENIED].
string resource_name = 2;
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][google.rpc.Code.PERMISSION_DENIED].
string resource_name = 2;
public java.lang.String getOwner()
The owner of the resource (optional). For example, "user:<owner email>" or "project:<Google developer project id>".
string owner = 3;
getOwner
in interface ResourceInfoOrBuilder
public ByteString getOwnerBytes()
The owner of the resource (optional). For example, "user:<owner email>" or "project:<Google developer project id>".
string owner = 3;
getOwnerBytes
in interface ResourceInfoOrBuilder
public ResourceInfo.Builder setOwner(java.lang.String value)
The owner of the resource (optional). For example, "user:<owner email>" or "project:<Google developer project id>".
string owner = 3;
public ResourceInfo.Builder clearOwner()
The owner of the resource (optional). For example, "user:<owner email>" or "project:<Google developer project id>".
string owner = 3;
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;
public java.lang.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;
getDescription
in interface ResourceInfoOrBuilder
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;
getDescriptionBytes
in interface ResourceInfoOrBuilder
public ResourceInfo.Builder setDescription(java.lang.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;
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;
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;
public final ResourceInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<ResourceInfo.Builder>
public final ResourceInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<ResourceInfo.Builder>