public final class ProtectedResourcesSummary extends GeneratedMessageV3 implements ProtectedResourcesSummaryOrBuilder
Aggregate information about the resources protected by a Cloud KMS key in the
same Cloud organization as the key.
Protobuf type google.cloud.kms.inventory.v1.ProtectedResourcesSummary
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CLOUD_PRODUCTS_FIELD_NUMBER
public static final int CLOUD_PRODUCTS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
LOCATIONS_FIELD_NUMBER
public static final int LOCATIONS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
PROJECT_COUNT_FIELD_NUMBER
public static final int PROJECT_COUNT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
RESOURCE_COUNT_FIELD_NUMBER
public static final int RESOURCE_COUNT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
RESOURCE_TYPES_FIELD_NUMBER
public static final int RESOURCE_TYPES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static ProtectedResourcesSummary getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ProtectedResourcesSummary.Builder newBuilder()
newBuilder(ProtectedResourcesSummary prototype)
public static ProtectedResourcesSummary.Builder newBuilder(ProtectedResourcesSummary prototype)
public static ProtectedResourcesSummary parseDelimitedFrom(InputStream input)
public static ProtectedResourcesSummary parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ProtectedResourcesSummary parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ProtectedResourcesSummary parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ProtectedResourcesSummary parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ProtectedResourcesSummary parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ProtectedResourcesSummary parseFrom(CodedInputStream input)
public static ProtectedResourcesSummary parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ProtectedResourcesSummary parseFrom(InputStream input)
public static ProtectedResourcesSummary parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ProtectedResourcesSummary parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ProtectedResourcesSummary parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ProtectedResourcesSummary> parser()
Methods
containsCloudProducts(String key)
public boolean containsCloudProducts(String key)
The number of resources protected by the key grouped by Cloud product.
map<string, int64> cloud_products = 6;
Parameter |
---|
Name | Description |
key | String
|
containsLocations(String key)
public boolean containsLocations(String key)
The number of resources protected by the key grouped by region.
map<string, int64> locations = 4;
Parameter |
---|
Name | Description |
key | String
|
containsResourceTypes(String key)
public boolean containsResourceTypes(String key)
The number of resources protected by the key grouped by resource type.
map<string, int64> resource_types = 3;
Parameter |
---|
Name | Description |
key | String
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getCloudProducts() (deprecated)
public Map<String,Long> getCloudProducts()
Returns |
---|
Type | Description |
Map<String,java.lang.Long> | |
getCloudProductsCount()
public int getCloudProductsCount()
The number of resources protected by the key grouped by Cloud product.
map<string, int64> cloud_products = 6;
Returns |
---|
Type | Description |
int | |
getCloudProductsMap()
public Map<String,Long> getCloudProductsMap()
The number of resources protected by the key grouped by Cloud product.
map<string, int64> cloud_products = 6;
Returns |
---|
Type | Description |
Map<String,java.lang.Long> | |
getCloudProductsOrDefault(String key, long defaultValue)
public long getCloudProductsOrDefault(String key, long defaultValue)
The number of resources protected by the key grouped by Cloud product.
map<string, int64> cloud_products = 6;
Parameters |
---|
Name | Description |
key | String
|
defaultValue | long
|
Returns |
---|
Type | Description |
long | |
getCloudProductsOrThrow(String key)
public long getCloudProductsOrThrow(String key)
The number of resources protected by the key grouped by Cloud product.
map<string, int64> cloud_products = 6;
Parameter |
---|
Name | Description |
key | String
|
Returns |
---|
Type | Description |
long | |
getDefaultInstanceForType()
public ProtectedResourcesSummary getDefaultInstanceForType()
getLocations() (deprecated)
public Map<String,Long> getLocations()
Returns |
---|
Type | Description |
Map<String,java.lang.Long> | |
getLocationsCount()
public int getLocationsCount()
The number of resources protected by the key grouped by region.
map<string, int64> locations = 4;
Returns |
---|
Type | Description |
int | |
getLocationsMap()
public Map<String,Long> getLocationsMap()
The number of resources protected by the key grouped by region.
map<string, int64> locations = 4;
Returns |
---|
Type | Description |
Map<String,java.lang.Long> | |
getLocationsOrDefault(String key, long defaultValue)
public long getLocationsOrDefault(String key, long defaultValue)
The number of resources protected by the key grouped by region.
map<string, int64> locations = 4;
Parameters |
---|
Name | Description |
key | String
|
defaultValue | long
|
Returns |
---|
Type | Description |
long | |
getLocationsOrThrow(String key)
public long getLocationsOrThrow(String key)
The number of resources protected by the key grouped by region.
map<string, int64> locations = 4;
Parameter |
---|
Name | Description |
key | String
|
Returns |
---|
Type | Description |
long | |
getName()
The full name of the ProtectedResourcesSummary resource.
Example:
projects/test-project/locations/us/keyRings/test-keyring/cryptoKeys/test-key/protectedResourcesSummary
string name = 5;
Returns |
---|
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
The full name of the ProtectedResourcesSummary resource.
Example:
projects/test-project/locations/us/keyRings/test-keyring/cryptoKeys/test-key/protectedResourcesSummary
string name = 5;
Returns |
---|
Type | Description |
ByteString | The bytes for name.
|
getParserForType()
public Parser<ProtectedResourcesSummary> getParserForType()
Overrides
getProjectCount()
public int getProjectCount()
The number of distinct Cloud projects in the same Cloud organization as the
key that have resources protected by the key.
int32 project_count = 2;
Returns |
---|
Type | Description |
int | The projectCount.
|
getResourceCount()
public long getResourceCount()
The total number of protected resources in the same Cloud organization as
the key.
int64 resource_count = 1;
Returns |
---|
Type | Description |
long | The resourceCount.
|
getResourceTypes() (deprecated)
public Map<String,Long> getResourceTypes()
Returns |
---|
Type | Description |
Map<String,java.lang.Long> | |
getResourceTypesCount()
public int getResourceTypesCount()
The number of resources protected by the key grouped by resource type.
map<string, int64> resource_types = 3;
Returns |
---|
Type | Description |
int | |
getResourceTypesMap()
public Map<String,Long> getResourceTypesMap()
The number of resources protected by the key grouped by resource type.
map<string, int64> resource_types = 3;
Returns |
---|
Type | Description |
Map<String,java.lang.Long> | |
getResourceTypesOrDefault(String key, long defaultValue)
public long getResourceTypesOrDefault(String key, long defaultValue)
The number of resources protected by the key grouped by resource type.
map<string, int64> resource_types = 3;
Parameters |
---|
Name | Description |
key | String
|
defaultValue | long
|
Returns |
---|
Type | Description |
long | |
getResourceTypesOrThrow(String key)
public long getResourceTypesOrThrow(String key)
The number of resources protected by the key grouped by resource type.
map<string, int64> resource_types = 3;
Parameter |
---|
Name | Description |
key | String
|
Returns |
---|
Type | Description |
long | |
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ProtectedResourcesSummary.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ProtectedResourcesSummary.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public ProtectedResourcesSummary.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides