public static final class LightningApi.InterceptFeedback.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.InterceptFeedback.Builder> implements LightningApi.InterceptFeedbackOrBuilder
lnrpc.InterceptFeedback
Modifier and Type | Method and Description |
---|---|
LightningApi.InterceptFeedback |
build() |
LightningApi.InterceptFeedback |
buildPartial() |
LightningApi.InterceptFeedback.Builder |
clear() |
LightningApi.InterceptFeedback.Builder |
clearError()
The error to return to the user.
|
LightningApi.InterceptFeedback.Builder |
clearReplacementSerialized()
If the replace_response field is set to true, this field must contain the
binary serialized gRPC message in the protobuf format.
|
LightningApi.InterceptFeedback.Builder |
clearReplaceResponse()
A boolean indicating that the gRPC message should be replaced/overwritten.
|
LightningApi.InterceptFeedback |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getError()
The error to return to the user.
|
com.google.protobuf.ByteString |
getErrorBytes()
The error to return to the user.
|
com.google.protobuf.ByteString |
getReplacementSerialized()
If the replace_response field is set to true, this field must contain the
binary serialized gRPC message in the protobuf format.
|
boolean |
getReplaceResponse()
A boolean indicating that the gRPC message should be replaced/overwritten.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
LightningApi.InterceptFeedback.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LightningApi.InterceptFeedback.Builder |
mergeFrom(LightningApi.InterceptFeedback other) |
LightningApi.InterceptFeedback.Builder |
mergeFrom(com.google.protobuf.Message other) |
LightningApi.InterceptFeedback.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LightningApi.InterceptFeedback.Builder |
setError(java.lang.String value)
The error to return to the user.
|
LightningApi.InterceptFeedback.Builder |
setErrorBytes(com.google.protobuf.ByteString value)
The error to return to the user.
|
LightningApi.InterceptFeedback.Builder |
setReplacementSerialized(com.google.protobuf.ByteString value)
If the replace_response field is set to true, this field must contain the
binary serialized gRPC message in the protobuf format.
|
LightningApi.InterceptFeedback.Builder |
setReplaceResponse(boolean value)
A boolean indicating that the gRPC message should be replaced/overwritten.
|
LightningApi.InterceptFeedback.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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.InterceptFeedback.Builder>
public LightningApi.InterceptFeedback.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.InterceptFeedback.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.GeneratedMessageV3.Builder<LightningApi.InterceptFeedback.Builder>
public LightningApi.InterceptFeedback getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public LightningApi.InterceptFeedback build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.InterceptFeedback buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.InterceptFeedback.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<LightningApi.InterceptFeedback.Builder>
public LightningApi.InterceptFeedback.Builder mergeFrom(LightningApi.InterceptFeedback other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.InterceptFeedback.Builder>
public LightningApi.InterceptFeedback.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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<LightningApi.InterceptFeedback.Builder>
java.io.IOException
public java.lang.String getError()
The error to return to the user. If this is non-empty, the incoming gRPC stream/request is aborted and the error is returned to the gRPC client. If this value is empty, it means the middleware accepts the stream/request/ response and the processing of it can continue.
string error = 1;
getError
in interface LightningApi.InterceptFeedbackOrBuilder
public com.google.protobuf.ByteString getErrorBytes()
The error to return to the user. If this is non-empty, the incoming gRPC stream/request is aborted and the error is returned to the gRPC client. If this value is empty, it means the middleware accepts the stream/request/ response and the processing of it can continue.
string error = 1;
getErrorBytes
in interface LightningApi.InterceptFeedbackOrBuilder
public LightningApi.InterceptFeedback.Builder setError(java.lang.String value)
The error to return to the user. If this is non-empty, the incoming gRPC stream/request is aborted and the error is returned to the gRPC client. If this value is empty, it means the middleware accepts the stream/request/ response and the processing of it can continue.
string error = 1;
value
- The error to set.public LightningApi.InterceptFeedback.Builder clearError()
The error to return to the user. If this is non-empty, the incoming gRPC stream/request is aborted and the error is returned to the gRPC client. If this value is empty, it means the middleware accepts the stream/request/ response and the processing of it can continue.
string error = 1;
public LightningApi.InterceptFeedback.Builder setErrorBytes(com.google.protobuf.ByteString value)
The error to return to the user. If this is non-empty, the incoming gRPC stream/request is aborted and the error is returned to the gRPC client. If this value is empty, it means the middleware accepts the stream/request/ response and the processing of it can continue.
string error = 1;
value
- The bytes for error to set.public boolean getReplaceResponse()
A boolean indicating that the gRPC message should be replaced/overwritten. This boolean is needed because in protobuf an empty message is serialized as a 0-length or nil byte slice and we wouldn't be able to distinguish between an empty replacement message and the "don't replace anything" case.
bool replace_response = 2;
getReplaceResponse
in interface LightningApi.InterceptFeedbackOrBuilder
public LightningApi.InterceptFeedback.Builder setReplaceResponse(boolean value)
A boolean indicating that the gRPC message should be replaced/overwritten. This boolean is needed because in protobuf an empty message is serialized as a 0-length or nil byte slice and we wouldn't be able to distinguish between an empty replacement message and the "don't replace anything" case.
bool replace_response = 2;
value
- The replaceResponse to set.public LightningApi.InterceptFeedback.Builder clearReplaceResponse()
A boolean indicating that the gRPC message should be replaced/overwritten. This boolean is needed because in protobuf an empty message is serialized as a 0-length or nil byte slice and we wouldn't be able to distinguish between an empty replacement message and the "don't replace anything" case.
bool replace_response = 2;
public com.google.protobuf.ByteString getReplacementSerialized()
If the replace_response field is set to true, this field must contain the binary serialized gRPC message in the protobuf format.
bytes replacement_serialized = 3;
getReplacementSerialized
in interface LightningApi.InterceptFeedbackOrBuilder
public LightningApi.InterceptFeedback.Builder setReplacementSerialized(com.google.protobuf.ByteString value)
If the replace_response field is set to true, this field must contain the binary serialized gRPC message in the protobuf format.
bytes replacement_serialized = 3;
value
- The replacementSerialized to set.public LightningApi.InterceptFeedback.Builder clearReplacementSerialized()
If the replace_response field is set to true, this field must contain the binary serialized gRPC message in the protobuf format.
bytes replacement_serialized = 3;
public final LightningApi.InterceptFeedback.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.InterceptFeedback.Builder>
public final LightningApi.InterceptFeedback.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.InterceptFeedback.Builder>