Package org.bitcoinj.wallet
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 TypeMethodDescriptionrequired bytes data = 2;
clearTag()
required string tag = 1;
com.google.protobuf.ByteString
getData()
required bytes data = 2;
getTag()
required string tag = 1;
com.google.protobuf.ByteString
required string tag = 1;
boolean
hasData()
required bytes data = 2;
boolean
hasTag()
required string tag = 1;
setData
(com.google.protobuf.ByteString value) required bytes data = 2;
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 interfaceProtos.TagOrBuilder
- Returns:
- Whether the tag field is set.
-
getTag
required string tag = 1;
- Specified by:
getTag
in interfaceProtos.TagOrBuilder
- Returns:
- The tag.
-
getTagBytes
public com.google.protobuf.ByteString getTagBytes()required string tag = 1;
- Specified by:
getTagBytes
in interfaceProtos.TagOrBuilder
- Returns:
- The bytes for tag.
-
setTag
required string tag = 1;
- Parameters:
value
- The tag to set.- Returns:
- This builder for chaining.
-
clearTag
required string tag = 1;
- Returns:
- This builder for chaining.
-
setTagBytes
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 interfaceProtos.TagOrBuilder
- Returns:
- Whether the data field is set.
-
getData
public com.google.protobuf.ByteString getData()required bytes data = 2;
- Specified by:
getData
in interfaceProtos.TagOrBuilder
- Returns:
- The data.
-
setData
required bytes data = 2;
- Parameters:
value
- The data to set.- Returns:
- This builder for chaining.
-
clearData
required bytes data = 2;
- Returns:
- This builder for chaining.
-