Class Protos.Tag.Builder

  • All Implemented Interfaces:
    com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, java.lang.Cloneable, Protos.TagOrBuilder
    Enclosing class:
    Protos.Tag

    public static final class Protos.Tag.Builder
    extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.Tag,​Protos.Tag.Builder>
    implements Protos.TagOrBuilder
    
     A simple key->value mapping that has no interpreted content at all. A bit like the extensions mechanism except
     an extension is keyed by the ID of a piece of code that's loaded with the given data, and has the concept of
     being mandatory if that code isn't found. Whereas this is just a blind key/value store.
     
    Protobuf type wallet.Tag
    • Field Summary

      • Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

        instance
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Protos.Tag.Builder clearData()
      required bytes data = 2;
      Protos.Tag.Builder clearTag()
      required string tag = 1;
      com.google.protobuf.ByteString getData()
      required bytes data = 2;
      java.lang.String getTag()
      required string tag = 1;
      com.google.protobuf.ByteString getTagBytes()
      required string tag = 1;
      boolean hasData()
      required bytes data = 2;
      boolean hasTag()
      required string tag = 1;
      Protos.Tag.Builder setData​(com.google.protobuf.ByteString value)
      required bytes data = 2;
      Protos.Tag.Builder setTag​(java.lang.String value)
      required string tag = 1;
      Protos.Tag.Builder setTagBytes​(com.google.protobuf.ByteString value)
      required string tag = 1;
      • Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

        build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
      • Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

        addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        getDefaultInstanceForType, isInitialized
    • Method Detail

      • hasTag

        public boolean hasTag()
        required string tag = 1;
        Specified by:
        hasTag in interface Protos.TagOrBuilder
        Returns:
        Whether the tag field is set.
      • getTag

        public java.lang.String getTag()
        required string tag = 1;
        Specified by:
        getTag in interface Protos.TagOrBuilder
        Returns:
        The tag.
      • getTagBytes

        public com.google.protobuf.ByteString getTagBytes()
        required string tag = 1;
        Specified by:
        getTagBytes in interface Protos.TagOrBuilder
        Returns:
        The bytes for tag.
      • setTag

        public Protos.Tag.Builder setTag​(java.lang.String value)
        required string tag = 1;
        Parameters:
        value - The tag to set.
        Returns:
        This builder for chaining.
      • clearTag

        public Protos.Tag.Builder clearTag()
        required string tag = 1;
        Returns:
        This builder for chaining.
      • setTagBytes

        public Protos.Tag.Builder setTagBytes​(com.google.protobuf.ByteString value)
        required string tag = 1;
        Parameters:
        value - The bytes for tag to set.
        Returns:
        This builder for chaining.
      • hasData

        public boolean hasData()
        required bytes data = 2;
        Specified by:
        hasData in interface Protos.TagOrBuilder
        Returns:
        Whether the data field is set.
      • getData

        public com.google.protobuf.ByteString getData()
        required bytes data = 2;
        Specified by:
        getData in interface Protos.TagOrBuilder
        Returns:
        The data.
      • setData

        public Protos.Tag.Builder setData​(com.google.protobuf.ByteString value)
        required bytes data = 2;
        Parameters:
        value - The data to set.
        Returns:
        This builder for chaining.
      • clearData

        public Protos.Tag.Builder clearData()
        required bytes data = 2;
        Returns:
        This builder for chaining.