public static final class Protos.ClientVersion.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Protos.ClientVersion.Builder> implements Protos.ClientVersionOrBuilder
Sent by primary to secondary on opening the connection. If anything is received before this is sent, the socket is closed.Protobuf type
paymentchannels.ClientVersion| Modifier and Type | Method and Description |
|---|---|
Protos.ClientVersion.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.ClientVersion |
build() |
Protos.ClientVersion |
buildPartial() |
Protos.ClientVersion.Builder |
clear() |
Protos.ClientVersion.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.ClientVersion.Builder |
clearMajor()
required int32 major = 1; |
Protos.ClientVersion.Builder |
clearMinor()
optional int32 minor = 2 [default = 0]; |
Protos.ClientVersion.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.ClientVersion.Builder |
clearPreviousChannelContractHash()
The hash of the multisig contract of a previous channel.
|
Protos.ClientVersion.Builder |
clearTimeWindowSecs()
How many seconds should the channel be open, only used when a new channel is created.
|
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()
The hash of the multisig contract of a previous channel.
|
long |
getTimeWindowSecs()
How many seconds should the channel be open, only used when a new channel is created.
|
boolean |
hasMajor()
required int32 major = 1; |
boolean |
hasMinor()
optional int32 minor = 2 [default = 0]; |
boolean |
hasPreviousChannelContractHash()
The hash of the multisig contract of a previous channel.
|
boolean |
hasTimeWindowSecs()
How many seconds should the channel be open, only used when a new channel is created.
|
protected com.google.protobuf.GeneratedMessageV3.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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.ClientVersion.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
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)
The hash of the multisig contract of a previous channel.
|
Protos.ClientVersion.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.ClientVersion.Builder |
setTimeWindowSecs(long value)
How many seconds should the channel be open, only used when a new channel is created.
|
Protos.ClientVersion.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<Protos.ClientVersion.Builder>public Protos.ClientVersion.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ClientVersion.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<Protos.ClientVersion.Builder>public Protos.ClientVersion getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Protos.ClientVersion build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Protos.ClientVersion buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Protos.ClientVersion.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ClientVersion.Builder>public Protos.ClientVersion.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<Protos.ClientVersion.Builder>public Protos.ClientVersion.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ClientVersion.Builder>public Protos.ClientVersion.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ClientVersion.Builder>public Protos.ClientVersion.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<Protos.ClientVersion.Builder>public Protos.ClientVersion.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<Protos.ClientVersion.Builder>public Protos.ClientVersion.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom 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.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ClientVersion.Builder>public Protos.ClientVersion.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<Protos.ClientVersion.Builder>java.io.IOExceptionpublic boolean hasMajor()
required int32 major = 1;hasMajor in interface Protos.ClientVersionOrBuilderpublic int getMajor()
required int32 major = 1;getMajor in interface Protos.ClientVersionOrBuilderpublic 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.ClientVersionOrBuilderpublic int getMinor()
optional int32 minor = 2 [default = 0];getMinor in interface Protos.ClientVersionOrBuilderpublic 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()
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
optional bytes previous_channel_contract_hash = 3;hasPreviousChannelContractHash in interface Protos.ClientVersionOrBuilderpublic com.google.protobuf.ByteString getPreviousChannelContractHash()
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
optional bytes previous_channel_contract_hash = 3;getPreviousChannelContractHash in interface Protos.ClientVersionOrBuilderpublic Protos.ClientVersion.Builder setPreviousChannelContractHash(com.google.protobuf.ByteString value)
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
optional bytes previous_channel_contract_hash = 3;public Protos.ClientVersion.Builder clearPreviousChannelContractHash()
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
optional bytes previous_channel_contract_hash = 3;public boolean hasTimeWindowSecs()
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
optional uint64 time_window_secs = 4 [default = 86340];hasTimeWindowSecs in interface Protos.ClientVersionOrBuilderpublic long getTimeWindowSecs()
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
optional uint64 time_window_secs = 4 [default = 86340];getTimeWindowSecs in interface Protos.ClientVersionOrBuilderpublic Protos.ClientVersion.Builder setTimeWindowSecs(long value)
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
optional uint64 time_window_secs = 4 [default = 86340];public Protos.ClientVersion.Builder clearTimeWindowSecs()
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
optional uint64 time_window_secs = 4 [default = 86340];public final Protos.ClientVersion.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ClientVersion.Builder>public final Protos.ClientVersion.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.ClientVersion.Builder>