Package com.google.cloud.asset.v1p1beta1
Interface StandardResourceMetadataOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
StandardResourceMetadata
,StandardResourceMetadata.Builder
public interface StandardResourceMetadataOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
Labels associated with this resource.String
getAdditionalAttributes(int index)
Additional searchable attributes of this resource.com.google.protobuf.ByteString
getAdditionalAttributesBytes(int index)
Additional searchable attributes of this resource.int
getAdditionalAttributesCount()
Additional searchable attributes of this resource.List<String>
getAdditionalAttributesList()
Additional searchable attributes of this resource.String
getAssetType()
The type of this resource.com.google.protobuf.ByteString
getAssetTypeBytes()
The type of this resource.String
getDescription()
One or more paragraphs of text description of this resource.com.google.protobuf.ByteString
getDescriptionBytes()
One or more paragraphs of text description of this resource.String
getDisplayName()
The display name of this resource.com.google.protobuf.ByteString
getDisplayNameBytes()
The display name of this resource.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Labels associated with this resource.Map<String,String>
getLabelsMap()
Labels associated with this resource.String
getLabelsOrDefault(String key, String defaultValue)
Labels associated with this resource.String
getLabelsOrThrow(String key)
Labels associated with this resource.String
getLocation()
Location can be "global", regional like "us-east1", or zonal like "us-west1-b".com.google.protobuf.ByteString
getLocationBytes()
Location can be "global", regional like "us-east1", or zonal like "us-west1-b".String
getName()
The full resource name.com.google.protobuf.ByteString
getNameBytes()
The full resource name.String
getNetworkTags(int index)
Network tags associated with this resource.com.google.protobuf.ByteString
getNetworkTagsBytes(int index)
Network tags associated with this resource.int
getNetworkTagsCount()
Network tags associated with this resource.List<String>
getNetworkTagsList()
Network tags associated with this resource.String
getProject()
The project that this resource belongs to, in the form of `projects/{project_number}`.com.google.protobuf.ByteString
getProjectBytes()
The project that this resource belongs to, in the form of `projects/{project_number}`.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
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 Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
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.
-
-