Interface ProtectedResourceOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    ProtectedResource, ProtectedResource.Builder

    public interface ProtectedResourceOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean containsLabels​(String key)
      A key-value pair of the resource's labels (v1) to their values.
      String getCloudProduct()
      The Cloud product that owns the resource.
      com.google.protobuf.ByteString getCloudProductBytes()
      The Cloud product that owns the resource.
      com.google.protobuf.Timestamp getCreateTime()
      Output only.
      com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
      Output only.
      String getCryptoKeyVersion()
      The name of the Cloud KMS [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) used to protect this resource via CMEK.
      com.google.protobuf.ByteString getCryptoKeyVersionBytes()
      The name of the Cloud KMS [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) used to protect this resource via CMEK.
      String getCryptoKeyVersions​(int index)
      The names of the Cloud KMS [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) used to protect this resource via CMEK.
      com.google.protobuf.ByteString getCryptoKeyVersionsBytes​(int index)
      The names of the Cloud KMS [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) used to protect this resource via CMEK.
      int getCryptoKeyVersionsCount()
      The names of the Cloud KMS [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) used to protect this resource via CMEK.
      List<String> getCryptoKeyVersionsList()
      The names of the Cloud KMS [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) used to protect this resource via CMEK.
      Map<String,​String> getLabels()
      Deprecated.
      int getLabelsCount()
      A key-value pair of the resource's labels (v1) to their values.
      Map<String,​String> getLabelsMap()
      A key-value pair of the resource's labels (v1) to their values.
      String getLabelsOrDefault​(String key, String defaultValue)
      A key-value pair of the resource's labels (v1) to their values.
      String getLabelsOrThrow​(String key)
      A key-value pair of the resource's labels (v1) to their values.
      String getLocation()
      Location can be `global`, regional like `us-east1`, or zonal like `us-west1-b`.
      com.google.protobuf.ByteString getLocationBytes()
      Location can be `global`, regional like `us-east1`, or zonal like `us-west1-b`.
      String getName()
      The full resource name of the resource.
      com.google.protobuf.ByteString getNameBytes()
      The full resource name of the resource.
      String getProject()
      Format: `projects/{PROJECT_NUMBER}`.
      com.google.protobuf.ByteString getProjectBytes()
      Format: `projects/{PROJECT_NUMBER}`.
      String getProjectId()
      The ID of the project that owns the resource.
      com.google.protobuf.ByteString getProjectIdBytes()
      The ID of the project that owns the resource.
      String getResourceType()
      Example: `compute.googleapis.com/Disk`
      com.google.protobuf.ByteString getResourceTypeBytes()
      Example: `compute.googleapis.com/Disk`
      boolean hasCreateTime()
      Output only.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getName

        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:
        The name.
      • getNameBytes

        com.google.protobuf.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:
        The bytes for name.
      • getProject

        String getProject()
         Format: `projects/{PROJECT_NUMBER}`.
         
        string project = 2;
        Returns:
        The project.
      • getProjectBytes

        com.google.protobuf.ByteString getProjectBytes()
         Format: `projects/{PROJECT_NUMBER}`.
         
        string project = 2;
        Returns:
        The bytes for project.
      • getProjectId

        String getProjectId()
         The ID of the project that owns the resource.
         
        string project_id = 9;
        Returns:
        The projectId.
      • getProjectIdBytes

        com.google.protobuf.ByteString getProjectIdBytes()
         The ID of the project that owns the resource.
         
        string project_id = 9;
        Returns:
        The bytes for projectId.
      • getCloudProduct

        String getCloudProduct()
         The Cloud product that owns the resource.
         Example: `compute`
         
        string cloud_product = 8;
        Returns:
        The cloudProduct.
      • getCloudProductBytes

        com.google.protobuf.ByteString getCloudProductBytes()
         The Cloud product that owns the resource.
         Example: `compute`
         
        string cloud_product = 8;
        Returns:
        The bytes for cloudProduct.
      • getResourceType

        String getResourceType()
         Example: `compute.googleapis.com/Disk`
         
        string resource_type = 3;
        Returns:
        The resourceType.
      • getResourceTypeBytes

        com.google.protobuf.ByteString getResourceTypeBytes()
         Example: `compute.googleapis.com/Disk`
         
        string resource_type = 3;
        Returns:
        The bytes for resourceType.
      • getLocation

        String getLocation()
         Location can be `global`, regional like `us-east1`, or zonal like
         `us-west1-b`.
         
        string location = 4;
        Returns:
        The location.
      • getLocationBytes

        com.google.protobuf.ByteString getLocationBytes()
         Location can be `global`, regional like `us-east1`, or zonal like
         `us-west1-b`.
         
        string location = 4;
        Returns:
        The bytes for location.
      • getLabelsCount

        int getLabelsCount()
         A key-value pair of the resource's labels (v1) to their values.
         
        map<string, string> labels = 5;
      • containsLabels

        boolean containsLabels​(String key)
         A key-value pair of the resource's labels (v1) to their values.
         
        map<string, string> labels = 5;
      • getLabelsMap

        Map<String,​String> getLabelsMap()
         A key-value pair of the resource's labels (v1) to their values.
         
        map<string, string> labels = 5;
      • getLabelsOrDefault

        String getLabelsOrDefault​(String key,
                                  String defaultValue)
         A key-value pair of the resource's labels (v1) to their values.
         
        map<string, string> labels = 5;
      • getLabelsOrThrow

        String getLabelsOrThrow​(String key)
         A key-value pair of the resource's labels (v1) to their values.
         
        map<string, string> labels = 5;
      • getCryptoKeyVersion

        String getCryptoKeyVersion()
         The name of the Cloud KMS
         [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en)
         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:
        The cryptoKeyVersion.
      • getCryptoKeyVersionBytes

        com.google.protobuf.ByteString getCryptoKeyVersionBytes()
         The name of the Cloud KMS
         [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en)
         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:
        The bytes for cryptoKeyVersion.
      • getCryptoKeyVersionsList

        List<String> getCryptoKeyVersionsList()
         The names of the Cloud KMS
         [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en)
         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:
        A list containing the cryptoKeyVersions.
      • getCryptoKeyVersionsCount

        int getCryptoKeyVersionsCount()
         The names of the Cloud KMS
         [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en)
         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:
        The count of cryptoKeyVersions.
      • getCryptoKeyVersions

        String getCryptoKeyVersions​(int index)
         The names of the Cloud KMS
         [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en)
         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) = { ... }
        Parameters:
        index - The index of the element to return.
        Returns:
        The cryptoKeyVersions at the given index.
      • getCryptoKeyVersionsBytes

        com.google.protobuf.ByteString getCryptoKeyVersionsBytes​(int index)
         The names of the Cloud KMS
         [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en)
         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) = { ... }
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the cryptoKeyVersions at the given index.
      • hasCreateTime

        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:
        Whether the createTime field is set.
      • getCreateTime

        com.google.protobuf.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:
        The createTime.
      • getCreateTimeOrBuilder

        com.google.protobuf.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];