Interface ProtectedResourceOrBuilder (0.37.0)

public interface ProtectedResourceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract boolean containsLabels(String key)

A key-value pair of the resource's labels (v1) to their values.

map<string, string> labels = 5;

Parameter
Name Description
key String
Returns
Type Description
boolean

getCloudProduct()

public abstract String getCloudProduct()

The Cloud product that owns the resource. Example: compute

string cloud_product = 8;

Returns
Type Description
String

The cloudProduct.

getCloudProductBytes()

public abstract ByteString getCloudProductBytes()

The Cloud product that owns the resource. Example: compute

string cloud_product = 8;

Returns
Type Description
ByteString

The bytes for cloudProduct.

getCreateTime()

public abstract Timestamp getCreateTime()

Output only. The time at which this resource was created. The granularity is in seconds. Timestamp.nanos will always be 0.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time at which this resource was created. The granularity is in seconds. Timestamp.nanos will always be 0.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getCryptoKeyVersion()

public abstract String getCryptoKeyVersion()

The name of the Cloud KMS CryptoKeyVersion used to protect this resource via CMEK. This field is empty if the Google Cloud product owning the resource does not provide key version data to Asset Inventory. If there are multiple key versions protecting the resource, then this is same value as the first element of crypto_key_versions.

string crypto_key_version = 6 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The cryptoKeyVersion.

getCryptoKeyVersionBytes()

public abstract ByteString getCryptoKeyVersionBytes()

The name of the Cloud KMS CryptoKeyVersion used to protect this resource via CMEK. This field is empty if the Google Cloud product owning the resource does not provide key version data to Asset Inventory. If there are multiple key versions protecting the resource, then this is same value as the first element of crypto_key_versions.

string crypto_key_version = 6 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for cryptoKeyVersion.

getCryptoKeyVersions(int index)

public abstract String getCryptoKeyVersions(int index)

The names of the Cloud KMS CryptoKeyVersion used to protect this resource via CMEK. This field is empty if the Google Cloud product owning the resource does not provide key versions data to Asset Inventory. The first element of this field is stored in crypto_key_version.

repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The cryptoKeyVersions at the given index.

getCryptoKeyVersionsBytes(int index)

public abstract ByteString getCryptoKeyVersionsBytes(int index)

The names of the Cloud KMS CryptoKeyVersion used to protect this resource via CMEK. This field is empty if the Google Cloud product owning the resource does not provide key versions data to Asset Inventory. The first element of this field is stored in crypto_key_version.

repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the cryptoKeyVersions at the given index.

getCryptoKeyVersionsCount()

public abstract int getCryptoKeyVersionsCount()

The names of the Cloud KMS CryptoKeyVersion used to protect this resource via CMEK. This field is empty if the Google Cloud product owning the resource does not provide key versions data to Asset Inventory. The first element of this field is stored in crypto_key_version.

repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of cryptoKeyVersions.

getCryptoKeyVersionsList()

public abstract List<String> getCryptoKeyVersionsList()

The names of the Cloud KMS CryptoKeyVersion used to protect this resource via CMEK. This field is empty if the Google Cloud product owning the resource does not provide key versions data to Asset Inventory. The first element of this field is stored in crypto_key_version.

repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }

Returns
Type Description
List<String>

A list containing the cryptoKeyVersions.

getLabels() (deprecated)

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public abstract int getLabelsCount()

A key-value pair of the resource's labels (v1) to their values.

map<string, string> labels = 5;

Returns
Type Description
int

getLabelsMap()

public abstract Map<String,String> getLabelsMap()

A key-value pair of the resource's labels (v1) to their values.

map<string, string> labels = 5;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract String getLabelsOrDefault(String key, String defaultValue)

A key-value pair of the resource's labels (v1) to their values.

map<string, string> labels = 5;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public abstract String getLabelsOrThrow(String key)

A key-value pair of the resource's labels (v1) to their values.

map<string, string> labels = 5;

Parameter
Name Description
key String
Returns
Type Description
String

getLocation()

public abstract String getLocation()

Location can be global, regional like us-east1, or zonal like us-west1-b.

string location = 4;

Returns
Type Description
String

The location.

getLocationBytes()

public abstract ByteString getLocationBytes()

Location can be global, regional like us-east1, or zonal like us-west1-b.

string location = 4;

Returns
Type Description
ByteString

The bytes for location.

getName()

public abstract String getName()

The full resource name of the resource. Example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

The full resource name of the resource. Example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getProject()

public abstract String getProject()

Format: projects/{PROJECT_NUMBER}.

string project = 2;

Returns
Type Description
String

The project.

getProjectBytes()

public abstract ByteString getProjectBytes()

Format: projects/{PROJECT_NUMBER}.

string project = 2;

Returns
Type Description
ByteString

The bytes for project.

getProjectId()

public abstract String getProjectId()

The ID of the project that owns the resource.

string project_id = 9;

Returns
Type Description
String

The projectId.

getProjectIdBytes()

public abstract ByteString getProjectIdBytes()

The ID of the project that owns the resource.

string project_id = 9;

Returns
Type Description
ByteString

The bytes for projectId.

getResourceType()

public abstract String getResourceType()

Example: compute.googleapis.com/Disk

string resource_type = 3;

Returns
Type Description
String

The resourceType.

getResourceTypeBytes()

public abstract ByteString getResourceTypeBytes()

Example: compute.googleapis.com/Disk

string resource_type = 3;

Returns
Type Description
ByteString

The bytes for resourceType.

hasCreateTime()

public abstract boolean hasCreateTime()

Output only. The time at which this resource was created. The granularity is in seconds. Timestamp.nanos will always be 0.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.