Interface ResourceOrBuilder (0.23.0)

public interface ResourceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsCaiAssets(String key)

public abstract boolean containsCaiAssets(String key)

Output only. Map of Cloud Asset Inventory (CAI) type to CAI info (e.g. CAI ID). CAI type format follows https://cloud.google.com/asset-inventory/docs/supported-asset-types

map<string, .google.cloud.config.v1.ResourceCAIInfo> cai_assets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
boolean

getCaiAssets() (deprecated)

public abstract Map<String,ResourceCAIInfo> getCaiAssets()

Use #getCaiAssetsMap() instead.

Returns
Type Description
Map<String,ResourceCAIInfo>

getCaiAssetsCount()

public abstract int getCaiAssetsCount()

Output only. Map of Cloud Asset Inventory (CAI) type to CAI info (e.g. CAI ID). CAI type format follows https://cloud.google.com/asset-inventory/docs/supported-asset-types

map<string, .google.cloud.config.v1.ResourceCAIInfo> cai_assets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getCaiAssetsMap()

public abstract Map<String,ResourceCAIInfo> getCaiAssetsMap()

Output only. Map of Cloud Asset Inventory (CAI) type to CAI info (e.g. CAI ID). CAI type format follows https://cloud.google.com/asset-inventory/docs/supported-asset-types

map<string, .google.cloud.config.v1.ResourceCAIInfo> cai_assets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<String,ResourceCAIInfo>

getCaiAssetsOrDefault(String key, ResourceCAIInfo defaultValue)

public abstract ResourceCAIInfo getCaiAssetsOrDefault(String key, ResourceCAIInfo defaultValue)

Output only. Map of Cloud Asset Inventory (CAI) type to CAI info (e.g. CAI ID). CAI type format follows https://cloud.google.com/asset-inventory/docs/supported-asset-types

map<string, .google.cloud.config.v1.ResourceCAIInfo> cai_assets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
defaultValue ResourceCAIInfo
Returns
Type Description
ResourceCAIInfo

getCaiAssetsOrThrow(String key)

public abstract ResourceCAIInfo getCaiAssetsOrThrow(String key)

Output only. Map of Cloud Asset Inventory (CAI) type to CAI info (e.g. CAI ID). CAI type format follows https://cloud.google.com/asset-inventory/docs/supported-asset-types

map<string, .google.cloud.config.v1.ResourceCAIInfo> cai_assets = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
ResourceCAIInfo

getIntent()

public abstract Resource.Intent getIntent()

Output only. Intent of the resource.

.google.cloud.config.v1.Resource.Intent intent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Resource.Intent

The intent.

getIntentValue()

public abstract int getIntentValue()

Output only. Intent of the resource.

.google.cloud.config.v1.Resource.Intent intent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for intent.

getName()

public abstract String getName()

Output only. Resource name. Format: projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Output only. Resource name. Format: projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getState()

public abstract Resource.State getState()

Output only. Current state of the resource.

.google.cloud.config.v1.Resource.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Resource.State

The state.

getStateValue()

public abstract int getStateValue()

Output only. Current state of the resource.

.google.cloud.config.v1.Resource.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getTerraformInfo()

public abstract ResourceTerraformInfo getTerraformInfo()

Output only. Terraform-specific info if this resource was created using Terraform.

.google.cloud.config.v1.ResourceTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceTerraformInfo

The terraformInfo.

getTerraformInfoOrBuilder()

public abstract ResourceTerraformInfoOrBuilder getTerraformInfoOrBuilder()

Output only. Terraform-specific info if this resource was created using Terraform.

.google.cloud.config.v1.ResourceTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceTerraformInfoOrBuilder

hasTerraformInfo()

public abstract boolean hasTerraformInfo()

Output only. Terraform-specific info if this resource was created using Terraform.

.google.cloud.config.v1.ResourceTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the terraformInfo field is set.