Package com.google.cloud.asset.v1
Class Tag.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Tag.Builder>
com.google.cloud.asset.v1.Tag.Builder
- All Implemented Interfaces:
TagOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Tag
public static final class Tag.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Tag.Builder>
implements TagOrBuilder
The key and value for a [tag](https://cloud.google.com/resource-manager/docs/tags/tags-overview).Protobuf type
google.cloud.asset.v1.Tag-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.TagKey ID, in the format of tagKeys/{TAG_KEY_ID}.TagValue namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorTagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.com.google.protobuf.ByteStringTagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.TagKey ID, in the format of tagKeys/{TAG_KEY_ID}.com.google.protobuf.ByteStringTagKey ID, in the format of tagKeys/{TAG_KEY_ID}.TagValue namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.com.google.protobuf.ByteStringTagValue namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.com.google.protobuf.ByteStringTagValue ID, in the format of tagValues/{TAG_VALUE_ID}.booleanTagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.booleanTagKey ID, in the format of tagKeys/{TAG_KEY_ID}.booleanTagValue namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.booleanTagValue ID, in the format of tagValues/{TAG_VALUE_ID}.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.setTagKeyBytes(com.google.protobuf.ByteString value) TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.setTagKeyId(String value) TagKey ID, in the format of tagKeys/{TAG_KEY_ID}.setTagKeyIdBytes(com.google.protobuf.ByteString value) TagKey ID, in the format of tagKeys/{TAG_KEY_ID}.setTagValue(String value) TagValue namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.setTagValueBytes(com.google.protobuf.ByteString value) TagValue namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.setTagValueId(String value) TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.setTagValueIdBytes(com.google.protobuf.ByteString value) TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Tag.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Tag.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.GeneratedMessage.Builder<Tag.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Tag.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Tag.Builder>
-
mergeFrom
public Tag.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<Tag.Builder>- Throws:
IOException
-
hasTagKey
public boolean hasTagKey()TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.optional string tag_key = 1;- Specified by:
hasTagKeyin interfaceTagOrBuilder- Returns:
- Whether the tagKey field is set.
-
getTagKey
TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.optional string tag_key = 1;- Specified by:
getTagKeyin interfaceTagOrBuilder- Returns:
- The tagKey.
-
getTagKeyBytes
public com.google.protobuf.ByteString getTagKeyBytes()TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.optional string tag_key = 1;- Specified by:
getTagKeyBytesin interfaceTagOrBuilder- Returns:
- The bytes for tagKey.
-
setTagKey
TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.optional string tag_key = 1;- Parameters:
value- The tagKey to set.- Returns:
- This builder for chaining.
-
clearTagKey
TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.optional string tag_key = 1;- Returns:
- This builder for chaining.
-
setTagKeyBytes
TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.optional string tag_key = 1;- Parameters:
value- The bytes for tagKey to set.- Returns:
- This builder for chaining.
-
hasTagKeyId
public boolean hasTagKeyId()TagKey ID, in the format of tagKeys/{TAG_KEY_ID}.optional string tag_key_id = 2;- Specified by:
hasTagKeyIdin interfaceTagOrBuilder- Returns:
- Whether the tagKeyId field is set.
-
getTagKeyId
TagKey ID, in the format of tagKeys/{TAG_KEY_ID}.optional string tag_key_id = 2;- Specified by:
getTagKeyIdin interfaceTagOrBuilder- Returns:
- The tagKeyId.
-
getTagKeyIdBytes
public com.google.protobuf.ByteString getTagKeyIdBytes()TagKey ID, in the format of tagKeys/{TAG_KEY_ID}.optional string tag_key_id = 2;- Specified by:
getTagKeyIdBytesin interfaceTagOrBuilder- Returns:
- The bytes for tagKeyId.
-
setTagKeyId
TagKey ID, in the format of tagKeys/{TAG_KEY_ID}.optional string tag_key_id = 2;- Parameters:
value- The tagKeyId to set.- Returns:
- This builder for chaining.
-
clearTagKeyId
TagKey ID, in the format of tagKeys/{TAG_KEY_ID}.optional string tag_key_id = 2;- Returns:
- This builder for chaining.
-
setTagKeyIdBytes
TagKey ID, in the format of tagKeys/{TAG_KEY_ID}.optional string tag_key_id = 2;- Parameters:
value- The bytes for tagKeyId to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasTagValuein interfaceTagOrBuilder- Returns:
- Whether the tagValue field is set.
-
getTagValue
TagValue namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.optional string tag_value = 3;- Specified by:
getTagValuein interfaceTagOrBuilder- Returns:
- The tagValue.
-
getTagValueBytes
public com.google.protobuf.ByteString getTagValueBytes()TagValue namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.optional string tag_value = 3;- Specified by:
getTagValueBytesin interfaceTagOrBuilder- Returns:
- The bytes for tagValue.
-
setTagValue
TagValue namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.optional string tag_value = 3;- Parameters:
value- The tagValue to set.- Returns:
- This builder for chaining.
-
clearTagValue
TagValue namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.optional string tag_value = 3;- Returns:
- This builder for chaining.
-
setTagValueBytes
TagValue namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.optional string tag_value = 3;- Parameters:
value- The bytes for tagValue to set.- Returns:
- This builder for chaining.
-
hasTagValueId
public boolean hasTagValueId()TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.optional string tag_value_id = 4;- Specified by:
hasTagValueIdin interfaceTagOrBuilder- Returns:
- Whether the tagValueId field is set.
-
getTagValueId
TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.optional string tag_value_id = 4;- Specified by:
getTagValueIdin interfaceTagOrBuilder- Returns:
- The tagValueId.
-
getTagValueIdBytes
public com.google.protobuf.ByteString getTagValueIdBytes()TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.optional string tag_value_id = 4;- Specified by:
getTagValueIdBytesin interfaceTagOrBuilder- Returns:
- The bytes for tagValueId.
-
setTagValueId
TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.optional string tag_value_id = 4;- Parameters:
value- The tagValueId to set.- Returns:
- This builder for chaining.
-
clearTagValueId
TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.optional string tag_value_id = 4;- Returns:
- This builder for chaining.
-
setTagValueIdBytes
TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.optional string tag_value_id = 4;- Parameters:
value- The bytes for tagValueId to set.- Returns:
- This builder for chaining.
-