Package com.google.cloud.asset.v1p1beta1
Class StandardResourceMetadata.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
- com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder
-
- All Implemented Interfaces:
StandardResourceMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- StandardResourceMetadata
public static final class StandardResourceMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder> implements StandardResourceMetadataOrBuilder
The standard metadata of a cloud resource.
Protobuf typegoogle.cloud.asset.v1p1beta1.StandardResourceMetadata
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StandardResourceMetadata.BuilderaddAdditionalAttributes(String value)Additional searchable attributes of this resource.StandardResourceMetadata.BuilderaddAdditionalAttributesBytes(com.google.protobuf.ByteString value)Additional searchable attributes of this resource.StandardResourceMetadata.BuilderaddAllAdditionalAttributes(Iterable<String> values)Additional searchable attributes of this resource.StandardResourceMetadata.BuilderaddAllNetworkTags(Iterable<String> values)Network tags associated with this resource.StandardResourceMetadata.BuilderaddNetworkTags(String value)Network tags associated with this resource.StandardResourceMetadata.BuilderaddNetworkTagsBytes(com.google.protobuf.ByteString value)Network tags associated with this resource.StandardResourceMetadata.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)StandardResourceMetadatabuild()StandardResourceMetadatabuildPartial()StandardResourceMetadata.Builderclear()StandardResourceMetadata.BuilderclearAdditionalAttributes()Additional searchable attributes of this resource.StandardResourceMetadata.BuilderclearAssetType()The type of this resource.StandardResourceMetadata.BuilderclearDescription()One or more paragraphs of text description of this resource.StandardResourceMetadata.BuilderclearDisplayName()The display name of this resource.StandardResourceMetadata.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)StandardResourceMetadata.BuilderclearLabels()StandardResourceMetadata.BuilderclearLocation()Location can be "global", regional like "us-east1", or zonal like "us-west1-b".StandardResourceMetadata.BuilderclearName()The full resource name.StandardResourceMetadata.BuilderclearNetworkTags()Network tags associated with this resource.StandardResourceMetadata.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)StandardResourceMetadata.BuilderclearProject()The project that this resource belongs to, in the form of `projects/{project_number}`.StandardResourceMetadata.Builderclone()booleancontainsLabels(String key)Labels associated with this resource.StringgetAdditionalAttributes(int index)Additional searchable attributes of this resource.com.google.protobuf.ByteStringgetAdditionalAttributesBytes(int index)Additional searchable attributes of this resource.intgetAdditionalAttributesCount()Additional searchable attributes of this resource.com.google.protobuf.ProtocolStringListgetAdditionalAttributesList()Additional searchable attributes of this resource.StringgetAssetType()The type of this resource.com.google.protobuf.ByteStringgetAssetTypeBytes()The type of this resource.StandardResourceMetadatagetDefaultInstanceForType()StringgetDescription()One or more paragraphs of text description of this resource.com.google.protobuf.ByteStringgetDescriptionBytes()One or more paragraphs of text description of this resource.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDisplayName()The display name of this resource.com.google.protobuf.ByteStringgetDisplayNameBytes()The display name of this resource.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Labels associated with this resource.Map<String,String>getLabelsMap()Labels associated with this resource.StringgetLabelsOrDefault(String key, String defaultValue)Labels associated with this resource.StringgetLabelsOrThrow(String key)Labels associated with this resource.StringgetLocation()Location can be "global", regional like "us-east1", or zonal like "us-west1-b".com.google.protobuf.ByteStringgetLocationBytes()Location can be "global", regional like "us-east1", or zonal like "us-west1-b".Map<String,String>getMutableLabels()Deprecated.StringgetName()The full resource name.com.google.protobuf.ByteStringgetNameBytes()The full resource name.StringgetNetworkTags(int index)Network tags associated with this resource.com.google.protobuf.ByteStringgetNetworkTagsBytes(int index)Network tags associated with this resource.intgetNetworkTagsCount()Network tags associated with this resource.com.google.protobuf.ProtocolStringListgetNetworkTagsList()Network tags associated with this resource.StringgetProject()The project that this resource belongs to, in the form of `projects/{project_number}`.com.google.protobuf.ByteStringgetProjectBytes()The project that this resource belongs to, in the form of `projects/{project_number}`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()StandardResourceMetadata.BuildermergeFrom(StandardResourceMetadata other)StandardResourceMetadata.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)StandardResourceMetadata.BuildermergeFrom(com.google.protobuf.Message other)StandardResourceMetadata.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)StandardResourceMetadata.BuilderputAllLabels(Map<String,String> values)Labels associated with this resource.StandardResourceMetadata.BuilderputLabels(String key, String value)Labels associated with this resource.StandardResourceMetadata.BuilderremoveLabels(String key)Labels associated with this resource.StandardResourceMetadata.BuildersetAdditionalAttributes(int index, String value)Additional searchable attributes of this resource.StandardResourceMetadata.BuildersetAssetType(String value)The type of this resource.StandardResourceMetadata.BuildersetAssetTypeBytes(com.google.protobuf.ByteString value)The type of this resource.StandardResourceMetadata.BuildersetDescription(String value)One or more paragraphs of text description of this resource.StandardResourceMetadata.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)One or more paragraphs of text description of this resource.StandardResourceMetadata.BuildersetDisplayName(String value)The display name of this resource.StandardResourceMetadata.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)The display name of this resource.StandardResourceMetadata.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)StandardResourceMetadata.BuildersetLocation(String value)Location can be "global", regional like "us-east1", or zonal like "us-west1-b".StandardResourceMetadata.BuildersetLocationBytes(com.google.protobuf.ByteString value)Location can be "global", regional like "us-east1", or zonal like "us-west1-b".StandardResourceMetadata.BuildersetName(String value)The full resource name.StandardResourceMetadata.BuildersetNameBytes(com.google.protobuf.ByteString value)The full resource name.StandardResourceMetadata.BuildersetNetworkTags(int index, String value)Network tags associated with this resource.StandardResourceMetadata.BuildersetProject(String value)The project that this resource belongs to, in the form of `projects/{project_number}`.StandardResourceMetadata.BuildersetProjectBytes(com.google.protobuf.ByteString value)The project that this resource belongs to, in the form of `projects/{project_number}`.StandardResourceMetadata.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)StandardResourceMetadata.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
clear
public StandardResourceMetadata.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
getDefaultInstanceForType
public StandardResourceMetadata getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public StandardResourceMetadata build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public StandardResourceMetadata buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public StandardResourceMetadata.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
setField
public StandardResourceMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
clearField
public StandardResourceMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
clearOneof
public StandardResourceMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
setRepeatedField
public StandardResourceMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
addRepeatedField
public StandardResourceMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
mergeFrom
public StandardResourceMetadata.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StandardResourceMetadata.Builder>
-
mergeFrom
public StandardResourceMetadata.Builder mergeFrom(StandardResourceMetadata other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
mergeFrom
public StandardResourceMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StandardResourceMetadata.Builder>- Throws:
IOException
-
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:
getNamein interfaceStandardResourceMetadataOrBuilder- 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:
getNameBytesin interfaceStandardResourceMetadataOrBuilder- Returns:
- The bytes for name.
-
setName
public StandardResourceMetadata.Builder setName(String value)
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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public StandardResourceMetadata.Builder clearName()
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:
- This builder for chaining.
-
setNameBytes
public StandardResourceMetadata.Builder setNameBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getAssetType
public String getAssetType()
The type of this resource. For example: "compute.googleapis.com/Disk".
string asset_type = 2;- Specified by:
getAssetTypein interfaceStandardResourceMetadataOrBuilder- 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:
getAssetTypeBytesin interfaceStandardResourceMetadataOrBuilder- Returns:
- The bytes for assetType.
-
setAssetType
public StandardResourceMetadata.Builder setAssetType(String value)
The type of this resource. For example: "compute.googleapis.com/Disk".
string asset_type = 2;- Parameters:
value- The assetType to set.- Returns:
- This builder for chaining.
-
clearAssetType
public StandardResourceMetadata.Builder clearAssetType()
The type of this resource. For example: "compute.googleapis.com/Disk".
string asset_type = 2;- Returns:
- This builder for chaining.
-
setAssetTypeBytes
public StandardResourceMetadata.Builder setAssetTypeBytes(com.google.protobuf.ByteString value)
The type of this resource. For example: "compute.googleapis.com/Disk".
string asset_type = 2;- Parameters:
value- The bytes for assetType to set.- Returns:
- This builder for chaining.
-
getProject
public String getProject()
The project that this resource belongs to, in the form of `projects/{project_number}`.string project = 3;- Specified by:
getProjectin interfaceStandardResourceMetadataOrBuilder- 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:
getProjectBytesin interfaceStandardResourceMetadataOrBuilder- Returns:
- The bytes for project.
-
setProject
public StandardResourceMetadata.Builder setProject(String value)
The project that this resource belongs to, in the form of `projects/{project_number}`.string project = 3;- Parameters:
value- The project to set.- Returns:
- This builder for chaining.
-
clearProject
public StandardResourceMetadata.Builder clearProject()
The project that this resource belongs to, in the form of `projects/{project_number}`.string project = 3;- Returns:
- This builder for chaining.
-
setProjectBytes
public StandardResourceMetadata.Builder setProjectBytes(com.google.protobuf.ByteString value)
The project that this resource belongs to, in the form of `projects/{project_number}`.string project = 3;- Parameters:
value- The bytes for project to set.- Returns:
- This builder for chaining.
-
getDisplayName
public String getDisplayName()
The display name of this resource.
string display_name = 4;- Specified by:
getDisplayNamein interfaceStandardResourceMetadataOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
The display name of this resource.
string display_name = 4;- Specified by:
getDisplayNameBytesin interfaceStandardResourceMetadataOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
public StandardResourceMetadata.Builder setDisplayName(String value)
The display name of this resource.
string display_name = 4;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public StandardResourceMetadata.Builder clearDisplayName()
The display name of this resource.
string display_name = 4;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public StandardResourceMetadata.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
The display name of this resource.
string display_name = 4;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
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:
getDescriptionin interfaceStandardResourceMetadataOrBuilder- 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:
getDescriptionBytesin interfaceStandardResourceMetadataOrBuilder- Returns:
- The bytes for description.
-
setDescription
public StandardResourceMetadata.Builder setDescription(String value)
One or more paragraphs of text description of this resource. Maximum length could be up to 1M bytes.
string description = 5;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public StandardResourceMetadata.Builder clearDescription()
One or more paragraphs of text description of this resource. Maximum length could be up to 1M bytes.
string description = 5;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public StandardResourceMetadata.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
One or more paragraphs of text description of this resource. Maximum length could be up to 1M bytes.
string description = 5;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
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:
getAdditionalAttributesListin interfaceStandardResourceMetadataOrBuilder- 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:
getAdditionalAttributesCountin interfaceStandardResourceMetadataOrBuilder- 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:
getAdditionalAttributesin interfaceStandardResourceMetadataOrBuilder- 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:
getAdditionalAttributesBytesin interfaceStandardResourceMetadataOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the additionalAttributes at the given index.
-
setAdditionalAttributes
public StandardResourceMetadata.Builder setAdditionalAttributes(int index, String value)
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 to set the value at.value- The additionalAttributes to set.- Returns:
- This builder for chaining.
-
addAdditionalAttributes
public StandardResourceMetadata.Builder addAdditionalAttributes(String value)
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:
value- The additionalAttributes to add.- Returns:
- This builder for chaining.
-
addAllAdditionalAttributes
public StandardResourceMetadata.Builder addAllAdditionalAttributes(Iterable<String> values)
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:
values- The additionalAttributes to add.- Returns:
- This builder for chaining.
-
clearAdditionalAttributes
public StandardResourceMetadata.Builder clearAdditionalAttributes()
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:
- This builder for chaining.
-
addAdditionalAttributesBytes
public StandardResourceMetadata.Builder addAdditionalAttributesBytes(com.google.protobuf.ByteString value)
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:
value- The bytes of the additionalAttributes to add.- Returns:
- This builder for chaining.
-
getLocation
public String getLocation()
Location can be "global", regional like "us-east1", or zonal like "us-west1-b".
string location = 11;- Specified by:
getLocationin interfaceStandardResourceMetadataOrBuilder- 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:
getLocationBytesin interfaceStandardResourceMetadataOrBuilder- Returns:
- The bytes for location.
-
setLocation
public StandardResourceMetadata.Builder setLocation(String value)
Location can be "global", regional like "us-east1", or zonal like "us-west1-b".
string location = 11;- Parameters:
value- The location to set.- Returns:
- This builder for chaining.
-
clearLocation
public StandardResourceMetadata.Builder clearLocation()
Location can be "global", regional like "us-east1", or zonal like "us-west1-b".
string location = 11;- Returns:
- This builder for chaining.
-
setLocationBytes
public StandardResourceMetadata.Builder setLocationBytes(com.google.protobuf.ByteString value)
Location can be "global", regional like "us-east1", or zonal like "us-west1-b".
string location = 11;- Parameters:
value- The bytes for location to set.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:StandardResourceMetadataOrBuilderLabels 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:
getLabelsCountin interfaceStandardResourceMetadataOrBuilder
-
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:
containsLabelsin interfaceStandardResourceMetadataOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceStandardResourceMetadataOrBuilder
-
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:
getLabelsMapin interfaceStandardResourceMetadataOrBuilder
-
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:
getLabelsOrDefaultin interfaceStandardResourceMetadataOrBuilder
-
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:
getLabelsOrThrowin interfaceStandardResourceMetadataOrBuilder
-
clearLabels
public StandardResourceMetadata.Builder clearLabels()
-
removeLabels
public StandardResourceMetadata.Builder removeLabels(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;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public StandardResourceMetadata.Builder putLabels(String key, String value)
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;
-
putAllLabels
public StandardResourceMetadata.Builder putAllLabels(Map<String,String> values)
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
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:
getNetworkTagsListin interfaceStandardResourceMetadataOrBuilder- 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:
getNetworkTagsCountin interfaceStandardResourceMetadataOrBuilder- 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:
getNetworkTagsin interfaceStandardResourceMetadataOrBuilder- 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:
getNetworkTagsBytesin interfaceStandardResourceMetadataOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the networkTags at the given index.
-
setNetworkTags
public StandardResourceMetadata.Builder setNetworkTags(int index, String value)
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 to set the value at.value- The networkTags to set.- Returns:
- This builder for chaining.
-
addNetworkTags
public StandardResourceMetadata.Builder addNetworkTags(String value)
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:
value- The networkTags to add.- Returns:
- This builder for chaining.
-
addAllNetworkTags
public StandardResourceMetadata.Builder addAllNetworkTags(Iterable<String> values)
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:
values- The networkTags to add.- Returns:
- This builder for chaining.
-
clearNetworkTags
public StandardResourceMetadata.Builder clearNetworkTags()
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:
- This builder for chaining.
-
addNetworkTagsBytes
public StandardResourceMetadata.Builder addNetworkTagsBytes(com.google.protobuf.ByteString value)
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:
value- The bytes of the networkTags to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final StandardResourceMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
mergeUnknownFields
public final StandardResourceMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
-