public static final class ServerState.StoredServerPaymentChannel.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ServerState.StoredServerPaymentChannel.Builder> implements ServerState.StoredServerPaymentChannelOrBuilder
A server-side payment channel in serialized form, which can be reloaded later if the server restartsProtobuf type
paymentchannels.StoredServerPaymentChannel| Modifier and Type | Method and Description |
|---|---|
ServerState.StoredServerPaymentChannel.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
ServerState.StoredServerPaymentChannel |
build() |
ServerState.StoredServerPaymentChannel |
buildPartial() |
ServerState.StoredServerPaymentChannel.Builder |
clear() |
ServerState.StoredServerPaymentChannel.Builder |
clearBestValueSignature()
optional bytes bestValueSignature = 2; |
ServerState.StoredServerPaymentChannel.Builder |
clearBestValueToMe()
required uint64 bestValueToMe = 1; |
ServerState.StoredServerPaymentChannel.Builder |
clearClientKey()
Protocol version 2 only - the P2SH hash doesn't contain the required key
|
ServerState.StoredServerPaymentChannel.Builder |
clearClientOutput()
optional bytes clientOutput = 5; |
ServerState.StoredServerPaymentChannel.Builder |
clearContractTransaction()
required bytes contractTransaction = 4; |
ServerState.StoredServerPaymentChannel.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ServerState.StoredServerPaymentChannel.Builder |
clearMajorVersion()
optional uint32 majorVersion = 7 [default = 1]; |
ServerState.StoredServerPaymentChannel.Builder |
clearMyKey()
required bytes myKey = 6; |
ServerState.StoredServerPaymentChannel.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ServerState.StoredServerPaymentChannel.Builder |
clearRefundTransactionUnlockTimeSecs()
required uint64 refundTransactionUnlockTimeSecs = 3; |
ServerState.StoredServerPaymentChannel.Builder |
clone() |
com.google.protobuf.ByteString |
getBestValueSignature()
optional bytes bestValueSignature = 2; |
long |
getBestValueToMe()
required uint64 bestValueToMe = 1; |
com.google.protobuf.ByteString |
getClientKey()
Protocol version 2 only - the P2SH hash doesn't contain the required key
|
com.google.protobuf.ByteString |
getClientOutput()
optional bytes clientOutput = 5; |
com.google.protobuf.ByteString |
getContractTransaction()
required bytes contractTransaction = 4; |
ServerState.StoredServerPaymentChannel |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getMajorVersion()
optional uint32 majorVersion = 7 [default = 1]; |
com.google.protobuf.ByteString |
getMyKey()
required bytes myKey = 6; |
long |
getRefundTransactionUnlockTimeSecs()
required uint64 refundTransactionUnlockTimeSecs = 3; |
boolean |
hasBestValueSignature()
optional bytes bestValueSignature = 2; |
boolean |
hasBestValueToMe()
required uint64 bestValueToMe = 1; |
boolean |
hasClientKey()
Protocol version 2 only - the P2SH hash doesn't contain the required key
|
boolean |
hasClientOutput()
optional bytes clientOutput = 5; |
boolean |
hasContractTransaction()
required bytes contractTransaction = 4; |
boolean |
hasMajorVersion()
optional uint32 majorVersion = 7 [default = 1]; |
boolean |
hasMyKey()
required bytes myKey = 6; |
boolean |
hasRefundTransactionUnlockTimeSecs()
required uint64 refundTransactionUnlockTimeSecs = 3; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ServerState.StoredServerPaymentChannel.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ServerState.StoredServerPaymentChannel.Builder |
mergeFrom(com.google.protobuf.Message other) |
ServerState.StoredServerPaymentChannel.Builder |
mergeFrom(ServerState.StoredServerPaymentChannel other) |
ServerState.StoredServerPaymentChannel.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ServerState.StoredServerPaymentChannel.Builder |
setBestValueSignature(com.google.protobuf.ByteString value)
optional bytes bestValueSignature = 2; |
ServerState.StoredServerPaymentChannel.Builder |
setBestValueToMe(long value)
required uint64 bestValueToMe = 1; |
ServerState.StoredServerPaymentChannel.Builder |
setClientKey(com.google.protobuf.ByteString value)
Protocol version 2 only - the P2SH hash doesn't contain the required key
|
ServerState.StoredServerPaymentChannel.Builder |
setClientOutput(com.google.protobuf.ByteString value)
optional bytes clientOutput = 5; |
ServerState.StoredServerPaymentChannel.Builder |
setContractTransaction(com.google.protobuf.ByteString value)
required bytes contractTransaction = 4; |
ServerState.StoredServerPaymentChannel.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
ServerState.StoredServerPaymentChannel.Builder |
setMajorVersion(int value)
optional uint32 majorVersion = 7 [default = 1]; |
ServerState.StoredServerPaymentChannel.Builder |
setMyKey(com.google.protobuf.ByteString value)
required bytes myKey = 6; |
ServerState.StoredServerPaymentChannel.Builder |
setRefundTransactionUnlockTimeSecs(long value)
required uint64 refundTransactionUnlockTimeSecs = 3; |
ServerState.StoredServerPaymentChannel.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
ServerState.StoredServerPaymentChannel.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ServerState.StoredServerPaymentChannel.Builder>public ServerState.StoredServerPaymentChannel.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ServerState.StoredServerPaymentChannel.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ServerState.StoredServerPaymentChannel.Builder>public ServerState.StoredServerPaymentChannel getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ServerState.StoredServerPaymentChannel build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ServerState.StoredServerPaymentChannel buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ServerState.StoredServerPaymentChannel.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ServerState.StoredServerPaymentChannel.Builder>public ServerState.StoredServerPaymentChannel.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ServerState.StoredServerPaymentChannel.Builder>public ServerState.StoredServerPaymentChannel.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ServerState.StoredServerPaymentChannel.Builder>public ServerState.StoredServerPaymentChannel.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ServerState.StoredServerPaymentChannel.Builder>public ServerState.StoredServerPaymentChannel.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ServerState.StoredServerPaymentChannel.Builder>public ServerState.StoredServerPaymentChannel.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ServerState.StoredServerPaymentChannel.Builder>public ServerState.StoredServerPaymentChannel.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ServerState.StoredServerPaymentChannel.Builder>public ServerState.StoredServerPaymentChannel.Builder mergeFrom(ServerState.StoredServerPaymentChannel other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ServerState.StoredServerPaymentChannel.Builder>public ServerState.StoredServerPaymentChannel.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ServerState.StoredServerPaymentChannel.Builder>java.io.IOExceptionpublic boolean hasBestValueToMe()
required uint64 bestValueToMe = 1;hasBestValueToMe in interface ServerState.StoredServerPaymentChannelOrBuilderpublic long getBestValueToMe()
required uint64 bestValueToMe = 1;getBestValueToMe in interface ServerState.StoredServerPaymentChannelOrBuilderpublic ServerState.StoredServerPaymentChannel.Builder setBestValueToMe(long value)
required uint64 bestValueToMe = 1;public ServerState.StoredServerPaymentChannel.Builder clearBestValueToMe()
required uint64 bestValueToMe = 1;public boolean hasBestValueSignature()
optional bytes bestValueSignature = 2;hasBestValueSignature in interface ServerState.StoredServerPaymentChannelOrBuilderpublic com.google.protobuf.ByteString getBestValueSignature()
optional bytes bestValueSignature = 2;getBestValueSignature in interface ServerState.StoredServerPaymentChannelOrBuilderpublic ServerState.StoredServerPaymentChannel.Builder setBestValueSignature(com.google.protobuf.ByteString value)
optional bytes bestValueSignature = 2;public ServerState.StoredServerPaymentChannel.Builder clearBestValueSignature()
optional bytes bestValueSignature = 2;public boolean hasRefundTransactionUnlockTimeSecs()
required uint64 refundTransactionUnlockTimeSecs = 3;hasRefundTransactionUnlockTimeSecs in interface ServerState.StoredServerPaymentChannelOrBuilderpublic long getRefundTransactionUnlockTimeSecs()
required uint64 refundTransactionUnlockTimeSecs = 3;getRefundTransactionUnlockTimeSecs in interface ServerState.StoredServerPaymentChannelOrBuilderpublic ServerState.StoredServerPaymentChannel.Builder setRefundTransactionUnlockTimeSecs(long value)
required uint64 refundTransactionUnlockTimeSecs = 3;public ServerState.StoredServerPaymentChannel.Builder clearRefundTransactionUnlockTimeSecs()
required uint64 refundTransactionUnlockTimeSecs = 3;public boolean hasContractTransaction()
required bytes contractTransaction = 4;hasContractTransaction in interface ServerState.StoredServerPaymentChannelOrBuilderpublic com.google.protobuf.ByteString getContractTransaction()
required bytes contractTransaction = 4;getContractTransaction in interface ServerState.StoredServerPaymentChannelOrBuilderpublic ServerState.StoredServerPaymentChannel.Builder setContractTransaction(com.google.protobuf.ByteString value)
required bytes contractTransaction = 4;public ServerState.StoredServerPaymentChannel.Builder clearContractTransaction()
required bytes contractTransaction = 4;public boolean hasClientOutput()
optional bytes clientOutput = 5;hasClientOutput in interface ServerState.StoredServerPaymentChannelOrBuilderpublic com.google.protobuf.ByteString getClientOutput()
optional bytes clientOutput = 5;getClientOutput in interface ServerState.StoredServerPaymentChannelOrBuilderpublic ServerState.StoredServerPaymentChannel.Builder setClientOutput(com.google.protobuf.ByteString value)
optional bytes clientOutput = 5;public ServerState.StoredServerPaymentChannel.Builder clearClientOutput()
optional bytes clientOutput = 5;public boolean hasMyKey()
required bytes myKey = 6;hasMyKey in interface ServerState.StoredServerPaymentChannelOrBuilderpublic com.google.protobuf.ByteString getMyKey()
required bytes myKey = 6;getMyKey in interface ServerState.StoredServerPaymentChannelOrBuilderpublic ServerState.StoredServerPaymentChannel.Builder setMyKey(com.google.protobuf.ByteString value)
required bytes myKey = 6;public ServerState.StoredServerPaymentChannel.Builder clearMyKey()
required bytes myKey = 6;public boolean hasMajorVersion()
optional uint32 majorVersion = 7 [default = 1];hasMajorVersion in interface ServerState.StoredServerPaymentChannelOrBuilderpublic int getMajorVersion()
optional uint32 majorVersion = 7 [default = 1];getMajorVersion in interface ServerState.StoredServerPaymentChannelOrBuilderpublic ServerState.StoredServerPaymentChannel.Builder setMajorVersion(int value)
optional uint32 majorVersion = 7 [default = 1];public ServerState.StoredServerPaymentChannel.Builder clearMajorVersion()
optional uint32 majorVersion = 7 [default = 1];public boolean hasClientKey()
Protocol version 2 only - the P2SH hash doesn't contain the required key
optional bytes clientKey = 8;hasClientKey in interface ServerState.StoredServerPaymentChannelOrBuilderpublic com.google.protobuf.ByteString getClientKey()
Protocol version 2 only - the P2SH hash doesn't contain the required key
optional bytes clientKey = 8;getClientKey in interface ServerState.StoredServerPaymentChannelOrBuilderpublic ServerState.StoredServerPaymentChannel.Builder setClientKey(com.google.protobuf.ByteString value)
Protocol version 2 only - the P2SH hash doesn't contain the required key
optional bytes clientKey = 8;public ServerState.StoredServerPaymentChannel.Builder clearClientKey()
Protocol version 2 only - the P2SH hash doesn't contain the required key
optional bytes clientKey = 8;public final ServerState.StoredServerPaymentChannel.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ServerState.StoredServerPaymentChannel.Builder>public final ServerState.StoredServerPaymentChannel.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ServerState.StoredServerPaymentChannel.Builder>