Class KeyValueMetadataProperty.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<KeyValueMetadataProperty.Builder>
com.google.privacy.dlp.v2.KeyValueMetadataProperty.Builder
All Implemented Interfaces:
KeyValueMetadataPropertyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
KeyValueMetadataProperty

public static final class KeyValueMetadataProperty.Builder extends com.google.protobuf.GeneratedMessage.Builder<KeyValueMetadataProperty.Builder> implements KeyValueMetadataPropertyOrBuilder
 A key-value pair in the Metadata.
 
Protobuf type google.privacy.dlp.v2.KeyValueMetadataProperty
  • 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<KeyValueMetadataProperty.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<KeyValueMetadataProperty.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<KeyValueMetadataProperty.Builder>
    • getDefaultInstanceForType

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

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

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

      public KeyValueMetadataProperty.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<KeyValueMetadataProperty.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<KeyValueMetadataProperty.Builder>
    • mergeFrom

      public KeyValueMetadataProperty.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<KeyValueMetadataProperty.Builder>
      Throws:
      IOException
    • getKey

      public String getKey()
       The key of the property.
       
      string key = 1;
      Specified by:
      getKey in interface KeyValueMetadataPropertyOrBuilder
      Returns:
      The key.
    • getKeyBytes

      public com.google.protobuf.ByteString getKeyBytes()
       The key of the property.
       
      string key = 1;
      Specified by:
      getKeyBytes in interface KeyValueMetadataPropertyOrBuilder
      Returns:
      The bytes for key.
    • setKey

       The key of the property.
       
      string key = 1;
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey

       The key of the property.
       
      string key = 1;
      Returns:
      This builder for chaining.
    • setKeyBytes

      public KeyValueMetadataProperty.Builder setKeyBytes(com.google.protobuf.ByteString value)
       The key of the property.
       
      string key = 1;
      Parameters:
      value - The bytes for key to set.
      Returns:
      This builder for chaining.
    • getValue

      public String getValue()
       The value of the property.
       
      string value = 2;
      Specified by:
      getValue in interface KeyValueMetadataPropertyOrBuilder
      Returns:
      The value.
    • getValueBytes

      public com.google.protobuf.ByteString getValueBytes()
       The value of the property.
       
      string value = 2;
      Specified by:
      getValueBytes in interface KeyValueMetadataPropertyOrBuilder
      Returns:
      The bytes for value.
    • setValue

      public KeyValueMetadataProperty.Builder setValue(String value)
       The value of the property.
       
      string value = 2;
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      public KeyValueMetadataProperty.Builder clearValue()
       The value of the property.
       
      string value = 2;
      Returns:
      This builder for chaining.
    • setValueBytes

      public KeyValueMetadataProperty.Builder setValueBytes(com.google.protobuf.ByteString value)
       The value of the property.
       
      string value = 2;
      Parameters:
      value - The bytes for value to set.
      Returns:
      This builder for chaining.