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

getCloudProduct()

public abstract String getCloudProduct()

The Cloud product that owns the resource. Example: compute

string cloud_product = 8;

Returns
TypeDescription
String

The cloudProduct.

getCloudProductBytes()

public abstract ByteString getCloudProductBytes()

The Cloud product that owns the resource. Example: compute

string cloud_product = 8;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
List<String>

A list containing the cryptoKeyVersions.

getLabels()

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

getLocation()

public abstract String getLocation()

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

string location = 4;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getProject()

public abstract String getProject()

Format: projects/{PROJECT_NUMBER}.

string project = 2;

Returns
TypeDescription
String

The project.

getProjectBytes()

public abstract ByteString getProjectBytes()

Format: projects/{PROJECT_NUMBER}.

string project = 2;

Returns
TypeDescription
ByteString

The bytes for project.

getProjectId()

public abstract String getProjectId()

The ID of the project that owns the resource.

string project_id = 9;

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public abstract ByteString getProjectIdBytes()

The ID of the project that owns the resource.

string project_id = 9;

Returns
TypeDescription
ByteString

The bytes for projectId.

getResourceType()

public abstract String getResourceType()

Example: compute.googleapis.com/Disk

string resource_type = 3;

Returns
TypeDescription
String

The resourceType.

getResourceTypeBytes()

public abstract ByteString getResourceTypeBytes()

Example: compute.googleapis.com/Disk

string resource_type = 3;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the createTime field is set.