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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<ServerState.StoredServerPaymentChannel.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<ServerState.StoredServerPaymentChannel.Builder>
public ServerState.StoredServerPaymentChannel getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public ServerState.StoredServerPaymentChannel build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public ServerState.StoredServerPaymentChannel buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public ServerState.StoredServerPaymentChannel.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
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.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ServerState.StoredServerPaymentChannel.Builder>
java.io.IOException
public boolean hasBestValueToMe()
required uint64 bestValueToMe = 1;
hasBestValueToMe
in interface ServerState.StoredServerPaymentChannelOrBuilder
public long getBestValueToMe()
required uint64 bestValueToMe = 1;
getBestValueToMe
in interface ServerState.StoredServerPaymentChannelOrBuilder
public 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.StoredServerPaymentChannelOrBuilder
public com.google.protobuf.ByteString getBestValueSignature()
optional bytes bestValueSignature = 2;
getBestValueSignature
in interface ServerState.StoredServerPaymentChannelOrBuilder
public 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.StoredServerPaymentChannelOrBuilder
public long getRefundTransactionUnlockTimeSecs()
required uint64 refundTransactionUnlockTimeSecs = 3;
getRefundTransactionUnlockTimeSecs
in interface ServerState.StoredServerPaymentChannelOrBuilder
public 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.StoredServerPaymentChannelOrBuilder
public com.google.protobuf.ByteString getContractTransaction()
required bytes contractTransaction = 4;
getContractTransaction
in interface ServerState.StoredServerPaymentChannelOrBuilder
public 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.StoredServerPaymentChannelOrBuilder
public com.google.protobuf.ByteString getClientOutput()
optional bytes clientOutput = 5;
getClientOutput
in interface ServerState.StoredServerPaymentChannelOrBuilder
public 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.StoredServerPaymentChannelOrBuilder
public com.google.protobuf.ByteString getMyKey()
required bytes myKey = 6;
getMyKey
in interface ServerState.StoredServerPaymentChannelOrBuilder
public 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.StoredServerPaymentChannelOrBuilder
public int getMajorVersion()
optional uint32 majorVersion = 7 [default = 1];
getMajorVersion
in interface ServerState.StoredServerPaymentChannelOrBuilder
public 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.StoredServerPaymentChannelOrBuilder
public 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.StoredServerPaymentChannelOrBuilder
public 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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ServerState.StoredServerPaymentChannel.Builder>