Class ProtectedResource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ProtectedResource.Builder>
com.google.cloud.kms.inventory.v1.ProtectedResource.Builder
- All Implemented Interfaces:
ProtectedResourceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ProtectedResource
public static final class ProtectedResource.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ProtectedResource.Builder>
implements ProtectedResourceOrBuilder
Metadata about a resource protected by a Cloud KMS key.Protobuf type
google.cloud.kms.inventory.v1.ProtectedResource-
Method Summary
Modifier and TypeMethodDescriptionaddAllCryptoKeyVersions(Iterable<String> values) The names of the Cloud KMS [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?addCryptoKeyVersions(String value) The names of the Cloud KMS [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?addCryptoKeyVersionsBytes(com.google.protobuf.ByteString value) The names of the Cloud KMS [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?build()clear()The Cloud product that owns the resource.Output only.The name of the Cloud KMS [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?The names of the Cloud KMS [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?Location can be `global`, regional like `us-east1`, or zonal like `us-west1-b`.The full resource name of the resource.Format: `projects/{PROJECT_NUMBER}`.The ID of the project that owns the resource.Example: `compute.googleapis.com/Disk`booleancontainsLabels(String key) A key-value pair of the resource's labels (v1) to their values.The Cloud product that owns the resource.com.google.protobuf.ByteStringThe Cloud product that owns the resource.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.The name of the Cloud KMS [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?com.google.protobuf.ByteStringThe name of the Cloud KMS [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?getCryptoKeyVersions(int index) The names of the Cloud KMS [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?com.google.protobuf.ByteStringgetCryptoKeyVersionsBytes(int index) The names of the Cloud KMS [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?intThe names of the Cloud KMS [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?com.google.protobuf.ProtocolStringListThe names of the Cloud KMS [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intA key-value pair of the resource's labels (v1) to their values.A key-value pair of the resource's labels (v1) to their values.getLabelsOrDefault(String key, String defaultValue) A key-value pair of the resource's labels (v1) to their values.getLabelsOrThrow(String key) A key-value pair of the resource's labels (v1) to their values.Location can be `global`, regional like `us-east1`, or zonal like `us-west1-b`.com.google.protobuf.ByteStringLocation can be `global`, regional like `us-east1`, or zonal like `us-west1-b`.Deprecated.getName()The full resource name of the resource.com.google.protobuf.ByteStringThe full resource name of the resource.Format: `projects/{PROJECT_NUMBER}`.com.google.protobuf.ByteStringFormat: `projects/{PROJECT_NUMBER}`.The ID of the project that owns the resource.com.google.protobuf.ByteStringThe ID of the project that owns the resource.Example: `compute.googleapis.com/Disk`com.google.protobuf.ByteStringExample: `compute.googleapis.com/Disk`booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(ProtectedResource other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllLabels(Map<String, String> values) A key-value pair of the resource's labels (v1) to their values.A key-value pair of the resource's labels (v1) to their values.removeLabels(String key) A key-value pair of the resource's labels (v1) to their values.setCloudProduct(String value) The Cloud product that owns the resource.setCloudProductBytes(com.google.protobuf.ByteString value) The Cloud product that owns the resource.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setCryptoKeyVersion(String value) The name of the Cloud KMS [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?setCryptoKeyVersionBytes(com.google.protobuf.ByteString value) The name of the Cloud KMS [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?setCryptoKeyVersions(int index, String value) The names of the Cloud KMS [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?setLocation(String value) Location can be `global`, regional like `us-east1`, or zonal like `us-west1-b`.setLocationBytes(com.google.protobuf.ByteString value) Location can be `global`, regional like `us-east1`, or zonal like `us-west1-b`.The full resource name of the resource.setNameBytes(com.google.protobuf.ByteString value) The full resource name of the resource.setProject(String value) Format: `projects/{PROJECT_NUMBER}`.setProjectBytes(com.google.protobuf.ByteString value) Format: `projects/{PROJECT_NUMBER}`.setProjectId(String value) The ID of the project that owns the resource.setProjectIdBytes(com.google.protobuf.ByteString value) The ID of the project that owns the resource.setResourceType(String value) Example: `compute.googleapis.com/Disk`setResourceTypeBytes(com.google.protobuf.ByteString value) Example: `compute.googleapis.com/Disk`Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ProtectedResource.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ProtectedResource.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ProtectedResource.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ProtectedResource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ProtectedResource.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProtectedResource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ProtectedResource.Builder>
-
mergeFrom
public ProtectedResource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProtectedResource.Builder>- Throws:
IOException
-
getName
The full resource name of the resource. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
string name = 1;- Specified by:
getNamein interfaceProtectedResourceOrBuilder- Returns:
- The name.
-
getNameBytes
public 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;- Specified by:
getNameBytesin interfaceProtectedResourceOrBuilder- Returns:
- The bytes for name.
-
setName
The full resource name of the resource. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The full resource name of the resource. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The full resource name of the resource. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getProject
Format: `projects/{PROJECT_NUMBER}`.string project = 2;- Specified by:
getProjectin interfaceProtectedResourceOrBuilder- Returns:
- The project.
-
getProjectBytes
public com.google.protobuf.ByteString getProjectBytes()Format: `projects/{PROJECT_NUMBER}`.string project = 2;- Specified by:
getProjectBytesin interfaceProtectedResourceOrBuilder- Returns:
- The bytes for project.
-
setProject
Format: `projects/{PROJECT_NUMBER}`.string project = 2;- Parameters:
value- The project to set.- Returns:
- This builder for chaining.
-
clearProject
Format: `projects/{PROJECT_NUMBER}`.string project = 2;- Returns:
- This builder for chaining.
-
setProjectBytes
Format: `projects/{PROJECT_NUMBER}`.string project = 2;- Parameters:
value- The bytes for project to set.- Returns:
- This builder for chaining.
-
getProjectId
The ID of the project that owns the resource.
string project_id = 9;- Specified by:
getProjectIdin interfaceProtectedResourceOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.ByteString getProjectIdBytes()The ID of the project that owns the resource.
string project_id = 9;- Specified by:
getProjectIdBytesin interfaceProtectedResourceOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
The ID of the project that owns the resource.
string project_id = 9;- Parameters:
value- The projectId to set.- Returns:
- This builder for chaining.
-
clearProjectId
The ID of the project that owns the resource.
string project_id = 9;- Returns:
- This builder for chaining.
-
setProjectIdBytes
The ID of the project that owns the resource.
string project_id = 9;- Parameters:
value- The bytes for projectId to set.- Returns:
- This builder for chaining.
-
getCloudProduct
The Cloud product that owns the resource. Example: `compute`
string cloud_product = 8;- Specified by:
getCloudProductin interfaceProtectedResourceOrBuilder- Returns:
- The cloudProduct.
-
getCloudProductBytes
public com.google.protobuf.ByteString getCloudProductBytes()The Cloud product that owns the resource. Example: `compute`
string cloud_product = 8;- Specified by:
getCloudProductBytesin interfaceProtectedResourceOrBuilder- Returns:
- The bytes for cloudProduct.
-
setCloudProduct
The Cloud product that owns the resource. Example: `compute`
string cloud_product = 8;- Parameters:
value- The cloudProduct to set.- Returns:
- This builder for chaining.
-
clearCloudProduct
The Cloud product that owns the resource. Example: `compute`
string cloud_product = 8;- Returns:
- This builder for chaining.
-
setCloudProductBytes
The Cloud product that owns the resource. Example: `compute`
string cloud_product = 8;- Parameters:
value- The bytes for cloudProduct to set.- Returns:
- This builder for chaining.
-
getResourceType
Example: `compute.googleapis.com/Disk`
string resource_type = 3;- Specified by:
getResourceTypein interfaceProtectedResourceOrBuilder- Returns:
- The resourceType.
-
getResourceTypeBytes
public com.google.protobuf.ByteString getResourceTypeBytes()Example: `compute.googleapis.com/Disk`
string resource_type = 3;- Specified by:
getResourceTypeBytesin interfaceProtectedResourceOrBuilder- Returns:
- The bytes for resourceType.
-
setResourceType
Example: `compute.googleapis.com/Disk`
string resource_type = 3;- Parameters:
value- The resourceType to set.- Returns:
- This builder for chaining.
-
clearResourceType
Example: `compute.googleapis.com/Disk`
string resource_type = 3;- Returns:
- This builder for chaining.
-
setResourceTypeBytes
Example: `compute.googleapis.com/Disk`
string resource_type = 3;- Parameters:
value- The bytes for resourceType to set.- Returns:
- This builder for chaining.
-
getLocation
Location can be `global`, regional like `us-east1`, or zonal like `us-west1-b`.
string location = 4;- Specified by:
getLocationin interfaceProtectedResourceOrBuilder- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()Location can be `global`, regional like `us-east1`, or zonal like `us-west1-b`.
string location = 4;- Specified by:
getLocationBytesin interfaceProtectedResourceOrBuilder- Returns:
- The bytes for location.
-
setLocation
Location can be `global`, regional like `us-east1`, or zonal like `us-west1-b`.
string location = 4;- Parameters:
value- The location to set.- Returns:
- This builder for chaining.
-
clearLocation
Location can be `global`, regional like `us-east1`, or zonal like `us-west1-b`.
string location = 4;- Returns:
- This builder for chaining.
-
setLocationBytes
Location can be `global`, regional like `us-east1`, or zonal like `us-west1-b`.
string location = 4;- Parameters:
value- The bytes for location to set.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()Description copied from interface:ProtectedResourceOrBuilderA key-value pair of the resource's labels (v1) to their values.
map<string, string> labels = 5;- Specified by:
getLabelsCountin interfaceProtectedResourceOrBuilder
-
containsLabels
A key-value pair of the resource's labels (v1) to their values.
map<string, string> labels = 5;- Specified by:
containsLabelsin interfaceProtectedResourceOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceProtectedResourceOrBuilder
-
getLabelsMap
A key-value pair of the resource's labels (v1) to their values.
map<string, string> labels = 5;- Specified by:
getLabelsMapin interfaceProtectedResourceOrBuilder
-
getLabelsOrDefault
A key-value pair of the resource's labels (v1) to their values.
map<string, string> labels = 5;- Specified by:
getLabelsOrDefaultin interfaceProtectedResourceOrBuilder
-
getLabelsOrThrow
A key-value pair of the resource's labels (v1) to their values.
map<string, string> labels = 5;- Specified by:
getLabelsOrThrowin interfaceProtectedResourceOrBuilder
-
clearLabels
-
removeLabels
A key-value pair of the resource's labels (v1) to their values.
map<string, string> labels = 5; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
A key-value pair of the resource's labels (v1) to their values.
map<string, string> labels = 5; -
putAllLabels
A key-value pair of the resource's labels (v1) to their values.
map<string, string> labels = 5; -
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) = { ... }- Specified by:
getCryptoKeyVersionin interfaceProtectedResourceOrBuilder- Returns:
- The cryptoKeyVersion.
-
getCryptoKeyVersionBytes
public 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) = { ... }- Specified by:
getCryptoKeyVersionBytesin interfaceProtectedResourceOrBuilder- Returns:
- The bytes for cryptoKeyVersion.
-
setCryptoKeyVersion
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) = { ... }- Parameters:
value- The cryptoKeyVersion to set.- Returns:
- This builder for chaining.
-
clearCryptoKeyVersion
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:
- This builder for chaining.
-
setCryptoKeyVersionBytes
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) = { ... }- Parameters:
value- The bytes for cryptoKeyVersion to set.- Returns:
- This builder for chaining.
-
getCryptoKeyVersionsList
public com.google.protobuf.ProtocolStringList 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) = { ... }- Specified by:
getCryptoKeyVersionsListin interfaceProtectedResourceOrBuilder- Returns:
- A list containing the cryptoKeyVersions.
-
getCryptoKeyVersionsCount
public 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) = { ... }- Specified by:
getCryptoKeyVersionsCountin interfaceProtectedResourceOrBuilder- Returns:
- The count of cryptoKeyVersions.
-
getCryptoKeyVersions
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) = { ... }- Specified by:
getCryptoKeyVersionsin interfaceProtectedResourceOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The cryptoKeyVersions at the given index.
-
getCryptoKeyVersionsBytes
public 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) = { ... }- Specified by:
getCryptoKeyVersionsBytesin interfaceProtectedResourceOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the cryptoKeyVersions at the given index.
-
setCryptoKeyVersions
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 to set the value at.value- The cryptoKeyVersions to set.- Returns:
- This builder for chaining.
-
addCryptoKeyVersions
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:
value- The cryptoKeyVersions to add.- Returns:
- This builder for chaining.
-
addAllCryptoKeyVersions
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:
values- The cryptoKeyVersions to add.- Returns:
- This builder for chaining.
-
clearCryptoKeyVersions
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:
- This builder for chaining.
-
addCryptoKeyVersionsBytes
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:
value- The bytes of the cryptoKeyVersions to add.- Returns:
- This builder for chaining.
-
hasCreateTime
public 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];- Specified by:
hasCreateTimein interfaceProtectedResourceOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public 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];- Specified by:
getCreateTimein interfaceProtectedResourceOrBuilder- Returns:
- The createTime.
-
setCreateTime
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]; -
setCreateTime
public ProtectedResource.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) 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]; -
mergeCreateTime
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]; -
clearCreateTime
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]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()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]; -
getCreateTimeOrBuilder
public 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];- Specified by:
getCreateTimeOrBuilderin interfaceProtectedResourceOrBuilder
-