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
,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 typewallet.Tag
-
-
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
-
-
-
-
Method Detail
-
hasTag
public boolean hasTag()
required string tag = 1;
- Specified by:
hasTag
in interfaceProtos.TagOrBuilder
- Returns:
- Whether the tag field is set.
-
getTag
public java.lang.String 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
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 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
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.
-
-