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 Type
    Method
    Description
     
     
     
    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.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
    com.google.protobuf.ByteString
    TagKey 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.ByteString
    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}.
    com.google.protobuf.ByteString
    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}.
    com.google.protobuf.ByteString
    TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.
    boolean
    TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
    boolean
    TagKey ID, in the format of tagKeys/{TAG_KEY_ID}.
    boolean
    TagValue namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
    boolean
    TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeFrom(Tag other)
     
    mergeFrom(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}.
    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}.
    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}.
    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, 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

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Tag.Builder>
    • clear

      public Tag.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Tag.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Tag.Builder>
    • getDefaultInstanceForType

      public Tag getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Tag build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Tag buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Tag.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Tag.Builder>
    • mergeFrom

      public Tag.Builder mergeFrom(Tag other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasTagKey in interface TagOrBuilder
      Returns:
      Whether the tagKey field is set.
    • getTagKey

      public String getTagKey()
       TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
       
      optional string tag_key = 1;
      Specified by:
      getTagKey in interface TagOrBuilder
      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:
      getTagKeyBytes in interface TagOrBuilder
      Returns:
      The bytes for tagKey.
    • setTagKey

      public Tag.Builder setTagKey(String value)
       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

      public Tag.Builder 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

      public Tag.Builder setTagKeyBytes(com.google.protobuf.ByteString value)
       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:
      hasTagKeyId in interface TagOrBuilder
      Returns:
      Whether the tagKeyId field is set.
    • getTagKeyId

      public String getTagKeyId()
       TagKey ID, in the format of tagKeys/{TAG_KEY_ID}.
       
      optional string tag_key_id = 2;
      Specified by:
      getTagKeyId in interface TagOrBuilder
      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:
      getTagKeyIdBytes in interface TagOrBuilder
      Returns:
      The bytes for tagKeyId.
    • setTagKeyId

      public Tag.Builder setTagKeyId(String value)
       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

      public Tag.Builder clearTagKeyId()
       TagKey ID, in the format of tagKeys/{TAG_KEY_ID}.
       
      optional string tag_key_id = 2;
      Returns:
      This builder for chaining.
    • setTagKeyIdBytes

      public Tag.Builder setTagKeyIdBytes(com.google.protobuf.ByteString value)
       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:
      hasTagValue in interface TagOrBuilder
      Returns:
      Whether the tagValue field is set.
    • 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;
      Specified by:
      getTagValue in interface TagOrBuilder
      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:
      getTagValueBytes in interface TagOrBuilder
      Returns:
      The bytes for tagValue.
    • setTagValue

      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;
      Parameters:
      value - The tagValue to set.
      Returns:
      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:
      This builder for chaining.
    • setTagValueBytes

      public Tag.Builder setTagValueBytes(com.google.protobuf.ByteString value)
       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:
      hasTagValueId in interface TagOrBuilder
      Returns:
      Whether the tagValueId field is set.
    • getTagValueId

      public String getTagValueId()
       TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.
       
      optional string tag_value_id = 4;
      Specified by:
      getTagValueId in interface TagOrBuilder
      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:
      getTagValueIdBytes in interface TagOrBuilder
      Returns:
      The bytes for tagValueId.
    • setTagValueId

      public Tag.Builder setTagValueId(String value)
       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

      public Tag.Builder clearTagValueId()
       TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.
       
      optional string tag_value_id = 4;
      Returns:
      This builder for chaining.
    • setTagValueIdBytes

      public Tag.Builder setTagValueIdBytes(com.google.protobuf.ByteString value)
       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.