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
@Generated
public interface StandardResourceMetadataOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(String key) Labels associated with this resource.getAdditionalAttributes(int index) Additional searchable attributes of this resource.com.google.protobuf.ByteStringgetAdditionalAttributesBytes(int index) Additional searchable attributes of this resource.intAdditional searchable attributes of this resource.Additional searchable attributes of this resource.The type of this resource.com.google.protobuf.ByteStringThe type of this resource.One or more paragraphs of text description of this resource.com.google.protobuf.ByteStringOne or more paragraphs of text description of this resource.The display name of this resource.com.google.protobuf.ByteStringThe display name of this resource.Deprecated.intLabels associated with this resource.Labels associated with this resource.getLabelsOrDefault(String key, String defaultValue) Labels associated with this resource.getLabelsOrThrow(String key) Labels associated with this resource.Location can be "global", regional like "us-east1", or zonal like "us-west1-b".com.google.protobuf.ByteStringLocation can be "global", regional like "us-east1", or zonal like "us-west1-b".getName()The full resource name.com.google.protobuf.ByteStringThe full resource name.getNetworkTags(int index) Network tags associated with this resource.com.google.protobuf.ByteStringgetNetworkTagsBytes(int index) Network tags associated with this resource.intNetwork tags associated with this resource.Network tags associated with this resource.The project that this resource belongs to, in the form of `projects/{project_number}`.com.google.protobuf.ByteStringThe project that this resource belongs to, in the form of `projects/{project_number}`.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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
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
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
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.UsegetLabelsMap()instead. -
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
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
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
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
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.
-