public static final class LightningApi.ListPaymentsResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.ListPaymentsResponse.Builder> implements LightningApi.ListPaymentsResponseOrBuilder
lnrpc.ListPaymentsResponse
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.ListPaymentsResponse.Builder>
public LightningApi.ListPaymentsResponse.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.ListPaymentsResponse.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.ListPaymentsResponse.Builder>
public LightningApi.ListPaymentsResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public LightningApi.ListPaymentsResponse build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.ListPaymentsResponse buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.ListPaymentsResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<LightningApi.ListPaymentsResponse.Builder>
public LightningApi.ListPaymentsResponse.Builder mergeFrom(LightningApi.ListPaymentsResponse other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.ListPaymentsResponse.Builder>
public LightningApi.ListPaymentsResponse.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.ListPaymentsResponse.Builder>
java.io.IOException
public java.util.List<LightningApi.Payment> getPaymentsList()
The list of payments
repeated .lnrpc.Payment payments = 1;
getPaymentsList
in interface LightningApi.ListPaymentsResponseOrBuilder
public int getPaymentsCount()
The list of payments
repeated .lnrpc.Payment payments = 1;
getPaymentsCount
in interface LightningApi.ListPaymentsResponseOrBuilder
public LightningApi.Payment getPayments(int index)
The list of payments
repeated .lnrpc.Payment payments = 1;
getPayments
in interface LightningApi.ListPaymentsResponseOrBuilder
public LightningApi.ListPaymentsResponse.Builder setPayments(int index, LightningApi.Payment value)
The list of payments
repeated .lnrpc.Payment payments = 1;
public LightningApi.ListPaymentsResponse.Builder setPayments(int index, LightningApi.Payment.Builder builderForValue)
The list of payments
repeated .lnrpc.Payment payments = 1;
public LightningApi.ListPaymentsResponse.Builder addPayments(LightningApi.Payment value)
The list of payments
repeated .lnrpc.Payment payments = 1;
public LightningApi.ListPaymentsResponse.Builder addPayments(int index, LightningApi.Payment value)
The list of payments
repeated .lnrpc.Payment payments = 1;
public LightningApi.ListPaymentsResponse.Builder addPayments(LightningApi.Payment.Builder builderForValue)
The list of payments
repeated .lnrpc.Payment payments = 1;
public LightningApi.ListPaymentsResponse.Builder addPayments(int index, LightningApi.Payment.Builder builderForValue)
The list of payments
repeated .lnrpc.Payment payments = 1;
public LightningApi.ListPaymentsResponse.Builder addAllPayments(java.lang.Iterable<? extends LightningApi.Payment> values)
The list of payments
repeated .lnrpc.Payment payments = 1;
public LightningApi.ListPaymentsResponse.Builder clearPayments()
The list of payments
repeated .lnrpc.Payment payments = 1;
public LightningApi.ListPaymentsResponse.Builder removePayments(int index)
The list of payments
repeated .lnrpc.Payment payments = 1;
public LightningApi.Payment.Builder getPaymentsBuilder(int index)
The list of payments
repeated .lnrpc.Payment payments = 1;
public LightningApi.PaymentOrBuilder getPaymentsOrBuilder(int index)
The list of payments
repeated .lnrpc.Payment payments = 1;
getPaymentsOrBuilder
in interface LightningApi.ListPaymentsResponseOrBuilder
public java.util.List<? extends LightningApi.PaymentOrBuilder> getPaymentsOrBuilderList()
The list of payments
repeated .lnrpc.Payment payments = 1;
getPaymentsOrBuilderList
in interface LightningApi.ListPaymentsResponseOrBuilder
public LightningApi.Payment.Builder addPaymentsBuilder()
The list of payments
repeated .lnrpc.Payment payments = 1;
public LightningApi.Payment.Builder addPaymentsBuilder(int index)
The list of payments
repeated .lnrpc.Payment payments = 1;
public java.util.List<LightningApi.Payment.Builder> getPaymentsBuilderList()
The list of payments
repeated .lnrpc.Payment payments = 1;
public long getFirstIndexOffset()
The index of the first item in the set of returned payments. This can be used as the index_offset to continue seeking backwards in the next request.
uint64 first_index_offset = 2;
getFirstIndexOffset
in interface LightningApi.ListPaymentsResponseOrBuilder
public LightningApi.ListPaymentsResponse.Builder setFirstIndexOffset(long value)
The index of the first item in the set of returned payments. This can be used as the index_offset to continue seeking backwards in the next request.
uint64 first_index_offset = 2;
value
- The firstIndexOffset to set.public LightningApi.ListPaymentsResponse.Builder clearFirstIndexOffset()
The index of the first item in the set of returned payments. This can be used as the index_offset to continue seeking backwards in the next request.
uint64 first_index_offset = 2;
public long getLastIndexOffset()
The index of the last item in the set of returned payments. This can be used as the index_offset to continue seeking forwards in the next request.
uint64 last_index_offset = 3;
getLastIndexOffset
in interface LightningApi.ListPaymentsResponseOrBuilder
public LightningApi.ListPaymentsResponse.Builder setLastIndexOffset(long value)
The index of the last item in the set of returned payments. This can be used as the index_offset to continue seeking forwards in the next request.
uint64 last_index_offset = 3;
value
- The lastIndexOffset to set.public LightningApi.ListPaymentsResponse.Builder clearLastIndexOffset()
The index of the last item in the set of returned payments. This can be used as the index_offset to continue seeking forwards in the next request.
uint64 last_index_offset = 3;
public long getTotalNumPayments()
Will only be set if count_total_payments in the request was set. Represents the total number of payments (complete and incomplete, independent of the number of payments requested in the query) currently present in the payments database.
uint64 total_num_payments = 4;
getTotalNumPayments
in interface LightningApi.ListPaymentsResponseOrBuilder
public LightningApi.ListPaymentsResponse.Builder setTotalNumPayments(long value)
Will only be set if count_total_payments in the request was set. Represents the total number of payments (complete and incomplete, independent of the number of payments requested in the query) currently present in the payments database.
uint64 total_num_payments = 4;
value
- The totalNumPayments to set.public LightningApi.ListPaymentsResponse.Builder clearTotalNumPayments()
Will only be set if count_total_payments in the request was set. Represents the total number of payments (complete and incomplete, independent of the number of payments requested in the query) currently present in the payments database.
uint64 total_num_payments = 4;
public final LightningApi.ListPaymentsResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.ListPaymentsResponse.Builder>
public final LightningApi.ListPaymentsResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.ListPaymentsResponse.Builder>