Class StandardResourceMetadata

  • All Implemented Interfaces:
    StandardResourceMetadataOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class StandardResourceMetadata
    extends com.google.protobuf.GeneratedMessageV3
    implements StandardResourceMetadataOrBuilder
     The standard metadata of a cloud resource.
     
    Protobuf type google.cloud.asset.v1p1beta1.StandardResourceMetadata
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getName

        public String getName()
         The full resource name. For example:
         `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
         See [Resource
         Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
         for more information.
         
        string name = 1;
        Specified by:
        getName in interface StandardResourceMetadataOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The full resource name. For example:
         `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
         See [Resource
         Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
         for more information.
         
        string name = 1;
        Specified by:
        getNameBytes in interface StandardResourceMetadataOrBuilder
        Returns:
        The bytes for name.
      • getAssetTypeBytes

        public com.google.protobuf.ByteString getAssetTypeBytes()
         The type of this resource.
         For example: "compute.googleapis.com/Disk".
         
        string asset_type = 2;
        Specified by:
        getAssetTypeBytes in interface StandardResourceMetadataOrBuilder
        Returns:
        The bytes for assetType.
      • getProjectBytes

        public com.google.protobuf.ByteString getProjectBytes()
         The project that this resource belongs to, in the form of
         `projects/{project_number}`.
         
        string project = 3;
        Specified by:
        getProjectBytes in interface StandardResourceMetadataOrBuilder
        Returns:
        The bytes for project.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         The display name of this resource.
         
        string display_name = 4;
        Specified by:
        getDisplayNameBytes in interface StandardResourceMetadataOrBuilder
        Returns:
        The bytes for displayName.
      • getDescription

        public String getDescription()
         One or more paragraphs of text description of this resource. Maximum length
         could be up to 1M bytes.
         
        string description = 5;
        Specified by:
        getDescription in interface StandardResourceMetadataOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         One or more paragraphs of text description of this resource. Maximum length
         could be up to 1M bytes.
         
        string description = 5;
        Specified by:
        getDescriptionBytes in interface StandardResourceMetadataOrBuilder
        Returns:
        The bytes for description.
      • getAdditionalAttributesList

        public com.google.protobuf.ProtocolStringList getAdditionalAttributesList()
         Additional searchable attributes of this resource.
         Informational only. The exact set of attributes is subject to change.
         For example: project id, DNS name etc.
         
        repeated string additional_attributes = 10;
        Specified by:
        getAdditionalAttributesList in interface StandardResourceMetadataOrBuilder
        Returns:
        A list containing the additionalAttributes.
      • getAdditionalAttributesCount

        public int getAdditionalAttributesCount()
         Additional searchable attributes of this resource.
         Informational only. The exact set of attributes is subject to change.
         For example: project id, DNS name etc.
         
        repeated string additional_attributes = 10;
        Specified by:
        getAdditionalAttributesCount in interface StandardResourceMetadataOrBuilder
        Returns:
        The count of additionalAttributes.
      • getAdditionalAttributes

        public String getAdditionalAttributes​(int index)
         Additional searchable attributes of this resource.
         Informational only. The exact set of attributes is subject to change.
         For example: project id, DNS name etc.
         
        repeated string additional_attributes = 10;
        Specified by:
        getAdditionalAttributes in interface StandardResourceMetadataOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The additionalAttributes at the given index.
      • getAdditionalAttributesBytes

        public com.google.protobuf.ByteString getAdditionalAttributesBytes​(int index)
         Additional searchable attributes of this resource.
         Informational only. The exact set of attributes is subject to change.
         For example: project id, DNS name etc.
         
        repeated string additional_attributes = 10;
        Specified by:
        getAdditionalAttributesBytes in interface StandardResourceMetadataOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the additionalAttributes at the given index.
      • getLocationBytes

        public com.google.protobuf.ByteString getLocationBytes()
         Location can be "global", regional like "us-east1", or zonal like
         "us-west1-b".
         
        string location = 11;
        Specified by:
        getLocationBytes in interface StandardResourceMetadataOrBuilder
        Returns:
        The bytes for location.
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: StandardResourceMetadataOrBuilder
         Labels associated with this resource. See [Labelling and grouping Google
         Cloud
         resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
         for more information.
         
        map<string, string> labels = 12;
        Specified by:
        getLabelsCount in interface StandardResourceMetadataOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         Labels associated with this resource. See [Labelling and grouping Google
         Cloud
         resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
         for more information.
         
        map<string, string> labels = 12;
        Specified by:
        containsLabels in interface StandardResourceMetadataOrBuilder
      • getLabelsMap

        public Map<String,​String> getLabelsMap()
         Labels associated with this resource. See [Labelling and grouping Google
         Cloud
         resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
         for more information.
         
        map<string, string> labels = 12;
        Specified by:
        getLabelsMap in interface StandardResourceMetadataOrBuilder
      • getLabelsOrDefault

        public String getLabelsOrDefault​(String key,
                                         String defaultValue)
         Labels associated with this resource. See [Labelling and grouping Google
         Cloud
         resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
         for more information.
         
        map<string, string> labels = 12;
        Specified by:
        getLabelsOrDefault in interface StandardResourceMetadataOrBuilder
      • getLabelsOrThrow

        public String getLabelsOrThrow​(String key)
         Labels associated with this resource. See [Labelling and grouping Google
         Cloud
         resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
         for more information.
         
        map<string, string> labels = 12;
        Specified by:
        getLabelsOrThrow in interface StandardResourceMetadataOrBuilder
      • getNetworkTagsList

        public com.google.protobuf.ProtocolStringList getNetworkTagsList()
         Network tags associated with this resource. Like labels, network tags are a
         type of annotations used to group Google Cloud resources. See [Labelling
         Google Cloud
         resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
         for more information.
         
        repeated string network_tags = 13;
        Specified by:
        getNetworkTagsList in interface StandardResourceMetadataOrBuilder
        Returns:
        A list containing the networkTags.
      • getNetworkTagsCount

        public int getNetworkTagsCount()
         Network tags associated with this resource. Like labels, network tags are a
         type of annotations used to group Google Cloud resources. See [Labelling
         Google Cloud
         resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
         for more information.
         
        repeated string network_tags = 13;
        Specified by:
        getNetworkTagsCount in interface StandardResourceMetadataOrBuilder
        Returns:
        The count of networkTags.
      • getNetworkTags

        public String getNetworkTags​(int index)
         Network tags associated with this resource. Like labels, network tags are a
         type of annotations used to group Google Cloud resources. See [Labelling
         Google Cloud
         resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
         for more information.
         
        repeated string network_tags = 13;
        Specified by:
        getNetworkTags in interface StandardResourceMetadataOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The networkTags at the given index.
      • getNetworkTagsBytes

        public com.google.protobuf.ByteString getNetworkTagsBytes​(int index)
         Network tags associated with this resource. Like labels, network tags are a
         type of annotations used to group Google Cloud resources. See [Labelling
         Google Cloud
         resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
         for more information.
         
        repeated string network_tags = 13;
        Specified by:
        getNetworkTagsBytes in interface StandardResourceMetadataOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the networkTags at the given index.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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 StandardResourceMetadata parseFrom​(ByteBuffer data)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

        protected StandardResourceMetadata.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<StandardResourceMetadata> 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.GeneratedMessageV3
      • getDefaultInstanceForType

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