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
LOCATIONS_FIELD_NUMBER
public static final int LOCATIONS_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
PROJECT_COUNT_FIELD_NUMBER
public static final int PROJECT_COUNT_FIELD_NUMBER
Field Value
RESOURCE_COUNT_FIELD_NUMBER
public static final int RESOURCE_COUNT_FIELD_NUMBER
Field Value
RESOURCE_TYPES_FIELD_NUMBER
public static final int RESOURCE_TYPES_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ProtectedResourcesSummary getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ProtectedResourcesSummary.Builder newBuilder()
Returns
newBuilder(ProtectedResourcesSummary prototype)
public static ProtectedResourcesSummary.Builder newBuilder(ProtectedResourcesSummary prototype)
Parameter
Returns
public static ProtectedResourcesSummary parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ProtectedResourcesSummary parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ProtectedResourcesSummary parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ProtectedResourcesSummary parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ProtectedResourcesSummary parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ProtectedResourcesSummary parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ProtectedResourcesSummary parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ProtectedResourcesSummary parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ProtectedResourcesSummary parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ProtectedResourcesSummary parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ProtectedResourcesSummary parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ProtectedResourcesSummary parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ProtectedResourcesSummary> parser()
Returns
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
Returns
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
Returns
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
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getCloudProducts()
public Map<String,Long> getCloudProducts()
Returns
getCloudProductsCount()
public int getCloudProductsCount()
The number of resources protected by the key grouped by Cloud product.
map<string, int64> cloud_products = 6;
Returns
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
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
Returns
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
Returns
getDefaultInstanceForType()
public ProtectedResourcesSummary getDefaultInstanceForType()
Returns
getLocations()
public Map<String,Long> getLocations()
Returns
getLocationsCount()
public int getLocationsCount()
The number of resources protected by the key grouped by region.
map<string, int64> locations = 4;
Returns
getLocationsMap()
public Map<String,Long> getLocationsMap()
The number of resources protected by the key grouped by region.
map<string, int64> locations = 4;
Returns
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
Returns
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
Returns
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
getParserForType()
public Parser<ProtectedResourcesSummary> getParserForType()
Returns
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()
public Map<String,Long> getResourceTypes()
Returns
getResourceTypesCount()
public int getResourceTypesCount()
The number of resources protected by the key grouped by resource type.
map<string, int64> resource_types = 3;
Returns
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
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
Returns
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
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ProtectedResourcesSummary.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ProtectedResourcesSummary.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ProtectedResourcesSummary.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions