Interface StandardResourceMetadataOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
StandardResourceMetadata, StandardResourceMetadata.Builder

@Generated public interface StandardResourceMetadataOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getName

      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;
      Returns:
      The name.
    • getNameBytes

      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;
      Returns:
      The bytes for name.
    • getAssetType

      String getAssetType()
       The type of this resource.
       For example: "compute.googleapis.com/Disk".
       
      string asset_type = 2;
      Returns:
      The assetType.
    • getAssetTypeBytes

      com.google.protobuf.ByteString getAssetTypeBytes()
       The type of this resource.
       For example: "compute.googleapis.com/Disk".
       
      string asset_type = 2;
      Returns:
      The bytes for assetType.
    • getProject

      String getProject()
       The project that this resource belongs to, in the form of
       `projects/{project_number}`.
       
      string project = 3;
      Returns:
      The project.
    • getProjectBytes

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

      String getDisplayName()
       The display name of this resource.
       
      string display_name = 4;
      Returns:
      The displayName.
    • getDisplayNameBytes

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

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

      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;
      Returns:
      The bytes for description.
    • getAdditionalAttributesList

      List<String> 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;
      Returns:
      A list containing the additionalAttributes.
    • getAdditionalAttributesCount

      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;
      Returns:
      The count of additionalAttributes.
    • getAdditionalAttributes

      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;
      Parameters:
      index - The index of the element to return.
      Returns:
      The additionalAttributes at the given index.
    • getAdditionalAttributesBytes

      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;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the additionalAttributes at the given index.
    • getLocation

      String getLocation()
       Location can be "global", regional like "us-east1", or zonal like
       "us-west1-b".
       
      string location = 11;
      Returns:
      The location.
    • getLocationBytes

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

      int getLabelsCount()
       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;
    • containsLabels

      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;
    • getLabels

      Deprecated.
      Use getLabelsMap() instead.
    • getLabelsMap

      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;
    • getLabelsOrDefault

      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;
    • getLabelsOrThrow

      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;
    • getNetworkTagsList

      List<String> 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;
      Returns:
      A list containing the networkTags.
    • getNetworkTagsCount

      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;
      Returns:
      The count of networkTags.
    • getNetworkTags

      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;
      Parameters:
      index - The index of the element to return.
      Returns:
      The networkTags at the given index.
    • getNetworkTagsBytes

      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;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the networkTags at the given index.