- 3.57.0 (latest)
- 3.56.0
- 3.55.0
- 3.53.0
- 3.52.0
- 3.51.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.2-SNAPSHOT
- 3.6.0
- 3.4.1
- 3.3.1
- 3.2.17
public static final class StandardResourceMetadata.Builder extends GeneratedMessageV3.Builder<StandardResourceMetadata.Builder> implements StandardResourceMetadataOrBuilder
The standard metadata of a cloud resource.
Protobuf type google.cloud.asset.v1p1beta1.StandardResourceMetadata
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > StandardResourceMetadata.BuilderImplements
StandardResourceMetadataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAdditionalAttributes(String value)
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;
Name | Description |
value | String The additionalAttributes to add. |
Type | Description |
StandardResourceMetadata.Builder | This builder for chaining. |
addAdditionalAttributesBytes(ByteString value)
public StandardResourceMetadata.Builder addAdditionalAttributesBytes(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;
Name | Description |
value | ByteString The bytes of the additionalAttributes to add. |
Type | Description |
StandardResourceMetadata.Builder | This builder for chaining. |
addAllAdditionalAttributes(Iterable<String> values)
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;
Name | Description |
values | Iterable<String> The additionalAttributes to add. |
Type | Description |
StandardResourceMetadata.Builder | This builder for chaining. |
addAllNetworkTags(Iterable<String> values)
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 GCP resources. See Labelling GCP resources for more information.
repeated string network_tags = 13;
Name | Description |
values | Iterable<String> The networkTags to add. |
Type | Description |
StandardResourceMetadata.Builder | This builder for chaining. |
addNetworkTags(String value)
public StandardResourceMetadata.Builder addNetworkTags(String value)
Network tags associated with this resource. Like labels, network tags are a type of annotations used to group GCP resources. See Labelling GCP resources for more information.
repeated string network_tags = 13;
Name | Description |
value | String The networkTags to add. |
Type | Description |
StandardResourceMetadata.Builder | This builder for chaining. |
addNetworkTagsBytes(ByteString value)
public StandardResourceMetadata.Builder addNetworkTagsBytes(ByteString value)
Network tags associated with this resource. Like labels, network tags are a type of annotations used to group GCP resources. See Labelling GCP resources for more information.
repeated string network_tags = 13;
Name | Description |
value | ByteString The bytes of the networkTags to add. |
Type | Description |
StandardResourceMetadata.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public StandardResourceMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
StandardResourceMetadata.Builder |
build()
public StandardResourceMetadata build()
Type | Description |
StandardResourceMetadata |
buildPartial()
public StandardResourceMetadata buildPartial()
Type | Description |
StandardResourceMetadata |
clear()
public StandardResourceMetadata.Builder clear()
Type | Description |
StandardResourceMetadata.Builder |
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;
Type | Description |
StandardResourceMetadata.Builder | This builder for chaining. |
clearAssetType()
public StandardResourceMetadata.Builder clearAssetType()
The type of this resource. For example: "compute.googleapis.com/Disk".
string asset_type = 2;
Type | Description |
StandardResourceMetadata.Builder | 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;
Type | Description |
StandardResourceMetadata.Builder | This builder for chaining. |
clearDisplayName()
public StandardResourceMetadata.Builder clearDisplayName()
The display name of this resource.
string display_name = 4;
Type | Description |
StandardResourceMetadata.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public StandardResourceMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
StandardResourceMetadata.Builder |
clearLabels()
public StandardResourceMetadata.Builder clearLabels()
Type | Description |
StandardResourceMetadata.Builder |
clearLocation()
public StandardResourceMetadata.Builder clearLocation()
Location can be "global", regional like "us-east1", or zonal like "us-west1-b".
string location = 11;
Type | Description |
StandardResourceMetadata.Builder | 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
for more information.
string name = 1;
Type | Description |
StandardResourceMetadata.Builder | 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 GCP resources. See Labelling GCP resources for more information.
repeated string network_tags = 13;
Type | Description |
StandardResourceMetadata.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public StandardResourceMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
StandardResourceMetadata.Builder |
clearProject()
public StandardResourceMetadata.Builder clearProject()
The project that this resource belongs to, in the form of
projects/{project_number}
.
string project = 3;
Type | Description |
StandardResourceMetadata.Builder | This builder for chaining. |
clone()
public StandardResourceMetadata.Builder clone()
Type | Description |
StandardResourceMetadata.Builder |
containsLabels(String key)
public boolean containsLabels(String key)
Labels associated with this resource. See Labelling and grouping GCP resources for more information.
map<string, string> labels = 12;
Name | Description |
key | String |
Type | Description |
boolean |
getAdditionalAttributes(int index)
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;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The additionalAttributes at the given index. |
getAdditionalAttributesBytes(int index)
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;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the additionalAttributes at the given index. |
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;
Type | Description |
int | The count of additionalAttributes. |
getAdditionalAttributesList()
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;
Type | Description |
ProtocolStringList | A list containing the additionalAttributes. |
getAssetType()
public String getAssetType()
The type of this resource. For example: "compute.googleapis.com/Disk".
string asset_type = 2;
Type | Description |
String | The assetType. |
getAssetTypeBytes()
public ByteString getAssetTypeBytes()
The type of this resource. For example: "compute.googleapis.com/Disk".
string asset_type = 2;
Type | Description |
ByteString | The bytes for assetType. |
getDefaultInstanceForType()
public StandardResourceMetadata getDefaultInstanceForType()
Type | Description |
StandardResourceMetadata |
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;
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
One or more paragraphs of text description of this resource. Maximum length could be up to 1M bytes.
string description = 5;
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDisplayName()
public String getDisplayName()
The display name of this resource.
string display_name = 4;
Type | Description |
String | The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
The display name of this resource.
string display_name = 4;
Type | Description |
ByteString | The bytes for displayName. |
getLabels()
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
Labels associated with this resource. See Labelling and grouping GCP resources for more information.
map<string, string> labels = 12;
Type | Description |
int |
getLabelsMap()
public Map<String,String> getLabelsMap()
Labels associated with this resource. See Labelling and grouping GCP resources for more information.
map<string, string> labels = 12;
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Labels associated with this resource. See Labelling and grouping GCP resources for more information.
map<string, string> labels = 12;
Name | Description |
key | String |
defaultValue | String |
Type | Description |
String |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Labels associated with this resource. See Labelling and grouping GCP resources for more information.
map<string, string> labels = 12;
Name | Description |
key | String |
Type | Description |
String |
getLocation()
public String getLocation()
Location can be "global", regional like "us-east1", or zonal like "us-west1-b".
string location = 11;
Type | Description |
String | The location. |
getLocationBytes()
public ByteString getLocationBytes()
Location can be "global", regional like "us-east1", or zonal like "us-west1-b".
string location = 11;
Type | Description |
ByteString | The bytes for location. |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Type | Description |
Map<String,String> |
getName()
public String getName()
The full resource name. For example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
.
See Resource
Names
for more information.
string name = 1;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
The full resource name. For example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
.
See Resource
Names
for more information.
string name = 1;
Type | Description |
ByteString | The bytes for name. |
getNetworkTags(int index)
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 for more information.
repeated string network_tags = 13;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The networkTags at the given index. |
getNetworkTagsBytes(int index)
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 for more information.
repeated string network_tags = 13;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the networkTags at the given index. |
getNetworkTagsCount()
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 for more information.
repeated string network_tags = 13;
Type | Description |
int | The count of networkTags. |
getNetworkTagsList()
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 for more information.
repeated string network_tags = 13;
Type | Description |
ProtocolStringList | A list containing the networkTags. |
getProject()
public String getProject()
The project that this resource belongs to, in the form of
projects/{project_number}
.
string project = 3;
Type | Description |
String | The project. |
getProjectBytes()
public ByteString getProjectBytes()
The project that this resource belongs to, in the form of
projects/{project_number}
.
string project = 3;
Type | Description |
ByteString | The bytes for project. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(StandardResourceMetadata other)
public StandardResourceMetadata.Builder mergeFrom(StandardResourceMetadata other)
Name | Description |
other | StandardResourceMetadata |
Type | Description |
StandardResourceMetadata.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public StandardResourceMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
StandardResourceMetadata.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public StandardResourceMetadata.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
StandardResourceMetadata.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StandardResourceMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
StandardResourceMetadata.Builder |
putAllLabels(Map<String,String> values)
public StandardResourceMetadata.Builder putAllLabels(Map<String,String> values)
Labels associated with this resource. See Labelling and grouping GCP resources for more information.
map<string, string> labels = 12;
Name | Description |
values | Map<String,String> |
Type | Description |
StandardResourceMetadata.Builder |
putLabels(String key, String value)
public StandardResourceMetadata.Builder putLabels(String key, String value)
Labels associated with this resource. See Labelling and grouping GCP resources for more information.
map<string, string> labels = 12;
Name | Description |
key | String |
value | String |
Type | Description |
StandardResourceMetadata.Builder |
removeLabels(String key)
public StandardResourceMetadata.Builder removeLabels(String key)
Labels associated with this resource. See Labelling and grouping GCP resources for more information.
map<string, string> labels = 12;
Name | Description |
key | String |
Type | Description |
StandardResourceMetadata.Builder |
setAdditionalAttributes(int index, String value)
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;
Name | Description |
index | int The index to set the value at. |
value | String The additionalAttributes to set. |
Type | Description |
StandardResourceMetadata.Builder | This builder for chaining. |
setAssetType(String value)
public StandardResourceMetadata.Builder setAssetType(String value)
The type of this resource. For example: "compute.googleapis.com/Disk".
string asset_type = 2;
Name | Description |
value | String The assetType to set. |
Type | Description |
StandardResourceMetadata.Builder | This builder for chaining. |
setAssetTypeBytes(ByteString value)
public StandardResourceMetadata.Builder setAssetTypeBytes(ByteString value)
The type of this resource. For example: "compute.googleapis.com/Disk".
string asset_type = 2;
Name | Description |
value | ByteString The bytes for assetType to set. |
Type | Description |
StandardResourceMetadata.Builder | This builder for chaining. |
setDescription(String value)
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;
Name | Description |
value | String The description to set. |
Type | Description |
StandardResourceMetadata.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public StandardResourceMetadata.Builder setDescriptionBytes(ByteString value)
One or more paragraphs of text description of this resource. Maximum length could be up to 1M bytes.
string description = 5;
Name | Description |
value | ByteString The bytes for description to set. |
Type | Description |
StandardResourceMetadata.Builder | This builder for chaining. |
setDisplayName(String value)
public StandardResourceMetadata.Builder setDisplayName(String value)
The display name of this resource.
string display_name = 4;
Name | Description |
value | String The displayName to set. |
Type | Description |
StandardResourceMetadata.Builder | This builder for chaining. |
setDisplayNameBytes(ByteString value)
public StandardResourceMetadata.Builder setDisplayNameBytes(ByteString value)
The display name of this resource.
string display_name = 4;
Name | Description |
value | ByteString The bytes for displayName to set. |
Type | Description |
StandardResourceMetadata.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public StandardResourceMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
StandardResourceMetadata.Builder |
setLocation(String value)
public StandardResourceMetadata.Builder setLocation(String value)
Location can be "global", regional like "us-east1", or zonal like "us-west1-b".
string location = 11;
Name | Description |
value | String The location to set. |
Type | Description |
StandardResourceMetadata.Builder | This builder for chaining. |
setLocationBytes(ByteString value)
public StandardResourceMetadata.Builder setLocationBytes(ByteString value)
Location can be "global", regional like "us-east1", or zonal like "us-west1-b".
string location = 11;
Name | Description |
value | ByteString The bytes for location to set. |
Type | Description |
StandardResourceMetadata.Builder | This builder for chaining. |
setName(String value)
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
for more information.
string name = 1;
Name | Description |
value | String The name to set. |
Type | Description |
StandardResourceMetadata.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public StandardResourceMetadata.Builder setNameBytes(ByteString value)
The full resource name. For example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
.
See Resource
Names
for more information.
string name = 1;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
StandardResourceMetadata.Builder | This builder for chaining. |
setNetworkTags(int index, String value)
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 GCP resources. See Labelling GCP resources for more information.
repeated string network_tags = 13;
Name | Description |
index | int The index to set the value at. |
value | String The networkTags to set. |
Type | Description |
StandardResourceMetadata.Builder | This builder for chaining. |
setProject(String value)
public StandardResourceMetadata.Builder setProject(String value)
The project that this resource belongs to, in the form of
projects/{project_number}
.
string project = 3;
Name | Description |
value | String The project to set. |
Type | Description |
StandardResourceMetadata.Builder | This builder for chaining. |
setProjectBytes(ByteString value)
public StandardResourceMetadata.Builder setProjectBytes(ByteString value)
The project that this resource belongs to, in the form of
projects/{project_number}
.
string project = 3;
Name | Description |
value | ByteString The bytes for project to set. |
Type | Description |
StandardResourceMetadata.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public StandardResourceMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
StandardResourceMetadata.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final StandardResourceMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
StandardResourceMetadata.Builder |