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 |
clearId()
required bytes id = 1; |
ClientState.StoredClientPaymentChannel.Builder |
clearMyKey()
required bytes myKey = 4; |
ClientState.StoredClientPaymentChannel.Builder |
clearRefundFees()
required uint64 refundFees = 6; |
ClientState.StoredClientPaymentChannel.Builder |
clearRefundTransaction()
required bytes refundTransaction = 3; |
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() |
com.google.protobuf.ByteString |
getId()
required bytes id = 1; |
com.google.protobuf.ByteString |
getMyKey()
required bytes myKey = 4; |
long |
getRefundFees()
required uint64 refundFees = 6; |
com.google.protobuf.ByteString |
getRefundTransaction()
required bytes refundTransaction = 3; |
long |
getValueToMe()
required uint64 valueToMe = 5; |
boolean |
hasCloseTransactionHash()
optional bytes closeTransactionHash = 7; |
boolean |
hasContractTransaction()
required bytes contractTransaction = 2; |
boolean |
hasId()
required bytes id = 1; |
boolean |
hasMyKey()
required bytes myKey = 4; |
boolean |
hasRefundFees()
required uint64 refundFees = 6; |
boolean |
hasRefundTransaction()
required bytes refundTransaction = 3; |
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 |
setId(com.google.protobuf.ByteString value)
required bytes id = 1; |
ClientState.StoredClientPaymentChannel.Builder |
setMyKey(com.google.protobuf.ByteString value)
required bytes myKey = 4; |
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 |
setValueToMe(long value)
required uint64 valueToMe = 5; |
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
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 hasMyKey()
required bytes myKey = 4;
hasMyKey
in interface ClientState.StoredClientPaymentChannelOrBuilder
public com.google.protobuf.ByteString getMyKey()
required bytes myKey = 4;
getMyKey
in interface ClientState.StoredClientPaymentChannelOrBuilder
public ClientState.StoredClientPaymentChannel.Builder setMyKey(com.google.protobuf.ByteString value)
required bytes myKey = 4;
public ClientState.StoredClientPaymentChannel.Builder clearMyKey()
required bytes myKey = 4;
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;
hasRefundFees
in interface ClientState.StoredClientPaymentChannelOrBuilder
public long getRefundFees()
required uint64 refundFees = 6;
getRefundFees
in interface ClientState.StoredClientPaymentChannelOrBuilder
public ClientState.StoredClientPaymentChannel.Builder setRefundFees(long value)
required uint64 refundFees = 6;
public ClientState.StoredClientPaymentChannel.Builder clearRefundFees()
required uint64 refundFees = 6;
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.
Copyright © 2014. All rights reserved.