Class Protos.Tag.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Protos.Tag,Protos.Tag.Builder>
org.bitcoinj.wallet.Protos.Tag.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, 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, isBuilt
  • Method Summary

    Modifier and Type
    Method
    Description
    required bytes data = 2;
    required string tag = 1;
    com.google.protobuf.ByteString
    required bytes data = 2;
    required string tag = 1;
    com.google.protobuf.ByteString
    required string tag = 1;
    boolean
    required bytes data = 2;
    boolean
    required string tag = 1;
    setData(com.google.protobuf.ByteString value)
    required bytes data = 2;
    setTag(String value)
    required string tag = 1;
    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 Details

    • hasTag

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

      public 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(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.