Class ProtectedResourcesSummary (0.28.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
TypeDescription
int

LOCATIONS_FIELD_NUMBER

public static final int LOCATIONS_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PROJECT_COUNT_FIELD_NUMBER

public static final int PROJECT_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_COUNT_FIELD_NUMBER

public static final int RESOURCE_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_TYPES_FIELD_NUMBER

public static final int RESOURCE_TYPES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ProtectedResourcesSummary getDefaultInstance()
Returns
TypeDescription
ProtectedResourcesSummary

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ProtectedResourcesSummary.Builder newBuilder()
Returns
TypeDescription
ProtectedResourcesSummary.Builder

newBuilder(ProtectedResourcesSummary prototype)

public static ProtectedResourcesSummary.Builder newBuilder(ProtectedResourcesSummary prototype)
Parameter
NameDescription
prototypeProtectedResourcesSummary
Returns
TypeDescription
ProtectedResourcesSummary.Builder

parseDelimitedFrom(InputStream input)

public static ProtectedResourcesSummary parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ProtectedResourcesSummary
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProtectedResourcesSummary parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProtectedResourcesSummary
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ProtectedResourcesSummary parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ProtectedResourcesSummary
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ProtectedResourcesSummary parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProtectedResourcesSummary
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ProtectedResourcesSummary parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ProtectedResourcesSummary
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ProtectedResourcesSummary parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProtectedResourcesSummary
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ProtectedResourcesSummary parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ProtectedResourcesSummary
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ProtectedResourcesSummary parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProtectedResourcesSummary
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ProtectedResourcesSummary parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ProtectedResourcesSummary
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProtectedResourcesSummary parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProtectedResourcesSummary
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ProtectedResourcesSummary parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ProtectedResourcesSummary
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ProtectedResourcesSummary parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProtectedResourcesSummary
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ProtectedResourcesSummary> parser()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCloudProducts() (deprecated)

public Map<String,Long> getCloudProducts()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValuelong
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
long

getDefaultInstanceForType()

public ProtectedResourcesSummary getDefaultInstanceForType()
Returns
TypeDescription
ProtectedResourcesSummary

getLocations() (deprecated)

public Map<String,Long> getLocations()

Use #getLocationsMap() instead.

Returns
TypeDescription
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
TypeDescription
int

getLocationsMap()

public Map<String,Long> getLocationsMap()

The number of resources protected by the key grouped by region.

map<string, int64> locations = 4;

Returns
TypeDescription
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
NameDescription
keyString
defaultValuelong
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<ProtectedResourcesSummary> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
long

The resourceCount.

getResourceTypes() (deprecated)

public Map<String,Long> getResourceTypes()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValuelong
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
long

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ProtectedResourcesSummary.Builder newBuilderForType()
Returns
TypeDescription
ProtectedResourcesSummary.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ProtectedResourcesSummary.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ProtectedResourcesSummary.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ProtectedResourcesSummary.Builder toBuilder()
Returns
TypeDescription
ProtectedResourcesSummary.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException