Class ProtectedResourcesSummary

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.kms.inventory.v1.ProtectedResourcesSummary
All Implemented Interfaces:
ProtectedResourcesSummaryOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ProtectedResourcesSummary extends com.google.protobuf.GeneratedMessage implements ProtectedResourcesSummaryOrBuilder
 Aggregate information about the resources protected by a Cloud KMS key in the
 same Cloud organization/project as the key.
 
Protobuf type google.cloud.kms.inventory.v1.ProtectedResourcesSummary
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Aggregate information about the resources protected by a Cloud KMS key in the same Cloud organization/project as the key.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    The number of resources protected by the key grouped by Cloud product.
    boolean
    The number of resources protected by the key grouped by region.
    boolean
    The number of resources protected by the key grouped by resource type.
    boolean
     
    Deprecated.
    int
    The number of resources protected by the key grouped by Cloud product.
    The number of resources protected by the key grouped by Cloud product.
    long
    getCloudProductsOrDefault(String key, long defaultValue)
    The number of resources protected by the key grouped by Cloud product.
    long
    The number of resources protected by the key grouped by Cloud product.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    Deprecated.
    int
    The number of resources protected by the key grouped by region.
    The number of resources protected by the key grouped by region.
    long
    getLocationsOrDefault(String key, long defaultValue)
    The number of resources protected by the key grouped by region.
    long
    The number of resources protected by the key grouped by region.
    The full name of the ProtectedResourcesSummary resource.
    com.google.protobuf.ByteString
    The full name of the ProtectedResourcesSummary resource.
    com.google.protobuf.Parser<ProtectedResourcesSummary>
     
    int
    The number of distinct Cloud projects in the same Cloud organization as the key that have resources protected by the key.
    long
    The total number of protected resources in the same Cloud organization as the key.
    Deprecated.
    int
    The number of resources protected by the key grouped by resource type.
    The number of resources protected by the key grouped by resource type.
    long
    getResourceTypesOrDefault(String key, long defaultValue)
    The number of resources protected by the key grouped by resource type.
    long
    The number of resources protected by the key grouped by resource type.
    int
     
    getWarnings(int index)
    Warning messages for the state of response [ProtectedResourcesSummary][google.cloud.kms.inventory.v1.ProtectedResourcesSummary] For example, if the organization service account is not configured, INSUFFICIENT_PERMISSIONS_PARTIAL_DATA warning will be returned.
    int
    Warning messages for the state of response [ProtectedResourcesSummary][google.cloud.kms.inventory.v1.ProtectedResourcesSummary] For example, if the organization service account is not configured, INSUFFICIENT_PERMISSIONS_PARTIAL_DATA warning will be returned.
    Warning messages for the state of response [ProtectedResourcesSummary][google.cloud.kms.inventory.v1.ProtectedResourcesSummary] For example, if the organization service account is not configured, INSUFFICIENT_PERMISSIONS_PARTIAL_DATA warning will be returned.
    Warning messages for the state of response [ProtectedResourcesSummary][google.cloud.kms.inventory.v1.ProtectedResourcesSummary] For example, if the organization service account is not configured, INSUFFICIENT_PERMISSIONS_PARTIAL_DATA warning will be returned.
    Warning messages for the state of response [ProtectedResourcesSummary][google.cloud.kms.inventory.v1.ProtectedResourcesSummary] For example, if the organization service account is not configured, INSUFFICIENT_PERMISSIONS_PARTIAL_DATA warning will be returned.
    int
     
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    protected com.google.protobuf.MapFieldReflectionAccessor
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<ProtectedResourcesSummary>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • RESOURCE_COUNT_FIELD_NUMBER

      public static final int RESOURCE_COUNT_FIELD_NUMBER
      See Also:
    • PROJECT_COUNT_FIELD_NUMBER

      public static final int PROJECT_COUNT_FIELD_NUMBER
      See Also:
    • RESOURCE_TYPES_FIELD_NUMBER

      public static final int RESOURCE_TYPES_FIELD_NUMBER
      See Also:
    • CLOUD_PRODUCTS_FIELD_NUMBER

      public static final int CLOUD_PRODUCTS_FIELD_NUMBER
      See Also:
    • LOCATIONS_FIELD_NUMBER

      public static final int LOCATIONS_FIELD_NUMBER
      See Also:
    • WARNINGS_FIELD_NUMBER

      public static final int WARNINGS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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;
      Specified by:
      getName in interface ProtectedResourcesSummaryOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.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;
      Specified by:
      getNameBytes in interface ProtectedResourcesSummaryOrBuilder
      Returns:
      The bytes for name.
    • getResourceCount

      public long getResourceCount()
       The total number of protected resources in the same Cloud organization as
       the key.
       
      int64 resource_count = 1;
      Specified by:
      getResourceCount in interface ProtectedResourcesSummaryOrBuilder
      Returns:
      The resourceCount.
    • 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;
      Specified by:
      getProjectCount in interface ProtectedResourcesSummaryOrBuilder
      Returns:
      The projectCount.
    • getResourceTypesCount

      public int getResourceTypesCount()
      Description copied from interface: ProtectedResourcesSummaryOrBuilder
       The number of resources protected by the key grouped by resource type.
       
      map<string, int64> resource_types = 3;
      Specified by:
      getResourceTypesCount in interface ProtectedResourcesSummaryOrBuilder
    • containsResourceTypes

      public boolean containsResourceTypes(String key)
       The number of resources protected by the key grouped by resource type.
       
      map<string, int64> resource_types = 3;
      Specified by:
      containsResourceTypes in interface ProtectedResourcesSummaryOrBuilder
    • getResourceTypes

      @Deprecated public Map<String,Long> getResourceTypes()
      Deprecated.
      Specified by:
      getResourceTypes in interface ProtectedResourcesSummaryOrBuilder
    • getResourceTypesMap

      public Map<String,Long> getResourceTypesMap()
       The number of resources protected by the key grouped by resource type.
       
      map<string, int64> resource_types = 3;
      Specified by:
      getResourceTypesMap in interface ProtectedResourcesSummaryOrBuilder
    • getResourceTypesOrDefault

      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;
      Specified by:
      getResourceTypesOrDefault in interface ProtectedResourcesSummaryOrBuilder
    • getResourceTypesOrThrow

      public long getResourceTypesOrThrow(String key)
       The number of resources protected by the key grouped by resource type.
       
      map<string, int64> resource_types = 3;
      Specified by:
      getResourceTypesOrThrow in interface ProtectedResourcesSummaryOrBuilder
    • getCloudProductsCount

      public int getCloudProductsCount()
      Description copied from interface: ProtectedResourcesSummaryOrBuilder
       The number of resources protected by the key grouped by Cloud product.
       
      map<string, int64> cloud_products = 6;
      Specified by:
      getCloudProductsCount in interface ProtectedResourcesSummaryOrBuilder
    • containsCloudProducts

      public boolean containsCloudProducts(String key)
       The number of resources protected by the key grouped by Cloud product.
       
      map<string, int64> cloud_products = 6;
      Specified by:
      containsCloudProducts in interface ProtectedResourcesSummaryOrBuilder
    • getCloudProducts

      @Deprecated public Map<String,Long> getCloudProducts()
      Deprecated.
      Specified by:
      getCloudProducts in interface ProtectedResourcesSummaryOrBuilder
    • getCloudProductsMap

      public Map<String,Long> getCloudProductsMap()
       The number of resources protected by the key grouped by Cloud product.
       
      map<string, int64> cloud_products = 6;
      Specified by:
      getCloudProductsMap in interface ProtectedResourcesSummaryOrBuilder
    • getCloudProductsOrDefault

      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;
      Specified by:
      getCloudProductsOrDefault in interface ProtectedResourcesSummaryOrBuilder
    • getCloudProductsOrThrow

      public long getCloudProductsOrThrow(String key)
       The number of resources protected by the key grouped by Cloud product.
       
      map<string, int64> cloud_products = 6;
      Specified by:
      getCloudProductsOrThrow in interface ProtectedResourcesSummaryOrBuilder
    • getLocationsCount

      public int getLocationsCount()
      Description copied from interface: ProtectedResourcesSummaryOrBuilder
       The number of resources protected by the key grouped by region.
       
      map<string, int64> locations = 4;
      Specified by:
      getLocationsCount in interface ProtectedResourcesSummaryOrBuilder
    • containsLocations

      public boolean containsLocations(String key)
       The number of resources protected by the key grouped by region.
       
      map<string, int64> locations = 4;
      Specified by:
      containsLocations in interface ProtectedResourcesSummaryOrBuilder
    • getLocations

      @Deprecated public Map<String,Long> getLocations()
      Deprecated.
      Use getLocationsMap() instead.
      Specified by:
      getLocations in interface ProtectedResourcesSummaryOrBuilder
    • getLocationsMap

      public Map<String,Long> getLocationsMap()
       The number of resources protected by the key grouped by region.
       
      map<string, int64> locations = 4;
      Specified by:
      getLocationsMap in interface ProtectedResourcesSummaryOrBuilder
    • getLocationsOrDefault

      public long getLocationsOrDefault(String key, long defaultValue)
       The number of resources protected by the key grouped by region.
       
      map<string, int64> locations = 4;
      Specified by:
      getLocationsOrDefault in interface ProtectedResourcesSummaryOrBuilder
    • getLocationsOrThrow

      public long getLocationsOrThrow(String key)
       The number of resources protected by the key grouped by region.
       
      map<string, int64> locations = 4;
      Specified by:
      getLocationsOrThrow in interface ProtectedResourcesSummaryOrBuilder
    • getWarningsList

      public List<Warning> getWarningsList()
       Warning messages for the state of response
       [ProtectedResourcesSummary][google.cloud.kms.inventory.v1.ProtectedResourcesSummary]
       For example, if the organization service account is not configured,
       INSUFFICIENT_PERMISSIONS_PARTIAL_DATA warning will be returned.
       
      repeated .google.cloud.kms.inventory.v1.Warning warnings = 7;
      Specified by:
      getWarningsList in interface ProtectedResourcesSummaryOrBuilder
    • getWarningsOrBuilderList

      public List<? extends WarningOrBuilder> getWarningsOrBuilderList()
       Warning messages for the state of response
       [ProtectedResourcesSummary][google.cloud.kms.inventory.v1.ProtectedResourcesSummary]
       For example, if the organization service account is not configured,
       INSUFFICIENT_PERMISSIONS_PARTIAL_DATA warning will be returned.
       
      repeated .google.cloud.kms.inventory.v1.Warning warnings = 7;
      Specified by:
      getWarningsOrBuilderList in interface ProtectedResourcesSummaryOrBuilder
    • getWarningsCount

      public int getWarningsCount()
       Warning messages for the state of response
       [ProtectedResourcesSummary][google.cloud.kms.inventory.v1.ProtectedResourcesSummary]
       For example, if the organization service account is not configured,
       INSUFFICIENT_PERMISSIONS_PARTIAL_DATA warning will be returned.
       
      repeated .google.cloud.kms.inventory.v1.Warning warnings = 7;
      Specified by:
      getWarningsCount in interface ProtectedResourcesSummaryOrBuilder
    • getWarnings

      public Warning getWarnings(int index)
       Warning messages for the state of response
       [ProtectedResourcesSummary][google.cloud.kms.inventory.v1.ProtectedResourcesSummary]
       For example, if the organization service account is not configured,
       INSUFFICIENT_PERMISSIONS_PARTIAL_DATA warning will be returned.
       
      repeated .google.cloud.kms.inventory.v1.Warning warnings = 7;
      Specified by:
      getWarnings in interface ProtectedResourcesSummaryOrBuilder
    • getWarningsOrBuilder

      public WarningOrBuilder getWarningsOrBuilder(int index)
       Warning messages for the state of response
       [ProtectedResourcesSummary][google.cloud.kms.inventory.v1.ProtectedResourcesSummary]
       For example, if the organization service account is not configured,
       INSUFFICIENT_PERMISSIONS_PARTIAL_DATA warning will be returned.
       
      repeated .google.cloud.kms.inventory.v1.Warning warnings = 7;
      Specified by:
      getWarningsOrBuilder in interface ProtectedResourcesSummaryOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ProtectedResourcesSummary parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProtectedResourcesSummary parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProtectedResourcesSummary parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProtectedResourcesSummary parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProtectedResourcesSummary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProtectedResourcesSummary parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProtectedResourcesSummary parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ProtectedResourcesSummary parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ProtectedResourcesSummary parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ProtectedResourcesSummary parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ProtectedResourcesSummary parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ProtectedResourcesSummary parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ProtectedResourcesSummary.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ProtectedResourcesSummary.Builder newBuilder()
    • newBuilder

      public static ProtectedResourcesSummary.Builder newBuilder(ProtectedResourcesSummary prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ProtectedResourcesSummary.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ProtectedResourcesSummary getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ProtectedResourcesSummary> parser()
    • getParserForType

      public com.google.protobuf.Parser<ProtectedResourcesSummary> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ProtectedResourcesSummary getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder