Package com.google.rpc
Class ResourceInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>
com.google.rpc.ResourceInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,ResourceInfoOrBuilder
,Cloneable
- Enclosing class:
ResourceInfo
public static final class ResourceInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>
implements ResourceInfoOrBuilder
Describes the resource that is being accessed.Protobuf type
google.rpc.ResourceInfo
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Describes what error is encountered when accessing this resource.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The owner of the resource (optional).The name of the resource being accessed.A name for the type of resource being accessed, e.g.clone()
Describes what error is encountered when accessing this resource.com.google.protobuf.ByteString
Describes what error is encountered when accessing this resource.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(ResourceInfo other) final ResourceInfo.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) 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).setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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.final ResourceInfo.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>
-
setField
public ResourceInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>
-
setRepeatedField
public ResourceInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>
-
addRepeatedField
public ResourceInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ResourceInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>
-
mergeFrom
public ResourceInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ResourceInfo.Builder>
- Throws:
IOException
-
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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- 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;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ResourceInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>
-
mergeUnknownFields
public final ResourceInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>
-