public static final class Protos.ClientVersion.Builder extends com.google.protobuf.GeneratedMessage.Builder<Protos.ClientVersion.Builder> implements Protos.ClientVersionOrBuilder
paymentchannels.ClientVersion
Sent by primary to secondary on opening the connection. If anything is received before this is sent, the socket is closed.
Modifier and Type | Method and Description |
---|---|
Protos.ClientVersion |
build() |
Protos.ClientVersion |
buildPartial() |
Protos.ClientVersion.Builder |
clear() |
Protos.ClientVersion.Builder |
clearMajor()
required int32 major = 1; |
Protos.ClientVersion.Builder |
clearMinor()
optional int32 minor = 2 [default = 0]; |
Protos.ClientVersion.Builder |
clearPreviousChannelContractHash()
optional bytes previous_channel_contract_hash = 3; |
Protos.ClientVersion.Builder |
clearTimeWindowSecs()
optional uint64 time_window_secs = 4 [default = 86340]; |
Protos.ClientVersion.Builder |
clone() |
Protos.ClientVersion |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getMajor()
required int32 major = 1; |
int |
getMinor()
optional int32 minor = 2 [default = 0]; |
com.google.protobuf.ByteString |
getPreviousChannelContractHash()
optional bytes previous_channel_contract_hash = 3; |
long |
getTimeWindowSecs()
optional uint64 time_window_secs = 4 [default = 86340]; |
boolean |
hasMajor()
required int32 major = 1; |
boolean |
hasMinor()
optional int32 minor = 2 [default = 0]; |
boolean |
hasPreviousChannelContractHash()
optional bytes previous_channel_contract_hash = 3; |
boolean |
hasTimeWindowSecs()
optional uint64 time_window_secs = 4 [default = 86340]; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.ClientVersion.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.ClientVersion.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.ClientVersion.Builder |
mergeFrom(Protos.ClientVersion other) |
Protos.ClientVersion.Builder |
setMajor(int value)
required int32 major = 1; |
Protos.ClientVersion.Builder |
setMinor(int value)
optional int32 minor = 2 [default = 0]; |
Protos.ClientVersion.Builder |
setPreviousChannelContractHash(com.google.protobuf.ByteString value)
optional bytes previous_channel_contract_hash = 3; |
Protos.ClientVersion.Builder |
setTimeWindowSecs(long value)
optional uint64 time_window_secs = 4 [default = 86340]; |
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<Protos.ClientVersion.Builder>
public Protos.ClientVersion.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<Protos.ClientVersion.Builder>
public Protos.ClientVersion.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<Protos.ClientVersion.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<Protos.ClientVersion.Builder>
public Protos.ClientVersion getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Protos.ClientVersion build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Protos.ClientVersion buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Protos.ClientVersion.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Protos.ClientVersion.Builder>
public Protos.ClientVersion.Builder mergeFrom(Protos.ClientVersion other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<Protos.ClientVersion.Builder>
public Protos.ClientVersion.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<Protos.ClientVersion.Builder>
IOException
public boolean hasMajor()
required int32 major = 1;
hasMajor
in interface Protos.ClientVersionOrBuilder
public int getMajor()
required int32 major = 1;
getMajor
in interface Protos.ClientVersionOrBuilder
public Protos.ClientVersion.Builder setMajor(int value)
required int32 major = 1;
public Protos.ClientVersion.Builder clearMajor()
required int32 major = 1;
public boolean hasMinor()
optional int32 minor = 2 [default = 0];
hasMinor
in interface Protos.ClientVersionOrBuilder
public int getMinor()
optional int32 minor = 2 [default = 0];
getMinor
in interface Protos.ClientVersionOrBuilder
public Protos.ClientVersion.Builder setMinor(int value)
optional int32 minor = 2 [default = 0];
public Protos.ClientVersion.Builder clearMinor()
optional int32 minor = 2 [default = 0];
public boolean hasPreviousChannelContractHash()
optional bytes previous_channel_contract_hash = 3;
The hash of the multisig contract of a previous channel. This indicates that the primary wishes to reopen the given channel. If the server is willing to reopen it, it simply responds with a SERVER_VERSION and then immediately sends a CHANNEL_OPEN, it otherwise follows SERVER_VERSION with an Initiate representing a new channel
hasPreviousChannelContractHash
in interface Protos.ClientVersionOrBuilder
public com.google.protobuf.ByteString getPreviousChannelContractHash()
optional bytes previous_channel_contract_hash = 3;
The hash of the multisig contract of a previous channel. This indicates that the primary wishes to reopen the given channel. If the server is willing to reopen it, it simply responds with a SERVER_VERSION and then immediately sends a CHANNEL_OPEN, it otherwise follows SERVER_VERSION with an Initiate representing a new channel
getPreviousChannelContractHash
in interface Protos.ClientVersionOrBuilder
public Protos.ClientVersion.Builder setPreviousChannelContractHash(com.google.protobuf.ByteString value)
optional bytes previous_channel_contract_hash = 3;
The hash of the multisig contract of a previous channel. This indicates that the primary wishes to reopen the given channel. If the server is willing to reopen it, it simply responds with a SERVER_VERSION and then immediately sends a CHANNEL_OPEN, it otherwise follows SERVER_VERSION with an Initiate representing a new channel
public Protos.ClientVersion.Builder clearPreviousChannelContractHash()
optional bytes previous_channel_contract_hash = 3;
The hash of the multisig contract of a previous channel. This indicates that the primary wishes to reopen the given channel. If the server is willing to reopen it, it simply responds with a SERVER_VERSION and then immediately sends a CHANNEL_OPEN, it otherwise follows SERVER_VERSION with an Initiate representing a new channel
public boolean hasTimeWindowSecs()
optional uint64 time_window_secs = 4 [default = 86340];
How many seconds should the channel be open, only used when a new channel is created. Defaults to 24 h minus 60 seconds, 24*60*60 - 60
hasTimeWindowSecs
in interface Protos.ClientVersionOrBuilder
public long getTimeWindowSecs()
optional uint64 time_window_secs = 4 [default = 86340];
How many seconds should the channel be open, only used when a new channel is created. Defaults to 24 h minus 60 seconds, 24*60*60 - 60
getTimeWindowSecs
in interface Protos.ClientVersionOrBuilder
public Protos.ClientVersion.Builder setTimeWindowSecs(long value)
optional uint64 time_window_secs = 4 [default = 86340];
How many seconds should the channel be open, only used when a new channel is created. Defaults to 24 h minus 60 seconds, 24*60*60 - 60
public Protos.ClientVersion.Builder clearTimeWindowSecs()
optional uint64 time_window_secs = 4 [default = 86340];
How many seconds should the channel be open, only used when a new channel is created. Defaults to 24 h minus 60 seconds, 24*60*60 - 60
Copyright © 2014. All rights reserved.