Class ProtectedResourcesSummary (0.40.0)

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

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()
Returns
Type Description
ProtectedResourcesSummary

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ProtectedResourcesSummary.Builder newBuilder()
Returns
Type Description
ProtectedResourcesSummary.Builder

newBuilder(ProtectedResourcesSummary prototype)

public static ProtectedResourcesSummary.Builder newBuilder(ProtectedResourcesSummary prototype)
Parameter
Name Description
prototype ProtectedResourcesSummary
Returns
Type Description
ProtectedResourcesSummary.Builder

parseDelimitedFrom(InputStream input)

public static ProtectedResourcesSummary parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProtectedResourcesSummary
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProtectedResourcesSummary parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProtectedResourcesSummary
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ProtectedResourcesSummary parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ProtectedResourcesSummary
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ProtectedResourcesSummary parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProtectedResourcesSummary
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ProtectedResourcesSummary parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ProtectedResourcesSummary
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ProtectedResourcesSummary parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProtectedResourcesSummary
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ProtectedResourcesSummary parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ProtectedResourcesSummary
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ProtectedResourcesSummary parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProtectedResourcesSummary
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ProtectedResourcesSummary parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProtectedResourcesSummary
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProtectedResourcesSummary parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProtectedResourcesSummary
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ProtectedResourcesSummary parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ProtectedResourcesSummary
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ProtectedResourcesSummary parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProtectedResourcesSummary
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ProtectedResourcesSummary> parser()
Returns
Type Description
Parser<ProtectedResourcesSummary>

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
Returns
Type Description
boolean

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
Returns
Type Description
boolean

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
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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()
Returns
Type Description
ProtectedResourcesSummary

getLocations() (deprecated)

public Map<String,Long> getLocations()

Use #getLocationsMap() instead.

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()

public String 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()
Returns
Type Description
Parser<ProtectedResourcesSummary>
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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ProtectedResourcesSummary.Builder newBuilderForType()
Returns
Type Description
ProtectedResourcesSummary.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ProtectedResourcesSummary.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ProtectedResourcesSummary.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ProtectedResourcesSummary.Builder toBuilder()
Returns
Type Description
ProtectedResourcesSummary.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException