public final class StandardResourceMetadata extends GeneratedMessageV3 implements StandardResourceMetadataOrBuilder
The standard metadata of a cloud resource.Protobuf type
google.cloud.asset.v1p1beta1.StandardResourceMetadata
Modifier and Type | Class and Description |
---|---|
static class |
StandardResourceMetadata.Builder
The standard metadata of a cloud resource.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
ADDITIONAL_ATTRIBUTES_FIELD_NUMBER |
static int |
ASSET_TYPE_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
DISPLAY_NAME_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
LOCATION_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
NETWORK_TAGS_FIELD_NUMBER |
static int |
PROJECT_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int NAME_FIELD_NUMBER
public static final int ASSET_TYPE_FIELD_NUMBER
public static final int PROJECT_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int ADDITIONAL_ATTRIBUTES_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int NETWORK_TAGS_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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;
getName
in interface StandardResourceMetadataOrBuilder
public 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;
getNameBytes
in interface StandardResourceMetadataOrBuilder
public String getAssetType()
The type of this resource. For example: "compute.googleapis.com/Disk".
string asset_type = 2;
getAssetType
in interface StandardResourceMetadataOrBuilder
public ByteString getAssetTypeBytes()
The type of this resource. For example: "compute.googleapis.com/Disk".
string asset_type = 2;
getAssetTypeBytes
in interface StandardResourceMetadataOrBuilder
public String getProject()
The project that this resource belongs to, in the form of `projects/{project_number}`.
string project = 3;
getProject
in interface StandardResourceMetadataOrBuilder
public ByteString getProjectBytes()
The project that this resource belongs to, in the form of `projects/{project_number}`.
string project = 3;
getProjectBytes
in interface StandardResourceMetadataOrBuilder
public String getDisplayName()
The display name of this resource.
string display_name = 4;
getDisplayName
in interface StandardResourceMetadataOrBuilder
public ByteString getDisplayNameBytes()
The display name of this resource.
string display_name = 4;
getDisplayNameBytes
in interface StandardResourceMetadataOrBuilder
public String getDescription()
One or more paragraphs of text description of this resource. Maximum length could be up to 1M bytes.
string description = 5;
getDescription
in interface StandardResourceMetadataOrBuilder
public ByteString getDescriptionBytes()
One or more paragraphs of text description of this resource. Maximum length could be up to 1M bytes.
string description = 5;
getDescriptionBytes
in interface StandardResourceMetadataOrBuilder
public 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;
getAdditionalAttributesList
in interface StandardResourceMetadataOrBuilder
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;
getAdditionalAttributesCount
in interface StandardResourceMetadataOrBuilder
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;
getAdditionalAttributes
in interface StandardResourceMetadataOrBuilder
index
- The index of the element to return.public 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;
getAdditionalAttributesBytes
in interface StandardResourceMetadataOrBuilder
index
- The index of the value to return.public String getLocation()
Location can be "global", regional like "us-east1", or zonal like "us-west1-b".
string location = 11;
getLocation
in interface StandardResourceMetadataOrBuilder
public ByteString getLocationBytes()
Location can be "global", regional like "us-east1", or zonal like "us-west1-b".
string location = 11;
getLocationBytes
in interface StandardResourceMetadataOrBuilder
public int getLabelsCount()
StandardResourceMetadataOrBuilder
Labels associated with this resource. See [Labelling and grouping GCP resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) for more information.
map<string, string> labels = 12;
getLabelsCount
in interface StandardResourceMetadataOrBuilder
public boolean containsLabels(String key)
Labels associated with this resource. See [Labelling and grouping GCP 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
in interface StandardResourceMetadataOrBuilder
@Deprecated public Map<String,String> getLabels()
getLabelsMap()
instead.getLabels
in interface StandardResourceMetadataOrBuilder
public Map<String,String> getLabelsMap()
Labels associated with this resource. See [Labelling and grouping GCP resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) for more information.
map<string, string> labels = 12;
getLabelsMap
in interface StandardResourceMetadataOrBuilder
public String getLabelsOrDefault(String key, String defaultValue)
Labels associated with this resource. See [Labelling and grouping GCP 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
in interface StandardResourceMetadataOrBuilder
public String getLabelsOrThrow(String key)
Labels associated with this resource. See [Labelling and grouping GCP 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
in interface StandardResourceMetadataOrBuilder
public ProtocolStringList getNetworkTagsList()
Network tags associated with this resource. Like labels, network tags are a type of annotations used to group GCP resources. See [Labelling GCP resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) for more information.
repeated string network_tags = 13;
getNetworkTagsList
in interface StandardResourceMetadataOrBuilder
public int getNetworkTagsCount()
Network tags associated with this resource. Like labels, network tags are a type of annotations used to group GCP resources. See [Labelling GCP resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) for more information.
repeated string network_tags = 13;
getNetworkTagsCount
in interface StandardResourceMetadataOrBuilder
public String getNetworkTags(int index)
Network tags associated with this resource. Like labels, network tags are a type of annotations used to group GCP resources. See [Labelling GCP resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) for more information.
repeated string network_tags = 13;
getNetworkTags
in interface StandardResourceMetadataOrBuilder
index
- The index of the element to return.public ByteString getNetworkTagsBytes(int index)
Network tags associated with this resource. Like labels, network tags are a type of annotations used to group GCP resources. See [Labelling GCP resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) for more information.
repeated string network_tags = 13;
getNetworkTagsBytes
in interface StandardResourceMetadataOrBuilder
index
- The index of the value to return.public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static StandardResourceMetadata parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static StandardResourceMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static StandardResourceMetadata parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static StandardResourceMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static StandardResourceMetadata parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static StandardResourceMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static StandardResourceMetadata parseFrom(InputStream input) throws IOException
IOException
public static StandardResourceMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static StandardResourceMetadata parseDelimitedFrom(InputStream input) throws IOException
IOException
public static StandardResourceMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static StandardResourceMetadata parseFrom(CodedInputStream input) throws IOException
IOException
public static StandardResourceMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public StandardResourceMetadata.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static StandardResourceMetadata.Builder newBuilder()
public static StandardResourceMetadata.Builder newBuilder(StandardResourceMetadata prototype)
public StandardResourceMetadata.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected StandardResourceMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static StandardResourceMetadata getDefaultInstance()
public static Parser<StandardResourceMetadata> parser()
public Parser<StandardResourceMetadata> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public StandardResourceMetadata getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.