Package com.daml.ledger.api.v2
Class TransactionFilterOuterClass.EventFormat.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<TransactionFilterOuterClass.EventFormat.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<TransactionFilterOuterClass.EventFormat.Builder>
com.daml.ledger.api.v2.TransactionFilterOuterClass.EventFormat.Builder
- All Implemented Interfaces:
TransactionFilterOuterClass.EventFormatOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
TransactionFilterOuterClass.EventFormat
public static final class TransactionFilterOuterClass.EventFormat.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<TransactionFilterOuterClass.EventFormat.Builder>
implements TransactionFilterOuterClass.EventFormatOrBuilder
A format for events which defines both which events should be included and what data should be computed and included for them. Note that some of the filtering behavior depends on the `TransactionShape`, which is expected to be specified alongside usages of `EventFormat`.Protobuf type
com.daml.ledger.api.v2.EventFormat-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Wildcard filters that apply to all the parties existing on the participant.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) If enabled, values served over the API will contain more information than strictly necessary to interpret the data.clone()booleanEach key must be a valid PartyIdString (as described in ``value.proto``).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intEach key must be a valid PartyIdString (as described in ``value.proto``).Each key must be a valid PartyIdString (as described in ``value.proto``).getFiltersByPartyOrDefault(String key, TransactionFilterOuterClass.Filters defaultValue) Each key must be a valid PartyIdString (as described in ``value.proto``).Each key must be a valid PartyIdString (as described in ``value.proto``).Wildcard filters that apply to all the parties existing on the participant.Wildcard filters that apply to all the parties existing on the participant.Wildcard filters that apply to all the parties existing on the participant.Deprecated.booleanIf enabled, values served over the API will contain more information than strictly necessary to interpret the data.booleanWildcard filters that apply to all the parties existing on the participant.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanWildcard filters that apply to all the parties existing on the participant.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Each key must be a valid PartyIdString (as described in ``value.proto``).Each key must be a valid PartyIdString (as described in ``value.proto``).Each key must be a valid PartyIdString (as described in ``value.proto``).Each key must be a valid PartyIdString (as described in ``value.proto``).Wildcard filters that apply to all the parties existing on the participant.setFiltersForAnyParty(TransactionFilterOuterClass.Filters.Builder builderForValue) Wildcard filters that apply to all the parties existing on the participant.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setVerbose(boolean value) If enabled, values served over the API will contain more information than strictly necessary to interpret the data.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionFilterOuterClass.EventFormat.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionFilterOuterClass.EventFormat.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionFilterOuterClass.EventFormat.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionFilterOuterClass.EventFormat.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionFilterOuterClass.EventFormat.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionFilterOuterClass.EventFormat.Builder>
-
setField
public TransactionFilterOuterClass.EventFormat.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionFilterOuterClass.EventFormat.Builder>
-
clearField
public TransactionFilterOuterClass.EventFormat.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionFilterOuterClass.EventFormat.Builder>
-
clearOneof
public TransactionFilterOuterClass.EventFormat.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionFilterOuterClass.EventFormat.Builder>
-
setRepeatedField
public TransactionFilterOuterClass.EventFormat.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionFilterOuterClass.EventFormat.Builder>
-
addRepeatedField
public TransactionFilterOuterClass.EventFormat.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionFilterOuterClass.EventFormat.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TransactionFilterOuterClass.EventFormat.Builder>
-
mergeFrom
public TransactionFilterOuterClass.EventFormat.Builder mergeFrom(TransactionFilterOuterClass.EventFormat other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionFilterOuterClass.EventFormat.Builder>
-
mergeFrom
public TransactionFilterOuterClass.EventFormat.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TransactionFilterOuterClass.EventFormat.Builder>- Throws:
IOException
-
getFiltersByPartyCount
public int getFiltersByPartyCount()Description copied from interface:TransactionFilterOuterClass.EventFormatOrBuilderEach key must be a valid PartyIdString (as described in ``value.proto``). The interpretation of the filter depends on the transaction-shape being filtered: 1. For **ledger-effects** create and exercise events are returned, for which the witnesses include at least one of the listed parties and match the per-party filter. 2. For **transaction and active-contract-set streams** create and archive events are returned for all contracts whose stakeholders include at least one of the listed parties and match the per-party filter. Optional: can be emptymap<string, .com.daml.ledger.api.v2.Filters> filters_by_party = 1;- Specified by:
getFiltersByPartyCountin interfaceTransactionFilterOuterClass.EventFormatOrBuilder
-
containsFiltersByParty
Each key must be a valid PartyIdString (as described in ``value.proto``). The interpretation of the filter depends on the transaction-shape being filtered: 1. For **ledger-effects** create and exercise events are returned, for which the witnesses include at least one of the listed parties and match the per-party filter. 2. For **transaction and active-contract-set streams** create and archive events are returned for all contracts whose stakeholders include at least one of the listed parties and match the per-party filter. Optional: can be emptymap<string, .com.daml.ledger.api.v2.Filters> filters_by_party = 1;- Specified by:
containsFiltersByPartyin interfaceTransactionFilterOuterClass.EventFormatOrBuilder
-
getFiltersByParty
Deprecated.UsegetFiltersByPartyMap()instead.- Specified by:
getFiltersByPartyin interfaceTransactionFilterOuterClass.EventFormatOrBuilder
-
getFiltersByPartyMap
Each key must be a valid PartyIdString (as described in ``value.proto``). The interpretation of the filter depends on the transaction-shape being filtered: 1. For **ledger-effects** create and exercise events are returned, for which the witnesses include at least one of the listed parties and match the per-party filter. 2. For **transaction and active-contract-set streams** create and archive events are returned for all contracts whose stakeholders include at least one of the listed parties and match the per-party filter. Optional: can be emptymap<string, .com.daml.ledger.api.v2.Filters> filters_by_party = 1;- Specified by:
getFiltersByPartyMapin interfaceTransactionFilterOuterClass.EventFormatOrBuilder
-
getFiltersByPartyOrDefault
public TransactionFilterOuterClass.Filters getFiltersByPartyOrDefault(String key, TransactionFilterOuterClass.Filters defaultValue) Each key must be a valid PartyIdString (as described in ``value.proto``). The interpretation of the filter depends on the transaction-shape being filtered: 1. For **ledger-effects** create and exercise events are returned, for which the witnesses include at least one of the listed parties and match the per-party filter. 2. For **transaction and active-contract-set streams** create and archive events are returned for all contracts whose stakeholders include at least one of the listed parties and match the per-party filter. Optional: can be emptymap<string, .com.daml.ledger.api.v2.Filters> filters_by_party = 1;- Specified by:
getFiltersByPartyOrDefaultin interfaceTransactionFilterOuterClass.EventFormatOrBuilder
-
getFiltersByPartyOrThrow
Each key must be a valid PartyIdString (as described in ``value.proto``). The interpretation of the filter depends on the transaction-shape being filtered: 1. For **ledger-effects** create and exercise events are returned, for which the witnesses include at least one of the listed parties and match the per-party filter. 2. For **transaction and active-contract-set streams** create and archive events are returned for all contracts whose stakeholders include at least one of the listed parties and match the per-party filter. Optional: can be emptymap<string, .com.daml.ledger.api.v2.Filters> filters_by_party = 1;- Specified by:
getFiltersByPartyOrThrowin interfaceTransactionFilterOuterClass.EventFormatOrBuilder
-
clearFiltersByParty
-
removeFiltersByParty
Each key must be a valid PartyIdString (as described in ``value.proto``). The interpretation of the filter depends on the transaction-shape being filtered: 1. For **ledger-effects** create and exercise events are returned, for which the witnesses include at least one of the listed parties and match the per-party filter. 2. For **transaction and active-contract-set streams** create and archive events are returned for all contracts whose stakeholders include at least one of the listed parties and match the per-party filter. Optional: can be emptymap<string, .com.daml.ledger.api.v2.Filters> filters_by_party = 1; -
getMutableFiltersByParty
Deprecated.Use alternate mutation accessors instead. -
putFiltersByParty
public TransactionFilterOuterClass.EventFormat.Builder putFiltersByParty(String key, TransactionFilterOuterClass.Filters value) Each key must be a valid PartyIdString (as described in ``value.proto``). The interpretation of the filter depends on the transaction-shape being filtered: 1. For **ledger-effects** create and exercise events are returned, for which the witnesses include at least one of the listed parties and match the per-party filter. 2. For **transaction and active-contract-set streams** create and archive events are returned for all contracts whose stakeholders include at least one of the listed parties and match the per-party filter. Optional: can be emptymap<string, .com.daml.ledger.api.v2.Filters> filters_by_party = 1; -
putAllFiltersByParty
public TransactionFilterOuterClass.EventFormat.Builder putAllFiltersByParty(Map<String, TransactionFilterOuterClass.Filters> values) Each key must be a valid PartyIdString (as described in ``value.proto``). The interpretation of the filter depends on the transaction-shape being filtered: 1. For **ledger-effects** create and exercise events are returned, for which the witnesses include at least one of the listed parties and match the per-party filter. 2. For **transaction and active-contract-set streams** create and archive events are returned for all contracts whose stakeholders include at least one of the listed parties and match the per-party filter. Optional: can be emptymap<string, .com.daml.ledger.api.v2.Filters> filters_by_party = 1; -
putFiltersByPartyBuilderIfAbsent
Each key must be a valid PartyIdString (as described in ``value.proto``). The interpretation of the filter depends on the transaction-shape being filtered: 1. For **ledger-effects** create and exercise events are returned, for which the witnesses include at least one of the listed parties and match the per-party filter. 2. For **transaction and active-contract-set streams** create and archive events are returned for all contracts whose stakeholders include at least one of the listed parties and match the per-party filter. Optional: can be emptymap<string, .com.daml.ledger.api.v2.Filters> filters_by_party = 1; -
hasFiltersForAnyParty
public boolean hasFiltersForAnyParty()Wildcard filters that apply to all the parties existing on the participant. The interpretation of the filters is the same with the per-party filter as described above. Optional
.com.daml.ledger.api.v2.Filters filters_for_any_party = 2;- Specified by:
hasFiltersForAnyPartyin interfaceTransactionFilterOuterClass.EventFormatOrBuilder- Returns:
- Whether the filtersForAnyParty field is set.
-
getFiltersForAnyParty
Wildcard filters that apply to all the parties existing on the participant. The interpretation of the filters is the same with the per-party filter as described above. Optional
.com.daml.ledger.api.v2.Filters filters_for_any_party = 2;- Specified by:
getFiltersForAnyPartyin interfaceTransactionFilterOuterClass.EventFormatOrBuilder- Returns:
- The filtersForAnyParty.
-
setFiltersForAnyParty
public TransactionFilterOuterClass.EventFormat.Builder setFiltersForAnyParty(TransactionFilterOuterClass.Filters value) Wildcard filters that apply to all the parties existing on the participant. The interpretation of the filters is the same with the per-party filter as described above. Optional
.com.daml.ledger.api.v2.Filters filters_for_any_party = 2; -
setFiltersForAnyParty
public TransactionFilterOuterClass.EventFormat.Builder setFiltersForAnyParty(TransactionFilterOuterClass.Filters.Builder builderForValue) Wildcard filters that apply to all the parties existing on the participant. The interpretation of the filters is the same with the per-party filter as described above. Optional
.com.daml.ledger.api.v2.Filters filters_for_any_party = 2; -
mergeFiltersForAnyParty
public TransactionFilterOuterClass.EventFormat.Builder mergeFiltersForAnyParty(TransactionFilterOuterClass.Filters value) Wildcard filters that apply to all the parties existing on the participant. The interpretation of the filters is the same with the per-party filter as described above. Optional
.com.daml.ledger.api.v2.Filters filters_for_any_party = 2; -
clearFiltersForAnyParty
Wildcard filters that apply to all the parties existing on the participant. The interpretation of the filters is the same with the per-party filter as described above. Optional
.com.daml.ledger.api.v2.Filters filters_for_any_party = 2; -
getFiltersForAnyPartyBuilder
Wildcard filters that apply to all the parties existing on the participant. The interpretation of the filters is the same with the per-party filter as described above. Optional
.com.daml.ledger.api.v2.Filters filters_for_any_party = 2; -
getFiltersForAnyPartyOrBuilder
Wildcard filters that apply to all the parties existing on the participant. The interpretation of the filters is the same with the per-party filter as described above. Optional
.com.daml.ledger.api.v2.Filters filters_for_any_party = 2;- Specified by:
getFiltersForAnyPartyOrBuilderin interfaceTransactionFilterOuterClass.EventFormatOrBuilder
-
getVerbose
public boolean getVerbose()If enabled, values served over the API will contain more information than strictly necessary to interpret the data. In particular, setting the verbose flag to true triggers the ledger to include labels for record fields. Optional
bool verbose = 3;- Specified by:
getVerbosein interfaceTransactionFilterOuterClass.EventFormatOrBuilder- Returns:
- The verbose.
-
setVerbose
If enabled, values served over the API will contain more information than strictly necessary to interpret the data. In particular, setting the verbose flag to true triggers the ledger to include labels for record fields. Optional
bool verbose = 3;- Parameters:
value- The verbose to set.- Returns:
- This builder for chaining.
-
clearVerbose
If enabled, values served over the API will contain more information than strictly necessary to interpret the data. In particular, setting the verbose flag to true triggers the ledger to include labels for record fields. Optional
bool verbose = 3;- Returns:
- This builder for chaining.
-
setUnknownFields
public final TransactionFilterOuterClass.EventFormat.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionFilterOuterClass.EventFormat.Builder>
-
mergeUnknownFields
public final TransactionFilterOuterClass.EventFormat.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionFilterOuterClass.EventFormat.Builder>
-