public final class Resource extends GeneratedMessage implements ResourceOrBuilderInformation about a resource such as a task, Cloud Storage bucket, database, disk, logical policy, or something similar.
Protobuf type google.backstory.Resource
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > ResourceImplements
ResourceOrBuilderStatic Fields
ATTRIBUTE_FIELD_NUMBER
public static final int ATTRIBUTE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
PRODUCT_OBJECT_ID_FIELD_NUMBER
public static final int PRODUCT_OBJECT_ID_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
RESOURCE_SUBTYPE_FIELD_NUMBER
public static final int RESOURCE_SUBTYPE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
RESOURCE_TYPE_FIELD_NUMBER
public static final int RESOURCE_TYPE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SCHEDULED_ANACRON_TASK_FIELD_NUMBER
public static final int SCHEDULED_ANACRON_TASK_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SCHEDULED_CRON_TASK_FIELD_NUMBER
public static final int SCHEDULED_CRON_TASK_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SCHEDULED_TASK_FIELD_NUMBER
public static final int SCHEDULED_TASK_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SERVICE_FIELD_NUMBER
public static final int SERVICE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
VOLUME_FIELD_NUMBER
public static final int VOLUME_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
WINDOWS_SCHEDULED_TASK_FIELD_NUMBER
public static final int WINDOWS_SCHEDULED_TASK_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static Resource getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
Resource |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static Resource.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
|
newBuilder(Resource prototype)
public static Resource.Builder newBuilder(Resource prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
Resource |
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
|
parseDelimitedFrom(InputStream input)
public static Resource parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
Resource |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Resource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Resource |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static Resource parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
Resource |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Resource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Resource |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static Resource parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
Resource |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Resource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Resource |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static Resource parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
Resource |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Resource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Resource |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static Resource parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
Resource |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Resource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Resource |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static Resource parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
Resource |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Resource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Resource |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<Resource> parser()| Returns | |
|---|---|
| Type | Description |
Parser<Resource> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getAttribute()
public Attribute getAttribute()Generic entity metadata attributes of the resource.
.google.backstory.Attribute attribute = 7;
| Returns | |
|---|---|
| Type | Description |
Attribute |
The attribute. |
getAttributeOrBuilder()
public AttributeOrBuilder getAttributeOrBuilder()Generic entity metadata attributes of the resource.
.google.backstory.Attribute attribute = 7;
| Returns | |
|---|---|
| Type | Description |
AttributeOrBuilder |
|
getDefaultInstanceForType()
public Resource getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Resource |
|
getId() (deprecated)
public String getId()Deprecated. google.backstory.Resource.id is deprecated. See backstory/udm.proto;l=5608
Deprecated: Use resource.name or resource.product_object_id.
string id = 2 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
String |
The id. |
getIdBytes() (deprecated)
public ByteString getIdBytes()Deprecated. google.backstory.Resource.id is deprecated. See backstory/udm.proto;l=5608
Deprecated: Use resource.name or resource.product_object_id.
string id = 2 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for id. |
getName()
public String getName()The full name of the resource. For example, Google Cloud: //cloudresourcemanager.googleapis.com/projects/wombat-123, and AWS: arn:aws:iam::123456789012:user/johndoe.
string name = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()The full name of the resource. For example, Google Cloud: //cloudresourcemanager.googleapis.com/projects/wombat-123, and AWS: arn:aws:iam::123456789012:user/johndoe.
string name = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getParent() (deprecated)
public String getParent()Deprecated. google.backstory.Resource.parent is deprecated. See backstory/udm.proto;l=5618
The parent of the resource. For a database table, the parent is the database. For a storage object, the bucket name. Deprecated: use resource_ancestors.name.
string parent = 4 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
String |
The parent. |
getParentBytes() (deprecated)
public ByteString getParentBytes()Deprecated. google.backstory.Resource.parent is deprecated. See backstory/udm.proto;l=5618
The parent of the resource. For a database table, the parent is the database. For a storage object, the bucket name. Deprecated: use resource_ancestors.name.
string parent = 4 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for parent. |
getParserForType()
public Parser<Resource> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<Resource> |
|
getProductObjectId()
public String getProductObjectId()A vendor-specific identifier to uniquely identify the entity (a GUID, OID, or similar) This field can be used as an entity indicator for a Resource entity.
string product_object_id = 8;
| Returns | |
|---|---|
| Type | Description |
String |
The productObjectId. |
getProductObjectIdBytes()
public ByteString getProductObjectIdBytes()A vendor-specific identifier to uniquely identify the entity (a GUID, OID, or similar) This field can be used as an entity indicator for a Resource entity.
string product_object_id = 8;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for productObjectId. |
getResourceSubtype()
public String getResourceSubtype()Resource sub-type (e.g. "BigQuery", "Bigtable").
string resource_subtype = 6;
| Returns | |
|---|---|
| Type | Description |
String |
The resourceSubtype. |
getResourceSubtypeBytes()
public ByteString getResourceSubtypeBytes()Resource sub-type (e.g. "BigQuery", "Bigtable").
string resource_subtype = 6;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for resourceSubtype. |
getResourceType()
public Resource.ResourceType getResourceType()Resource type.
.google.backstory.Resource.ResourceType resource_type = 5;
| Returns | |
|---|---|
| Type | Description |
Resource.ResourceType |
The resourceType. |
getResourceTypeValue()
public int getResourceTypeValue()Resource type.
.google.backstory.Resource.ResourceType resource_type = 5;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for resourceType. |
getScheduledAnacronTask()
public ScheduledAnacronTask getScheduledAnacronTask()Information about a scheduled anacron task associated with the resource.
.google.backstory.ScheduledAnacronTask scheduled_anacron_task = 13;
| Returns | |
|---|---|
| Type | Description |
ScheduledAnacronTask |
The scheduledAnacronTask. |
getScheduledAnacronTaskOrBuilder()
public ScheduledAnacronTaskOrBuilder getScheduledAnacronTaskOrBuilder()Information about a scheduled anacron task associated with the resource.
.google.backstory.ScheduledAnacronTask scheduled_anacron_task = 13;
| Returns | |
|---|---|
| Type | Description |
ScheduledAnacronTaskOrBuilder |
|
getScheduledCronTask()
public ScheduledCronTask getScheduledCronTask()Information about a scheduled cron task associated with the resource.
.google.backstory.ScheduledCronTask scheduled_cron_task = 12;
| Returns | |
|---|---|
| Type | Description |
ScheduledCronTask |
The scheduledCronTask. |
getScheduledCronTaskOrBuilder()
public ScheduledCronTaskOrBuilder getScheduledCronTaskOrBuilder()Information about a scheduled cron task associated with the resource.
.google.backstory.ScheduledCronTask scheduled_cron_task = 12;
| Returns | |
|---|---|
| Type | Description |
ScheduledCronTaskOrBuilder |
|
getScheduledTask() (deprecated)
public ScheduledTask getScheduledTask()Deprecated. google.backstory.Resource.scheduled_task is deprecated. See backstory/udm.proto;l=5631
DEPRECATED: use windows_scheduled_task for Windows scheduled tasks or scheduled_cron_task for cron jobs. Information about a scheduled task associated with the resource.
.google.backstory.ScheduledTask scheduled_task = 9 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
ScheduledTask |
The scheduledTask. |
getScheduledTaskOrBuilder() (deprecated)
public ScheduledTaskOrBuilder getScheduledTaskOrBuilder()DEPRECATED: use windows_scheduled_task for Windows scheduled tasks or scheduled_cron_task for cron jobs. Information about a scheduled task associated with the resource.
.google.backstory.ScheduledTask scheduled_task = 9 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
ScheduledTaskOrBuilder |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getService()
public Service getService()Information about a Windows service associated with the resource.
.google.backstory.Service service = 11;
| Returns | |
|---|---|
| Type | Description |
Service |
The service. |
getServiceOrBuilder()
public ServiceOrBuilder getServiceOrBuilder()Information about a Windows service associated with the resource.
.google.backstory.Service service = 11;
| Returns | |
|---|---|
| Type | Description |
ServiceOrBuilder |
|
getType() (deprecated)
public String getType()Deprecated. google.backstory.Resource.type is deprecated. See backstory/udm.proto;l=5599
Deprecated: use resource_type instead.
string type = 1 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
String |
The type. |
getTypeBytes() (deprecated)
public ByteString getTypeBytes()Deprecated. google.backstory.Resource.type is deprecated. See backstory/udm.proto;l=5599
Deprecated: use resource_type instead.
string type = 1 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for type. |
getVolume()
public Volume getVolume()Information about a storage volume associated with the resource.
.google.backstory.Volume volume = 10;
| Returns | |
|---|---|
| Type | Description |
Volume |
The volume. |
getVolumeOrBuilder()
public VolumeOrBuilder getVolumeOrBuilder()Information about a storage volume associated with the resource.
.google.backstory.Volume volume = 10;
| Returns | |
|---|---|
| Type | Description |
VolumeOrBuilder |
|
getWindowsScheduledTask()
public WindowsScheduledTask getWindowsScheduledTask()Information about a Windows scheduled task associated with the resource.
.google.backstory.WindowsScheduledTask windows_scheduled_task = 14;
| Returns | |
|---|---|
| Type | Description |
WindowsScheduledTask |
The windowsScheduledTask. |
getWindowsScheduledTaskOrBuilder()
public WindowsScheduledTaskOrBuilder getWindowsScheduledTaskOrBuilder()Information about a Windows scheduled task associated with the resource.
.google.backstory.WindowsScheduledTask windows_scheduled_task = 14;
| Returns | |
|---|---|
| Type | Description |
WindowsScheduledTaskOrBuilder |
|
hasAttribute()
public boolean hasAttribute()Generic entity metadata attributes of the resource.
.google.backstory.Attribute attribute = 7;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the attribute field is set. |
hasScheduledAnacronTask()
public boolean hasScheduledAnacronTask()Information about a scheduled anacron task associated with the resource.
.google.backstory.ScheduledAnacronTask scheduled_anacron_task = 13;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the scheduledAnacronTask field is set. |
hasScheduledCronTask()
public boolean hasScheduledCronTask()Information about a scheduled cron task associated with the resource.
.google.backstory.ScheduledCronTask scheduled_cron_task = 12;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the scheduledCronTask field is set. |
hasScheduledTask() (deprecated)
public boolean hasScheduledTask()Deprecated. google.backstory.Resource.scheduled_task is deprecated. See backstory/udm.proto;l=5631
DEPRECATED: use windows_scheduled_task for Windows scheduled tasks or scheduled_cron_task for cron jobs. Information about a scheduled task associated with the resource.
.google.backstory.ScheduledTask scheduled_task = 9 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the scheduledTask field is set. |
hasService()
public boolean hasService()Information about a Windows service associated with the resource.
.google.backstory.Service service = 11;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the service field is set. |
hasVolume()
public boolean hasVolume()Information about a storage volume associated with the resource.
.google.backstory.Volume volume = 10;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the volume field is set. |
hasWindowsScheduledTask()
public boolean hasWindowsScheduledTask()Information about a Windows scheduled task associated with the resource.
.google.backstory.WindowsScheduledTask windows_scheduled_task = 14;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the windowsScheduledTask field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public Resource.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Resource.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
|
toBuilder()
public Resource.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|