Package com.daml.ledger.api.v1
Class EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder>
-
- com.daml.ledger.api.v1.EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder
-
- All Implemented Interfaces:
EventQueryServiceOuterClass.GetEventsByContractKeyRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- EventQueryServiceOuterClass.GetEventsByContractKeyRequest
public static final class EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder> implements EventQueryServiceOuterClass.GetEventsByContractKeyRequestOrBuilder
Protobuf typecom.daml.ledger.api.v1.GetEventsByContractKeyRequest
-
-
Method Summary
-
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, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder>
-
clear
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder>
-
getDefaultInstanceForType
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder>
-
setField
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder>
-
clearField
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder>
-
clearOneof
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder>
-
setRepeatedField
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder>
-
addRepeatedField
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder>
-
mergeFrom
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder>
-
mergeFrom
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder mergeFrom(EventQueryServiceOuterClass.GetEventsByContractKeyRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder>
-
mergeFrom
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder>
- Throws:
java.io.IOException
-
hasContractKey
public boolean hasContractKey()
The contract key to search for. Required
.com.daml.ledger.api.v1.Value contract_key = 1 [json_name = "contractKey"];
- Specified by:
hasContractKey
in interfaceEventQueryServiceOuterClass.GetEventsByContractKeyRequestOrBuilder
- Returns:
- Whether the contractKey field is set.
-
getContractKey
public ValueOuterClass.Value getContractKey()
The contract key to search for. Required
.com.daml.ledger.api.v1.Value contract_key = 1 [json_name = "contractKey"];
- Specified by:
getContractKey
in interfaceEventQueryServiceOuterClass.GetEventsByContractKeyRequestOrBuilder
- Returns:
- The contractKey.
-
setContractKey
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder setContractKey(ValueOuterClass.Value value)
The contract key to search for. Required
.com.daml.ledger.api.v1.Value contract_key = 1 [json_name = "contractKey"];
-
setContractKey
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder setContractKey(ValueOuterClass.Value.Builder builderForValue)
The contract key to search for. Required
.com.daml.ledger.api.v1.Value contract_key = 1 [json_name = "contractKey"];
-
mergeContractKey
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder mergeContractKey(ValueOuterClass.Value value)
The contract key to search for. Required
.com.daml.ledger.api.v1.Value contract_key = 1 [json_name = "contractKey"];
-
clearContractKey
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder clearContractKey()
The contract key to search for. Required
.com.daml.ledger.api.v1.Value contract_key = 1 [json_name = "contractKey"];
-
getContractKeyBuilder
public ValueOuterClass.Value.Builder getContractKeyBuilder()
The contract key to search for. Required
.com.daml.ledger.api.v1.Value contract_key = 1 [json_name = "contractKey"];
-
getContractKeyOrBuilder
public ValueOuterClass.ValueOrBuilder getContractKeyOrBuilder()
The contract key to search for. Required
.com.daml.ledger.api.v1.Value contract_key = 1 [json_name = "contractKey"];
- Specified by:
getContractKeyOrBuilder
in interfaceEventQueryServiceOuterClass.GetEventsByContractKeyRequestOrBuilder
-
hasTemplateId
public boolean hasTemplateId()
The template id associated with the contract key Required
.com.daml.ledger.api.v1.Identifier template_id = 2 [json_name = "templateId"];
- Specified by:
hasTemplateId
in interfaceEventQueryServiceOuterClass.GetEventsByContractKeyRequestOrBuilder
- Returns:
- Whether the templateId field is set.
-
getTemplateId
public ValueOuterClass.Identifier getTemplateId()
The template id associated with the contract key Required
.com.daml.ledger.api.v1.Identifier template_id = 2 [json_name = "templateId"];
- Specified by:
getTemplateId
in interfaceEventQueryServiceOuterClass.GetEventsByContractKeyRequestOrBuilder
- Returns:
- The templateId.
-
setTemplateId
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder setTemplateId(ValueOuterClass.Identifier value)
The template id associated with the contract key Required
.com.daml.ledger.api.v1.Identifier template_id = 2 [json_name = "templateId"];
-
setTemplateId
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder setTemplateId(ValueOuterClass.Identifier.Builder builderForValue)
The template id associated with the contract key Required
.com.daml.ledger.api.v1.Identifier template_id = 2 [json_name = "templateId"];
-
mergeTemplateId
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder mergeTemplateId(ValueOuterClass.Identifier value)
The template id associated with the contract key Required
.com.daml.ledger.api.v1.Identifier template_id = 2 [json_name = "templateId"];
-
clearTemplateId
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder clearTemplateId()
The template id associated with the contract key Required
.com.daml.ledger.api.v1.Identifier template_id = 2 [json_name = "templateId"];
-
getTemplateIdBuilder
public ValueOuterClass.Identifier.Builder getTemplateIdBuilder()
The template id associated with the contract key Required
.com.daml.ledger.api.v1.Identifier template_id = 2 [json_name = "templateId"];
-
getTemplateIdOrBuilder
public ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder()
The template id associated with the contract key Required
.com.daml.ledger.api.v1.Identifier template_id = 2 [json_name = "templateId"];
- Specified by:
getTemplateIdOrBuilder
in interfaceEventQueryServiceOuterClass.GetEventsByContractKeyRequestOrBuilder
-
getRequestingPartiesList
public com.google.protobuf.ProtocolStringList getRequestingPartiesList()
The parties whose events the client expects to see. The events associated with the contract key will only be returned if the requesting parties includes at least one party that is a stakeholder of the event. For a definition of stakeholders see https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as a requesting party. Required
repeated string requesting_parties = 3 [json_name = "requestingParties"];
- Specified by:
getRequestingPartiesList
in interfaceEventQueryServiceOuterClass.GetEventsByContractKeyRequestOrBuilder
- Returns:
- A list containing the requestingParties.
-
getRequestingPartiesCount
public int getRequestingPartiesCount()
The parties whose events the client expects to see. The events associated with the contract key will only be returned if the requesting parties includes at least one party that is a stakeholder of the event. For a definition of stakeholders see https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as a requesting party. Required
repeated string requesting_parties = 3 [json_name = "requestingParties"];
- Specified by:
getRequestingPartiesCount
in interfaceEventQueryServiceOuterClass.GetEventsByContractKeyRequestOrBuilder
- Returns:
- The count of requestingParties.
-
getRequestingParties
public java.lang.String getRequestingParties(int index)
The parties whose events the client expects to see. The events associated with the contract key will only be returned if the requesting parties includes at least one party that is a stakeholder of the event. For a definition of stakeholders see https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as a requesting party. Required
repeated string requesting_parties = 3 [json_name = "requestingParties"];
- Specified by:
getRequestingParties
in interfaceEventQueryServiceOuterClass.GetEventsByContractKeyRequestOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The requestingParties at the given index.
-
getRequestingPartiesBytes
public com.google.protobuf.ByteString getRequestingPartiesBytes(int index)
The parties whose events the client expects to see. The events associated with the contract key will only be returned if the requesting parties includes at least one party that is a stakeholder of the event. For a definition of stakeholders see https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as a requesting party. Required
repeated string requesting_parties = 3 [json_name = "requestingParties"];
- Specified by:
getRequestingPartiesBytes
in interfaceEventQueryServiceOuterClass.GetEventsByContractKeyRequestOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the requestingParties at the given index.
-
setRequestingParties
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder setRequestingParties(int index, java.lang.String value)
The parties whose events the client expects to see. The events associated with the contract key will only be returned if the requesting parties includes at least one party that is a stakeholder of the event. For a definition of stakeholders see https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as a requesting party. Required
repeated string requesting_parties = 3 [json_name = "requestingParties"];
- Parameters:
index
- The index to set the value at.value
- The requestingParties to set.- Returns:
- This builder for chaining.
-
addRequestingParties
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder addRequestingParties(java.lang.String value)
The parties whose events the client expects to see. The events associated with the contract key will only be returned if the requesting parties includes at least one party that is a stakeholder of the event. For a definition of stakeholders see https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as a requesting party. Required
repeated string requesting_parties = 3 [json_name = "requestingParties"];
- Parameters:
value
- The requestingParties to add.- Returns:
- This builder for chaining.
-
addAllRequestingParties
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder addAllRequestingParties(java.lang.Iterable<java.lang.String> values)
The parties whose events the client expects to see. The events associated with the contract key will only be returned if the requesting parties includes at least one party that is a stakeholder of the event. For a definition of stakeholders see https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as a requesting party. Required
repeated string requesting_parties = 3 [json_name = "requestingParties"];
- Parameters:
values
- The requestingParties to add.- Returns:
- This builder for chaining.
-
clearRequestingParties
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder clearRequestingParties()
The parties whose events the client expects to see. The events associated with the contract key will only be returned if the requesting parties includes at least one party that is a stakeholder of the event. For a definition of stakeholders see https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as a requesting party. Required
repeated string requesting_parties = 3 [json_name = "requestingParties"];
- Returns:
- This builder for chaining.
-
addRequestingPartiesBytes
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder addRequestingPartiesBytes(com.google.protobuf.ByteString value)
The parties whose events the client expects to see. The events associated with the contract key will only be returned if the requesting parties includes at least one party that is a stakeholder of the event. For a definition of stakeholders see https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#contract-observers-and-stakeholders To gain visibility of all contract key bindings and to ensure consistent performance use a key maintainer as a requesting party. Required
repeated string requesting_parties = 3 [json_name = "requestingParties"];
- Parameters:
value
- The bytes of the requestingParties to add.- Returns:
- This builder for chaining.
-
getContinuationToken
public java.lang.String getContinuationToken()
A ``continuation_token`` associated with a previous response. Optional
string continuation_token = 4 [json_name = "continuationToken"];
- Specified by:
getContinuationToken
in interfaceEventQueryServiceOuterClass.GetEventsByContractKeyRequestOrBuilder
- Returns:
- The continuationToken.
-
getContinuationTokenBytes
public com.google.protobuf.ByteString getContinuationTokenBytes()
A ``continuation_token`` associated with a previous response. Optional
string continuation_token = 4 [json_name = "continuationToken"];
- Specified by:
getContinuationTokenBytes
in interfaceEventQueryServiceOuterClass.GetEventsByContractKeyRequestOrBuilder
- Returns:
- The bytes for continuationToken.
-
setContinuationToken
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder setContinuationToken(java.lang.String value)
A ``continuation_token`` associated with a previous response. Optional
string continuation_token = 4 [json_name = "continuationToken"];
- Parameters:
value
- The continuationToken to set.- Returns:
- This builder for chaining.
-
clearContinuationToken
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder clearContinuationToken()
A ``continuation_token`` associated with a previous response. Optional
string continuation_token = 4 [json_name = "continuationToken"];
- Returns:
- This builder for chaining.
-
setContinuationTokenBytes
public EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder setContinuationTokenBytes(com.google.protobuf.ByteString value)
A ``continuation_token`` associated with a previous response. Optional
string continuation_token = 4 [json_name = "continuationToken"];
- Parameters:
value
- The bytes for continuationToken to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder>
-
mergeUnknownFields
public final EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder>
-
-