- 3.82.0 (latest)
 - 3.80.0
 - 3.79.0
 - 3.78.0
 - 3.77.0
 - 3.76.0
 - 3.74.0
 - 3.72.0
 - 3.71.0
 - 3.68.0
 - 3.67.0
 - 3.66.0
 - 3.64.0
 - 3.63.0
 - 3.62.0
 - 3.61.0
 - 3.60.0
 - 3.59.0
 - 3.58.0
 - 3.57.0
 - 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 Tag.Builder extends GeneratedMessageV3.Builder<Tag.Builder> implements TagOrBuilderThe key and value for a tag.
 Protobuf type google.cloud.asset.v1.Tag
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Tag.BuilderImplements
TagOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Tag.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
Tag.Builder | 
        |
build()
public Tag build()| Returns | |
|---|---|
| Type | Description | 
Tag | 
        |
buildPartial()
public Tag buildPartial()| Returns | |
|---|---|
| Type | Description | 
Tag | 
        |
clear()
public Tag.Builder clear()| Returns | |
|---|---|
| Type | Description | 
Tag.Builder | 
        |
clearField(Descriptors.FieldDescriptor field)
public Tag.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
Tag.Builder | 
        |
clearOneof(Descriptors.OneofDescriptor oneof)
public Tag.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
oneof | 
        OneofDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
Tag.Builder | 
        |
clearTagKey()
public Tag.Builder clearTagKey()TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
 optional string tag_key = 1;
| Returns | |
|---|---|
| Type | Description | 
Tag.Builder | 
        This builder for chaining.  | 
      
clearTagKeyId()
public Tag.Builder clearTagKeyId()TagKey ID, in the format of tagKeys/{TAG_KEY_ID}.
 optional string tag_key_id = 2;
| Returns | |
|---|---|
| Type | Description | 
Tag.Builder | 
        This builder for chaining.  | 
      
clearTagValue()
public Tag.Builder clearTagValue()TagValue namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
 optional string tag_value = 3;
| Returns | |
|---|---|
| Type | Description | 
Tag.Builder | 
        This builder for chaining.  | 
      
clearTagValueId()
public Tag.Builder clearTagValueId()TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.
 optional string tag_value_id = 4;
| Returns | |
|---|---|
| Type | Description | 
Tag.Builder | 
        This builder for chaining.  | 
      
clone()
public Tag.Builder clone()| Returns | |
|---|---|
| Type | Description | 
Tag.Builder | 
        |
getDefaultInstanceForType()
public Tag getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description | 
Tag | 
        |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
getTagKey()
public String getTagKey()TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
 optional string tag_key = 1;
| Returns | |
|---|---|
| Type | Description | 
String | 
        The tagKey.  | 
      
getTagKeyBytes()
public ByteString getTagKeyBytes()TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
 optional string tag_key = 1;
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for tagKey.  | 
      
getTagKeyId()
public String getTagKeyId()TagKey ID, in the format of tagKeys/{TAG_KEY_ID}.
 optional string tag_key_id = 2;
| Returns | |
|---|---|
| Type | Description | 
String | 
        The tagKeyId.  | 
      
getTagKeyIdBytes()
public ByteString getTagKeyIdBytes()TagKey ID, in the format of tagKeys/{TAG_KEY_ID}.
 optional string tag_key_id = 2;
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for tagKeyId.  | 
      
getTagValue()
public String getTagValue()TagValue namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
 optional string tag_value = 3;
| Returns | |
|---|---|
| Type | Description | 
String | 
        The tagValue.  | 
      
getTagValueBytes()
public ByteString getTagValueBytes()TagValue namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
 optional string tag_value = 3;
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for tagValue.  | 
      
getTagValueId()
public String getTagValueId()TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.
 optional string tag_value_id = 4;
| Returns | |
|---|---|
| Type | Description | 
String | 
        The tagValueId.  | 
      
getTagValueIdBytes()
public ByteString getTagValueIdBytes()TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.
 optional string tag_value_id = 4;
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for tagValueId.  | 
      
hasTagKey()
public boolean hasTagKey()TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
 optional string tag_key = 1;
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        Whether the tagKey field is set.  | 
      
hasTagKeyId()
public boolean hasTagKeyId()TagKey ID, in the format of tagKeys/{TAG_KEY_ID}.
 optional string tag_key_id = 2;
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        Whether the tagKeyId field is set.  | 
      
hasTagValue()
public boolean hasTagValue()TagValue namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
 optional string tag_value = 3;
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        Whether the tagValue field is set.  | 
      
hasTagValueId()
public boolean hasTagValueId()TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.
 optional string tag_value_id = 4;
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        Whether the tagValueId field is set.  | 
      
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
FieldAccessorTable | 
        |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
boolean | 
        |
mergeFrom(Tag other)
public Tag.Builder mergeFrom(Tag other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        Tag | 
      
| Returns | |
|---|---|
| Type | Description | 
Tag.Builder | 
        |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Tag.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
input | 
        CodedInputStream | 
      
extensionRegistry | 
        ExtensionRegistryLite | 
      
| Returns | |
|---|---|
| Type | Description | 
Tag.Builder | 
        |
| Exceptions | |
|---|---|
| Type | Description | 
IOException | 
        |
mergeFrom(Message other)
public Tag.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        Message | 
      
| Returns | |
|---|---|
| Type | Description | 
Tag.Builder | 
        |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Tag.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
Tag.Builder | 
        |
setField(Descriptors.FieldDescriptor field, Object value)
public Tag.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
Tag.Builder | 
        |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Tag.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
index | 
        int | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
Tag.Builder | 
        |
setTagKey(String value)
public Tag.Builder setTagKey(String value)TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
 optional string tag_key = 1;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe tagKey to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Tag.Builder | 
        This builder for chaining.  | 
      
setTagKeyBytes(ByteString value)
public Tag.Builder setTagKeyBytes(ByteString value)TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
 optional string tag_key = 1;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for tagKey to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Tag.Builder | 
        This builder for chaining.  | 
      
setTagKeyId(String value)
public Tag.Builder setTagKeyId(String value)TagKey ID, in the format of tagKeys/{TAG_KEY_ID}.
 optional string tag_key_id = 2;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe tagKeyId to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Tag.Builder | 
        This builder for chaining.  | 
      
setTagKeyIdBytes(ByteString value)
public Tag.Builder setTagKeyIdBytes(ByteString value)TagKey ID, in the format of tagKeys/{TAG_KEY_ID}.
 optional string tag_key_id = 2;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for tagKeyId to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Tag.Builder | 
        This builder for chaining.  | 
      
setTagValue(String value)
public Tag.Builder setTagValue(String value)TagValue namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
 optional string tag_value = 3;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe tagValue to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Tag.Builder | 
        This builder for chaining.  | 
      
setTagValueBytes(ByteString value)
public Tag.Builder setTagValueBytes(ByteString value)TagValue namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
 optional string tag_value = 3;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for tagValue to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Tag.Builder | 
        This builder for chaining.  | 
      
setTagValueId(String value)
public Tag.Builder setTagValueId(String value)TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.
 optional string tag_value_id = 4;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe tagValueId to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Tag.Builder | 
        This builder for chaining.  | 
      
setTagValueIdBytes(ByteString value)
public Tag.Builder setTagValueIdBytes(ByteString value)TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.
 optional string tag_value_id = 4;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for tagValueId to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Tag.Builder | 
        This builder for chaining.  | 
      
setUnknownFields(UnknownFieldSet unknownFields)
public final Tag.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
Tag.Builder | 
        |