public static final class Protos.Error.Builder extends com.google.protobuf.GeneratedMessage.Builder<Protos.Error.Builder> implements Protos.ErrorOrBuilder
paymentchannels.Error
An Error can be sent by either party at any time Both parties should make an effort to send either an ERROR or a CLOSE immediately before closing the socket (unless they just received an ERROR or a CLOSE)
| Modifier and Type | Method and Description |
|---|---|
Protos.Error |
build() |
Protos.Error |
buildPartial() |
Protos.Error.Builder |
clear() |
Protos.Error.Builder |
clearCode()
optional .paymentchannels.Error.ErrorCode code = 1 [default = OTHER]; |
Protos.Error.Builder |
clearExpectedValue()
optional uint64 expected_value = 3; |
Protos.Error.Builder |
clearExplanation()
optional string explanation = 2; |
Protos.Error.Builder |
clone() |
Protos.Error.ErrorCode |
getCode()
optional .paymentchannels.Error.ErrorCode code = 1 [default = OTHER]; |
Protos.Error |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getExpectedValue()
optional uint64 expected_value = 3; |
String |
getExplanation()
optional string explanation = 2; |
com.google.protobuf.ByteString |
getExplanationBytes()
optional string explanation = 2; |
boolean |
hasCode()
optional .paymentchannels.Error.ErrorCode code = 1 [default = OTHER]; |
boolean |
hasExpectedValue()
optional uint64 expected_value = 3; |
boolean |
hasExplanation()
optional string explanation = 2; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.Error.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Error.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.Error.Builder |
mergeFrom(Protos.Error other) |
Protos.Error.Builder |
setCode(Protos.Error.ErrorCode value)
optional .paymentchannels.Error.ErrorCode code = 1 [default = OTHER]; |
Protos.Error.Builder |
setExpectedValue(long value)
optional uint64 expected_value = 3; |
Protos.Error.Builder |
setExplanation(String value)
optional string explanation = 2; |
Protos.Error.Builder |
setExplanationBytes(com.google.protobuf.ByteString value)
optional string explanation = 2; |
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldsfindInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionaddAll, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Protos.Error.Builder>public Protos.Error.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<Protos.Error.Builder>public Protos.Error.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessage.Builder<Protos.Error.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.GeneratedMessage.Builder<Protos.Error.Builder>public Protos.Error getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Protos.Error build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Protos.Error buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Protos.Error.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Protos.Error.Builder>public Protos.Error.Builder mergeFrom(Protos.Error other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Protos.Error.Builder>public Protos.Error.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Protos.Error.Builder>IOExceptionpublic boolean hasCode()
optional .paymentchannels.Error.ErrorCode code = 1 [default = OTHER];hasCode in interface Protos.ErrorOrBuilderpublic Protos.Error.ErrorCode getCode()
optional .paymentchannels.Error.ErrorCode code = 1 [default = OTHER];getCode in interface Protos.ErrorOrBuilderpublic Protos.Error.Builder setCode(Protos.Error.ErrorCode value)
optional .paymentchannels.Error.ErrorCode code = 1 [default = OTHER];public Protos.Error.Builder clearCode()
optional .paymentchannels.Error.ErrorCode code = 1 [default = OTHER];public boolean hasExplanation()
optional string explanation = 2;
NOT SAFE FOR HTML WITHOUT ESCAPING
hasExplanation in interface Protos.ErrorOrBuilderpublic String getExplanation()
optional string explanation = 2;
NOT SAFE FOR HTML WITHOUT ESCAPING
getExplanation in interface Protos.ErrorOrBuilderpublic com.google.protobuf.ByteString getExplanationBytes()
optional string explanation = 2;
NOT SAFE FOR HTML WITHOUT ESCAPING
getExplanationBytes in interface Protos.ErrorOrBuilderpublic Protos.Error.Builder setExplanation(String value)
optional string explanation = 2;
NOT SAFE FOR HTML WITHOUT ESCAPING
public Protos.Error.Builder clearExplanation()
optional string explanation = 2;
NOT SAFE FOR HTML WITHOUT ESCAPING
public Protos.Error.Builder setExplanationBytes(com.google.protobuf.ByteString value)
optional string explanation = 2;
NOT SAFE FOR HTML WITHOUT ESCAPING
public boolean hasExpectedValue()
optional uint64 expected_value = 3;
Can be set by the client when erroring to the server if a value was out of range. Can help with debugging.
hasExpectedValue in interface Protos.ErrorOrBuilderpublic long getExpectedValue()
optional uint64 expected_value = 3;
Can be set by the client when erroring to the server if a value was out of range. Can help with debugging.
getExpectedValue in interface Protos.ErrorOrBuilderpublic Protos.Error.Builder setExpectedValue(long value)
optional uint64 expected_value = 3;
Can be set by the client when erroring to the server if a value was out of range. Can help with debugging.
public Protos.Error.Builder clearExpectedValue()
optional uint64 expected_value = 3;
Can be set by the client when erroring to the server if a value was out of range. Can help with debugging.
Copyright © 2015. All rights reserved.