public final class Resource extends GeneratedMessageV3 implements ResourceOrBuilder
A representation of a Google Cloud resource.
Protobuf type google.cloud.asset.v1.Resource
Static Fields
DATA_FIELD_NUMBER
public static final int DATA_FIELD_NUMBER
Field Value
DISCOVERY_DOCUMENT_URI_FIELD_NUMBER
public static final int DISCOVERY_DOCUMENT_URI_FIELD_NUMBER
Field Value
DISCOVERY_NAME_FIELD_NUMBER
public static final int DISCOVERY_NAME_FIELD_NUMBER
Field Value
LOCATION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER
Field Value
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
Field Value
RESOURCE_URL_FIELD_NUMBER
public static final int RESOURCE_URL_FIELD_NUMBER
Field Value
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Resource getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Resource.Builder newBuilder()
Returns
newBuilder(Resource prototype)
public static Resource.Builder newBuilder(Resource prototype)
Parameter
Returns
public static Resource parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Resource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Resource parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Resource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Resource parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Resource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Resource parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Resource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Resource parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Resource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Resource parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Resource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Resource> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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;
Returns
getDefaultInstanceForType()
public Resource getDefaultInstanceForType()
Returns
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.
|
getLocation()
public String getLocation()
Returns
Type |
Description |
String |
The location.
|
getLocationBytes()
public ByteString getLocationBytes()
Returns
Type |
Description |
ByteString |
The bytes for location.
|
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
Cloud 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
Cloud 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
getParserForType()
public Parser<Resource> getParserForType()
Returns
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
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Resource.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Resource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Resource.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions