Class AssetDetails (0.3.0)

public final class AssetDetails extends GeneratedMessage implements AssetDetailsOrBuilder

Details of a Cloud Asset Inventory asset that caused the finding.

Protobuf type google.cloud.designcenter.v1.AssetDetails

Static Fields

ASSET_ID_FIELD_NUMBER

public static final int ASSET_ID_FIELD_NUMBER
Field Value
Type Description
int

ASSET_TYPE_FIELD_NUMBER

public static final int ASSET_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AssetDetails getDefaultInstance()
Returns
Type Description
AssetDetails

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AssetDetails.Builder newBuilder()
Returns
Type Description
AssetDetails.Builder

newBuilder(AssetDetails prototype)

public static AssetDetails.Builder newBuilder(AssetDetails prototype)
Parameter
Name Description
prototype AssetDetails
Returns
Type Description
AssetDetails.Builder

parseDelimitedFrom(InputStream input)

public static AssetDetails parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AssetDetails
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AssetDetails parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssetDetails
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AssetDetails parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AssetDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AssetDetails parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssetDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AssetDetails parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AssetDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AssetDetails parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssetDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AssetDetails parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AssetDetails
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AssetDetails parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssetDetails
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AssetDetails parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AssetDetails
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AssetDetails parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssetDetails
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AssetDetails parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AssetDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AssetDetails parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssetDetails
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AssetDetails> parser()
Returns
Type Description
Parser<AssetDetails>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAssetId()

public String getAssetId()

Required. Information about the Cloud Asset Inventory asset that the framework is assessed against. The full resource name of the asset in CAIS format.

For details about the format of the full resource name for each asset type, see Resource name format.

string asset_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The assetId.

getAssetIdBytes()

public ByteString getAssetIdBytes()

Required. Information about the Cloud Asset Inventory asset that the framework is assessed against. The full resource name of the asset in CAIS format.

For details about the format of the full resource name for each asset type, see Resource name format.

string asset_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for assetId.

getAssetType()

public String getAssetType()

Optional. The type of Cloud Asset Inventory asset. For a list of asset types, see Supported asset types.

string asset_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The assetType.

getAssetTypeBytes()

public ByteString getAssetTypeBytes()

Optional. The type of Cloud Asset Inventory asset. For a list of asset types, see Supported asset types.

string asset_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for assetType.

getDefaultInstanceForType()

public AssetDetails getDefaultInstanceForType()
Returns
Type Description
AssetDetails

getParserForType()

public Parser<AssetDetails> getParserForType()
Returns
Type Description
Parser<AssetDetails>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AssetDetails.Builder newBuilderForType()
Returns
Type Description
AssetDetails.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected AssetDetails.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AssetDetails.Builder
Overrides

toBuilder()

public AssetDetails.Builder toBuilder()
Returns
Type Description
AssetDetails.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException