Class StandardResourceMetadata

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.asset.v1p1beta1.StandardResourceMetadata
All Implemented Interfaces:
StandardResourceMetadataOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class StandardResourceMetadata extends com.google.protobuf.GeneratedMessage implements StandardResourceMetadataOrBuilder
 The standard metadata of a cloud resource.
 
Protobuf type google.cloud.asset.v1p1beta1.StandardResourceMetadata
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • ASSET_TYPE_FIELD_NUMBER

      public static final int ASSET_TYPE_FIELD_NUMBER
      See Also:
    • PROJECT_FIELD_NUMBER

      public static final int PROJECT_FIELD_NUMBER
      See Also:
    • DISPLAY_NAME_FIELD_NUMBER

      public static final int DISPLAY_NAME_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • ADDITIONAL_ATTRIBUTES_FIELD_NUMBER

      public static final int ADDITIONAL_ATTRIBUTES_FIELD_NUMBER
      See Also:
    • LOCATION_FIELD_NUMBER

      public static final int LOCATION_FIELD_NUMBER
      See Also:
    • LABELS_FIELD_NUMBER

      public static final int LABELS_FIELD_NUMBER
      See Also:
    • NETWORK_TAGS_FIELD_NUMBER

      public static final int NETWORK_TAGS_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 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.
    • getAssetType

      public String getAssetType()
       The type of this resource.
       For example: "compute.googleapis.com/Disk".
       
      string asset_type = 2;
      Specified by:
      getAssetType in interface StandardResourceMetadataOrBuilder
      Returns:
      The assetType.
    • 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.
    • getProject

      public String getProject()
       The project that this resource belongs to, in the form of
       `projects/{project_number}`.
       
      string project = 3;
      Specified by:
      getProject in interface StandardResourceMetadataOrBuilder
      Returns:
      The project.
    • 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.
    • getDisplayName

      public String getDisplayName()
       The display name of this resource.
       
      string display_name = 4;
      Specified by:
      getDisplayName in interface StandardResourceMetadataOrBuilder
      Returns:
      The displayName.
    • 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.
    • getLocation

      public String getLocation()
       Location can be "global", regional like "us-east1", or zonal like
       "us-west1-b".
       
      string location = 11;
      Specified by:
      getLocation in interface StandardResourceMetadataOrBuilder
      Returns:
      The location.
    • 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
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels 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.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 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
    • parseFrom

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

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

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

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

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

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

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

      public static StandardResourceMetadata.Builder newBuilder()
    • newBuilder

      public static StandardResourceMetadata.Builder newBuilder(StandardResourceMetadata prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static StandardResourceMetadata getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<StandardResourceMetadata> parser()
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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