public static final class AssetDetails.Builder extends GeneratedMessage.Builder<AssetDetails.Builder> implements AssetDetailsOrBuilderDetails of a Cloud Asset Inventory asset that caused the finding.
Protobuf type google.cloud.designcenter.v1.AssetDetails
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AssetDetails.BuilderImplements
AssetDetailsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AssetDetails build()| Returns | |
|---|---|
| Type | Description |
AssetDetails |
|
buildPartial()
public AssetDetails buildPartial()| Returns | |
|---|---|
| Type | Description |
AssetDetails |
|
clear()
public AssetDetails.Builder clear()| Returns | |
|---|---|
| Type | Description |
AssetDetails.Builder |
|
clearAssetId()
public AssetDetails.Builder clearAssetId()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 |
AssetDetails.Builder |
This builder for chaining. |
clearAssetType()
public AssetDetails.Builder clearAssetType()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 |
AssetDetails.Builder |
This builder for chaining. |
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AssetDetails other)
public AssetDetails.Builder mergeFrom(AssetDetails other)| Parameter | |
|---|---|
| Name | Description |
other |
AssetDetails |
| Returns | |
|---|---|
| Type | Description |
AssetDetails.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AssetDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssetDetails.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AssetDetails.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AssetDetails.Builder |
|
setAssetId(String value)
public AssetDetails.Builder setAssetId(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe assetId to set. |
| Returns | |
|---|---|
| Type | Description |
AssetDetails.Builder |
This builder for chaining. |
setAssetIdBytes(ByteString value)
public AssetDetails.Builder setAssetIdBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for assetId to set. |
| Returns | |
|---|---|
| Type | Description |
AssetDetails.Builder |
This builder for chaining. |
setAssetType(String value)
public AssetDetails.Builder setAssetType(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe assetType to set. |
| Returns | |
|---|---|
| Type | Description |
AssetDetails.Builder |
This builder for chaining. |
setAssetTypeBytes(ByteString value)
public AssetDetails.Builder setAssetTypeBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for assetType to set. |
| Returns | |
|---|---|
| Type | Description |
AssetDetails.Builder |
This builder for chaining. |