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.Builder
addAdditionalAttributes(String value)
Additional searchable attributes of this resource.StandardResourceMetadata.Builder
addAdditionalAttributesBytes(com.google.protobuf.ByteString value)
Additional searchable attributes of this resource.StandardResourceMetadata.Builder
addAllAdditionalAttributes(Iterable<String> values)
Additional searchable attributes of this resource.StandardResourceMetadata.Builder
addAllNetworkTags(Iterable<String> values)
Network tags associated with this resource.StandardResourceMetadata.Builder
addNetworkTags(String value)
Network tags associated with this resource.StandardResourceMetadata.Builder
addNetworkTagsBytes(com.google.protobuf.ByteString value)
Network tags associated with this resource.StandardResourceMetadata.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
StandardResourceMetadata
build()
StandardResourceMetadata
buildPartial()
StandardResourceMetadata.Builder
clear()
StandardResourceMetadata.Builder
clearAdditionalAttributes()
Additional searchable attributes of this resource.StandardResourceMetadata.Builder
clearAssetType()
The type of this resource.StandardResourceMetadata.Builder
clearDescription()
One or more paragraphs of text description of this resource.StandardResourceMetadata.Builder
clearDisplayName()
The display name of this resource.StandardResourceMetadata.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
StandardResourceMetadata.Builder
clearLabels()
StandardResourceMetadata.Builder
clearLocation()
Location can be "global", regional like "us-east1", or zonal like "us-west1-b".StandardResourceMetadata.Builder
clearName()
The full resource name.StandardResourceMetadata.Builder
clearNetworkTags()
Network tags associated with this resource.StandardResourceMetadata.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
StandardResourceMetadata.Builder
clearProject()
The project that this resource belongs to, in the form of `projects/{project_number}`.StandardResourceMetadata.Builder
clone()
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.com.google.protobuf.ProtocolStringList
getAdditionalAttributesList()
Additional searchable attributes of this resource.String
getAssetType()
The type of this resource.com.google.protobuf.ByteString
getAssetTypeBytes()
The type of this resource.StandardResourceMetadata
getDefaultInstanceForType()
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.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
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".Map<String,String>
getMutableLabels()
Deprecated.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.com.google.protobuf.ProtocolStringList
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}`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
StandardResourceMetadata.Builder
mergeFrom(StandardResourceMetadata other)
StandardResourceMetadata.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
StandardResourceMetadata.Builder
mergeFrom(com.google.protobuf.Message other)
StandardResourceMetadata.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
StandardResourceMetadata.Builder
putAllLabels(Map<String,String> values)
Labels associated with this resource.StandardResourceMetadata.Builder
putLabels(String key, String value)
Labels associated with this resource.StandardResourceMetadata.Builder
removeLabels(String key)
Labels associated with this resource.StandardResourceMetadata.Builder
setAdditionalAttributes(int index, String value)
Additional searchable attributes of this resource.StandardResourceMetadata.Builder
setAssetType(String value)
The type of this resource.StandardResourceMetadata.Builder
setAssetTypeBytes(com.google.protobuf.ByteString value)
The type of this resource.StandardResourceMetadata.Builder
setDescription(String value)
One or more paragraphs of text description of this resource.StandardResourceMetadata.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
One or more paragraphs of text description of this resource.StandardResourceMetadata.Builder
setDisplayName(String value)
The display name of this resource.StandardResourceMetadata.Builder
setDisplayNameBytes(com.google.protobuf.ByteString value)
The display name of this resource.StandardResourceMetadata.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
StandardResourceMetadata.Builder
setLocation(String value)
Location can be "global", regional like "us-east1", or zonal like "us-west1-b".StandardResourceMetadata.Builder
setLocationBytes(com.google.protobuf.ByteString value)
Location can be "global", regional like "us-east1", or zonal like "us-west1-b".StandardResourceMetadata.Builder
setName(String value)
The full resource name.StandardResourceMetadata.Builder
setNameBytes(com.google.protobuf.ByteString value)
The full resource name.StandardResourceMetadata.Builder
setNetworkTags(int index, String value)
Network tags associated with this resource.StandardResourceMetadata.Builder
setProject(String value)
The project that this resource belongs to, in the form of `projects/{project_number}`.StandardResourceMetadata.Builder
setProjectBytes(com.google.protobuf.ByteString value)
The project that this resource belongs to, in the form of `projects/{project_number}`.StandardResourceMetadata.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
StandardResourceMetadata.Builder
setUnknownFields(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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
clear
public StandardResourceMetadata.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
getDefaultInstanceForType
public StandardResourceMetadata getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public StandardResourceMetadata build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public StandardResourceMetadata buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public StandardResourceMetadata.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
setField
public StandardResourceMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
clearField
public StandardResourceMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
clearOneof
public StandardResourceMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
setRepeatedField
public StandardResourceMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
addRepeatedField
public StandardResourceMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
mergeFrom
public StandardResourceMetadata.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<StandardResourceMetadata.Builder>
-
mergeFrom
public StandardResourceMetadata.Builder mergeFrom(StandardResourceMetadata other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getName
in 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:
getNameBytes
in 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:
getAssetType
in 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:
getAssetTypeBytes
in 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:
getProject
in 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:
getProjectBytes
in 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:
getDisplayName
in interfaceStandardResourceMetadataOrBuilder
- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
The display name of this resource.
string display_name = 4;
- Specified by:
getDisplayNameBytes
in 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:
getDescription
in 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:
getDescriptionBytes
in 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:
getAdditionalAttributesList
in 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:
getAdditionalAttributesCount
in 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:
getAdditionalAttributes
in 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:
getAdditionalAttributesBytes
in 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:
getLocation
in 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:
getLocationBytes
in 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:StandardResourceMetadataOrBuilder
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:
getLabelsCount
in 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:
containsLabels
in interfaceStandardResourceMetadataOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in 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:
getLabelsMap
in 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:
getLabelsOrDefault
in 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:
getLabelsOrThrow
in 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:
getNetworkTagsList
in 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:
getNetworkTagsCount
in 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:
getNetworkTags
in 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:
getNetworkTagsBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
mergeUnknownFields
public final StandardResourceMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<StandardResourceMetadata.Builder>
-
-