public final class Resource extends GeneratedMessageV3 implements ResourceOrBuilder
A representation of a Google Cloud resource.
Protobuf type google.cloud.asset.v1p7beta1.Resource
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 |
|
LOCATION_FIELD_NUMBER
public static final int LOCATION_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.
|
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 |
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
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
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