Package org.bitcoinj.wallet
Class Protos.ScriptWitness.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Protos.ScriptWitness,Protos.ScriptWitness.Builder>
org.bitcoinj.wallet.Protos.ScriptWitness.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
,Protos.ScriptWitnessOrBuilder
- Enclosing class:
- Protos.ScriptWitness
public static final class Protos.ScriptWitness.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.ScriptWitness,Protos.ScriptWitness.Builder>
implements Protos.ScriptWitnessOrBuilder
Protobuf type
wallet.ScriptWitness
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance, isBuilt
-
Method Summary
Modifier and TypeMethodDescriptionaddAllData
(Iterable<? extends com.google.protobuf.ByteString> values) repeated bytes data = 1;
addData
(com.google.protobuf.ByteString value) repeated bytes data = 1;
repeated bytes data = 1;
com.google.protobuf.ByteString
getData
(int index) repeated bytes data = 1;
int
repeated bytes data = 1;
List<com.google.protobuf.ByteString>
repeated bytes data = 1;
setData
(int index, com.google.protobuf.ByteString value) repeated bytes data = 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
-
getDataList
repeated bytes data = 1;
- Specified by:
getDataList
in interfaceProtos.ScriptWitnessOrBuilder
- Returns:
- A list containing the data.
-
getDataCount
public int getDataCount()repeated bytes data = 1;
- Specified by:
getDataCount
in interfaceProtos.ScriptWitnessOrBuilder
- Returns:
- The count of data.
-
getData
public com.google.protobuf.ByteString getData(int index) repeated bytes data = 1;
- Specified by:
getData
in interfaceProtos.ScriptWitnessOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The data at the given index.
-
setData
repeated bytes data = 1;
- Parameters:
value
- The data to set.- Returns:
- This builder for chaining.
-
addData
repeated bytes data = 1;
- Parameters:
value
- The data to add.- Returns:
- This builder for chaining.
-
addAllData
public Protos.ScriptWitness.Builder addAllData(Iterable<? extends com.google.protobuf.ByteString> values) repeated bytes data = 1;
- Parameters:
values
- The data to add.- Returns:
- This builder for chaining.
-
clearData
repeated bytes data = 1;
- Returns:
- This builder for chaining.
-