Send feedback
Class Resource (3.48.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.48.0 keyboard_arrow_down
public final class Resource extends GeneratedMessageV3 implements ResourceOrBuilder
A representation of a Google Cloud resource.
Protobuf type google.cloud.asset.v1p5beta1.Resource
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
DATA_FIELD_NUMBER
public static final int DATA_FIELD_NUMBER
Field Value
Type
Description
int
DISCOVERY_DOCUMENT_URI_FIELD_NUMBER
public static final int DISCOVERY_DOCUMENT_URI_FIELD_NUMBER
Field Value
Type
Description
int
DISCOVERY_NAME_FIELD_NUMBER
public static final int DISCOVERY_NAME_FIELD_NUMBER
Field Value
Type
Description
int
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
Field Value
Type
Description
int
RESOURCE_URL_FIELD_NUMBER
public static final int RESOURCE_URL_FIELD_NUMBER
Field Value
Type
Description
int
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static Resource getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static Resource . Builder newBuilder ()
newBuilder(Resource prototype)
public static Resource . Builder newBuilder ( Resource prototype )
Parameter
Name
Description
prototype
Resource
public static Resource parseDelimitedFrom ( InputStream input )
public static Resource parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static Resource parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Resource parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static Resource parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Resource parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static Resource parseFrom ( CodedInputStream input )
public static Resource parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static Resource parseFrom ( InputStream input )
public static Resource parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static Resource parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Resource parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<Resource> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getData()
The content of the resource, in which some sensitive fields are removed
and may not be present.
.google.protobuf.Struct data = 6;
Returns
Type
Description
Struct
The data.
getDataOrBuilder()
public StructOrBuilder getDataOrBuilder ()
The content of the resource, in which some sensitive fields are removed
and may not be present.
.google.protobuf.Struct data = 6;
getDefaultInstanceForType()
public Resource getDefaultInstanceForType ()
getDiscoveryDocumentUri()
public String getDiscoveryDocumentUri ()
Returns
Type
Description
String
The discoveryDocumentUri.
getDiscoveryDocumentUriBytes()
public ByteString getDiscoveryDocumentUriBytes ()
Returns
Type
Description
ByteString
The bytes for discoveryDocumentUri.
getDiscoveryName()
public String getDiscoveryName ()
The JSON schema name listed in the discovery document. Example:
Project
This value is unspecified for resources that do not have an API based on a
discovery document, such as Cloud Bigtable.
string discovery_name = 3;
Returns
Type
Description
String
The discoveryName.
getDiscoveryNameBytes()
public ByteString getDiscoveryNameBytes ()
The JSON schema name listed in the discovery document. Example:
Project
This value is unspecified for resources that do not have an API based on a
discovery document, such as Cloud Bigtable.
string discovery_name = 3;
Returns
Type
Description
ByteString
The bytes for discoveryName.
getParent()
public String getParent ()
The full name of the immediate parent of this resource. See
Resource
Names
for more information.
For Google Cloud assets, this value is the parent resource defined in the
IAM policy
hierarchy .
Example:
//cloudresourcemanager.googleapis.com/projects/my_project_123
For third-party assets, this field may be set differently.
string parent = 5;
Returns
Type
Description
String
The parent.
getParentBytes()
public ByteString getParentBytes ()
The full name of the immediate parent of this resource. See
Resource
Names
for more information.
For Google Cloud assets, this value is the parent resource defined in the
IAM policy
hierarchy .
Example:
//cloudresourcemanager.googleapis.com/projects/my_project_123
For third-party assets, this field may be set differently.
string parent = 5;
Returns
Type
Description
ByteString
The bytes for parent.
getParserForType()
public Parser<Resource> getParserForType ()
Overrides
getResourceUrl()
public String getResourceUrl ()
Returns
Type
Description
String
The resourceUrl.
getResourceUrlBytes()
public ByteString getResourceUrlBytes ()
Returns
Type
Description
ByteString
The bytes for resourceUrl.
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getVersion()
public String getVersion ()
The API version. Example: "v1".
string version = 1;
Returns
Type
Description
String
The version.
getVersionBytes()
public ByteString getVersionBytes ()
The API version. Example: "v1".
string version = 1;
Returns
Type
Description
ByteString
The bytes for version.
hasData()
The content of the resource, in which some sensitive fields are removed
and may not be present.
.google.protobuf.Struct data = 6;
Returns
Type
Description
boolean
Whether the data field is set.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Resource . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Resource . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public Resource . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]