Interface ResourceOrBuilder (0.17.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
NameDescription
keyString
Returns
TypeDescription
boolean

getCaiAssets() (deprecated)

public abstract Map<String,ResourceCAIInfo> getCaiAssets()

Use #getCaiAssetsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueResourceCAIInfo
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the terraformInfo field is set.