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
,java.lang.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 typewallet.ScriptWitness
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Protos.ScriptWitness.Builder
addAllData(java.lang.Iterable<? extends com.google.protobuf.ByteString> values)
repeated bytes data = 1;
Protos.ScriptWitness.Builder
addData(com.google.protobuf.ByteString value)
repeated bytes data = 1;
Protos.ScriptWitness.Builder
clearData()
repeated bytes data = 1;
com.google.protobuf.ByteString
getData(int index)
repeated bytes data = 1;
int
getDataCount()
repeated bytes data = 1;
java.util.List<com.google.protobuf.ByteString>
getDataList()
repeated bytes data = 1;
Protos.ScriptWitness.Builder
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
-
-
-
-
Method Detail
-
getDataList
public java.util.List<com.google.protobuf.ByteString> 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
public Protos.ScriptWitness.Builder setData(int index, com.google.protobuf.ByteString value)
repeated bytes data = 1;
- Parameters:
value
- The data to set.- Returns:
- This builder for chaining.
-
addData
public Protos.ScriptWitness.Builder addData(com.google.protobuf.ByteString value)
repeated bytes data = 1;
- Parameters:
value
- The data to add.- Returns:
- This builder for chaining.
-
addAllData
public Protos.ScriptWitness.Builder addAllData(java.lang.Iterable<? extends com.google.protobuf.ByteString> values)
repeated bytes data = 1;
- Parameters:
values
- The data to add.- Returns:
- This builder for chaining.
-
clearData
public Protos.ScriptWitness.Builder clearData()
repeated bytes data = 1;
- Returns:
- This builder for chaining.
-
-