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.privacy.dlp.v2.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
 A tag associated with a resource.
 
Protobuf type google.privacy.dlp.v2.Tag
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The key of a tag key-value pair.
    The namespaced name for the tag value to attach to Google Cloud resources.
    The value of a tag key-value pair.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The key of a tag key-value pair.
    com.google.protobuf.ByteString
    The key of a tag key-value pair.
    The namespaced name for the tag value to attach to Google Cloud resources.
    com.google.protobuf.ByteString
    The namespaced name for the tag value to attach to Google Cloud resources.
    The value of a tag key-value pair.
    com.google.protobuf.ByteString
    The value of a tag key-value pair.
    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)
     
    setKey(String value)
    The key of a tag key-value pair.
    setKeyBytes(com.google.protobuf.ByteString value)
    The key of a tag key-value pair.
    The namespaced name for the tag value to attach to Google Cloud resources.
    setNamespacedTagValueBytes(com.google.protobuf.ByteString value)
    The namespaced name for the tag value to attach to Google Cloud resources.
    The value of a tag key-value pair.
    setValueBytes(com.google.protobuf.ByteString value)
    The value of a tag key-value pair.

    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
    • getNamespacedTagValue

      public String getNamespacedTagValue()
       The namespaced name for the tag value to attach to Google Cloud resources.
       Must be in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for
       example, "123456/environment/prod" for an organization parent, or
       "my-project/environment/prod" for a project parent. This is only set for
       Google Cloud resources.
       
      string namespaced_tag_value = 1;
      Specified by:
      getNamespacedTagValue in interface TagOrBuilder
      Returns:
      The namespacedTagValue.
    • getNamespacedTagValueBytes

      public com.google.protobuf.ByteString getNamespacedTagValueBytes()
       The namespaced name for the tag value to attach to Google Cloud resources.
       Must be in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for
       example, "123456/environment/prod" for an organization parent, or
       "my-project/environment/prod" for a project parent. This is only set for
       Google Cloud resources.
       
      string namespaced_tag_value = 1;
      Specified by:
      getNamespacedTagValueBytes in interface TagOrBuilder
      Returns:
      The bytes for namespacedTagValue.
    • setNamespacedTagValue

      public Tag.Builder setNamespacedTagValue(String value)
       The namespaced name for the tag value to attach to Google Cloud resources.
       Must be in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for
       example, "123456/environment/prod" for an organization parent, or
       "my-project/environment/prod" for a project parent. This is only set for
       Google Cloud resources.
       
      string namespaced_tag_value = 1;
      Parameters:
      value - The namespacedTagValue to set.
      Returns:
      This builder for chaining.
    • clearNamespacedTagValue

      public Tag.Builder clearNamespacedTagValue()
       The namespaced name for the tag value to attach to Google Cloud resources.
       Must be in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for
       example, "123456/environment/prod" for an organization parent, or
       "my-project/environment/prod" for a project parent. This is only set for
       Google Cloud resources.
       
      string namespaced_tag_value = 1;
      Returns:
      This builder for chaining.
    • setNamespacedTagValueBytes

      public Tag.Builder setNamespacedTagValueBytes(com.google.protobuf.ByteString value)
       The namespaced name for the tag value to attach to Google Cloud resources.
       Must be in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for
       example, "123456/environment/prod" for an organization parent, or
       "my-project/environment/prod" for a project parent. This is only set for
       Google Cloud resources.
       
      string namespaced_tag_value = 1;
      Parameters:
      value - The bytes for namespacedTagValue to set.
      Returns:
      This builder for chaining.
    • getKey

      public String getKey()
       The key of a tag key-value pair. For Google Cloud resources, this is the
       resource name of the key, for example, "tagKeys/123456".
       
      string key = 2;
      Specified by:
      getKey in interface TagOrBuilder
      Returns:
      The key.
    • getKeyBytes

      public com.google.protobuf.ByteString getKeyBytes()
       The key of a tag key-value pair. For Google Cloud resources, this is the
       resource name of the key, for example, "tagKeys/123456".
       
      string key = 2;
      Specified by:
      getKeyBytes in interface TagOrBuilder
      Returns:
      The bytes for key.
    • setKey

      public Tag.Builder setKey(String value)
       The key of a tag key-value pair. For Google Cloud resources, this is the
       resource name of the key, for example, "tagKeys/123456".
       
      string key = 2;
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey

      public Tag.Builder clearKey()
       The key of a tag key-value pair. For Google Cloud resources, this is the
       resource name of the key, for example, "tagKeys/123456".
       
      string key = 2;
      Returns:
      This builder for chaining.
    • setKeyBytes

      public Tag.Builder setKeyBytes(com.google.protobuf.ByteString value)
       The key of a tag key-value pair. For Google Cloud resources, this is the
       resource name of the key, for example, "tagKeys/123456".
       
      string key = 2;
      Parameters:
      value - The bytes for key to set.
      Returns:
      This builder for chaining.
    • getValue

      public String getValue()
       The value of a tag key-value pair. For Google Cloud resources, this is the
       resource name of the value, for example, "tagValues/123456".
       
      string value = 3;
      Specified by:
      getValue in interface TagOrBuilder
      Returns:
      The value.
    • getValueBytes

      public com.google.protobuf.ByteString getValueBytes()
       The value of a tag key-value pair. For Google Cloud resources, this is the
       resource name of the value, for example, "tagValues/123456".
       
      string value = 3;
      Specified by:
      getValueBytes in interface TagOrBuilder
      Returns:
      The bytes for value.
    • setValue

      public Tag.Builder setValue(String value)
       The value of a tag key-value pair. For Google Cloud resources, this is the
       resource name of the value, for example, "tagValues/123456".
       
      string value = 3;
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      public Tag.Builder clearValue()
       The value of a tag key-value pair. For Google Cloud resources, this is the
       resource name of the value, for example, "tagValues/123456".
       
      string value = 3;
      Returns:
      This builder for chaining.
    • setValueBytes

      public Tag.Builder setValueBytes(com.google.protobuf.ByteString value)
       The value of a tag key-value pair. For Google Cloud resources, this is the
       resource name of the value, for example, "tagValues/123456".
       
      string value = 3;
      Parameters:
      value - The bytes for value to set.
      Returns:
      This builder for chaining.