public static final class Protos.ServerVersion.Builder extends com.google.protobuf.GeneratedMessage.Builder<Protos.ServerVersion.Builder> implements Protos.ServerVersionOrBuilder
paymentchannels.ServerVersion
Send by secondary to primary upon receiving the ClientVersion message. If it is willing to speak the given major version, it sends back the same major version and the minor version it speaks. If it is not, it may send back a lower major version representing the highest version it is willing to speak, or sends a NO_ACCEPTABLE_VERSION Error. If the secondary sends back a lower major version, the secondary should either expect to continue with that version, or should immediately close the connection with a NO_ACCEPTABLE_VERSION Error. Backwards incompatible changes to the protocol bump the major version. Extensions bump the minor version
Modifier and Type | Method and Description |
---|---|
Protos.ServerVersion |
build() |
Protos.ServerVersion |
buildPartial() |
Protos.ServerVersion.Builder |
clear() |
Protos.ServerVersion.Builder |
clearMajor()
required int32 major = 1; |
Protos.ServerVersion.Builder |
clearMinor()
optional int32 minor = 2 [default = 0]; |
Protos.ServerVersion.Builder |
clone() |
Protos.ServerVersion |
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]; |
boolean |
hasMajor()
required int32 major = 1; |
boolean |
hasMinor()
optional int32 minor = 2 [default = 0]; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.ServerVersion.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.ServerVersion.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.ServerVersion.Builder |
mergeFrom(Protos.ServerVersion other) |
Protos.ServerVersion.Builder |
setMajor(int value)
required int32 major = 1; |
Protos.ServerVersion.Builder |
setMinor(int value)
optional int32 minor = 2 [default = 0]; |
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<Protos.ServerVersion.Builder>
public Protos.ServerVersion.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.ServerVersion.Builder>
public Protos.ServerVersion.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.ServerVersion.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.ServerVersion.Builder>
public Protos.ServerVersion getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Protos.ServerVersion build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Protos.ServerVersion buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Protos.ServerVersion.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Protos.ServerVersion.Builder>
public Protos.ServerVersion.Builder mergeFrom(Protos.ServerVersion other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<Protos.ServerVersion.Builder>
public Protos.ServerVersion.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.ServerVersion.Builder>
IOException
public boolean hasMajor()
required int32 major = 1;
hasMajor
in interface Protos.ServerVersionOrBuilder
public int getMajor()
required int32 major = 1;
getMajor
in interface Protos.ServerVersionOrBuilder
public Protos.ServerVersion.Builder setMajor(int value)
required int32 major = 1;
public Protos.ServerVersion.Builder clearMajor()
required int32 major = 1;
public boolean hasMinor()
optional int32 minor = 2 [default = 0];
hasMinor
in interface Protos.ServerVersionOrBuilder
public int getMinor()
optional int32 minor = 2 [default = 0];
getMinor
in interface Protos.ServerVersionOrBuilder
public Protos.ServerVersion.Builder setMinor(int value)
optional int32 minor = 2 [default = 0];
public Protos.ServerVersion.Builder clearMinor()
optional int32 minor = 2 [default = 0];
Copyright © 2016. All rights reserved.