Package com.daml.ledger.api.v2
Class CommandsOuterClass.PrefetchContractKey.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CommandsOuterClass.PrefetchContractKey.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.PrefetchContractKey.Builder>
com.daml.ledger.api.v2.CommandsOuterClass.PrefetchContractKey.Builder
- All Implemented Interfaces:
CommandsOuterClass.PrefetchContractKeyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
CommandsOuterClass.PrefetchContractKey
public static final class CommandsOuterClass.PrefetchContractKey.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.PrefetchContractKey.Builder>
implements CommandsOuterClass.PrefetchContractKeyOrBuilder
Preload contractsProtobuf type
com.daml.ledger.api.v2.PrefetchContractKey-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The key of the contract the client wants to prefetch.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The number of contracts to prefetch for this key, if available.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The template of contract the client wants to prefetch.clone()com.daml.ledger.api.v2.ValueOuterClass.ValueThe key of the contract the client wants to prefetch.com.daml.ledger.api.v2.ValueOuterClass.Value.BuilderThe key of the contract the client wants to prefetch.com.daml.ledger.api.v2.ValueOuterClass.ValueOrBuilderThe key of the contract the client wants to prefetch.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintgetLimit()The number of contracts to prefetch for this key, if available.com.daml.ledger.api.v2.ValueOuterClass.IdentifierThe template of contract the client wants to prefetch.com.daml.ledger.api.v2.ValueOuterClass.Identifier.BuilderThe template of contract the client wants to prefetch.com.daml.ledger.api.v2.ValueOuterClass.IdentifierOrBuilderThe template of contract the client wants to prefetch.booleanThe key of the contract the client wants to prefetch.booleanhasLimit()The number of contracts to prefetch for this key, if available.booleanThe template of contract the client wants to prefetch.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeContractKey(com.daml.ledger.api.v2.ValueOuterClass.Value value) The key of the contract the client wants to prefetch.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeTemplateId(com.daml.ledger.api.v2.ValueOuterClass.Identifier value) The template of contract the client wants to prefetch.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setContractKey(com.daml.ledger.api.v2.ValueOuterClass.Value value) The key of the contract the client wants to prefetch.setContractKey(com.daml.ledger.api.v2.ValueOuterClass.Value.Builder builderForValue) The key of the contract the client wants to prefetch.setLimit(int value) The number of contracts to prefetch for this key, if available.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTemplateId(com.daml.ledger.api.v2.ValueOuterClass.Identifier value) The template of contract the client wants to prefetch.setTemplateId(com.daml.ledger.api.v2.ValueOuterClass.Identifier.Builder builderForValue) The template of contract the client wants to prefetch.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.PrefetchContractKey.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<CommandsOuterClass.PrefetchContractKey.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<CommandsOuterClass.PrefetchContractKey.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<CommandsOuterClass.PrefetchContractKey.Builder>
-
setField
public CommandsOuterClass.PrefetchContractKey.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<CommandsOuterClass.PrefetchContractKey.Builder>
-
clearField
public CommandsOuterClass.PrefetchContractKey.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.PrefetchContractKey.Builder>
-
clearOneof
public CommandsOuterClass.PrefetchContractKey.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.PrefetchContractKey.Builder>
-
setRepeatedField
public CommandsOuterClass.PrefetchContractKey.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<CommandsOuterClass.PrefetchContractKey.Builder>
-
addRepeatedField
public CommandsOuterClass.PrefetchContractKey.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<CommandsOuterClass.PrefetchContractKey.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommandsOuterClass.PrefetchContractKey.Builder>
-
mergeFrom
public CommandsOuterClass.PrefetchContractKey.Builder mergeFrom(CommandsOuterClass.PrefetchContractKey other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.PrefetchContractKey.Builder>
-
mergeFrom
public CommandsOuterClass.PrefetchContractKey.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<CommandsOuterClass.PrefetchContractKey.Builder>- Throws:
IOException
-
hasTemplateId
public boolean hasTemplateId()The template of contract the client wants to prefetch. Both package-name and package-id reference identifier formats for the template-id are supported. Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4. Required
.com.daml.ledger.api.v2.Identifier template_id = 1;- Specified by:
hasTemplateIdin interfaceCommandsOuterClass.PrefetchContractKeyOrBuilder- Returns:
- Whether the templateId field is set.
-
getTemplateId
public com.daml.ledger.api.v2.ValueOuterClass.Identifier getTemplateId()The template of contract the client wants to prefetch. Both package-name and package-id reference identifier formats for the template-id are supported. Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4. Required
.com.daml.ledger.api.v2.Identifier template_id = 1;- Specified by:
getTemplateIdin interfaceCommandsOuterClass.PrefetchContractKeyOrBuilder- Returns:
- The templateId.
-
setTemplateId
public CommandsOuterClass.PrefetchContractKey.Builder setTemplateId(com.daml.ledger.api.v2.ValueOuterClass.Identifier value) The template of contract the client wants to prefetch. Both package-name and package-id reference identifier formats for the template-id are supported. Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4. Required
.com.daml.ledger.api.v2.Identifier template_id = 1; -
setTemplateId
public CommandsOuterClass.PrefetchContractKey.Builder setTemplateId(com.daml.ledger.api.v2.ValueOuterClass.Identifier.Builder builderForValue) The template of contract the client wants to prefetch. Both package-name and package-id reference identifier formats for the template-id are supported. Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4. Required
.com.daml.ledger.api.v2.Identifier template_id = 1; -
mergeTemplateId
public CommandsOuterClass.PrefetchContractKey.Builder mergeTemplateId(com.daml.ledger.api.v2.ValueOuterClass.Identifier value) The template of contract the client wants to prefetch. Both package-name and package-id reference identifier formats for the template-id are supported. Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4. Required
.com.daml.ledger.api.v2.Identifier template_id = 1; -
clearTemplateId
The template of contract the client wants to prefetch. Both package-name and package-id reference identifier formats for the template-id are supported. Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4. Required
.com.daml.ledger.api.v2.Identifier template_id = 1; -
getTemplateIdBuilder
public com.daml.ledger.api.v2.ValueOuterClass.Identifier.Builder getTemplateIdBuilder()The template of contract the client wants to prefetch. Both package-name and package-id reference identifier formats for the template-id are supported. Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4. Required
.com.daml.ledger.api.v2.Identifier template_id = 1; -
getTemplateIdOrBuilder
public com.daml.ledger.api.v2.ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder()The template of contract the client wants to prefetch. Both package-name and package-id reference identifier formats for the template-id are supported. Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4. Required
.com.daml.ledger.api.v2.Identifier template_id = 1;- Specified by:
getTemplateIdOrBuilderin interfaceCommandsOuterClass.PrefetchContractKeyOrBuilder
-
hasContractKey
public boolean hasContractKey()The key of the contract the client wants to prefetch. Required
.com.daml.ledger.api.v2.Value contract_key = 2;- Specified by:
hasContractKeyin interfaceCommandsOuterClass.PrefetchContractKeyOrBuilder- Returns:
- Whether the contractKey field is set.
-
getContractKey
public com.daml.ledger.api.v2.ValueOuterClass.Value getContractKey()The key of the contract the client wants to prefetch. Required
.com.daml.ledger.api.v2.Value contract_key = 2;- Specified by:
getContractKeyin interfaceCommandsOuterClass.PrefetchContractKeyOrBuilder- Returns:
- The contractKey.
-
setContractKey
public CommandsOuterClass.PrefetchContractKey.Builder setContractKey(com.daml.ledger.api.v2.ValueOuterClass.Value value) The key of the contract the client wants to prefetch. Required
.com.daml.ledger.api.v2.Value contract_key = 2; -
setContractKey
public CommandsOuterClass.PrefetchContractKey.Builder setContractKey(com.daml.ledger.api.v2.ValueOuterClass.Value.Builder builderForValue) The key of the contract the client wants to prefetch. Required
.com.daml.ledger.api.v2.Value contract_key = 2; -
mergeContractKey
public CommandsOuterClass.PrefetchContractKey.Builder mergeContractKey(com.daml.ledger.api.v2.ValueOuterClass.Value value) The key of the contract the client wants to prefetch. Required
.com.daml.ledger.api.v2.Value contract_key = 2; -
clearContractKey
The key of the contract the client wants to prefetch. Required
.com.daml.ledger.api.v2.Value contract_key = 2; -
getContractKeyBuilder
public com.daml.ledger.api.v2.ValueOuterClass.Value.Builder getContractKeyBuilder()The key of the contract the client wants to prefetch. Required
.com.daml.ledger.api.v2.Value contract_key = 2; -
getContractKeyOrBuilder
public com.daml.ledger.api.v2.ValueOuterClass.ValueOrBuilder getContractKeyOrBuilder()The key of the contract the client wants to prefetch. Required
.com.daml.ledger.api.v2.Value contract_key = 2;- Specified by:
getContractKeyOrBuilderin interfaceCommandsOuterClass.PrefetchContractKeyOrBuilder
-
hasLimit
public boolean hasLimit()The number of contracts to prefetch for this key, if available. This is in addition to disclosed contracts. - for backward compatibility reason, absence is interpreted as 1 - 0 is forbidden - capped at 2^31 - 1. The system may impose further limits. Optional
optional uint32 limit = 3;- Specified by:
hasLimitin interfaceCommandsOuterClass.PrefetchContractKeyOrBuilder- Returns:
- Whether the limit field is set.
-
getLimit
public int getLimit()The number of contracts to prefetch for this key, if available. This is in addition to disclosed contracts. - for backward compatibility reason, absence is interpreted as 1 - 0 is forbidden - capped at 2^31 - 1. The system may impose further limits. Optional
optional uint32 limit = 3;- Specified by:
getLimitin interfaceCommandsOuterClass.PrefetchContractKeyOrBuilder- Returns:
- The limit.
-
setLimit
The number of contracts to prefetch for this key, if available. This is in addition to disclosed contracts. - for backward compatibility reason, absence is interpreted as 1 - 0 is forbidden - capped at 2^31 - 1. The system may impose further limits. Optional
optional uint32 limit = 3;- Parameters:
value- The limit to set.- Returns:
- This builder for chaining.
-
clearLimit
The number of contracts to prefetch for this key, if available. This is in addition to disclosed contracts. - for backward compatibility reason, absence is interpreted as 1 - 0 is forbidden - capped at 2^31 - 1. The system may impose further limits. Optional
optional uint32 limit = 3;- Returns:
- This builder for chaining.
-
setUnknownFields
public final CommandsOuterClass.PrefetchContractKey.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.PrefetchContractKey.Builder>
-
mergeUnknownFields
public final CommandsOuterClass.PrefetchContractKey.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.PrefetchContractKey.Builder>
-