public static final class ClientState.StoredClientPaymentChannel.Builder extends com.google.protobuf.GeneratedMessage.Builder<ClientState.StoredClientPaymentChannel.Builder> implements ClientState.StoredClientPaymentChannelOrBuilder
paymentchannels.StoredClientPaymentChannel
A client-side payment channel in serialized form, which can be reloaded later if the client restarts and wants to reopen an existing channel
Modifier and Type | Method and Description |
---|---|
ClientState.StoredClientPaymentChannel |
build() |
ClientState.StoredClientPaymentChannel |
buildPartial() |
ClientState.StoredClientPaymentChannel.Builder |
clear() |
ClientState.StoredClientPaymentChannel.Builder |
clearCloseTransactionHash()
optional bytes closeTransactionHash = 7; |
ClientState.StoredClientPaymentChannel.Builder |
clearContractTransaction()
required bytes contractTransaction = 2; |
ClientState.StoredClientPaymentChannel.Builder |
clearExpiryTime()
optional uint64 expiryTime = 10; |
ClientState.StoredClientPaymentChannel.Builder |
clearId()
required bytes id = 1; |
ClientState.StoredClientPaymentChannel.Builder |
clearMajorVersion()
optional uint32 majorVersion = 9 [default = 1]; |
ClientState.StoredClientPaymentChannel.Builder |
clearMyKey()
required bytes myKey = 4; |
ClientState.StoredClientPaymentChannel.Builder |
clearMyPublicKey()
required bytes myPublicKey = 8; |
ClientState.StoredClientPaymentChannel.Builder |
clearRefundFees()
required uint64 refundFees = 6; |
ClientState.StoredClientPaymentChannel.Builder |
clearRefundTransaction()
required bytes refundTransaction = 3; |
ClientState.StoredClientPaymentChannel.Builder |
clearServerKey()
optional bytes serverKey = 11; |
ClientState.StoredClientPaymentChannel.Builder |
clearValueToMe()
required uint64 valueToMe = 5; |
ClientState.StoredClientPaymentChannel.Builder |
clone() |
com.google.protobuf.ByteString |
getCloseTransactionHash()
optional bytes closeTransactionHash = 7; |
com.google.protobuf.ByteString |
getContractTransaction()
required bytes contractTransaction = 2; |
ClientState.StoredClientPaymentChannel |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getExpiryTime()
optional uint64 expiryTime = 10; |
com.google.protobuf.ByteString |
getId()
required bytes id = 1; |
int |
getMajorVersion()
optional uint32 majorVersion = 9 [default = 1]; |
com.google.protobuf.ByteString |
getMyKey()
required bytes myKey = 4; |
com.google.protobuf.ByteString |
getMyPublicKey()
required bytes myPublicKey = 8; |
long |
getRefundFees()
required uint64 refundFees = 6; |
com.google.protobuf.ByteString |
getRefundTransaction()
required bytes refundTransaction = 3; |
com.google.protobuf.ByteString |
getServerKey()
optional bytes serverKey = 11; |
long |
getValueToMe()
required uint64 valueToMe = 5; |
boolean |
hasCloseTransactionHash()
optional bytes closeTransactionHash = 7; |
boolean |
hasContractTransaction()
required bytes contractTransaction = 2; |
boolean |
hasExpiryTime()
optional uint64 expiryTime = 10; |
boolean |
hasId()
required bytes id = 1; |
boolean |
hasMajorVersion()
optional uint32 majorVersion = 9 [default = 1]; |
boolean |
hasMyKey()
required bytes myKey = 4; |
boolean |
hasMyPublicKey()
required bytes myPublicKey = 8; |
boolean |
hasRefundFees()
required uint64 refundFees = 6; |
boolean |
hasRefundTransaction()
required bytes refundTransaction = 3; |
boolean |
hasServerKey()
optional bytes serverKey = 11; |
boolean |
hasValueToMe()
required uint64 valueToMe = 5; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ClientState.StoredClientPaymentChannel.Builder |
mergeFrom(ClientState.StoredClientPaymentChannel other) |
ClientState.StoredClientPaymentChannel.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ClientState.StoredClientPaymentChannel.Builder |
mergeFrom(com.google.protobuf.Message other) |
ClientState.StoredClientPaymentChannel.Builder |
setCloseTransactionHash(com.google.protobuf.ByteString value)
optional bytes closeTransactionHash = 7; |
ClientState.StoredClientPaymentChannel.Builder |
setContractTransaction(com.google.protobuf.ByteString value)
required bytes contractTransaction = 2; |
ClientState.StoredClientPaymentChannel.Builder |
setExpiryTime(long value)
optional uint64 expiryTime = 10; |
ClientState.StoredClientPaymentChannel.Builder |
setId(com.google.protobuf.ByteString value)
required bytes id = 1; |
ClientState.StoredClientPaymentChannel.Builder |
setMajorVersion(int value)
optional uint32 majorVersion = 9 [default = 1]; |
ClientState.StoredClientPaymentChannel.Builder |
setMyKey(com.google.protobuf.ByteString value)
required bytes myKey = 4; |
ClientState.StoredClientPaymentChannel.Builder |
setMyPublicKey(com.google.protobuf.ByteString value)
required bytes myPublicKey = 8; |
ClientState.StoredClientPaymentChannel.Builder |
setRefundFees(long value)
required uint64 refundFees = 6; |
ClientState.StoredClientPaymentChannel.Builder |
setRefundTransaction(com.google.protobuf.ByteString value)
required bytes refundTransaction = 3; |
ClientState.StoredClientPaymentChannel.Builder |
setServerKey(com.google.protobuf.ByteString value)
optional bytes serverKey = 11; |
ClientState.StoredClientPaymentChannel.Builder |
setValueToMe(long value)
required uint64 valueToMe = 5; |
addRepeatedField, clearField, clearOneof, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, newUninitializedMessageException
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<ClientState.StoredClientPaymentChannel.Builder>
public ClientState.StoredClientPaymentChannel.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<ClientState.StoredClientPaymentChannel.Builder>
public ClientState.StoredClientPaymentChannel.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessage.Builder<ClientState.StoredClientPaymentChannel.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.GeneratedMessage.Builder<ClientState.StoredClientPaymentChannel.Builder>
public ClientState.StoredClientPaymentChannel getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public ClientState.StoredClientPaymentChannel build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public ClientState.StoredClientPaymentChannel buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public ClientState.StoredClientPaymentChannel.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ClientState.StoredClientPaymentChannel.Builder>
public ClientState.StoredClientPaymentChannel.Builder mergeFrom(ClientState.StoredClientPaymentChannel other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<ClientState.StoredClientPaymentChannel.Builder>
public ClientState.StoredClientPaymentChannel.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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<ClientState.StoredClientPaymentChannel.Builder>
IOException
public boolean hasId()
required bytes id = 1;
hasId
in interface ClientState.StoredClientPaymentChannelOrBuilder
public com.google.protobuf.ByteString getId()
required bytes id = 1;
getId
in interface ClientState.StoredClientPaymentChannelOrBuilder
public ClientState.StoredClientPaymentChannel.Builder setId(com.google.protobuf.ByteString value)
required bytes id = 1;
public ClientState.StoredClientPaymentChannel.Builder clearId()
required bytes id = 1;
public boolean hasContractTransaction()
required bytes contractTransaction = 2;
hasContractTransaction
in interface ClientState.StoredClientPaymentChannelOrBuilder
public com.google.protobuf.ByteString getContractTransaction()
required bytes contractTransaction = 2;
getContractTransaction
in interface ClientState.StoredClientPaymentChannelOrBuilder
public ClientState.StoredClientPaymentChannel.Builder setContractTransaction(com.google.protobuf.ByteString value)
required bytes contractTransaction = 2;
public ClientState.StoredClientPaymentChannel.Builder clearContractTransaction()
required bytes contractTransaction = 2;
public boolean hasRefundTransaction()
required bytes refundTransaction = 3;
hasRefundTransaction
in interface ClientState.StoredClientPaymentChannelOrBuilder
public com.google.protobuf.ByteString getRefundTransaction()
required bytes refundTransaction = 3;
getRefundTransaction
in interface ClientState.StoredClientPaymentChannelOrBuilder
public ClientState.StoredClientPaymentChannel.Builder setRefundTransaction(com.google.protobuf.ByteString value)
required bytes refundTransaction = 3;
public ClientState.StoredClientPaymentChannel.Builder clearRefundTransaction()
required bytes refundTransaction = 3;
public boolean hasMyPublicKey()
required bytes myPublicKey = 8;
hasMyPublicKey
in interface ClientState.StoredClientPaymentChannelOrBuilder
public com.google.protobuf.ByteString getMyPublicKey()
required bytes myPublicKey = 8;
getMyPublicKey
in interface ClientState.StoredClientPaymentChannelOrBuilder
public ClientState.StoredClientPaymentChannel.Builder setMyPublicKey(com.google.protobuf.ByteString value)
required bytes myPublicKey = 8;
public ClientState.StoredClientPaymentChannel.Builder clearMyPublicKey()
required bytes myPublicKey = 8;
public boolean hasMyKey()
required bytes myKey = 4;
Deprecated, key is already stored in the wallet, and found using myPublicKey;
hasMyKey
in interface ClientState.StoredClientPaymentChannelOrBuilder
public com.google.protobuf.ByteString getMyKey()
required bytes myKey = 4;
Deprecated, key is already stored in the wallet, and found using myPublicKey;
getMyKey
in interface ClientState.StoredClientPaymentChannelOrBuilder
public ClientState.StoredClientPaymentChannel.Builder setMyKey(com.google.protobuf.ByteString value)
required bytes myKey = 4;
Deprecated, key is already stored in the wallet, and found using myPublicKey;
public ClientState.StoredClientPaymentChannel.Builder clearMyKey()
required bytes myKey = 4;
Deprecated, key is already stored in the wallet, and found using myPublicKey;
public boolean hasValueToMe()
required uint64 valueToMe = 5;
hasValueToMe
in interface ClientState.StoredClientPaymentChannelOrBuilder
public long getValueToMe()
required uint64 valueToMe = 5;
getValueToMe
in interface ClientState.StoredClientPaymentChannelOrBuilder
public ClientState.StoredClientPaymentChannel.Builder setValueToMe(long value)
required uint64 valueToMe = 5;
public ClientState.StoredClientPaymentChannel.Builder clearValueToMe()
required uint64 valueToMe = 5;
public boolean hasRefundFees()
required uint64 refundFees = 6;
Fees required to refund the transaction.
hasRefundFees
in interface ClientState.StoredClientPaymentChannelOrBuilder
public long getRefundFees()
required uint64 refundFees = 6;
Fees required to refund the transaction.
getRefundFees
in interface ClientState.StoredClientPaymentChannelOrBuilder
public ClientState.StoredClientPaymentChannel.Builder setRefundFees(long value)
required uint64 refundFees = 6;
Fees required to refund the transaction.
public ClientState.StoredClientPaymentChannel.Builder clearRefundFees()
required uint64 refundFees = 6;
Fees required to refund the transaction.
public boolean hasCloseTransactionHash()
optional bytes closeTransactionHash = 7;
When set, the hash of the transaction that was presented by the server for closure of the channel. It spends the contractTransaction and is expected to be broadcast to the network by the server. It's supposed to be in the wallet already.
hasCloseTransactionHash
in interface ClientState.StoredClientPaymentChannelOrBuilder
public com.google.protobuf.ByteString getCloseTransactionHash()
optional bytes closeTransactionHash = 7;
When set, the hash of the transaction that was presented by the server for closure of the channel. It spends the contractTransaction and is expected to be broadcast to the network by the server. It's supposed to be in the wallet already.
getCloseTransactionHash
in interface ClientState.StoredClientPaymentChannelOrBuilder
public ClientState.StoredClientPaymentChannel.Builder setCloseTransactionHash(com.google.protobuf.ByteString value)
optional bytes closeTransactionHash = 7;
When set, the hash of the transaction that was presented by the server for closure of the channel. It spends the contractTransaction and is expected to be broadcast to the network by the server. It's supposed to be in the wallet already.
public ClientState.StoredClientPaymentChannel.Builder clearCloseTransactionHash()
optional bytes closeTransactionHash = 7;
When set, the hash of the transaction that was presented by the server for closure of the channel. It spends the contractTransaction and is expected to be broadcast to the network by the server. It's supposed to be in the wallet already.
public boolean hasMajorVersion()
optional uint32 majorVersion = 9 [default = 1];
hasMajorVersion
in interface ClientState.StoredClientPaymentChannelOrBuilder
public int getMajorVersion()
optional uint32 majorVersion = 9 [default = 1];
getMajorVersion
in interface ClientState.StoredClientPaymentChannelOrBuilder
public ClientState.StoredClientPaymentChannel.Builder setMajorVersion(int value)
optional uint32 majorVersion = 9 [default = 1];
public ClientState.StoredClientPaymentChannel.Builder clearMajorVersion()
optional uint32 majorVersion = 9 [default = 1];
public boolean hasExpiryTime()
optional uint64 expiryTime = 10;
The expiry time of the CLTV lock. Only used in protocol v2.
hasExpiryTime
in interface ClientState.StoredClientPaymentChannelOrBuilder
public long getExpiryTime()
optional uint64 expiryTime = 10;
The expiry time of the CLTV lock. Only used in protocol v2.
getExpiryTime
in interface ClientState.StoredClientPaymentChannelOrBuilder
public ClientState.StoredClientPaymentChannel.Builder setExpiryTime(long value)
optional uint64 expiryTime = 10;
The expiry time of the CLTV lock. Only used in protocol v2.
public ClientState.StoredClientPaymentChannel.Builder clearExpiryTime()
optional uint64 expiryTime = 10;
The expiry time of the CLTV lock. Only used in protocol v2.
public boolean hasServerKey()
optional bytes serverKey = 11;
The server's public key. Only used in protocol v2.
hasServerKey
in interface ClientState.StoredClientPaymentChannelOrBuilder
public com.google.protobuf.ByteString getServerKey()
optional bytes serverKey = 11;
The server's public key. Only used in protocol v2.
getServerKey
in interface ClientState.StoredClientPaymentChannelOrBuilder
public ClientState.StoredClientPaymentChannel.Builder setServerKey(com.google.protobuf.ByteString value)
optional bytes serverKey = 11;
The server's public key. Only used in protocol v2.
public ClientState.StoredClientPaymentChannel.Builder clearServerKey()
optional bytes serverKey = 11;
The server's public key. Only used in protocol v2.
Copyright © 2016. All rights reserved.