public static final class LightningApi.RPCMessage.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.RPCMessage.Builder> implements LightningApi.RPCMessageOrBuilder
lnrpc.RPCMessage| Modifier and Type | Method and Description |
|---|---|
LightningApi.RPCMessage |
build() |
LightningApi.RPCMessage |
buildPartial() |
LightningApi.RPCMessage.Builder |
clear() |
LightningApi.RPCMessage.Builder |
clearIsError()
Indicates that the response from lnd was an error, not a gRPC response.
|
LightningApi.RPCMessage.Builder |
clearMethodFullUri()
The full URI (in the format /<rpcpackage>.<ServiceName>/MethodName, for
example /lnrpc.Lightning/GetInfo) of the RPC method the message was sent
to/from.
|
LightningApi.RPCMessage.Builder |
clearSerialized()
The full content of the gRPC message, serialized in the binary protobuf
format.
|
LightningApi.RPCMessage.Builder |
clearStreamRpc()
Indicates whether the message was sent over a streaming RPC method or not.
|
LightningApi.RPCMessage.Builder |
clearTypeName()
The full canonical gRPC name of the message type (in the format
<rpcpackage>.TypeName, for example lnrpc.GetInfoRequest).
|
LightningApi.RPCMessage |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getIsError()
Indicates that the response from lnd was an error, not a gRPC response.
|
java.lang.String |
getMethodFullUri()
The full URI (in the format /<rpcpackage>.<ServiceName>/MethodName, for
example /lnrpc.Lightning/GetInfo) of the RPC method the message was sent
to/from.
|
com.google.protobuf.ByteString |
getMethodFullUriBytes()
The full URI (in the format /<rpcpackage>.<ServiceName>/MethodName, for
example /lnrpc.Lightning/GetInfo) of the RPC method the message was sent
to/from.
|
com.google.protobuf.ByteString |
getSerialized()
The full content of the gRPC message, serialized in the binary protobuf
format.
|
boolean |
getStreamRpc()
Indicates whether the message was sent over a streaming RPC method or not.
|
java.lang.String |
getTypeName()
The full canonical gRPC name of the message type (in the format
<rpcpackage>.TypeName, for example lnrpc.GetInfoRequest).
|
com.google.protobuf.ByteString |
getTypeNameBytes()
The full canonical gRPC name of the message type (in the format
<rpcpackage>.TypeName, for example lnrpc.GetInfoRequest).
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
LightningApi.RPCMessage.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LightningApi.RPCMessage.Builder |
mergeFrom(LightningApi.RPCMessage other) |
LightningApi.RPCMessage.Builder |
mergeFrom(com.google.protobuf.Message other) |
LightningApi.RPCMessage.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LightningApi.RPCMessage.Builder |
setIsError(boolean value)
Indicates that the response from lnd was an error, not a gRPC response.
|
LightningApi.RPCMessage.Builder |
setMethodFullUri(java.lang.String value)
The full URI (in the format /<rpcpackage>.<ServiceName>/MethodName, for
example /lnrpc.Lightning/GetInfo) of the RPC method the message was sent
to/from.
|
LightningApi.RPCMessage.Builder |
setMethodFullUriBytes(com.google.protobuf.ByteString value)
The full URI (in the format /<rpcpackage>.<ServiceName>/MethodName, for
example /lnrpc.Lightning/GetInfo) of the RPC method the message was sent
to/from.
|
LightningApi.RPCMessage.Builder |
setSerialized(com.google.protobuf.ByteString value)
The full content of the gRPC message, serialized in the binary protobuf
format.
|
LightningApi.RPCMessage.Builder |
setStreamRpc(boolean value)
Indicates whether the message was sent over a streaming RPC method or not.
|
LightningApi.RPCMessage.Builder |
setTypeName(java.lang.String value)
The full canonical gRPC name of the message type (in the format
<rpcpackage>.TypeName, for example lnrpc.GetInfoRequest).
|
LightningApi.RPCMessage.Builder |
setTypeNameBytes(com.google.protobuf.ByteString value)
The full canonical gRPC name of the message type (in the format
<rpcpackage>.TypeName, for example lnrpc.GetInfoRequest).
|
LightningApi.RPCMessage.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, 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<LightningApi.RPCMessage.Builder>public LightningApi.RPCMessage.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.RPCMessage.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<LightningApi.RPCMessage.Builder>public LightningApi.RPCMessage getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic LightningApi.RPCMessage build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic LightningApi.RPCMessage buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic LightningApi.RPCMessage.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LightningApi.RPCMessage.Builder>public LightningApi.RPCMessage.Builder mergeFrom(LightningApi.RPCMessage other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.RPCMessage.Builder>public LightningApi.RPCMessage.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<LightningApi.RPCMessage.Builder>java.io.IOExceptionpublic java.lang.String getMethodFullUri()
The full URI (in the format /<rpcpackage>.<ServiceName>/MethodName, for example /lnrpc.Lightning/GetInfo) of the RPC method the message was sent to/from.
string method_full_uri = 1;getMethodFullUri in interface LightningApi.RPCMessageOrBuilderpublic com.google.protobuf.ByteString getMethodFullUriBytes()
The full URI (in the format /<rpcpackage>.<ServiceName>/MethodName, for example /lnrpc.Lightning/GetInfo) of the RPC method the message was sent to/from.
string method_full_uri = 1;getMethodFullUriBytes in interface LightningApi.RPCMessageOrBuilderpublic LightningApi.RPCMessage.Builder setMethodFullUri(java.lang.String value)
The full URI (in the format /<rpcpackage>.<ServiceName>/MethodName, for example /lnrpc.Lightning/GetInfo) of the RPC method the message was sent to/from.
string method_full_uri = 1;value - The methodFullUri to set.public LightningApi.RPCMessage.Builder clearMethodFullUri()
The full URI (in the format /<rpcpackage>.<ServiceName>/MethodName, for example /lnrpc.Lightning/GetInfo) of the RPC method the message was sent to/from.
string method_full_uri = 1;public LightningApi.RPCMessage.Builder setMethodFullUriBytes(com.google.protobuf.ByteString value)
The full URI (in the format /<rpcpackage>.<ServiceName>/MethodName, for example /lnrpc.Lightning/GetInfo) of the RPC method the message was sent to/from.
string method_full_uri = 1;value - The bytes for methodFullUri to set.public boolean getStreamRpc()
Indicates whether the message was sent over a streaming RPC method or not.
bool stream_rpc = 2;getStreamRpc in interface LightningApi.RPCMessageOrBuilderpublic LightningApi.RPCMessage.Builder setStreamRpc(boolean value)
Indicates whether the message was sent over a streaming RPC method or not.
bool stream_rpc = 2;value - The streamRpc to set.public LightningApi.RPCMessage.Builder clearStreamRpc()
Indicates whether the message was sent over a streaming RPC method or not.
bool stream_rpc = 2;public java.lang.String getTypeName()
The full canonical gRPC name of the message type (in the format <rpcpackage>.TypeName, for example lnrpc.GetInfoRequest). In case of an error being returned from lnd, this simply contains the string "error".
string type_name = 3;getTypeName in interface LightningApi.RPCMessageOrBuilderpublic com.google.protobuf.ByteString getTypeNameBytes()
The full canonical gRPC name of the message type (in the format <rpcpackage>.TypeName, for example lnrpc.GetInfoRequest). In case of an error being returned from lnd, this simply contains the string "error".
string type_name = 3;getTypeNameBytes in interface LightningApi.RPCMessageOrBuilderpublic LightningApi.RPCMessage.Builder setTypeName(java.lang.String value)
The full canonical gRPC name of the message type (in the format <rpcpackage>.TypeName, for example lnrpc.GetInfoRequest). In case of an error being returned from lnd, this simply contains the string "error".
string type_name = 3;value - The typeName to set.public LightningApi.RPCMessage.Builder clearTypeName()
The full canonical gRPC name of the message type (in the format <rpcpackage>.TypeName, for example lnrpc.GetInfoRequest). In case of an error being returned from lnd, this simply contains the string "error".
string type_name = 3;public LightningApi.RPCMessage.Builder setTypeNameBytes(com.google.protobuf.ByteString value)
The full canonical gRPC name of the message type (in the format <rpcpackage>.TypeName, for example lnrpc.GetInfoRequest). In case of an error being returned from lnd, this simply contains the string "error".
string type_name = 3;value - The bytes for typeName to set.public com.google.protobuf.ByteString getSerialized()
The full content of the gRPC message, serialized in the binary protobuf format.
bytes serialized = 4;getSerialized in interface LightningApi.RPCMessageOrBuilderpublic LightningApi.RPCMessage.Builder setSerialized(com.google.protobuf.ByteString value)
The full content of the gRPC message, serialized in the binary protobuf format.
bytes serialized = 4;value - The serialized to set.public LightningApi.RPCMessage.Builder clearSerialized()
The full content of the gRPC message, serialized in the binary protobuf format.
bytes serialized = 4;public boolean getIsError()
Indicates that the response from lnd was an error, not a gRPC response. If this is set to true then the type_name contains the string "error" and serialized contains the error string.
bool is_error = 5;getIsError in interface LightningApi.RPCMessageOrBuilderpublic LightningApi.RPCMessage.Builder setIsError(boolean value)
Indicates that the response from lnd was an error, not a gRPC response. If this is set to true then the type_name contains the string "error" and serialized contains the error string.
bool is_error = 5;value - The isError to set.public LightningApi.RPCMessage.Builder clearIsError()
Indicates that the response from lnd was an error, not a gRPC response. If this is set to true then the type_name contains the string "error" and serialized contains the error string.
bool is_error = 5;public final LightningApi.RPCMessage.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.RPCMessage.Builder>public final LightningApi.RPCMessage.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.RPCMessage.Builder>