- 0.49.0 (latest)
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
public static final class ProtectedResourcesSummary.Builder extends GeneratedMessageV3.Builder<ProtectedResourcesSummary.Builder> 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ProtectedResourcesSummary.BuilderImplements
ProtectedResourcesSummaryOrBuilderInherited Members
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ProtectedResourcesSummary.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ProtectedResourcesSummary.Builder |
build()
public ProtectedResourcesSummary build()
Type | Description |
ProtectedResourcesSummary |
buildPartial()
public ProtectedResourcesSummary buildPartial()
Type | Description |
ProtectedResourcesSummary |
clear()
public ProtectedResourcesSummary.Builder clear()
Type | Description |
ProtectedResourcesSummary.Builder |
clearCloudProducts()
public ProtectedResourcesSummary.Builder clearCloudProducts()
Type | Description |
ProtectedResourcesSummary.Builder |
clearField(Descriptors.FieldDescriptor field)
public ProtectedResourcesSummary.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ProtectedResourcesSummary.Builder |
clearLocations()
public ProtectedResourcesSummary.Builder clearLocations()
Type | Description |
ProtectedResourcesSummary.Builder |
clearName()
public ProtectedResourcesSummary.Builder clearName()
The full name of the ProtectedResourcesSummary resource. Example: projects/test-project/locations/us/keyRings/test-keyring/cryptoKeys/test-key/protectedResourcesSummary
string name = 5;
Type | Description |
ProtectedResourcesSummary.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ProtectedResourcesSummary.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ProtectedResourcesSummary.Builder |
clearProjectCount()
public ProtectedResourcesSummary.Builder clearProjectCount()
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;
Type | Description |
ProtectedResourcesSummary.Builder | This builder for chaining. |
clearResourceCount()
public ProtectedResourcesSummary.Builder clearResourceCount()
The total number of protected resources in the same Cloud organization as the key.
int64 resource_count = 1;
Type | Description |
ProtectedResourcesSummary.Builder | This builder for chaining. |
clearResourceTypes()
public ProtectedResourcesSummary.Builder clearResourceTypes()
Type | Description |
ProtectedResourcesSummary.Builder |
clone()
public ProtectedResourcesSummary.Builder clone()
Type | Description |
ProtectedResourcesSummary.Builder |
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;
Name | Description |
key | String |
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;
Name | Description |
key | String |
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;
Name | Description |
key | String |
Type | Description |
boolean |
getCloudProducts()
public Map<String,Long> getCloudProducts()
Use #getCloudProductsMap() instead.
getCloudProductsCount()
public int getCloudProductsCount()
The number of resources protected by the key grouped by Cloud product.
map<string, int64> cloud_products = 6;
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;
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;
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;
Name | Description |
key | String |
Type | Description |
long |
getDefaultInstanceForType()
public ProtectedResourcesSummary getDefaultInstanceForType()
Type | Description |
ProtectedResourcesSummary |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getLocations()
public Map<String,Long> getLocations()
Use #getLocationsMap() instead.
getLocationsCount()
public int getLocationsCount()
The number of resources protected by the key grouped by region.
map<string, int64> locations = 4;
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;
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;
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;
Name | Description |
key | String |
Type | Description |
long |
getMutableCloudProducts()
public Map<String,Long> getMutableCloudProducts()
Use alternate mutation accessors instead.
getMutableLocations()
public Map<String,Long> getMutableLocations()
Use alternate mutation accessors instead.
getMutableResourceTypes()
public Map<String,Long> getMutableResourceTypes()
Use alternate mutation accessors instead.
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;
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;
Type | Description |
ByteString | The bytes for name. |
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;
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;
Type | Description |
long | The resourceCount. |
getResourceTypes()
public Map<String,Long> getResourceTypes()
Use #getResourceTypesMap() instead.
getResourceTypesCount()
public int getResourceTypesCount()
The number of resources protected by the key grouped by resource type.
map<string, int64> resource_types = 3;
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;
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;
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;
Name | Description |
key | String |
Type | Description |
long |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(ProtectedResourcesSummary other)
public ProtectedResourcesSummary.Builder mergeFrom(ProtectedResourcesSummary other)
Name | Description |
other | ProtectedResourcesSummary |
Type | Description |
ProtectedResourcesSummary.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ProtectedResourcesSummary.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ProtectedResourcesSummary.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ProtectedResourcesSummary.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ProtectedResourcesSummary.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ProtectedResourcesSummary.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ProtectedResourcesSummary.Builder |
putAllCloudProducts(Map<String,Long> values)
public ProtectedResourcesSummary.Builder putAllCloudProducts(Map<String,Long> values)
The number of resources protected by the key grouped by Cloud product.
map<string, int64> cloud_products = 6;
Type | Description |
ProtectedResourcesSummary.Builder |
putAllLocations(Map<String,Long> values)
public ProtectedResourcesSummary.Builder putAllLocations(Map<String,Long> values)
The number of resources protected by the key grouped by region.
map<string, int64> locations = 4;
Type | Description |
ProtectedResourcesSummary.Builder |
putAllResourceTypes(Map<String,Long> values)
public ProtectedResourcesSummary.Builder putAllResourceTypes(Map<String,Long> values)
The number of resources protected by the key grouped by resource type.
map<string, int64> resource_types = 3;
Type | Description |
ProtectedResourcesSummary.Builder |
putCloudProducts(String key, long value)
public ProtectedResourcesSummary.Builder putCloudProducts(String key, long value)
The number of resources protected by the key grouped by Cloud product.
map<string, int64> cloud_products = 6;
Type | Description |
ProtectedResourcesSummary.Builder |
putLocations(String key, long value)
public ProtectedResourcesSummary.Builder putLocations(String key, long value)
The number of resources protected by the key grouped by region.
map<string, int64> locations = 4;
Type | Description |
ProtectedResourcesSummary.Builder |
putResourceTypes(String key, long value)
public ProtectedResourcesSummary.Builder putResourceTypes(String key, long value)
The number of resources protected by the key grouped by resource type.
map<string, int64> resource_types = 3;
Type | Description |
ProtectedResourcesSummary.Builder |
removeCloudProducts(String key)
public ProtectedResourcesSummary.Builder removeCloudProducts(String key)
The number of resources protected by the key grouped by Cloud product.
map<string, int64> cloud_products = 6;
Name | Description |
key | String |
Type | Description |
ProtectedResourcesSummary.Builder |
removeLocations(String key)
public ProtectedResourcesSummary.Builder removeLocations(String key)
The number of resources protected by the key grouped by region.
map<string, int64> locations = 4;
Name | Description |
key | String |
Type | Description |
ProtectedResourcesSummary.Builder |
removeResourceTypes(String key)
public ProtectedResourcesSummary.Builder removeResourceTypes(String key)
The number of resources protected by the key grouped by resource type.
map<string, int64> resource_types = 3;
Name | Description |
key | String |
Type | Description |
ProtectedResourcesSummary.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ProtectedResourcesSummary.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ProtectedResourcesSummary.Builder |
setName(String value)
public ProtectedResourcesSummary.Builder setName(String value)
The full name of the ProtectedResourcesSummary resource. Example: projects/test-project/locations/us/keyRings/test-keyring/cryptoKeys/test-key/protectedResourcesSummary
string name = 5;
Name | Description |
value | String The name to set. |
Type | Description |
ProtectedResourcesSummary.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public ProtectedResourcesSummary.Builder setNameBytes(ByteString value)
The full name of the ProtectedResourcesSummary resource. Example: projects/test-project/locations/us/keyRings/test-keyring/cryptoKeys/test-key/protectedResourcesSummary
string name = 5;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
ProtectedResourcesSummary.Builder | This builder for chaining. |
setProjectCount(int value)
public ProtectedResourcesSummary.Builder setProjectCount(int value)
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;
Name | Description |
value | int The projectCount to set. |
Type | Description |
ProtectedResourcesSummary.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ProtectedResourcesSummary.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ProtectedResourcesSummary.Builder |
setResourceCount(long value)
public ProtectedResourcesSummary.Builder setResourceCount(long value)
The total number of protected resources in the same Cloud organization as the key.
int64 resource_count = 1;
Name | Description |
value | long The resourceCount to set. |
Type | Description |
ProtectedResourcesSummary.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ProtectedResourcesSummary.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ProtectedResourcesSummary.Builder |