Class ProtectedResource
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.kms.inventory.v1.ProtectedResource
- All Implemented Interfaces:
ProtectedResourceOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class ProtectedResource
extends com.google.protobuf.GeneratedMessage
implements ProtectedResourceOrBuilder
Metadata about a resource protected by a Cloud KMS key.Protobuf type
google.cloud.kms.inventory.v1.ProtectedResource- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMetadata about a resource protected by a Cloud KMS key.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(String key) A key-value pair of the resource's labels (v1) to their values.booleanThe Cloud product that owns the resource.com.google.protobuf.ByteStringThe Cloud product that owns the resource.com.google.protobuf.TimestampOutput 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 ProtectedResourcestatic final com.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`.getName()The full resource name of the resource.com.google.protobuf.ByteStringThe full resource name of the resource.com.google.protobuf.Parser<ProtectedResource>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`intbooleanOutput only.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic ProtectedResource.Builderstatic ProtectedResource.BuildernewBuilder(ProtectedResource prototype) protected ProtectedResource.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ProtectedResourceparseDelimitedFrom(InputStream input) static ProtectedResourceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProtectedResourceparseFrom(byte[] data) static ProtectedResourceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProtectedResourceparseFrom(com.google.protobuf.ByteString data) static ProtectedResourceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProtectedResourceparseFrom(com.google.protobuf.CodedInputStream input) static ProtectedResourceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProtectedResourceparseFrom(InputStream input) static ProtectedResourceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProtectedResourceparseFrom(ByteBuffer data) static ProtectedResourceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ProtectedResource>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
PROJECT_FIELD_NUMBER
public static final int PROJECT_FIELD_NUMBER- See Also:
-
PROJECT_ID_FIELD_NUMBER
public static final int PROJECT_ID_FIELD_NUMBER- See Also:
-
CLOUD_PRODUCT_FIELD_NUMBER
public static final int CLOUD_PRODUCT_FIELD_NUMBER- See Also:
-
RESOURCE_TYPE_FIELD_NUMBER
public static final int RESOURCE_TYPE_FIELD_NUMBER- See Also:
-
LOCATION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER- See Also:
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER- See Also:
-
CRYPTO_KEY_VERSION_FIELD_NUMBER
public static final int CRYPTO_KEY_VERSION_FIELD_NUMBER- See Also:
-
CRYPTO_KEY_VERSIONS_FIELD_NUMBER
public static final int CRYPTO_KEY_VERSIONS_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
-
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
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
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.
-
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.
-
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.
-
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
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ProtectedResource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProtectedResource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProtectedResource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProtectedResource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProtectedResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProtectedResource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ProtectedResource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ProtectedResource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ProtectedResource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ProtectedResource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ProtectedResource.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-